:root {
    --bg: #f6f4ef;
    --surface: #ffffff;
    --fg: #141414;
    --text: #4a4a47;
    --muted: #8a8780;
    --faint: #bdb8ae;
    --border: #e5e1d8;
    --accent: #1f4b41;
    --accent-soft: #e4ece8;
    --radius: 18px;
    --nav-h: 72px;
    --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

::selection {
    background: var(--accent);
    color: #fff;
}

.serif {
    font-family: 'Fraunces', serif;
}

/* ─── Animationen ─── */
.anim-hidden {
    opacity: 0;
}
.anim-hidden-up    { transform: translateY(28px); }
.anim-hidden-right { transform: translateX(40px); }

.anim-transition {
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
    *, *::before, *::after { transition: none !important; }
}

/* ─── Navbar ─── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-h);
    background: rgba(246, 244, 239, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 52px;
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: border-color 0.4s, height 0.3s;
}

.navbar.scrolled {
    border-bottom-color: var(--border);
    height: 60px;
}

.nav-logo {
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    height: 38px;
    overflow: hidden;
}

.nav-logo img {
    height: 52px;
    width: auto;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 36px;
}

.nav-links a {
    position: relative;
    text-decoration: none;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    padding: 6px 0;
    transition: color 0.2s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1.5px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--fg);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

/* ─── Buttons & Links ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -10px rgba(31, 75, 65, 0.6);
}

.btn .arrow {
    transition: transform 0.25s var(--ease);
}

.btn:hover .arrow {
    transform: translateX(4px);
}

.btn-ghost {
    background: transparent;
    color: var(--fg);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--fg);
    box-shadow: none;
}

.btn-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    margin-top: -1px;
}

.text-link {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
}

.text-link:hover {
    color: var(--fg);
    border-bottom-color: var(--fg);
}

/* ─── Hero ─── */
.hero {
    min-height: 100vh;
    max-width: 1240px;
    margin: 0 auto;
    padding: calc(var(--nav-h) + 40px) 52px 60px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 72px;
}

.hero-content {
    display: flex;
    flex-direction: column;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    padding: 7px 14px 7px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 32px;
}

.hero-eyebrow .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(31, 75, 65, 0.15);
}

.hero-name {
    font-family: 'Fraunces', serif;
    font-size: clamp(3.6rem, 7.4vw, 7.2rem);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--fg);
    margin-bottom: 24px;
}

.hero-name em {
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
}

.hero-role {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    color: var(--text);
    margin-bottom: 24px;
}

.hero-desc {
    font-size: 0.98rem;
    color: var(--text);
    line-height: 1.8;
    max-width: 500px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 24px;
}

.hero-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.fact-label {
    display: block;
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--faint);
    margin-bottom: 6px;
}

.fact-value {
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--fg);
    line-height: 1.4;
}

.hero-photo {
    position: relative;
    justify-self: end;
    width: 100%;
    max-width: 440px;
}

.hero-photo::before {
    content: '';
    position: absolute;
    inset: 28px -28px -28px 28px;
    border-radius: var(--radius);
    background: var(--accent);
    z-index: 0;
}

.hero-photo-frame {
    position: relative;
    z-index: 1;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--border);
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 48% 12%;
    display: block;
    filter: grayscale(100%) contrast(1.05);
    transition: filter 0.8s var(--ease), transform 0.8s var(--ease);
}

.hero-photo:hover img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

/* ─── Unterseiten-Header ─── */
.page {
    max-width: 960px;
    margin: 0 auto;
    padding: calc(var(--nav-h) + 80px) 48px 110px;
}

.page-head {
    margin-bottom: 72px;
}

.page-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--accent);
    margin-bottom: 18px;
}

.page-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.6rem, 6vw, 4.4rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 22px;
}

.page-title em {
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
}

.page-intro {
    font-size: 0.98rem;
    color: var(--text);
    line-height: 1.8;
    max-width: 580px;
}

/* ─── Projekte ─── */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.project {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
    padding: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s, opacity 0.7s var(--ease);
}

.project:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: 0 24px 48px -28px rgba(20, 20, 20, 0.35);
}

.project-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-num {
    font-family: 'Fraunces', serif;
    font-size: 2.4rem;
    font-weight: 400;
    font-style: italic;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 10px;
}

