/* =====================================================================
   Theme: Klassik — Editorial · Traditional · Cream
   EB Garamond + Public Sans · Cream #F5F1E8 · Tiefblau #1B2A41 · Altrot #A8362D
   ===================================================================== */

@font-face {
    font-family: 'EB Garamond';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/eb-garamond-v32-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'EB Garamond';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/eb-garamond-v32-latin-500.woff2') format('woff2');
}
@font-face {
    font-family: 'EB Garamond';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/eb-garamond-v32-latin-600.woff2') format('woff2');
}
@font-face {
    font-family: 'EB Garamond';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/eb-garamond-v32-latin-italic.woff2') format('woff2');
}
@font-face {
    font-family: 'Public Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/public-sans-v21-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Public Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/public-sans-v21-latin-600.woff2') format('woff2');
}

:root {
    --bg:      #F5F1E8;
    --bg-elev: #FAF7F0;
    --ink:     #1B2A41;
    --ink-mid: rgba(27, 42, 65, 0.62);
    --accent:  #A8362D;
    --rule:    #1B2A41;
    --line:    rgba(27, 42, 65, 0.16);
    --serif:   'EB Garamond', Georgia, serif;
    --sans:    'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --maxw:    1020px;
    --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(--serif);
    line-height: 1.6;
    -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(--serif); font-weight: 600; line-height: 1.12; }
::selection { background: var(--accent); color: #fff; }

/* --------------------------------------------------------- STICKY NAV */
.topnav {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(245, 241, 232, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--rule);
}
.topnav-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--gutter);
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.topnav-brand { font-family: var(--serif); font-size: 17px; 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: 22px;
    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: rgba(245, 241, 232, 0.97);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--rule);
    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(--sans);
    font-size: 11.5px;
    letter-spacing: 0.18em;
    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: rgba(27, 42, 65, 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; }

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

/* ------------------------------------------------------------- COVER */
.cover {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: clamp(20px, 4vw, 36px) var(--gutter) clamp(40px, 7vw, 72px);
}
.masthead {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    font-family: var(--sans);
    font-size: 10.5px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-mid);
    padding-bottom: 12px;
    border-bottom: 3px double var(--rule);
}
.masthead .center { color: var(--ink); font-weight: 600; }

.cover-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: clamp(32px, 6vw, 56px);
}
.eyebrow {
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
}
.name {
    font-size: clamp(46px, 11vw, 88px);
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.02;
    margin-top: 18px;
}
.name .last { font-weight: 600; }
.cover-role {
    margin-top: 16px;
    font-family: var(--sans);
    font-size: 11.5px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ink-mid);
}
.cover-photo {
    margin-top: clamp(28px, 5vw, 44px);
    width: clamp(190px, 50vw, 250px);
    background: #fff;
    padding: 10px;
    border: 1px solid var(--line);
    box-shadow: 0 14px 34px rgba(27, 42, 65, 0.14);
}
.cover-photo img { width: 100%; }
.cover-tagline {
    margin-top: clamp(26px, 5vw, 40px);
    max-width: 44ch;
    font-style: italic;
    font-size: clamp(17px, 2.6vw, 20px);
    line-height: 1.6;
    color: var(--ink);
}
.cover-tagline::before { content: "— "; color: var(--accent); }
.cover-tagline::after  { content: " —"; color: var(--accent); }

/* -------------------------------------------------------------- BODY */
.body {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: clamp(8px, 2vw, 24px) var(--gutter) clamp(52px, 8vw, 88px);
}
.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: 12px;
    margin-bottom: 28px;
    border-bottom: 3px double var(--rule);
}
.section-head h2 { font-size: clamp(24px, 4vw, 30px); font-weight: 600; }
.section-sub { font-family: var(--sans); font-size: 12px; color: var(--ink-mid); }

/* --------------------------------------------------------- ANSCHREIBEN */
.letter { max-width: 660px; }
.letter p { font-size: 17.5px; line-height: 1.72; margin-bottom: 17px; }
.letter .salutation { font-weight: 500; }
.letter .lead { font-size: 19px; margin-bottom: 22px; }
.letter .drop {
    float: left;
    font-size: 64px;
    line-height: 0.8;
    font-weight: 600;
    color: var(--accent);
    margin: 8px 12px 0 0;
}
.letter .sign { margin-top: 26px; font-family: var(--sans); font-size: 13px; color: var(--ink-mid); }
.letter .sig {
    display: inline-block;
    margin-top: 4px;
    font-style: italic;
    font-size: 25px;
    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: 2px; }
.tl-year { font-style: italic; font-size: 17px; color: var(--accent); }
.tl-title { font-size: 21px; font-weight: 600; }
.tl-org { font-family: var(--sans); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mid); margin-top: 4px; }
.tl-note { font-size: 15px; font-style: italic; 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(--sans);
    font-size: 10.5px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 12px;
}
.skill-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
}
.skill-line span:first-child { font-size: 18px; }
.skill-line .lvl { font-family: var(--sans); font-size: 11.5px; color: var(--ink-mid); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
    font-style: italic;
    font-size: 15px;
    color: var(--ink);
    border: 1px solid var(--accent);
    border-radius: 100px;
    padding: 5px 14px;
}

/* ------------------------------------------------------------ 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(--rule);
    padding: 22px 22px 18px;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.doc-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(27, 42, 65, 0.14); }
.doc-title { font-size: 22px; font-weight: 600; }
.doc-meta { font-family: var(--sans); font-size: 12.5px; color: var(--ink-mid); margin-top: 5px; }
.doc-cta {
    display: inline-block;
    margin-top: 16px;
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
}

/* ---------------------------------------------------------------- FOOTER */
.footer { background: var(--ink); color: var(--bg); padding: clamp(46px, 8vw, 68px) var(--gutter) 26px; }
.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 26px;
    max-width: var(--maxw);
    margin: 0 auto;
    padding-bottom: 34px;
    border-bottom: 1px solid rgba(245, 241, 232, 0.2);
}
.footer-eyebrow {
    font-family: var(--sans);
    font-size: 10.5px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: rgba(245, 241, 232, 0.6);
    margin-bottom: 10px;
}
.footer-name { font-size: clamp(32px, 7vw, 50px); font-weight: 500; line-height: 1.05; }
.footer-name::after { content: "."; color: #D98C85; }
.footer-contact { font-size: 17px; line-height: 1.95; }
.footer-contact a:hover { color: #D98C85; }
.footer-base {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: var(--maxw);
    margin: 0 auto;
    padding-top: 18px;
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(245, 241, 232, 0.55);
}

/* ---------------------------------------------------------------- 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, 26px);
        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: 54px;
        padding: 0;
        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: 150px 1fr; gap: 30px; }
    .tl-year { padding-top: 3px; }
    .skill-grid { grid-template-columns: repeat(3, 1fr); gap: 38px; }
}
@media (min-width: 900px) {
    .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; }
}
