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

:root {
    --bg:           #ffffff;
    --text:         #1a1a1a;
    --text-muted:   #3d3d3d;
    --text-subtle:  #595959;
    --accent:       #1c3560;
    --accent-hover: #142545;
    --border:       #c8c8c6;
    --border-light: #e4e4e2;
}

html {
    font-size: 16px;
    height: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ── Seitenstruktur ── */
.page {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100vh;
}

/* ── Layout (Desktop: 50/50) ── */
.layout {
    display: flex;
    flex: 1;
}

.layout__photo {
    width: 50%;
    flex-shrink: 0;
    overflow: hidden;
}

/* Desktop: Foto füllt die gesamte Spalte lückenlos */
.layout__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.layout__content {
    width: 50%;
    display: flex;
    align-items: flex-start;   /* oben ausrichten → Name bleibt auf beiden Seiten an gleicher Position */
    border-left: 1px solid var(--border-light);
    min-height: 560px;
}

/* ── Inhalt ── */
.content {
    width: 100%;
    padding: 4.5rem 4rem 4rem;  /* konsistentes Top-Padding als Anker für den Namen */
}

/* ── Eyebrow ── */
.eyebrow {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.1rem;
}

/* ── Name ── */
.name {
    font-family: 'Raleway', sans-serif;
    font-weight: 200;
    font-size: clamp(3rem, 4.2vw, 4.2rem);
    line-height: 1.0;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 1.75rem;
}

/* ── Trennlinie ── */
.rule {
    width: 2rem;
    height: 2px;
    background: var(--accent);
    margin-bottom: 1.75rem;
    border: none;
}

/* ── Bio ── */
.bio {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.bio-sub {
    color: var(--text-subtle);
    font-size: 0.9rem;
}

/* ── Kontakt ── */
.contacts {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;        /* kompakter Abstand zwischen Mail und Tel */
    margin-bottom: 1.75rem;
}

.contact-row {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
    font-size: 1rem;
    font-weight: 400;
    min-height: 44px;
    padding: 0.1rem 0;
    transition: color 0.15s;
}

.contact-row__icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--accent);
}

/* ── Socials ── */
.socials {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    color: var(--text-subtle);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    min-height: 44px;
    padding: 0.1rem 0;
    transition: color 0.15s;
}

.social-link:hover {
    color: var(--accent);
}

.social-link__icon {
    width: 22px;
    height: 22px;
}

.social-sep {
    color: var(--border);
    font-size: 1rem;
    line-height: 1;
    user-select: none;
}

/* ── VCF-Button: Outline-Stil ── */
.vcf-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    background: transparent;
    border: 2px solid var(--accent);
    padding: 0.7rem 1.4rem;
    min-height: 44px;
    transition: background 0.15s, color 0.15s;
}

.vcf-btn__icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.vcf-btn:hover {
    background: var(--accent);
    color: #ffffff;
}


/* ── Footer ── */
.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1.25rem 4rem;
    border-top: 1px solid var(--border-light);
}

.footer__nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer__nav a {
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-subtle);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    transition: color 0.15s;
}

.footer__nav a:hover {
    color: var(--accent);
}

.footer__nav span {
    color: var(--border);
    font-size: 0.8rem;
    user-select: none;
}

.footer__copy {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-subtle);
}


/* ═══════════════════════════════════════════════════════
   #danke-Overlay
   ═══════════════════════════════════════════════════════ */

/* hidden-Attribut muss gewinnen, damit das Overlay keine Klicks blockiert */
.danke-overlay[hidden] {
    display: none !important;
}

.danke-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem 5rem;
    background: #0b1b38;
    opacity: 0;
    transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Standardmäßig ausgeblendet – hidden-Attribut per HTML */
}

.danke-overlay.is-active {
    opacity: 1;
}

.danke-overlay.is-leaving {
    opacity: 0;
    transition-duration: 1.8s;
}

/* ── Eckdekorationen ── */
.danke-corner {
    position: absolute;
    width: 3rem;
    height: 3rem;
    opacity: 0;
    transition: opacity 0.6s ease 0.2s;
}

.danke-overlay.is-active .danke-corner {
    opacity: 1;
}