.project-date {
    font-size: 0.78rem;
    color: var(--muted);
}

.project-role {
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--faint);
    line-height: 1.6;
}

.project-title {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}

.project-org {
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 20px;
}

.project-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.cert-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 56px;
    padding: 40px;
    border-radius: var(--radius);
    background: var(--accent);
    color: #fff;
}

.cert-card .page-eyebrow {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.cert-title {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.cert-org {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.72);
}

/* ─── CV ─── */
.page-wide {
    max-width: 1160px;
}

.cv-hero {
    padding: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 28px;
}

.cv-hero-top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
    padding-bottom: 32px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.cv-avatar {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--border);
    box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--accent);
}

.cv-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.6s var(--ease);
    display: block;
}

.cv-avatar:hover img {
    filter: grayscale(0%);
}

.cv-hero-id .page-eyebrow {
    margin-bottom: 8px;
}

.cv-name {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.cv-name em {
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
}

.cv-role {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 14px;
}

.cv-meta {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cv-meta li {
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 500;
}

.cv-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cv-hero-actions .btn {
    justify-content: center;
}

.cv-summary {
    font-family: 'Fraunces', serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--fg);
    line-height: 1.65;
    max-width: 860px;
}

.cv-summary strong {
    font-weight: 600;
    color: var(--accent);
}

.cv-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
}

.cv-main,
.cv-side {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.cv-side {
    position: sticky;
    top: calc(var(--nav-h) + 16px);
}

.cv-card {
    padding: 36px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.cv-card-title {
    display: flex;
    align-items: baseline;
    gap: 14px;
    font-family: 'Fraunces', serif;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 32px;
}

.cv-card-num {
    font-size: 1rem;
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
}

.cv-card-link {
    display: inline-flex;
    gap: 8px;
    margin-top: 8px;
    margin-left: 32px;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    text-decoration: none;
}

.cv-card-link .arrow {
    transition: transform 0.25s var(--ease);
}

.cv-card-link:hover .arrow {
    transform: translateX(4px);
}

/* Timeline */
.tl-item {
    position: relative;
    padding: 0 0 32px 32px;
}

.tl-item::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 14px;
    bottom: -4px;
    width: 1.5px;
    background: var(--border);
}

.tl-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--accent);
}

.tl-item:first-child::after {
    background: var(--accent);
}

.tl-item:last-child {
    padding-bottom: 8px;
}

.tl-item:last-child::before {
    display: none;
}

.tl-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 4px;
}

.tl-title {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.35;
}

.tl-date {
    flex-shrink: 0;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid var(--border);
    font-size: 0.72rem;
    color: var(--muted);
    white-space: nowrap;
}

.tl-org {
    font-size: 0.84rem;
    color: var(--muted);
    margin-bottom: 12px;
}

.tl-item > .tl-org:last-child {
    margin-bottom: 0;
}

.cv-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cv-bullets li {
    font-size: 0.88rem;
    color: var(--text);
    padding-left: 20px;
    position: relative;
    line-height: 1.65;
}

.cv-bullets li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.72em;
    width: 8px;
    height: 1.5px;
    background: var(--accent);
}

.cv-bullets strong {
    color: var(--fg);
    font-weight: 600;
}

/* Seitenleiste */
.cv-side .cv-card {
    padding: 28px;
}

.cv-side-label {
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.2px;
    color: var(--accent);
    margin-bottom: 18px;
}

.cv-cert {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.cv-cert .cv-side-label {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
}

.cv-cert .cert-org {
    margin-bottom: 14px;
}

.cv-cert-text {
    font-size: 0.84rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 18px;
}

.cv-cert-date {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.72rem;
}

.chip-group + .chip-group {
    margin-top: 22px;
}

.chip-group-title {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chips li {
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--text);
    transition: border-color 0.2s, color 0.2s;
}

.chips li:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.lang-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.lang-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.86rem;
    margin-bottom: 8px;
}

.lang-row span:first-child {
    font-weight: 700;
}

.lang-row span:last-child {
    color: var(--muted);
    font-size: 0.78rem;
}

.lang-bar {
    height: 5px;
    border-radius: 999px;
    background: var(--accent-soft);
    overflow: hidden;
}

.lang-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--accent);
}

