/* =====================================================================
   Theme: Seide — Silk · Teal · Gold
   (generiert via _build/generate_themes.py — Skeleton + Charakter)
   ===================================================================== */

@font-face {
    font-family: 'Marcellus';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/marcellus-v14-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter Tight';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/inter-tight-v9-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter Tight';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/inter-tight-v9-latin-600.woff2') format('woff2');
}

:root {
    --bg: #F4EFE9;
    --bg-elev: #FFFFFF;
    --ink: #2C3333;
    --ink-mid: rgba(44, 51, 51, 0.6);
    --accent: #B08D57;
    --accent2: #1F4E4A;
    --teal: #1F4E4A;
    --line: rgba(44, 51, 51, 0.14);
    --rule: #B08D57;
    --font: 'Inter Tight', sans-serif;
    --font-head: 'Marcellus', Georgia, serif;
    --font-detail: 'Inter Tight', sans-serif;
    --nav-bg: rgba(244, 239, 233, 0.88);
    --nav-panel: rgba(244, 239, 233, 0.97);
    --nav-border: rgba(44, 51, 51, 0.16);
    --scrim: rgba(44, 51, 51, 0.5);
    --footer-bg: #1F4E4A;
    --footer-ink: #F4EFE9;
    --footer-line: rgba(244, 239, 233, 0.18);
    --footer-dim: rgba(244, 239, 233, 0.55);
    --radius: 0px;
    --maxw: 1080px;
    --gutter: clamp(24px, 5vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; }
::selection { background: var(--accent); color: var(--bg); }

/* --------------------------------------------------------- STICKY NAV */
.topnav {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--nav-bg);
    -webkit-backdrop-filter: blur(11px);
    backdrop-filter: blur(11px);
    border-bottom: 1px solid var(--nav-border);
}
.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-family: var(--font-head); font-size: 15px; font-weight: 600; white-space: nowrap; }
.topnav-brand .dot { color: var(--accent); }

.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: 21px;
    height: 2px;
    background: currentColor;
    transition: transform 0.3s 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); }

.topnav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    background: var(--nav-panel);
    -webkit-backdrop-filter: blur(11px);
    backdrop-filter: blur(11px);
    border-bottom: 1px solid var(--nav-border);
    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: 14px 2px;
    font-family: var(--font-detail);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    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); }

.nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 25;
    background: var(--scrim);
    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; }

[id] { scroll-margin-top: 74px; }

/* ------------------------------------------------------------- COVER */
.cover {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: clamp(30px, 6vw, 60px) var(--gutter) clamp(40px, 7vw, 76px);
}
.cover-main { display: flex; flex-direction: column; gap: 36px; }
.cover-text { order: 1; }
.cover-photo { order: 2; position: relative; align-self: center; width: clamp(205px, 56vw, 265px); }
.cover-photo img { width: 100%; border-radius: var(--radius); }
.photo-cap {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
    font-family: var(--font-detail);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-mid);
}
.photo-cap em { font-style: normal; }

.eyebrow {
    font-family: var(--font-detail);
    font-size: 11.5px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
}
.name {
    font-size: clamp(44px, 11vw, 80px);
    letter-spacing: -0.01em;
    line-height: 1.02;
    margin-top: 18px;
}
.cover-role {
    margin-top: 18px;
    font-family: var(--font-detail);
    font-size: 12.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-mid);
}
.cover-tagline {
    margin-top: 20px;
    max-width: 36ch;
    font-size: 16.5px;
    line-height: 1.6;
    color: var(--ink-mid);
    border-left: 2px solid var(--accent);
    padding-left: 16px;
}

/* -------------------------------------------------------------- BODY */
.body {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: clamp(14px, 3vw, 34px) var(--gutter) clamp(52px, 8vw, 92px);
}
.section { margin-bottom: clamp(46px, 7vw, 76px); }
.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: 13px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--rule);
}
.section-head h2 { font-size: clamp(21px, 3.5vw, 27px); }
.section-sub { font-family: var(--font-detail); font-size: 12px; color: var(--ink-mid); }

/* --------------------------------------------------------- ANSCHREIBEN */
.letter { max-width: 690px; }
.letter p { font-size: 16px; line-height: 1.75; margin-bottom: 16px; }
.letter .salutation { font-weight: 600; }
.letter .lead { font-size: 17.5px; margin-bottom: 21px; }
.letter .drop {
    float: left;
    font-family: var(--font-head);
    font-size: 56px;
    line-height: 0.84;
    font-weight: 600;
    color: var(--accent);
    margin: 6px 12px 0 0;
}
.letter .sign { margin-top: 26px; font-family: var(--font-detail); font-size: 13px; color: var(--ink-mid); }
.letter .sig {
    display: inline-block;
    margin-top: 5px;
    font-family: var(--font-head);
    font-size: 22px;
    color: var(--accent);
}

