/* ============================================================================
   event_foto — Marketing-Marke „Midnight Gallery"
   Seed: festlich-fotografisch · dunkel/premium · Gold-Akzent · Fraunces + Jost
   Light/Dark per data-theme (Präferenz, kein Tracking — 06 §2).
   ============================================================================ */

/* ── Design-Tokens ───────────────────────────────────────────────────────── */
:root {
    color-scheme: dark;
    --bg:          #141210;
    --surface:     #1e1b17;
    --surface-2:   #272320;
    --text:        #f5f1ea;
    --text-muted:  #a8a096;
    --accent:      #c9a24b;
    --accent-strong:#d8b45f;
    --accent-soft: rgba(201,162,75,.14);
    --border:      #332e28;
    --on-accent:   #1a1712;
    --danger:      #d9684f;
    --ok:          #6fae7c;

    --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body: 'Jost', system-ui, -apple-system, sans-serif;

    --maxw: 1180px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 18px 50px -20px rgba(0,0,0,.6);
    --shadow-gold: 0 14px 40px -16px rgba(201,162,75,.45);

    --step--1: clamp(.82rem, .8rem + .1vw, .9rem);
    --step-0:  clamp(1rem, .96rem + .2vw, 1.12rem);
    --step-1:  clamp(1.3rem, 1.2rem + .5vw, 1.6rem);
    --step-2:  clamp(1.7rem, 1.4rem + 1.4vw, 2.4rem);
    --step-3:  clamp(2.3rem, 1.8rem + 2.6vw, 3.6rem);
    --step-4:  clamp(3rem, 2rem + 4.6vw, 5.4rem);
}

[data-theme="light"] {
    color-scheme: light;
    --bg:          #faf8f4;
    --surface:     #ffffff;
    --surface-2:   #f1ece3;
    --text:        #211d18;
    --text-muted:  #6b635a;
    --accent:      #9a7b2e;
    --accent-strong:#7e6526;
    --accent-soft: rgba(154,123,46,.12);
    --border:      #e3dacd;
    --on-accent:   #ffffff;
    --shadow:      0 18px 50px -24px rgba(40,30,15,.25);
    --shadow-gold: 0 14px 40px -18px rgba(154,123,46,.4);
}

