/* ---------- Tokens ---------- */
:root {
    --color-bg: #faf6f0;
    --color-bg-alt: #f2ece1;
    --color-surface: #ffffff;
    --color-text: #2c2620;
    --color-text-muted: #6f6659;
    --color-border: #e6dccb;
    --color-accent: #b06a3a;
    --color-accent-dark: #8f5329;
    --color-accent-soft: #f1e2d3;
    --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius-s: 6px;
    --radius-m: 12px;
    --radius-l: 20px;
    --shadow-card: 0 1px 2px rgba(44, 38, 32, 0.05), 0 8px 24px rgba(44, 38, 32, 0.06);
    --max-width: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--color-accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); margin-top: 2.2em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 48px 0; }
.section-narrow { max-width: 760px; margin: 0 auto; padding: 48px 24px; }
.kicker {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-accent-dark);
    margin: 0 0 0.6em;
}
.lead { font-size: 1.1rem; color: var(--color-text-muted); max-width: 640px; }
.placeholder {
    color: var(--color-text-muted);
    font-style: italic;
    background: var(--color-accent-soft);
    border-radius: var(--radius-s);
    padding: 0.6em 0.9em;
    display: inline-block;
}
.empty-state { color: var(--color-text-muted); font-style: italic; padding: 24px 0; }

/* ---------- Buttons ---------- */
.button {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.75em 1.5em;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.95rem;
}
.button--primary { background: var(--color-accent); color: #fff; }
.button--primary:hover { background: var(--color-accent-dark); text-decoration: none; }
.button--ghost { background: transparent; border-color: var(--color-border); color: var(--color-text); }
.button--ghost:hover { border-color: var(--color-accent); text-decoration: none; }
.link-button {
    background: none; border: none; padding: 0; color: var(--color-accent-dark);
    text-decoration: underline; cursor: pointer; font: inherit;
}

/* ---------- Header ---------- */
.site-header { background: var(--color-bg); border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 20; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; gap: 24px; }
.brand { font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; color: var(--color-text); }
.brand:hover { text-decoration: none; }
.primary-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.primary-nav a { color: var(--color-text); font-weight: 500; font-size: 0.95rem; }
.primary-nav a:hover { color: var(--color-accent-dark); text-decoration: none; }
.nav-cta {
    background: var(--color-accent); color: #fff !important; padding: 0.5em 1.1em; border-radius: 999px;
}
.nav-cta:hover { background: var(--color-accent-dark); }
.lang-switch { display: flex; gap: 6px; margin-left: 8px; }
.lang-switch a {
    font-size: 0.78rem; font-weight: 600; color: var(--color-text-muted);
    padding: 0.25em 0.55em; border-radius: 999px; border: 1px solid var(--color-border);
}
.lang-switch a.active { background: var(--color-accent-soft); color: var(--color-accent-dark); border-color: var(--color-accent-soft); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--color-text); display: block; }

/* ---------- Hero ---------- */
.hero { background: var(--color-bg-alt); padding: 56px 0; }
.hero__inner { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: center; }
.hero__photo img {
    border-radius: var(--radius-l); aspect-ratio: 1; object-fit: cover; box-shadow: var(--shadow-card);
    background: var(--color-surface);
}
.hero__tagline { font-size: 1.25rem; font-family: var(--font-heading); font-weight: 600; margin-bottom: 0.6em; }
.hero__actions { display: flex; gap: 14px; margin-top: 1.4em; flex-wrap: wrap; }
.section-intro { color: var(--color-text-muted); max-width: 640px; margin-bottom: 2em; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.card {
    background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-m);
    padding: 24px; color: var(--color-text); box-shadow: var(--shadow-card); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 4px 6px rgba(44,38,32,0.06), 0 14px 30px rgba(44,38,32,0.08); }
.card h2 { margin-top: 0; font-size: 1.15rem; }
.card p { color: var(--color-text-muted); margin: 0; font-size: 0.95rem; }

/* ---------- About ---------- */
.about-photo img { border-radius: var(--radius-l); max-width: 260px; margin-bottom: 1.5em; box-shadow: var(--shadow-card); }
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin: 1.2em 0 2em; }
.value { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-m); padding: 20px; }
.value h3 { margin-top: 0; color: var(--color-accent-dark); }
.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 1.5em; }
.fact-grid ul li { margin-bottom: 0.4em; }
.fact-grid ul li::before { content: "— "; color: var(--color-accent); }