/* ─── Kontakt ─── */
.contact-grid {
    max-width: 620px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.contact-aside {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-aside .page-intro {
    margin: 0 auto 32px;
    max-width: 460px;
}

.contact-aside .link-card {
    width: 100%;
    text-align: left;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 360px;
    padding: 16px 20px 16px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--fg);
    text-decoration: none;
    transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}

.link-card:hover {
    transform: translateY(-2px);
    border-color: transparent;
    box-shadow: 0 16px 32px -18px rgba(20, 20, 20, 0.35);
}

.link-card-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
}

.link-card-icon svg {
    width: 20px;
    height: 20px;
}

.link-card-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    line-height: 1.3;
}

.link-card-label {
    font-size: 0.72rem;
    color: var(--muted);
}

.link-card-text strong {
    font-size: 0.95rem;
    font-weight: 700;
}

.link-card-arrow {
    color: var(--accent);
    font-size: 1.1rem;
    transition: transform 0.25s var(--ease);
}

.link-card:hover .link-card-arrow {
    transform: translate(2px, -2px);
}

.contact-card {
    padding: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.form-title {
    font-family: 'Fraunces', serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 28px;
}

#contact_form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--fg);
}

.req {
    color: var(--accent);
    margin-left: 2px;
}

input, select, textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--fg);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

input, select {
    appearance: none;
    height: 48px;
}

select {
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
    padding-right: 40px;
    cursor: pointer;
}

textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

input:hover, select:hover, textarea:hover {
    border-color: var(--faint);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
    background-color: var(--surface);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

input::placeholder, textarea::placeholder {
    color: var(--faint);
}

button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
    background: var(--accent);
    color: #fff;
    padding: 15px 32px;
    border: none;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -10px rgba(31, 75, 65, 0.6);
}

/* ─── Toast Notification ─── */
.toast {
    position: fixed;
    bottom: 40px;
    right: 48px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 2px solid var(--accent);
    border-radius: 12px;
    padding: 20px 28px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.84rem;
    color: var(--fg);
    max-width: 320px;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
    z-index: 9999;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.toast.toast-error {
    border-top-color: #b04a3a;
}

/* ─── Inline Form Message ─── */
.form-msg {
    overflow: hidden;
    max-height: 0;
    padding: 0 20px;
    background: var(--accent-soft);
    border-left: 3px solid transparent;
    border-radius: 8px;
    font-size: 0.86rem;
    color: var(--accent);
    line-height: 1.5;
    opacity: 0;
    transition: max-height 0.35s ease, padding 0.35s ease, opacity 0.35s ease;
}

.form-msg.show {
    max-height: 80px;
    padding: 16px 20px;
    border-left-color: var(--accent);
    opacity: 1;
}

.form-msg.error {
    background: #f6e7e3;
    color: #8a3426;
}

.form-msg.error.show {
    border-left-color: #b04a3a;
}

/* ─── Footer ─── */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 32px 52px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 0.76rem;
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 28px;
}

.site-footer a {
    color: var(--muted);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.7rem;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
}

.site-footer a:hover {
    color: var(--fg);
    border-bottom-color: var(--fg);
}

/* ─── Responsive ─── */
@media (max-width: 960px) {
    .navbar {
        padding: 0 24px;
    }

    .nav-links {
        gap: 22px;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 64px;
        padding: calc(var(--nav-h) + 48px) 24px 72px;
    }

    .hero-photo {
        justify-self: start;
        width: calc(100% - 20px);
        max-width: 380px;
    }

    .hero-photo::before {
        inset: 20px -20px -20px 20px;
    }

    .cv-summary {
        font-size: 1.08rem;
    }

    .page {
        padding: calc(var(--nav-h) + 56px) 24px 80px;
    }

    .page-head {
        margin-bottom: 48px;
    }

    .project,
    .cert-card {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 28px;
    }

    .project-meta {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 4px 14px;
    }

    .project-num {
        font-size: 1.6rem;
        margin: 0;
    }

    .project-role {
        flex-basis: 100%;
    }

    .cv-layout {
        grid-template-columns: 1fr;
    }

    .cv-side {
        position: static;
    }

    .cv-hero {
        padding: 28px;
    }

    .cv-hero-top {
        grid-template-columns: auto 1fr;
        gap: 24px;
    }

    .cv-hero-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .cv-card {
        padding: 28px;
    }

    .contact-grid {
        gap: 40px;
    }

    .contact-card {
        padding: 28px 24px;
    }

    .site-footer {
        padding: 28px 24px;
    }
}