/* ── Reset / Basis ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: 1.65;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}
#main { flex: 1 0 auto; }
.footer { flex-shrink: 0; }
img, video, svg { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; }
h1 { font-size: var(--step-4); font-weight: 600; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p  { color: var(--text-muted); }
::selection { background: var(--accent); color: var(--on-accent); }

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

/* ── Layout ──────────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.4rem); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.eyebrow {
    font-family: var(--font-body); font-weight: 500; font-size: var(--step--1);
    letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
    display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); display: inline-block; }
.lede { font-size: var(--step-1); color: var(--text); font-weight: 300; max-width: 44ch; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    font-family: var(--font-body); font-weight: 500; font-size: var(--step-0);
    padding: .85em 1.6em; border-radius: 999px; border: 1px solid transparent;
    cursor: pointer; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .2s, color .2s;
    white-space: nowrap; line-height: 1;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-gold); }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }
.btn-lg { padding: 1.05em 2em; font-size: var(--step-1); }

/* ── Header / Nav ────────────────────────────────────────────────────────── */
.nav {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(14px);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-size: 1.45rem; font-weight: 600; letter-spacing: -.02em; }
.brand__mark { width: 30px; height: 30px; color: var(--accent); flex: none; }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a { font-size: var(--step--1); letter-spacing: .04em; color: var(--text-muted); position: relative; transition: color .2s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); }
.nav__links a::after { content:""; position:absolute; left:0; right:0; bottom:-6px; height:1px; background:var(--accent); transform:scaleX(0); transform-origin:left; transition:transform .3s; }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: .9rem; }
.theme-toggle, .nav__burger {
    width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border);
    background: transparent; color: var(--text); cursor: pointer; display: grid; place-items: center;
    transition: border-color .2s, color .2s, transform .2s;
}
.theme-toggle:hover, .nav__burger:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg, .nav__burger svg { width: 20px; height: 20px; }
.lang-switch { display: inline-flex; gap: .15rem; font-size: var(--step--1); }
.lang-switch a { padding: .25em .5em; border-radius: 6px; color: var(--text-muted); }
.lang-switch a[aria-current="true"] { color: var(--on-accent); background: var(--accent); }
.nav__burger { display: none; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { position: relative; padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__title { margin: 1.2rem 0; }
.hero__title em { font-style: italic; color: var(--accent); }
.hero__sub { font-size: var(--step-1); font-weight: 300; max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; align-items: center; }
.hero__meta { display: flex; gap: 2rem; margin-top: 2.6rem; flex-wrap: wrap; }
.hero__meta .num { font-family: var(--font-head); font-size: var(--step-2); color: var(--text); display: block; line-height: 1; }
.hero__meta .lbl { font-size: var(--step--1); color: var(--text-muted); letter-spacing: .05em; }

/* Hero-Visual: gestapelte Foto-Karten + QR */
.hero__visual { position: relative; aspect-ratio: 4/5; }
.photo-card {
    position: absolute; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow); border: 1px solid var(--border); background: var(--surface-2);
    will-change: transform;
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
.photo-card--1 { inset: 0 18% 22% 0; z-index: 3; }
.photo-card--2 { inset: 28% 0 0 32%; z-index: 2; }
.qr-badge {
    position: absolute; left: 4%; bottom: 6%; z-index: 4;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: .9rem; box-shadow: var(--shadow-gold); display: flex; align-items: center; gap: .8rem;
    max-width: 230px;
}
.qr-badge svg { width: 64px; height: 64px; flex: none; }
.qr-badge .qr-txt { font-size: var(--step--1); color: var(--text); line-height: 1.3; }
.qr-badge .qr-txt b { color: var(--accent); display: block; font-family: var(--font-head); font-size: 1.05rem; }

/* ── Sektions-Köpfe ──────────────────────────────────────────────────────── */
.sec-head { max-width: 56ch; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.sec-head h2 { margin: .7rem 0 .8rem; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }

/* ── Feature-Reihen (variabler Rhythmus, KEIN 3er-Emoji-Grid) ─────────────── */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.feature-row + .feature-row { margin-top: clamp(3rem, 6vw, 5rem); }
.feature-row:nth-child(even) .feature-row__media { order: 2; }
.feature-row__media {
    border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/11;
    background: linear-gradient(150deg, var(--surface-2), var(--surface)); border: 1px solid var(--border);
    display: grid; place-items: center; position: relative;
}
.feature-row__media img { width: 100%; height: 100%; object-fit: cover; }
.feature-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 1.1rem; }
.feature-list li { display: grid; grid-template-columns: 30px 1fr; gap: .9rem; align-items: start; }
.feature-list .ic { color: var(--accent); width: 26px; height: 26px; margin-top: 2px; }
.feature-list h4 { font-family: var(--font-body); font-weight: 500; font-size: var(--step-0); color: var(--text); margin-bottom: .15rem; }
.feature-list p { font-size: var(--step--1); margin: 0; }

/* ── Karten-Grid (Funktionen) ────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 1.3rem; }
.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.8rem; transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); box-shadow: var(--shadow); }
.card .ic { color: var(--accent); width: 34px; height: 34px; margin-bottom: 1.1rem; }
.card h3 { font-size: var(--step-1); margin-bottom: .5rem; }
.card p { font-size: var(--step--1); }

/* ── Schritte (So funktioniert es) ───────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }
.step { position: relative; padding-top: 2.6rem; }
.step::before {
    counter-increment: step; content: counter(step, decimal-leading-zero);
    font-family: var(--font-head); font-size: var(--step-2); color: var(--accent);
    position: absolute; top: -.4rem; left: 0; opacity: .9;
}
.step h3 { font-size: var(--step-1); margin-bottom: .4rem; }
.step p { font-size: var(--step--1); }
.step::after { content:""; position:absolute; top: .7rem; left: 3.4rem; right: -.75rem; height:1px; background: linear-gradient(90deg, var(--border), transparent); }
.step:last-child::after { display: none; }

/* ── Beispielgalerie (sauberes 3×3-Raster) ───────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-grid .ph {
    aspect-ratio: 1; border-radius: var(--radius); border: 1px solid var(--border);
    background: var(--surface-2); display: grid; place-items: center; color: var(--text-muted);
}
.gallery-grid .ph .ic { width: 34px; height: 34px; opacity: .5; }

/* ── Showcase: echte Screenshots in Handy-Rahmen ──────────────────────────── */
.showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 3vw, 2.4rem); align-items: start; max-width: 940px; margin: 0 auto; }
.device { margin: 0; text-align: center; }
.device__screen { aspect-ratio: 400 / 820; border: 9px solid var(--text); border-radius: 30px; overflow: hidden; background: var(--text); box-shadow: var(--shadow); }
.device__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.device figcaption { margin-top: 1rem; color: var(--text-muted); font-size: var(--step--1); }
.show-note { text-align: center; color: var(--text-muted); font-size: var(--step--1); margin-top: 1.6rem; }
@media (max-width: 760px) { .showcase { grid-template-columns: 1fr; max-width: 300px; gap: 2.4rem; } }

