/* ============================================================
   ATLAS VISION COMMERCE — style.css
   Etappe Website-Bau Weg 1 · Block 1 · Massstab: E-0 v1-0
   Ein CSS-File, kein Framework, keine externen Requests.
   ============================================================ */

/* ---------- 0. FONTS (lokal, DSGVO: kein CDN) ----------
   Dateien liegen in /assets/fonts/ (siehe fonts/README.txt und
   Deploy-Anleitung). Bis zum Einlegen greifen die Fallbacks. */
@font-face {
  font-family: "Libre Caslon Display";
  src: url("../fonts/LibreCaslonDisplay-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Libre Caslon Text";
  src: url("../fonts/LibreCaslonText-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Libre Caslon Text";
  src: url("../fonts/LibreCaslonText-Italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/HankenGrotesk-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/HankenGrotesk-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/HankenGrotesk-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- 1. TOKENS (E-0 Abschnitt 1+2) ---------- */
:root {
  /* Farbe */
  --navy: #0E1B2C;          /* Flaeche */
  --navy-card: #16273D;     /* Karten auf Navy */
  --ink: #23272C;           /* Text auf hell */
  --paper: #F7F8F9;         /* Dokumentenweiss */
  --gold: #A9853B;          /* Altgold — streng rationiert */
  --hairline: #D8DDE3;      /* Trennlinien hell */
  --hairline-dark: #2A3B52; /* Trennlinien auf Navy */
  --white-soft: #E9ECEF;    /* gedaempftes Weiss auf Navy */

  /* Typo */
  --font-display: "Libre Caslon Display", "Times New Roman", Georgia, serif;
  --font-text: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --font-sans: "Hanken Grotesk", -apple-system, "Segoe UI", Arial, sans-serif;

  /* Skala */
  --h1: clamp(2.6rem, 5vw, 4.2rem);
  --h2: clamp(1.9rem, 3.2vw, 2.6rem);
  --h3: 1.35rem;
  --body: 1.125rem;
  --micro: 0.875rem;
  --eyebrow: 0.8rem;

  /* Raum */
  --maxw: 1140px;
  --measure: 68ch;
  --form-w: 640px;
  --section-y: 112px;
  --header-h: 88px;
  --header-h-compact: 66px;
}

/* ---------- 2. BASIS ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--body);
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.measure { max-width: var(--measure); }

/* Ueberschriften */
h1, .h1 { font-family: var(--font-display); font-weight: 400;
  font-size: var(--h1); line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h2, .h2 { font-family: var(--font-display); font-weight: 400;
  font-size: var(--h2); line-height: 1.2; margin: 0 0 0.6em; }
h3, .h3 { font-family: var(--font-sans); font-weight: 700; font-size: var(--h3);
  line-height: 1.35; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
.prose { font-family: var(--font-text); }
.prose p { max-width: var(--measure); }

/* Eyebrow / Wortarchitektur */
.eyebrow {
  font-family: var(--font-sans); font-size: var(--eyebrow); font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.eyebrow .dot { color: var(--gold); padding: 0 0.35em; }

/* Vertikale Abschnittsueberschrift (E-0 Abschnitt 5, P8) */
.v-label {
  position: absolute; left: 8px; top: var(--section-y);
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--font-sans); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: #9AA3AD;
  user-select: none;
}
.section-navy .v-label { color: #5A6B82; }

/* ---------- 3. SEKTIONEN (Kapitel-Dramaturgie) ---------- */
.section { position: relative; padding: var(--section-y) 0; }
.section-navy { background: var(--navy); color: var(--white-soft); }
.section-navy h1, .section-navy h2 { color: #FFFFFF; }
.section-paper { background: var(--paper); }

/* ---------- 4. KORRIDORBAND (Signatur, E-0 Abschnitt 3) ---------- */
.corridor-band { display: block; width: min(520px, 70vw); margin: 28px 0 36px; }
.corridor-band .rail { stroke: var(--gold); stroke-width: 1.4; }
.corridor-band .tie { stroke: var(--gold); stroke-width: 1; opacity: 0.75; }
/* Trenner-Variante: statisch, kurz, mittig */
.band-divider { display: flex; justify-content: center; padding: 0; }
.band-divider svg { width: 160px; opacity: 0.9; }

/* ---------- 5. HEADER / NAVIGATION ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  transition: height 0.25s ease;
}
.site-header.is-compact .bar { height: var(--header-h-compact); }
.site-header.is-compact { border-bottom-color: var(--hairline); }

.wordmark {
  font-family: var(--font-sans); font-weight: 700; font-size: 1.02rem;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  color: var(--ink); white-space: nowrap;
}
.wordmark .dot { color: var(--gold); }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a.nav-link {
  font-family: var(--font-sans); font-weight: 500; font-size: 0.95rem;
  text-decoration: none; color: var(--ink);
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.main-nav a.nav-link:hover { border-bottom-color: var(--hairline); }
.main-nav a.nav-link[aria-current="page"] { border-bottom-color: var(--gold); }

/* Vorqualifizierung-Button (Header) */
.btn-nav {
  font-family: var(--font-sans); font-weight: 700; font-size: 0.92rem;
  text-decoration: none; color: #FFFFFF; background: var(--navy);
  padding: 12px 22px; border-bottom: 2px solid var(--gold);
  letter-spacing: 0.02em; white-space: nowrap;
}
.btn-nav:hover { background: #142842; }

/* Burger (mobil) */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer;
  padding: 10px; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0;
  background: var(--ink); transition: transform 0.2s ease, opacity 0.2s ease; }

/* ---------- 6. BUTTONS / CTA ---------- */
.btn-primary {
  display: inline-block; font-family: var(--font-sans); font-weight: 700;
  font-size: 1rem; letter-spacing: 0.02em; text-decoration: none;
  padding: 16px 30px; border: 0; cursor: pointer;
}
.on-navy .btn-primary, .section-navy .btn-primary {
  background: var(--paper); color: var(--navy);
  border-bottom: 3px solid var(--gold);
}
.section-paper .btn-primary, .on-paper .btn-primary {
  background: var(--navy); color: #FFFFFF;
  border-bottom: 3px solid var(--gold);
}
.btn-primary:hover { filter: brightness(1.05); }

/* ---------- 7. HERO ---------- */
.hero {
  background: var(--navy); color: var(--white-soft);
  min-height: 85vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero .eyebrow { color: var(--white-soft); }
.hero h1 { color: #FFFFFF; max-width: 18ch; }
.hero .subline { font-family: var(--font-text); max-width: var(--measure);
  font-size: 1.15rem; color: var(--white-soft); }
.hero .secondary-line { font-size: var(--micro); color: #A9B4C0; margin-top: 18px; }
.hero-inner { padding: 120px 0; }
.page-hero { min-height: 45vh; }
.page-hero .hero-inner { padding: 90px 0 70px; }

/* ---------- 8. FOOTER ---------- */
.site-footer { background: var(--navy); color: #A9B4C0; }
.site-footer .top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px;
  padding: 72px 0 48px;
}
.site-footer .wordmark { color: #FFFFFF; }
.site-footer .tagline { font-family: var(--font-text); color: var(--white-soft);
  margin-top: 14px; max-width: 36ch; }
.site-footer h4 {
  font-family: var(--font-sans); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: #7C8AA0;
  margin: 0 0 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 10px; }
.site-footer a { color: var(--white-soft); text-decoration: none;
  font-size: 0.95rem; }
.site-footer a:hover { color: #FFFFFF; border-bottom: 1px solid var(--gold); }
.site-footer .legal {
  border-top: 1px solid var(--hairline-dark);
  padding: 28px 0 40px; font-size: 0.85rem; line-height: 1.65;
}
.site-footer .legal .links { margin-top: 10px; }
.site-footer .legal .links a { margin-right: 18px; font-size: 0.85rem; }

/* ---------- 9. KARTEN (Insights-Cards, L-7 / E-0 Abschnitt 8) ---------- */
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.card {
  display: block; text-decoration: none; color: inherit;
  background: #FFFFFF; border: 1px solid var(--hairline);
  padding: 34px 32px 30px; transition: border-color 0.2s ease;
}
.card:hover { border-color: var(--gold); }
.card .eyebrow { color: #6B7684; margin-bottom: 14px; display: block; }
.card h3 { font-family: var(--font-display); font-weight: 400;
  font-size: 1.5rem; line-height: 1.25; }
.card .teaser { font-family: var(--font-text); color: #454B52;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; }
.card .meta { font-size: var(--micro); color: #8A939E; margin-top: 18px; }

/* ---------- 10. AKKORDEON (Leistungsleiter, E-0 Abschnitt 8 / P14) ---------- */
.accordion { border-top: 1px solid var(--hairline); }
.accordion details { border-bottom: 1px solid var(--hairline); }
.accordion summary {
  cursor: pointer; list-style: none; display: flex; align-items: baseline;
  gap: 20px; padding: 26px 8px;
  font-family: var(--font-display); font-size: 1.4rem;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .step {
  font-family: var(--font-sans); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.16em; color: var(--gold); min-width: 72px;
}
.accordion summary .price {
  margin-left: auto; font-family: var(--font-sans); font-size: 0.95rem;
  color: #6B7684; white-space: nowrap;
}
.accordion details[open] summary { border-left: 2px solid var(--gold);
  padding-left: 18px; }
.accordion .panel { padding: 0 8px 30px 110px; font-family: var(--font-text); }
.accordion .panel p { max-width: var(--measure); }

/* ---------- 11. FORMULAR (Basis; Feinschliff Block 3) ---------- */
.form-wrap { max-width: var(--form-w); }
.field { margin-bottom: 26px; }
.field label {
  display: block; font-family: var(--font-sans); font-weight: 500;
  font-size: 0.95rem; margin-bottom: 8px;
}
.field .hint { font-size: var(--micro); color: #6B7684; margin-top: 6px; }
.field input[type="text"], .field input[type="email"],
.field select, .field textarea {
  width: 100%; font-family: var(--font-sans); font-size: 1rem;
  color: var(--ink); background: #FFFFFF;
  border: 1px solid var(--hairline); border-radius: 0;
  padding: 14px 14px; height: 52px;
}
.field textarea { height: auto; min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 2px 0 0 var(--gold);
}
.choice-group { display: grid; gap: 12px; }
.choice {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  border: 1px solid var(--hairline); padding: 14px 16px; min-height: 52px;
  background: #FFFFFF; font-size: 1rem;
}
.choice:hover { border-color: #B9C1CA; }
.choice input { width: 18px; height: 18px; accent-color: var(--navy); }
.choice input:checked + span { font-weight: 500; }
.choice:has(input:checked) { border-color: var(--navy);
  box-shadow: 0 2px 0 0 var(--gold); }
.form-legal { font-size: var(--micro); color: #6B7684; line-height: 1.6;
  border-top: 1px solid var(--hairline); padding-top: 20px; margin-top: 34px; }

/* ---------- 12. ARTIKEL (Basis; Feinschliff Block 4) ---------- */
.article-body { font-family: var(--font-text); max-width: var(--measure);
  margin: 0 auto; }
.article-body h2 { font-size: 1.7rem; margin-top: 1.6em; }
.article-body blockquote, .article-body .merksatz {
  margin: 1.6em 0; padding: 4px 0 4px 22px;
  border-left: 2px solid var(--gold);
  font-style: italic; color: #3A4048;
}
.article-head { max-width: var(--measure); margin: 0 auto; }
.article-head .meta { font-size: var(--micro); color: #8A939E; }

/* ---------- 13. MOBILE NAVIGATION + RESPONSIVE ---------- */
@media (max-width: 900px) {
  :root { --section-y: 72px; }
  .card-grid { grid-template-columns: 1fr; }
  .site-footer .top { grid-template-columns: 1fr 1fr; }
  .v-label { display: none; }
  .accordion .panel { padding-left: 8px; }
}
@media (max-width: 640px) {
  :root { --section-y: 64px; --header-h: 72px; }
  .hero { min-height: 70vh; }
  .main-nav {
    display: none;
    position: fixed; inset: 0; z-index: 60;
    background: var(--navy);
    flex-direction: column; justify-content: center; align-items: flex-start;
    gap: 8px; padding: 96px 32px 120px;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a.nav-link {
    font-family: var(--font-display); font-size: 2rem; color: #FFFFFF;
    border: 0; padding: 10px 0;
  }
  .main-nav .btn-nav {
    position: absolute; left: 32px; right: 32px; bottom: 40px;
    text-align: center; background: var(--paper); color: var(--navy);
  }
  .nav-toggle { display: block; z-index: 70; position: relative; }
  .nav-toggle.is-open span { background: #FFFFFF; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-footer .top { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { max-width: none; }
}

/* ---------- 14. DRUCK (nachrangig, sauber degradierend) ---------- */
@media print {
  .site-header, .site-footer .top, .nav-toggle { display: none; }
  body { background: #fff; color: #000; }
}
