/* =====================================================================
   couture.css — Layout & Komponenten (Blush · Cherry, Poppins)
   Mobile-first; Desktop-Overrides via min-width.
   ===================================================================== */

/* --------------------------------------------------------- STICKY NAV */
.topnav {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(245, 230, 224, 0.86);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.topnav-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--gutter);
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.topnav-brand {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--ink);
    white-space: nowrap;
}
.topnav-brand .dot { color: var(--accent); }

/* Hamburger-Button (nur mobil sichtbar) */
.topnav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-right: -10px;
    background: none;
    border: 0;
    cursor: pointer;
    color: var(--ink);
}
.topnav-toggle .bars,
.topnav-toggle .bars::before,
.topnav-toggle .bars::after {
    content: "";
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease, background 0.2s ease;
}
.topnav-toggle .bars { position: relative; }
.topnav-toggle .bars::before { position: absolute; left: 0; top: -7px; }
.topnav-toggle .bars::after  { position: absolute; left: 0; top: 7px; }
.topnav.is-open .topnav-toggle .bars { background: transparent; }
.topnav.is-open .topnav-toggle .bars::before { transform: translateY(7px) rotate(45deg); }
.topnav.is-open .topnav-toggle .bars::after  { transform: translateY(-7px) rotate(-45deg); }

/* Links — mobil: aufklappendes Panel */
.topnav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(245, 230, 224, 0.97);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    padding: 0 var(--gutter);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.34s ease, opacity 0.26s ease;
}
.topnav.is-open .topnav-links {
    max-height: 80vh;
    opacity: 1;
    overflow-y: auto;
    pointer-events: auto;
    padding-bottom: 12px;
}
.topnav-links a {
    display: block;
    padding: 15px 2px;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--ink-mid);
    border-bottom: 1px solid var(--line);
    transition: color 0.2s ease;
}
.topnav-links a:last-child { border-bottom: 0; }
.topnav-links a:hover,
.topnav-links a.active { color: var(--accent); }

/* Abgedunkelter Vollbild-Overlay hinter dem mobilen Menü */
.nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 25;
    background: rgba(42, 36, 38, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
body.nav-open .nav-scrim { opacity: 1; visibility: visible; }
body.nav-open { overflow: hidden; }

/* Anker nicht unter die Sticky-Nav rutschen lassen */
[id] { scroll-margin-top: 74px; }

/* ------------------------------------------------------------- COVER */
.cover {
    background: var(--bg);
    padding: clamp(20px, 5vw, 40px) var(--gutter) clamp(40px, 7vw, 72px);
    max-width: var(--maxw);
    margin: 0 auto;
}
.cover-main {
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding-top: clamp(32px, 7vw, 64px);
}
.cover-text { order: 1; }

.eyebrow {
    font-size: 12px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--accent);
}
.name {
    font-size: clamp(46px, 13vw, 88px);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 0.98;
    margin: 16px 0 0;
    color: var(--ink);
}
.name .last { font-weight: 600; }
.name .last::after { content: "."; color: var(--accent); }

.cover-role {
    margin-top: 18px;
    font-size: 14px;
    letter-spacing: 0.04em;
    color: var(--ink-mid);
    font-weight: 500;
}
.cover-tagline {
    margin-top: 22px;
    max-width: 30ch;
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink-mid);
    border-left: 2px solid var(--accent);
    padding-left: 16px;
}

.cover-photo {
    order: 2;
    position: relative;
    width: clamp(200px, 56vw, 260px);
    align-self: center;
}
.cover-photo img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 44px rgba(42, 36, 38, 0.18);
}
.cover-photo::after {
    content: "";
    position: absolute;
    inset: 14px -14px -14px 14px;
    border: 1px solid var(--accent);
    z-index: 0;
}

/* -------------------------------------------------------------- BODY */
.body {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: clamp(24px, 5vw, 48px) var(--gutter) clamp(48px, 8vw, 88px);
}
.section { margin-bottom: clamp(44px, 7vw, 72px); }
.section:last-child { margin-bottom: 0; }

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px 24px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--ink);
}
.section-head h2 {
    font-size: clamp(20px, 3.5vw, 26px);
    font-weight: 600;
    letter-spacing: -0.01em;
}
.section-sub {
    font-size: 13px;
    color: var(--ink-mid);
    font-weight: 400;
}

/* ----------------------------------------------------------- ANSCHREIBEN */
.letter { max-width: 720px; }
.letter p {
    font-size: 16px;
    line-height: 1.72;
    color: var(--ink);
    margin-bottom: 16px;
}
.letter .salutation { font-weight: 500; }
.letter .lead {
    font-size: 18px;
    line-height: 1.62;
    margin-bottom: 22px;
}
.letter .drop {
    float: left;
    font-size: 56px;
    line-height: 0.82;
    font-weight: 600;
    color: var(--accent);
    margin: 6px 12px 0 0;
}
.letter .sign {
    margin-top: 26px;
    font-size: 14px;
    color: var(--ink-mid);
}
.letter .sig {
    display: inline-block;
    margin-top: 4px;
    font-size: 22px;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: -0.01em;
}