/* ── Über mich (Vertrauen) ────────────────────────────────────────────────── */
.about { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; max-width: 880px; margin: 0 auto; }
.about__avatar { width: 116px; height: 116px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--border); display: grid; place-items: center; font-family: var(--font-head); font-size: 2.3rem; font-weight: 600; letter-spacing: .04em; flex: none; }
.about__avatar svg { width: 52px; height: 52px; }
.about__trust { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .7rem; }
.about__trust li { display: flex; align-items: center; gap: .6rem; color: var(--text); font-size: var(--step-0); }
.about__trust svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
@media (max-width: 640px) { .about { grid-template-columns: 1fr; text-align: center; justify-items: center; } .about__trust { text-align: left; } }

/* ── Preise ──────────────────────────────────────────────────────────────── */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; }
.price-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 2.2rem; display: flex; flex-direction: column; position: relative; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.price-card--featured { border-color: var(--accent); box-shadow: var(--shadow-gold); }
.price-card__badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--accent); color: var(--on-accent); font-size: var(--step--1); font-weight: 500;
    padding: .35em 1em; border-radius: 999px; letter-spacing: .03em;
}
.price-card h3 { font-size: var(--step-1); }
.price-card .price { font-family: var(--font-head); font-size: var(--step-3); color: var(--text); margin: .6rem 0 .2rem; }
.price-card .price small { font-family: var(--font-body); font-size: var(--step--1); color: var(--text-muted); }
.price-card .price-feat { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .8rem; flex: 1; }
.price-card .price-feat li { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; font-size: var(--step--1); color: var(--text); }
.price-card .price-feat .ic { color: var(--accent); width: 18px; height: 18px; margin-top: 4px; }

