/* ============================================================
   Stern-Garage Chemnitz — main stylesheet
   Design tokens, base, components, sections, mobile.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Farben */
  --ink: #211e1b;          /* dunkles Braun — Primärfarbe, dunkle Sektionen */
  --ink-2: #1c1a18;        /* Fließtext auf hellen Sektionen (Split-Spalten) */
  --cream: #efe9e2;        /* Creme — Text auf dunkel, helle Kachel */
  --cream-bright: #fdf6f1; /* helles Creme — Akzente auf Terrakotta */
  --paper: #f4f2ef;        /* helle Sektion */
  --page: #eceae7;         /* Seitengrund */
  --warm: #e4ded6;         /* warme Sektion */
  --hero: #e9e8e5;         /* Hero-Hintergrund */
  --copper: #a15e4d;       /* Kupfer — Akzent */
  --copper-deep: #8f4a3a;  /* Kicker auf hell */
  --copper-soft: #c9856c;  /* Kicker/Nummern auf dunkel */
  --stone: #57524b;        /* Serif-Subtitles auf hell */
  --body-c: #3a3631;       /* Standard-Fließtext */
  --muted: #6d675f;        /* gedämpfte Texte */
  --gray-warm: #8a827a;    /* Loader/Scrollhinweis/Maßlinien */
  --gray-dark: #8a7f73;    /* gedämpfte Texte auf dunkel */
  --muted-3: #7a746d;      /* Nav-Subline, Zurück-Button, Placeholder */
  --taupe: #b09d8d;        /* Kicker auf dunkel */
  --taupe-2: #beb3a6;      /* Fließtext in dunklen Karten */
  --sand: #e6ded4;         /* Fließtext Aktions-Sektion */
  --line: #ddd8d1;         /* Linien auf hell */
  --line-warm: #cfc7bb;    /* Linien auf warm */
  --line-dark: #3a3530;    /* Linien auf dunkel */
  --line-card: #d3cabd;    /* Kartenrahmen Preise */
  --field-bg: #f7f4f0;     /* Formularfelder */
  --field-line: #e2d9cc;
  --serif: 'Cormorant Garamond', serif;
}