/* ------------------------------------------------------------- TIMELINE */
.timeline { list-style: none; }
.tl-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
}
.tl-item:first-child { border-top: 0; padding-top: 4px; }
.tl-year {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--accent);
}
.tl-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
}
.tl-org {
    font-size: 14px;
    color: var(--ink-mid);
    margin-top: 2px;
}
.tl-note {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--ink-mid);
    margin-top: 6px;
}

/* ------------------------------------------------------------- KENNTNISSE */
.skill-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.skill-head {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 12px;
}
.skill-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}
.skill-line span:first-child { font-weight: 500; }
.skill-line .lvl { font-size: 13px; color: var(--ink-mid); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
    font-size: 13px;
    color: var(--ink);
    border: 1px solid var(--accent);
    padding: 7px 13px;
    border-radius: 100px;
}

/* ------------------------------------------------------------- UNTERLAGEN */
.doc-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 300px));
    gap: 16px;
}
.doc-card {
    display: block;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    padding: 22px 22px 20px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.doc-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 14px 30px rgba(42, 36, 38, 0.12);
}
.doc-title { font-size: 19px; font-weight: 600; color: var(--ink); }
.doc-meta { font-size: 13px; color: var(--ink-mid); margin-top: 4px; }
.doc-cta {
    display: inline-block;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.02em;
}

/* ---------------------------------------------------------------- FOOTER */
.footer {
    background: var(--ink);
    color: var(--bg);
    padding: clamp(48px, 8vw, 72px) var(--gutter) 28px;
}
.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: var(--maxw);
    margin: 0 auto;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(245, 230, 224, 0.16);
}
.footer-eyebrow {
    font-size: 11px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: rgba(245, 230, 224, 0.6);
    margin-bottom: 10px;
}
.footer-name {
    font-size: clamp(34px, 8vw, 52px);
    font-weight: 300;
    color: var(--bg);
    line-height: 1;
}
.footer-name::after { content: "."; color: var(--accent); }
.footer-contact {
    font-size: 16px;
    line-height: 1.9;
}
.footer-contact a { border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.footer-contact a:hover { border-color: var(--accent); color: #fff; }
.footer-base {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: var(--maxw);
    margin: 0 auto;
    padding-top: 20px;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(245, 230, 224, 0.55);
}

/* =====================================================================
   DESKTOP
   ===================================================================== */
@media (min-width: 760px) {
    .tl-item {
        grid-template-columns: 150px 1fr;
        gap: 32px;
        padding: 24px 0;
        align-items: start;
    }
    .tl-item .tl-year { padding-top: 2px; }
    .skill-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}

@media (min-width: 900px) {
    .cover-main {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: clamp(40px, 6vw, 80px);
        padding-top: clamp(48px, 6vw, 80px);
    }
    .cover-text { order: 1; flex: 1; }
    .cover-photo {
        order: 2;
        align-self: center;
        width: clamp(280px, 30vw, 340px);
        flex-shrink: 0;
    }
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
    .footer-contact { text-align: right; }
    .footer-base { flex-direction: row; justify-content: space-between; }
}

/* ----------------------------------------------------------- NAV (Desktop) */
@media (min-width: 721px) {
    .topnav-toggle { display: none; }
    .nav-scrim { display: none; }
    .topnav-links {
        position: static;
        flex-direction: row;
        align-items: center;
        gap: clamp(14px, 2vw, 28px);
        max-height: none;
        opacity: 1;
        overflow: visible;
        pointer-events: auto;
        background: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        border-bottom: 0;
        padding: 0;
    }
    .topnav-links a {
        display: inline-flex;
        align-items: center;
        height: 56px;
        padding: 0;
        font-size: 12px;
        border-bottom: 2px solid transparent;
        white-space: nowrap;
        transition: color 0.2s ease, border-color 0.2s ease;
    }
    .topnav-links a:last-child { border-bottom: 2px solid transparent; }
    .topnav-links a:hover { color: var(--ink); }
    .topnav-links a.active {
        color: var(--accent);
        border-bottom-color: var(--accent);
    }
}

/* ------------------------------------------------------------- MOTION */
/* Startzustand greift nur, wenn JS aktiv ist (.reveal-on auf <html>,
   im <head> vor dem Paint gesetzt) → kein Flackern, garantierte
   Animation auch auf schnellen Desktops. */
.reveal-on .section,
.reveal-on .cover-photo {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
                transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
    will-change: opacity, transform;
}
.reveal-on .section.is-visible,
.reveal-on .cover-photo.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal-on .section,
    .reveal-on .cover-photo { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* Drucken: alle Sektionen sichtbar (Reveal-Startzustand aufheben) */
@media print {
    .reveal-on .section,
    .reveal-on .cover-photo { opacity: 1 !important; transform: none !important; transition: none !important; }
    .topnav, .nav-scrim { display: none !important; }
}