/* ─── Smartphones ─── */
@media (max-width: 560px) {
    /* Navigation */
    .navbar {
        padding: 0 16px;
    }

    .nav-links {
        gap: 18px;
    }

    .nav-links a {
        font-size: 0.68rem;
        letter-spacing: 1.2px;
    }

    /* Logo already links home — keeps the nav from overflowing on phones */
    .nav-home {
        display: none;
    }

    /* Startseite: Foto zuerst, kompakt */
    .hero {
        gap: 36px;
        padding: calc(var(--nav-h) + 20px) 16px 48px;
    }

    .hero-photo {
        order: -1;
        justify-self: stretch;
        width: calc(100% - 12px);
        max-width: none;
    }

    .hero-photo::before {
        inset: 12px -12px -12px 12px;
        border-radius: 16px;
    }

    .hero-photo-frame {
        aspect-ratio: 4 / 3;
        border-radius: 16px;
    }

    .hero-eyebrow {
        margin-bottom: 18px;
    }

    .hero-name {
        font-size: clamp(2.9rem, 14vw, 3.6rem);
        margin-bottom: 14px;
    }

    .hero-role {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }

    .hero-desc {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 28px;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .hero-actions .btn {
        justify-content: center;
        padding: 14px 12px;
    }

    .hero-actions .btn:first-child {
        grid-column: 1 / -1;
    }

    .hero-facts {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        margin-top: 32px;
        padding-top: 20px;
    }

    .fact-label {
        font-size: 0.58rem;
        letter-spacing: 1.2px;
    }

    .fact-value {
        font-size: 0.78rem;
    }

    /* Unterseiten */
    .page {
        padding: calc(var(--nav-h) + 28px) 16px 56px;
    }

    .page-head {
        margin-bottom: 32px;
    }

    .page-title {
        font-size: clamp(2.3rem, 11vw, 2.8rem);
        margin-bottom: 16px;
    }

    .page-intro {
        font-size: 0.93rem;
        line-height: 1.7;
    }

    /* Projekte */
    .project-list {
        gap: 16px;
    }

    .project,
    .cert-card {
        padding: 22px 20px;
        gap: 12px;
    }

    .project-title {
        font-size: 1.25rem;
    }

    .project-org {
        margin-bottom: 14px;
    }

    .project-badge {
        border-radius: 12px;
        letter-spacing: 0.4px;
    }

    .cert-card {
        margin-top: 32px;
    }

    /* Lebenslauf: Kopf zentriert */
    .cv-hero {
        padding: 24px 20px;
        margin-bottom: 16px;
    }

    .cv-hero-top {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 18px;
        padding-bottom: 22px;
        margin-bottom: 22px;
    }

    .cv-avatar {
        width: 108px;
        height: 108px;
    }

    .cv-name {
        font-size: 2.2rem;
    }

    .cv-role {
        font-size: 0.9rem;
    }

    .cv-meta {
        justify-content: center;
    }

    .cv-hero-actions {
        grid-column: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        width: 100%;
    }

    .cv-hero-actions .btn {
        padding: 13px 12px;
    }

    .cv-summary {
        font-size: 1rem;
    }

    .cv-layout,
    .cv-main,
    .cv-side {
        gap: 16px;
    }

    .cv-card,
    .cv-side .cv-card {
        padding: 22px 20px;
    }

    .cv-card-title {
        font-size: 1.35rem;
        margin-bottom: 22px;
    }

    .tl-item {
        padding: 0 0 24px 24px;
    }

    .tl-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .tl-title {
        font-size: 0.98rem;
    }

    .cv-bullets li {
        font-size: 0.85rem;
        padding-left: 16px;
    }

    .cv-bullets li::before {
        left: 0;
    }

    .cv-card-link {
        margin-left: 24px;
    }

    /* Kontakt */
    .contact-grid {
        gap: 28px;
    }

    .contact-card {
        padding: 24px 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Footer */
    .site-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 24px 16px;
    }

    .toast {
        right: 16px;
        left: 16px;
        bottom: 16px;
    }
}