/* ---------- Base ---------- */
html, body { margin: 0; padding: 0; background: var(--page); color: var(--ink); font-family: 'Jost', sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; transition: color .25s; }
a:hover { color: var(--copper); }
::selection { background: #e3c3b8; }
.page-wrap { width: 100%; overflow-x: clip; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 100% { opacity: .8; } 50% { opacity: .2; } }
@keyframes draw { 0% { transform: scaleX(0); transform-origin: left; } 50% { transform: scaleX(1); transform-origin: left; } 50.1% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }

/* ---------- Typografie ---------- */
.kicker { font-size: 0.8125rem; letter-spacing: .36em; color: var(--copper-deep); }
.kicker--tight { letter-spacing: .3em; }
.kicker--wide { letter-spacing: .42em; }
.kicker--soft { color: var(--copper-soft); }
.kicker--taupe { color: var(--taupe); }
.kicker--cream { color: var(--cream-bright); }
.kicker--muted { color: var(--muted); }

.h-xl { margin: 0; font-weight: 200; font-size: clamp(2.25rem, 3.8vw, 3.625rem); line-height: 1.15; letter-spacing: .01em; text-wrap: pretty; }
.h-center { margin: 0 auto; font-weight: 200; font-size: clamp(2rem, 3.2vw, 3.125rem); letter-spacing: .01em; line-height: 1.2; text-align: center; max-width: 20em; text-wrap: balance; }
.h-merk { margin: 0; font-weight: 200; font-size: clamp(2.125rem, 3.4vw, 3.25rem); letter-spacing: .01em; line-height: 1.15; }
.h-kontakt { margin: 0 auto; font-weight: 200; font-size: clamp(2.25rem, 4.4vw, 4rem); letter-spacing: .02em; line-height: 1.12; max-width: 16em; }
.h-card { margin: 0; font-weight: 300; font-size: clamp(1.75rem, 2.8vw, 2.625rem); letter-spacing: .02em; line-height: 1.25; }
.h-final { margin: 0; font-weight: 200; font-size: clamp(2.25rem, 4.4vw, 3.875rem); letter-spacing: .02em; line-height: 1.1; }

.sub-italic { font-family: var(--serif); font-style: italic; letter-spacing: -.015em; font-size: clamp(1.25rem, 2vw, 1.625rem); color: var(--stone); margin-top: 14px; text-wrap: pretty; }
.sub-italic--taupe { color: var(--taupe); }
.center { text-align: center; }

.copy { display: flex; flex-direction: column; gap: 26px; font-weight: 400; font-size: 1.1875rem; line-height: 1.85; color: var(--ink-2); max-width: 62ch; }
.copy--loose { gap: 34px; }
.copy--dark { color: var(--sand); }
.copy p { margin: 0; text-wrap: pretty; }
.copy .fine { font-size: 1rem; color: var(--gray-dark); }

.txt { margin: 0; font-weight: 400; font-size: 1.0625rem; line-height: 1.75; color: var(--body-c); text-wrap: pretty; }
.txt--sm { font-size: 1rem; }
.note { margin: 0; font-weight: 400; font-size: 0.9375rem; line-height: 1.8; color: var(--muted); text-wrap: pretty; }

/* Abstands-Utilities (nur wo Komponenten sie nicht mitbringen) */
.mb-14 { margin-bottom: 14px; } .mb-16 { margin-bottom: 16px; } .mb-18 { margin-bottom: 18px; }
.mb-20 { margin-bottom: 20px; } .mb-24 { margin-bottom: 24px; } .mb-26 { margin-bottom: 26px; }
.mt-36 { margin-top: 36px; } .mt-52 { margin-top: 52px; } .mt-60 { margin-top: 60px; }
.maxw-440 { max-width: 440px; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; border: 0; cursor: pointer; font-family: inherit; padding: 14px 34px; border-radius: 999px; font-size: 0.875rem; letter-spacing: .16em; }
.btn--sm { padding: 14px 30px; font-size: 0.8125rem; }
.btn-ink { background: var(--ink); color: var(--cream); transition: background .25s, color .25s; }
.btn-ink:hover { background: var(--copper); color: var(--cream); }
.btn-cream { background: var(--cream); color: var(--ink); transition: background .25s, color .25s; }
.btn-cream:hover { background: var(--ink); color: var(--cream); }
a.pill-cta { background: var(--ink); color: var(--cream); padding: 10px 24px; border-radius: 999px; }
a.pill-cta:hover { background: var(--copper); color: var(--cream); }

/* ---------- Navigation ---------- */
#siteNav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; padding: 20px 44px; transition: background .4s, box-shadow .4s, padding .4s; }
#siteNav.scrolled { background: rgba(236,234,231,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(33,30,27,.08); padding: 12px 44px; }
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 1.1875rem; font-weight: 500; letter-spacing: .24em; }
.brand-sub { font-size: 0.8125rem; letter-spacing: .34em; color: var(--muted-3); }
.nav-links { display: flex; gap: 34px; align-items: center; font-size: 0.875rem; letter-spacing: .16em; }
#navBurger { display: none; flex-direction: column; justify-content: center; gap: 6px; background: none; border: 0; padding: 12px; min-width: 44px; min-height: 44px; cursor: pointer; }
#navBurger span { display: block; width: 24px; height: 1.5px; background: var(--ink); }

/* ---------- Mobiles Menü ---------- */
.mobile-menu { display: none; position: fixed; inset: 0; z-index: 70; background: var(--page); flex-direction: column; align-items: center; justify-content: center; gap: 34px; }
.mobile-menu.open { display: flex; }
.menu-close { position: absolute; top: 18px; right: 20px; background: none; border: 0; font-size: 1.625rem; font-weight: 200; min-width: 44px; min-height: 44px; cursor: pointer; color: var(--ink); }
.menu-item { font-family: var(--serif); font-style: italic; font-size: 2.25rem; }
.menu-cta { margin-top: 16px; background: var(--ink); color: var(--cream); padding: 16px 40px; border-radius: 999px; font-size: 0.875rem; letter-spacing: .18em; }