/* ── Speicher-Ratgeber (Preise) ──────────────────────────────────────────── */
.guide-table { width: 100%; border-collapse: collapse; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.guide-table th, .guide-table td { text-align: left; padding: .85em 1em; border-bottom: 1px solid var(--border); font-size: var(--step--1); }
.guide-table thead th { background: var(--surface-2); color: var(--text-muted); font-weight: 500; letter-spacing: .03em; }
.guide-table tbody tr:last-child td { border-bottom: 0; }
.guide-table td:last-child, .guide-table th:last-child { color: var(--accent); white-space: nowrap; }
.guide .form-note .ic { width: 16px; height: 16px; vertical-align: -3px; color: var(--accent); }
@media (max-width: 540px) { .guide-table th, .guide-table td { padding: .6em .6em; } }

/* ── FAQ (Accordion) ─────────────────────────────────────────────────────── */
.faq { max-width: 760px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--border); padding: 1.3rem 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: var(--font-head); font-size: var(--step-1); color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { width: 22px; height: 22px; color: var(--accent); transition: transform .3s; flex: none; }
.faq details[open] summary .chev { transform: rotate(45deg); }
.faq details p { margin-top: .9rem; font-size: var(--step-0); }

/* ── CTA-Band ────────────────────────────────────────────────────────────── */
.cta-band {
    background: linear-gradient(135deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: clamp(2.5rem, 6vw, 4.5rem); text-align: center; position: relative; overflow: hidden;
}
.cta-band::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 50% 0%, var(--accent-soft), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { margin-bottom: 1rem; }
.cta-band .btn { margin-top: 1.8rem; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: 2rem; }
.footer__inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; padding-block: clamp(2.5rem,5vw,4rem); }
.footer h4 { font-family: var(--font-body); font-weight: 500; font-size: var(--step--1); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1.1rem; }
.footer ul { list-style: none; padding: 0; display: grid; gap: .65rem; }
.footer a { color: var(--text-muted); font-size: var(--step-0); transition: color .2s; }
.footer a:hover { color: var(--accent); }
.footer__bottom { border-top: 1px solid var(--border); padding-block: 1.3rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: var(--step--1); color: var(--text-muted); }

/* ── Formulare ───────────────────────────────────────────────────────────── */
.field { display: grid; gap: .45rem; margin-bottom: 1.2rem; }
.field label { font-size: var(--step--1); font-weight: 500; color: var(--text); letter-spacing: .02em; }
.input, .textarea, .select {
    width: 100%; background: var(--surface); border: 1px solid var(--border); color: var(--text);
    border-radius: 10px; padding: .8em 1em; font-family: var(--font-body); font-size: var(--step-0);
    transition: border-color .2s, box-shadow .2s;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input:disabled, .textarea:disabled, .select:disabled { background: var(--surface-2); color: var(--text-muted); cursor: not-allowed; }
.field--disabled label { color: var(--text-muted); }
.textarea { min-height: 140px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: var(--step--1); color: var(--text-muted); }
.alert { border-radius: 10px; padding: 1em 1.2em; margin-bottom: 1.4rem; border: 1px solid; font-size: var(--step-0); }
.alert-ok { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--text); }
.alert-err { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--text); }

/* ── Reveal-Animationen (lebendig; reduced-motion deaktiviert) ────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ── Rechtstexte / Prosa ─────────────────────────────────────────────────── */
.legal { max-width: 760px; }
.legal h1 { font-size: var(--step-3); margin-bottom: 1.5rem; }
.legal h2 { font-size: var(--step-2); margin: 2.4rem 0 .8rem; }
.legal h3 { font-size: var(--step-1); margin: 1.6rem 0 .5rem; }
.legal p, .legal li { color: var(--text-muted); }
.legal p { margin-bottom: 1rem; }
.legal ul { margin: 0 0 1rem 1.2rem; display: grid; gap: .4rem; }
.legal a { color: var(--accent); }
.legal a:hover { text-decoration: underline; }
.legal strong { color: var(--text); }
.legal .todo { background: var(--accent-soft); border-left: 3px solid var(--accent); padding: .15em .5em; border-radius: 4px; color: var(--text); font-style: italic; }
.legal address { font-style: normal; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .hero__grid, .feature-row, .feature-row:nth-child(even) .feature-row__media { grid-template-columns: 1fr; }
    .feature-row:nth-child(even) .feature-row__media { order: 0; }
    .steps { grid-template-columns: 1fr; }
    .step::after { display: none; }
    .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .footer__inner { grid-template-columns: 1fr 1fr; }
    .nav__links { display: none; }
    .nav__links.open {
        display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
        background: var(--surface); border-bottom: 1px solid var(--border); padding: 1.5rem; gap: 1.2rem;
    }
    .nav__burger { display: grid; }
}
@media (max-width: 640px) {
    /* „Jetzt starten" auf dem Handy ausblenden — sonst läuft die Kopfzeile über den
       Rand (horizontaler Überlauf). Erreichbar bleibt es über das Menü + Hero-Button. */
    .nav__actions .btn { display: none; }
}
@media (max-width: 540px) {
    .gallery-grid { gap: 10px; }
    .footer__inner { grid-template-columns: 1fr; }
    .hero__meta { gap: 1.3rem; }
}