.danke-corner--tl { top: 2.5rem;    left: 2.5rem;   border-top: 1px solid rgba(255,255,255,0.25); border-left:  1px solid rgba(255,255,255,0.25); }
.danke-corner--tr { top: 2.5rem;    right: 2.5rem;  border-top: 1px solid rgba(255,255,255,0.25); border-right: 1px solid rgba(255,255,255,0.25); }
.danke-corner--bl { bottom: 2.5rem; left: 2.5rem;   border-bottom: 1px solid rgba(255,255,255,0.25); border-left:  1px solid rgba(255,255,255,0.25); }
.danke-corner--br { bottom: 2.5rem; right: 2.5rem;  border-bottom: 1px solid rgba(255,255,255,0.25); border-right: 1px solid rgba(255,255,255,0.25); }

/* ── Innerer Inhalt ── */
.danke-inner {
    text-align: center;
    max-width: 640px;
}

/* Jede Zeile fliegt einzeln rein */
.danke-line {
    opacity: 0;
    transform: translateY(28px);
    color: #f0ebe2;
    font-family: 'Raleway', sans-serif;
}

.danke-overlay.is-active .danke-line {
    animation: dankeLineIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Gestaffelte Verzögerungen */
.danke-overlay.is-active .danke-line--years  { animation-delay: 0.4s; }
.danke-overlay.is-active .danke-line--sub1   { animation-delay: 0.85s; }
.danke-overlay.is-active .danke-rule         { animation-delay: 1.3s; }
.danke-overlay.is-active .danke-line--main   { animation-delay: 1.6s; }
.danke-overlay.is-active .danke-line--body   { animation-delay: 2.2s; }
.danke-overlay.is-active .danke-line--meta   { animation-delay: 2.9s; }

/* Typografie der einzelnen Zeilen */
.danke-line--years {
    font-weight: 200;
    font-size: clamp(5rem, 14vw, 9rem);
    line-height: 1;
    letter-spacing: -0.03em;
    color: rgba(255,255,255,0.12);   /* subtil im Hintergrund */
    margin-bottom: -1.5rem;          /* überlappt mit sub1 */
    position: relative;
    z-index: 0;
}

.danke-line--sub1 {
    font-weight: 300;
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.55);
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.danke-rule {
    width: 3rem;
    height: 1px;
    background: rgba(255,255,255,0.3);
    margin: 0 auto 2rem;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
}

.danke-overlay.is-active .danke-rule {
    animation: dankeRuleIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 1.3s;
}

.danke-line--main {
    font-weight: 200;
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: #ffffff;
    margin-bottom: 1.75rem;
}

.danke-line--body {
    font-weight: 300;
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    line-height: 1.75;
    color: rgba(255,255,255,0.65);
    margin-bottom: 1.5rem;
}

.danke-line--meta {
    font-weight: 400;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
}

/* ── Fortschrittsbalken unten ── */
.danke-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
}

.danke-progress__bar {
    height: 100%;
    width: 0%;
    background: rgba(255,255,255,0.35);
    transition: width linear;
    transition-duration: 8500ms; /* wird per JS überschrieben */
}

.danke-overlay.is-active .danke-progress__bar {
    width: 100%;
}

/* ── Weiter-Button ── */
.danke-skip {
    position: absolute;
    bottom: 2.5rem;
    right: 2.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.45);
    font-family: 'Raleway', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.65rem 1.1rem;
    cursor: pointer;
    min-height: 44px;
    opacity: 0;
    transition: opacity 0.4s ease, color 0.15s, border-color 0.15s;
}

.danke-skip svg {
    width: 14px;
    height: 14px;
}

.danke-overlay.is-active .danke-skip {
    opacity: 1;
    transition-delay: 3.5s;
}

.danke-skip:hover {
    color: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.45);
}

.danke-skip:focus-visible {
    outline-color: rgba(255,255,255,0.6);
}