/* ---------- Sticky Mobile-CTA ---------- */
[data-m="mobile-cta"] { display: none; position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 65; background: var(--cream); color: var(--ink); border: 1px solid rgba(33,30,27,.15); padding: 16px; text-align: center; letter-spacing: .18em; font-size: 0.875rem; border-radius: 999px; box-shadow: 0 8px 30px rgba(33,30,27,.25); opacity: 0; transform: translateY(90px); pointer-events: none; transition: opacity .45s, transform .45s; }
[data-m="mobile-cta"].show { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Loader ---------- */
#loader { position: fixed; inset: 0; z-index: 80; background: var(--page); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; opacity: 1; pointer-events: none; transition: opacity .9s .2s; }
#loader.done { opacity: 0; }
.loader-name { font-size: 1rem; letter-spacing: .34em; }
.loader-line { width: 180px; height: 1px; background: rgba(33,30,27,.15); overflow: hidden; }
.loader-line > div { height: 100%; background: var(--copper); animation: draw 1.6s infinite; }
.loader-sub { font-size: 0.8125rem; letter-spacing: .4em; color: var(--gray-warm); }

/* ---------- Hero / Scroll-Sequenz ---------- */
#top { position: relative; height: 620vh; background: var(--hero); }
.hero-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
#seqCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.seq-fade { opacity: 0; transition: opacity .6s; }
.seq-fade.on { opacity: 1; }
.hero-intro { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; pointer-events: none; padding-top: 13vh; background: linear-gradient(to bottom, rgba(233,232,229,.97) 0%, rgba(233,232,229,.92) 32%, rgba(233,232,229,.82) 46%, rgba(233,232,229,0) 64%); }
.hero-eyebrow { font-size: 0.8125rem; letter-spacing: .42em; color: var(--muted); margin-bottom: 18px; animation: fadeUp 1.2s .2s both; }
.hero-title { margin: 0; font-weight: 200; font-size: clamp(2.5rem, 5.8vw, 5.375rem); letter-spacing: .14em; line-height: 1.05; animation: fadeUp 1.2s .4s both; }
.hero-sub { font-family: var(--serif); font-style: italic; letter-spacing: -.015em; font-size: clamp(1.375rem, 2.4vw, 2rem); color: var(--body-c); margin-top: 10px; animation: fadeUp 1.2s .6s both; }
#scrollHint { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); font-size: 0.8125rem; letter-spacing: .4em; color: var(--gray-warm); animation: blink 2.4s infinite; pointer-events: none; }
.hero-card { position: absolute; top: 50%; transform: translateY(-50%); max-width: 460px; pointer-events: none; background: rgba(244,242,239,.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(33,30,27,.08); padding: 40px 42px; }
.hero-card--left { left: 5vw; }
.hero-card--right { right: 5vw; text-align: right; }
.hero-card .kicker { margin-bottom: 14px; }
.hero-card p { margin: 0; margin-top: 16px; }
.hero-final { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.hero-final-box { text-align: center; background: rgba(244,242,239,.68); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(33,30,27,.08); padding: 60px 68px; max-width: 820px; }
.seq-track { position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: rgba(33,30,27,.12); }
#seqBar { height: 100%; width: 100%; background: var(--copper); transform: scaleX(0); transform-origin: left; }
#seqDots { position: absolute; right: 26px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
.seq-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); transition: opacity .4s; opacity: .22; }
.seq-dot.on { opacity: 1; }

/* ---------- Sektions-Layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 8vw; align-items: start; padding: 140px 7vw; }
.sec-paper { background: var(--paper); }
.sec-warm { background: var(--warm); }
.sec-ink { background: var(--ink); color: var(--cream); }
[data-m="pad"] { padding: 140px 7vw; }
[data-m="epochen"] { background: var(--page); padding: 140px 4vw; border-top: 1px solid var(--line); }

/* ---------- Checklisten ---------- */
.check-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; font-size: 1.0625rem; line-height: 1.6; }
.check-list li { display: flex; gap: 12px; }
.check-list li::before { content: "✓"; color: var(--copper); font-weight: 500; flex: 0 0 auto; }
.check-dark li::before { color: var(--copper-soft); }
.check-cream li::before { color: var(--cream-bright); }
.check-list--box { gap: 12px; font-weight: 400; font-size: 0.9375rem; margin-top: 26px; }
.check-list--steps { gap: 22px; line-height: 1.7; }
.step-title { display: block; font-size: 1.125rem; letter-spacing: .06em; margin-bottom: 6px; color: var(--cream); }
.step-body { color: var(--taupe-2); }