/* ---------- Tags / experience ---------- */
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 1em 0 2em; }
.tag-list li {
    background: var(--color-accent-soft); color: var(--color-accent-dark); border-radius: 999px;
    padding: 0.4em 1em; font-size: 0.9rem; font-weight: 500;
}
.exp-list { display: flex; flex-direction: column; gap: 22px; margin-top: 1em; }
.exp-item { border-left: 3px solid var(--color-accent-soft); padding-left: 20px; }
.exp-item h3 { margin-bottom: 0.2em; }
.exp-meta { color: var(--color-text-muted); font-size: 0.88rem; margin-bottom: 0.5em; }
.cta-box {
    margin-top: 2.5em; background: var(--color-bg-alt); border-radius: var(--radius-l); padding: 32px;
    text-align: left;
}
.cta-box h2 { margin-top: 0; }

/* ---------- Portfolio ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-btn {
    background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 999px;
    padding: 0.5em 1.1em; font-weight: 500; cursor: pointer; font-family: var(--font-body); font-size: 0.9rem;
}
.filter-btn.is-active { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.video-card {
    background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-m);
    overflow: hidden; box-shadow: var(--shadow-card);
}
.video-facade {
    position: relative; aspect-ratio: 16/9; background: #1c1a17 center/cover no-repeat; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.video-facade iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-facade__play {
    width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,0.92);
    color: var(--color-accent-dark); display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.video-card__body { padding: 18px 20px; }
.video-card__body h3 { margin: 0.3em 0; font-size: 1.05rem; }
.video-card__body p { color: var(--color-text-muted); font-size: 0.92rem; margin: 0; }
.badge {
    display: inline-block; background: var(--color-accent-soft); color: var(--color-accent-dark);
    font-size: 0.75rem; font-weight: 600; padding: 0.25em 0.7em; border-radius: 999px;
}

/* ---------- Timeline (Lebensmomente) ---------- */
.timeline { display: flex; flex-direction: column; gap: 36px; }
.timeline__item { display: grid; grid-template-columns: 140px 1fr; gap: 24px; align-items: start; }
.timeline__photo img { border-radius: var(--radius-m); aspect-ratio: 1; object-fit: cover; box-shadow: var(--shadow-card); }
.timeline__body time { display: block; font-size: 0.82rem; font-weight: 600; color: var(--color-accent-dark); margin-bottom: 0.4em; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 6px; }
.form label { font-weight: 600; font-size: 0.9rem; margin-top: 12px; }
.form input, .form textarea, .form select {
    font-family: var(--font-body); font-size: 1rem; padding: 0.7em 0.85em;
    border: 1px solid var(--color-border); border-radius: var(--radius-s); background: var(--color-surface); color: var(--color-text);
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; }
.form button { margin-top: 20px; align-self: flex-start; }
.field-error { color: #a3341f; font-size: 0.85rem; margin: 0.2em 0 0; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-weight: 500; margin-top: 16px; }
.checkbox-label input { width: auto; }
.alert { padding: 0.9em 1.1em; border-radius: var(--radius-s); margin-bottom: 1.2em; font-weight: 500; }
.alert--success { background: #e4f2e6; color: #256a35; }
.alert--error { background: #fbe6e1; color: #a3341f; }

.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; max-width: 900px; }
.contact-info-col h2 { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-bg-alt); margin-top: 64px; border-top: 1px solid var(--color-border); }
.site-footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding: 40px 24px 20px; }
.site-footer__links { display: flex; gap: 20px; align-self: center; }
.site-footer__bottom {
    padding: 16px 24px 28px; font-size: 0.82rem; color: var(--color-text-muted); border-top: 1px solid var(--color-border);
}

.error-page { text-align: center; padding: 100px 24px; }
.error-page h1 { font-size: 4rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .hero__inner { grid-template-columns: 1fr; text-align: center; }
    .hero__photo { max-width: 180px; margin: 0 auto; }
    .hero__actions { justify-content: center; }
    .contact-grid { grid-template-columns: 1fr; }
    .timeline__item { grid-template-columns: 90px 1fr; }
}

@media (max-width: 700px) {
    .nav-toggle { display: flex; }
    .primary-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-bg);
        border-bottom: 1px solid var(--color-border); flex-direction: column; align-items: flex-start;
        padding: 16px 24px 24px; gap: 14px;
    }
    .primary-nav.is-open { display: flex; }
    .site-header__inner { position: relative; }
    .lang-switch { margin-left: 0; margin-top: 6px; }
}