/* ------------------------------------------------------------ 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-family: var(--font-detail); font-size: 13px; letter-spacing: 0.05em; color: var(--accent); padding-top: 2px; }
.tl-title { font-size: 18.5px; }
.tl-org { font-family: var(--font-detail); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mid); margin-top: 4px; }
.tl-note { font-size: 14px; line-height: 1.55; color: var(--ink-mid); margin-top: 6px; }

/* ----------------------------------------------------------- KENNTNISSE */
.skill-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.skill-head {
    font-family: var(--font-detail);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 13px;
}
.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; font-size: 15.5px; }
.skill-line .lvl { font-family: var(--font-detail); font-size: 12px; color: var(--ink-mid); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
    font-family: var(--font-detail);
    font-size: 12.5px;
    color: var(--ink);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 6px 12px;
}

/* ------------------------------------------------------------ UNTERLAGEN */
.doc-stack { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 300px)); gap: 15px; }
.doc-card {
    display: block;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 22px 19px;
    transition: border-color 0.2s ease, transform 0.16s ease, box-shadow 0.2s ease;
}
.doc-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.doc-title { font-size: 19.5px; }
.doc-meta { font-family: var(--font-detail); font-size: 12.5px; color: var(--ink-mid); margin-top: 5px; }
.doc-cta {
    display: inline-block;
    margin-top: 16px;
    font-family: var(--font-detail);
    font-size: 11.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
}

/* ---------------------------------------------------------------- FOOTER */
.footer { background: var(--footer-bg); color: var(--footer-ink); padding: clamp(46px, 8vw, 70px) var(--gutter) 27px; }
.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 27px;
    max-width: var(--maxw);
    margin: 0 auto;
    padding-bottom: 34px;
    border-bottom: 1px solid var(--footer-line);
}
.footer-eyebrow {
    font-family: var(--font-detail);
    font-size: 11px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--footer-dim);
    margin-bottom: 11px;
}
.footer-name { font-family: var(--font-head); font-size: clamp(30px, 7vw, 48px); font-weight: 600; line-height: 1.04; }
.footer-name::after { content: "."; color: var(--accent); }
.footer-contact { font-size: 15.5px; line-height: 2; }
.footer-contact a:hover { color: var(--accent); }
.footer-base {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: var(--maxw);
    margin: 0 auto;
    padding-top: 19px;
    font-family: var(--font-detail);
    font-size: 10.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--footer-dim);
}

/* ---------------------------------------------------------------- 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, 2.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: 11.5px;
        border-bottom: 2px solid transparent;
        white-space: nowrap;
    }
    .topnav-links a:last-child { border-bottom: 2px solid transparent; }
    .topnav-links a.active { color: var(--accent); border-bottom-color: var(--accent); }
}
@media (min-width: 760px) {
    .tl-item { grid-template-columns: 152px 1fr; gap: 30px; }
    .skill-grid { grid-template-columns: repeat(3, 1fr); gap: 38px; }
}
@media (min-width: 900px) {
    .cover-main { flex-direction: row; align-items: center; gap: clamp(44px, 6vw, 80px); }
    .cover-text { flex: 1; }
    .cover-photo { width: clamp(255px, 27vw, 315px); 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; }
}

/* ----------------------------------------------------------------- MOTION */
.reveal-on .section,
.reveal-on .cover-photo {
    opacity: 0;
    transform: translateY(22px);
    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; }
}

/* ================================ CHARAKTER ======================== */

/* Seide-Charakter: Tiefgruen + Gold-Haarlinien, Marcellus-Kapitaelchen */
h1, h2, h3 { font-weight: 400; }
.name { letter-spacing: 0.01em; }
.name .last { color: var(--teal); }
.eyebrow { letter-spacing: 0.42em; font-weight: 500; }
.cover-role { letter-spacing: 0.24em; }
.cover-photo img { filter: saturate(0.78) contrast(1.08) brightness(0.98); }
.cover-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(31, 78, 74, 0.3), transparent 40%);
    pointer-events: none;
}
.cover-photo::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -1px;
    width: 1px;
    background: var(--accent);
    z-index: 2;
}
.cover-tagline { border-left-color: var(--accent); font-weight: 400; font-size: 16.5px; line-height: 1.7; }
.section-head { border-bottom: 1px solid var(--accent); }
.section-head h2 {
    font-size: clamp(17px, 2.6vw, 21px);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--teal);
}
.letter .drop { color: var(--teal); font-weight: 400; }
.letter .sig { color: var(--teal); }
.tl-year { font-family: var(--font-head); color: var(--accent); letter-spacing: 0.1em; font-size: 14px; }
.tl-title { color: var(--teal); }
.tl-org { letter-spacing: 0.18em; }
.skill-head { color: var(--teal); letter-spacing: 0.3em; }
.tag {
    border-radius: 0;
    border-color: var(--line);
    background: var(--bg-elev);
    font-size: 11.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 8px 14px;
}
.doc-card { background: #FFFFFF; border: 1px solid rgba(44, 51, 51, 0.08); position: relative; }
.doc-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: var(--accent);
}
.doc-cta { color: var(--teal); }
.footer-name::after { color: var(--accent); }