/* ---------- Aktion / Winterdepot ---------- */
.promo-box { margin-top: 46px; background: var(--copper); color: var(--cream); padding: 48px 50px; max-width: 440px; border: 1px solid rgba(253,246,241,.4); box-shadow: 0 1px 0 rgba(0,0,0,.12); }
.promo-box .btn { margin-top: 30px; }
.price-line { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.price-big { font-family: var(--serif); font-style: italic; letter-spacing: -.015em; font-size: clamp(2.75rem, 4vw, 3.5rem); line-height: 1; }
.price-unit { font-size: 0.8125rem; letter-spacing: .18em; color: var(--cream-bright); }

/* ---------- Preiskarten ---------- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 40px; max-width: 1360px; margin: 80px auto 0; }
.price-card { background: var(--paper); border: 1px solid var(--line-card); display: flex; flex-direction: column; color: var(--ink); transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s; }
.price-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(33,30,27,.16); }
.price-card:hover .btn-ink { background: var(--copper); color: var(--cream); }
.price-card figure { margin: 0; background: var(--ink); border-bottom: 1px solid var(--line-card); }
.price-card svg { display: block; width: 100%; height: auto; }
.price-card-body { padding: 36px 34px 52px; display: flex; flex-direction: column; flex: 1; }
.price-card-body .btn { align-self: flex-start; margin-top: 32px; }
.price-card .price-unit { color: var(--muted); }
.item-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 12px; }
.item-index { font-size: 0.8125rem; letter-spacing: .3em; color: var(--copper-deep); }
.item-name { font-family: var(--serif); font-style: italic; letter-spacing: -.015em; font-size: 1.875rem; line-height: 1; }
.item-name--lg { font-size: 2.125rem; }
.price-row { display: flex; align-items: baseline; gap: 12px; margin-top: auto; padding-top: 26px; }
.price-md { font-family: var(--serif); font-style: italic; letter-spacing: -.015em; font-size: 2.375rem; line-height: 1; }
.footnote { margin: 70px auto 0; max-width: 760px; text-align: center; font-weight: 400; font-size: 0.9375rem; line-height: 1.8; color: var(--muted); text-wrap: pretty; }

/* Blueprint-Illustrationen: leuchtende Linien auf dunklem Grund */
.bp-lines { filter: drop-shadow(0 0 4px rgba(232,221,207,.45)); }
.bp-accent { filter: drop-shadow(0 0 5px rgba(201,133,108,.55)); }
.bp-accent-sm { filter: drop-shadow(0 0 4px rgba(201,133,108,.55)); }

/* ---------- Für Wen ---------- */
.who-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 56px 40px; max-width: 1560px; margin: 80px auto 0; }
.who-grid figure { margin: 0 0 30px; aspect-ratio: 1 / 1; overflow: hidden; }
.who-grid img { width: 100%; height: 100%; object-fit: cover; object-position: center 68%; display: block; filter: sepia(.18) saturate(.7) contrast(.96) brightness(1.02); }