/* ── Keyframes ── */
@keyframes dankeLineIn {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes dankeRuleIn {
    to { opacity: 1; transform: scaleX(1); }
}


/* ═══════════════════════════════════════════════════════
   Unterseiten
   ═══════════════════════════════════════════════════════ */
.subpage {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.subpage__header {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 4rem;
    border-bottom: 1px solid var(--border-light);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-subtle);
    min-height: 44px;
    transition: color 0.15s;
    flex-shrink: 0;
}

.back-link svg { width: 14px; height: 14px; }

.back-link:hover { color: var(--accent); }

.subpage__brand {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-size: 1.15rem;
    color: var(--text);
    letter-spacing: 0.01em;
}

.subpage__main {
    flex: 1;
    max-width: 700px;
    margin: 0 auto;
    padding: 4rem 2rem 5rem;
    width: 100%;
}

.subpage__main h1 {
    font-family: 'Raleway', sans-serif;
    font-weight: 200;
    font-size: clamp(2rem, 3vw, 2.6rem);
    color: var(--text);
    margin-bottom: 2.5rem;
    letter-spacing: -0.01em;
}

.subpage__main h2 {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.subpage__main p,
.subpage__main address {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.75;
    color: var(--text-muted);
    font-style: normal;
}

.subpage__main p + p { margin-top: 0.75rem; }

.subpage__main a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.subpage__main a:hover { color: var(--accent-hover); }

.subpage__main .note {
    font-size: 0.9rem;
    color: var(--text-subtle);
    margin-top: 0.5rem;
    line-height: 1.75;
}


/* ═══════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .content { padding: 3rem 3rem; }
}

@media (max-width: 768px) {
    /* ── Mobil: Bild oben in natürlicher Proportion (kein Zuschnitt) ── */
    .layout {
        flex-direction: column;
    }

    .layout__photo {
        width: 100%;
        /* Natürliche Höhe – kein Stretch, kein Zuschnitt */
    }

    .layout__photo img {
        width: 100%;
        height: auto;
        object-fit: initial;
    }

    .layout__content {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border-light);
        min-height: unset;
        align-items: flex-start;
    }

    /* ── Mobil: Inhalt über volle Breite ── */
    .content {
        padding: 2.5rem 1.75rem 3.25rem;
        max-width: 100%;
    }

    .name {
        font-size: clamp(2.8rem, 10vw, 3.5rem);
        white-space: nowrap;
    }

    .name-break br {
        display: none;
    }

    /* Kontakte nebeneinander auf breiten Mobilgeräten */
    .contacts {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem 2rem;
    }

    .footer {
        padding: 1.25rem 1.75rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .footer__nav {
        gap: 0.5rem;
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
    }

    .subpage__header { padding: 1.25rem 1.75rem; }
    .subpage__main   { padding: 2.5rem 1.75rem 3.5rem; }

    /* ── Danke-Overlay: Ecken kleiner ── */
    .danke-corner { width: 2rem; height: 2rem; }
    .danke-corner--tl, .danke-corner--bl { left: 1.25rem; }
    .danke-corner--tr, .danke-corner--br { right: 1.25rem; }
    .danke-corner--tl, .danke-corner--tr { top: 1.25rem; }
    .danke-corner--bl, .danke-corner--br { bottom: 1.25rem; }
    .danke-skip { bottom: 1.5rem; right: 1.25rem; }
}

@media (max-width: 440px) {
    .content { padding: 2rem 1.25rem; }

    .name {
        white-space: normal;
    }

    .name-break br {
        display: inline;
    }

    .footer__nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .footer__nav span {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════
   Über-mich-Seite
   ═══════════════════════════════════════════════════════ */

/* Fließtext */
.about-text {
    margin-bottom: 2.25rem;
    max-width: 34rem;
}

.about-text p {
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.85;
    color: var(--text-muted);
}

.about-text p + p {
    margin-top: 0.9rem;
}

/* "Kontakt aufnehmen"-Link */
.about-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 0.7rem 1.4rem;
    min-height: 44px;
    transition: background 0.15s, color 0.15s;
}

.about-back-link__icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.about-back-link:hover {
    background: var(--accent);
    color: #ffffff;
}


/* ── Aktiver Footer-Link ── */
.footer__nav a[aria-current="page"] {
    color: var(--accent);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════
   View Transitions API
   Foto und Name bleiben beim Seitenwechsel an ihrer Position.
   ═══════════════════════════════════════════════════════ */

.layout__photo img { view-transition-name: profile-photo; }
.name              { view-transition-name: profile-name;  }
.eyebrow           { view-transition-name: profile-eyebrow; }
.rule              { view-transition-name: profile-rule;  }

/* Übergangszeit für den Seiteninhalt */
::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 0.35s;
}

/* Foto und Name: kein eigener Übergang, bleiben fest */
::view-transition-old(profile-photo),
::view-transition-new(profile-photo),
::view-transition-old(profile-name),
::view-transition-new(profile-name),
::view-transition-old(profile-eyebrow),
::view-transition-new(profile-eyebrow),
::view-transition-old(profile-rule),
::view-transition-new(profile-rule) {
    animation: none;
}


/* ═══════════════════════════════════════════════════════
   Reduzierte Bewegung
   ═══════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .danke-line,
    .danke-rule,
    .danke-overlay,
    .danke-corner,
    .danke-skip,
    .danke-progress__bar {
        transition: none !important;
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}