/* ---------- Merkmale (Bento) ---------- */
.merk-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 70px; flex-wrap: wrap; }
[data-m="swipe-hint"] { display: none; align-items: baseline; gap: 8px; font-size: 0.8125rem; font-weight: 300; letter-spacing: .3em; color: var(--gray-dark); }
[data-m="swipe-hint"] .arrow { letter-spacing: 0; }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line-dark); }
.cell { background: var(--ink); padding: 40px 34px 46px; }
.cell-idx { font-size: 0.8125rem; letter-spacing: .3em; color: var(--copper-soft); margin-bottom: 16px; }
.cell-title { font-size: 1.25rem; letter-spacing: .06em; margin-bottom: 10px; }
.cell p { margin: 0; font-weight: 400; font-size: 1rem; line-height: 1.8; color: var(--taupe-2); text-wrap: pretty; }
.cell--anno { background: var(--cream); color: var(--ink); min-height: 240px; grid-column: span 2; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 6px; padding: 40px 34px 46px; }
.anno-year { font-family: var(--serif); font-style: italic; letter-spacing: -.015em; font-size: clamp(3rem, 4vw, 4.25rem); line-height: 1; }
.anno-sub { font-size: 0.8125rem; letter-spacing: .24em; color: var(--muted); }
.cell--claim { background: var(--copper); color: var(--cream); padding: 46px 48px; min-height: 240px; grid-column: span 2; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.claim-quote { font-family: var(--serif); font-style: italic; letter-spacing: -.015em; font-size: clamp(1.625rem, 2.2vw, 2.125rem); line-height: 1.3; max-width: 24ch; text-wrap: balance; }
[data-m="cards-progress"] { display: none; margin-top: 34px; height: 1px; background: var(--line-dark); position: relative; }
#cardsBar { position: absolute; top: -0.5px; left: 0; height: 2px; width: 20%; background: var(--cream); transition: transform .15s linear; }

/* ---------- Sicherheit: Fakten ---------- */
.dims-caption { margin: 18px 0 0; font-weight: 400; font-size: 0.9375rem; letter-spacing: .05em; color: var(--muted); }
.dims-svg { display: block; width: 100%; height: auto; }

/* ---------- Kontakt / Formular ---------- */
#kontakt { background: var(--ink); color: var(--cream); padding: 150px 7vw 60px; text-align: center; border-top: 1px solid var(--line-dark); }
.form-shell { max-width: 640px; margin: 70px auto 0; text-align: left; background: var(--cream); color: var(--ink); padding: 54px 50px; }
.form-shell form { margin: 0; }
.progress { display: flex; gap: 4px; margin-bottom: 36px; }
.progress > div { flex: 1; height: 2px; background: #d8d0c6; }
.form-q { font-family: var(--serif); font-style: italic; letter-spacing: -.015em; font-size: 2.125rem; margin-bottom: 26px; }
.field { width: 100%; box-sizing: border-box; background: var(--field-bg); border: 1px solid var(--field-line); border-radius: 4px; color: var(--ink); font-family: inherit; font-size: 1.1875rem; font-weight: 300; padding: 13px 16px; outline: none; }
select.field { appearance: none; -webkit-appearance: none; background: var(--field-bg) url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 14 8%22%3E%3Cpath d=%22M1 1l6 6 6-6%22 fill=%22none%22 stroke=%22%23211e1b%22 stroke-width=%221.5%22/%3E%3C/svg%3E') no-repeat right 16px center / 14px auto; padding: 13px 44px 13px 16px; cursor: pointer; }
.field-label { display: block; font-size: 0.8125rem; letter-spacing: .3em; color: var(--copper-deep); margin-bottom: 4px; }
.field-group { margin-top: 32px; }
.field-stack { display: flex; flex-direction: column; gap: 22px; }
.form-actions { display: flex; align-items: center; gap: 26px; margin-top: 34px; }
.form-actions .btn { margin-top: 0; }
#step0 .btn { margin-top: 34px; }
.form-back { border: 0; background: none; color: var(--muted-3); font-family: inherit; font-size: 0.8125rem; letter-spacing: .2em; cursor: pointer; padding: 0; }
.form-back:hover { color: var(--ink); }
#formError { display: none; margin-top: 18px; font-size: 0.875rem; line-height: 1.6; color: var(--copper-deep); }

input::placeholder { color: var(--muted-3); }
input, select { transition: border-color .3s, box-shadow .3s, background .3s; }
input:hover, select:hover { border-color: #c3b7a5; }
input:focus, select:focus { border-color: var(--copper); box-shadow: 0 0 0 3px rgba(161,94,77,.14); }
.field-error { border-color: #b3684f !important; background: #f7ebe4 !important; }

/* ---------- Partner ---------- */
.partner-strip { margin-top: 70px; border-top: 1px solid var(--line-dark); padding-top: 44px; }
[data-m="netzwerk"] { display: flex; justify-content: center; align-items: center; gap: 34px 80px; flex-wrap: wrap; }
.partner-logo { height: 38px; width: auto; display: block; filter: brightness(0) invert(1); opacity: .55; transition: opacity .25s; }
.partner-logo--tall { height: 68px; }
a:hover .partner-logo { opacity: .9; }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .nav-links { display: none; }
  #navBurger { display: flex; }
  [data-m="mobile-cta"] { display: block; }
  .split { display: flex; flex-direction: column; gap: 44px; padding: 90px 6vw; }
  [data-m="cards-wrap"] { position: relative; }
  .bento { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 1px; }
  .bento::-webkit-scrollbar { display: none; }
  .bento > div { flex: 0 0 82vw; scroll-snap-align: start; min-height: 200px; grid-column: auto; }
  [data-m="cards-progress"] { display: block; }
  [data-m="swipe-hint"] { display: inline-flex; }
  .hero-card { left: 6vw; right: 6vw; max-width: none; padding: 28px 26px; }
  .hero-title { font-size: 2.375rem; }
  [data-m="epochen"] { text-align: left; padding: 90px 6vw; }
  [data-m="epochen"] .h-center, [data-m="epochen"] .kicker { text-align: left; }
  [data-m="pad"] { padding: 90px 6vw; }
  [data-m="netzwerk"] { flex-direction: column; align-items: center; gap: 30px; }
}
