/* ═══════════════════════════════════════════════════════════
   Alya Digital — Website (Vorschau, Fassung 8)
   handgeschrieben, kein Framework. Gilt für alle Seiten:
   Startseite, /scripts/, /scripts/dashboard/, /bot/.

   Richtung: direkt, handwerklich, ein bisschen verspielt.
   Welt: eine offene Werkstatt bei Nacht. Grund leicht warm,
   Akzent Bernstein (Werkstattlicht) nur an wenigen Stellen.
   Kennzeichen: das 2×2-Logo. Jedes Feld ein Produkt (Scripts, Bot,
   Guard), das vierte ist offen für die nächste Idee. Bernstein = fertig.
   Alle Abstände auf dem 4-px-Raster. Keine Schatten, kein Leuchten.
   ═══════════════════════════════════════════════════════════ */

/* ── Schriften (lokal, kein Google-Abruf) ──────────────── */

@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ── Farben & Maße ─────────────────────────────────────── */

:root {
  --tief: #0f0e0d;            /* Vorschau-Zeile */
  --grund: #141312;           /* Seite */
  --flaeche: #1a1917;         /* Karten, Kästen */
  --flaeche-2: #221f1d;       /* gehobene Fläche: Nebenknopf, Bildplätze */
  --linie: rgba(238, 234, 227, 0.08);
  --linie-stark: rgba(238, 234, 227, 0.14);
  --text: #eeeae3;            /* Haupttext, Hauptknopf-Füllung */
  --text-2: #aaa49b;          /* Fließtext, Nebentext */
  --grau: #8c867d;            /* Meta, Bildunterschriften (≥ 4.5:1 auf Karte) */
  --feld-aus: rgba(238, 234, 227, 0.24);

  --bernstein: #f0a43c;       /* Akzent: Logo-Felder, „Fertig“ */
  --bernstein-halb: rgba(240, 164, 60, 0.4);   /* fertiges Feld, aber nicht „dieses“ */
  --bernstein-zart: rgba(240, 164, 60, 0.06);
  --bernstein-rand: rgba(240, 164, 60, 0.32);

  --schrift: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r-tafel: 16px;
  --r-karte: 12px;
  --r-knopf: 8px;
  --kurve: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--grund);
  color: var(--text);
  font-family: var(--schrift);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--bernstein); color: var(--grund); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
svg { display: block; }
em, i { font-style: normal; }
code {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--flaeche-2);
  font-family: var(--mono);
  font-size: 0.86em;
  color: var(--text);
  white-space: nowrap;
}

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

.rahmen { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }

/* ── Vorschau-Hinweise (vor dem Live-Gang entfernen) ───── */

.vorschau {
  padding: 4px 16px;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
  color: var(--grau);
  background: var(--tief);
  border-bottom: 1px solid var(--linie);
}
.nur-vorschau { font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--grau); }

/* ── Kopf ──────────────────────────────────────────────── */

.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 19, 18, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--kurve);
}
.kopf.gescrollt { border-bottom-color: var(--linie); }
.kopf-innen { display: flex; align-items: center; gap: 32px; height: 64px; }

.marke { display: inline-flex; align-items: center; gap: 12px; }
.marke-zeichen { width: 20px; height: 20px; flex: none; }
.marke-name { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.marke-name span { color: var(--grau); font-weight: 500; }

.kopf-links { display: flex; gap: 4px; margin-left: auto; }
.kopf-links a {
  padding: 8px 12px;
  border-radius: var(--r-knopf);
  font-size: 15px;
  line-height: 20px;
  color: var(--text-2);
  transition: color 0.16s var(--kurve), background-color 0.16s var(--kurve);
}
.kopf-links a:hover { color: var(--text); background: rgba(238, 234, 227, 0.05); }
.kopf-links a[aria-current="page"] { color: var(--text); background: rgba(238, 234, 227, 0.06); }

.menu-knopf { display: none; }

/* ── Knöpfe & Links ────────────────────────────────────── */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  border-radius: var(--r-knopf);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.16s var(--kurve), border-color 0.16s var(--kurve),
              color 0.16s var(--kurve), transform 0.12s var(--kurve);
}
.knopf:active { transform: scale(0.98); }
.knopf svg { width: 18px; height: 18px; }
.knopf-haupt { background: var(--text); color: var(--grund); }
.knopf-haupt:hover { background: #ffffff; }
.knopf-neben { background: var(--flaeche-2); border-color: var(--linie-stark); color: var(--text); }
.knopf-neben:hover { background: #2a2724; }
.knopf-klein { height: 36px; padding: 0 16px; font-size: 14px; }
.knopf-klein svg { width: 16px; height: 16px; }

.mehr {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  line-height: 24px;
  font-weight: 500;
  color: var(--text);
}
.mehr svg { width: 16px; height: 16px; color: var(--grau); transition: transform 0.16s var(--kurve), color 0.16s var(--kurve); }

/* ── Hero (Startseite) ─────────────────────────────────── */

.hero { padding: 88px 0 96px; }
.hero-raster {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.hero h1, .seiten-kopf h1 {
  font-size: clamp(40px, 2.6vw + 16px, 54px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero-unterzeile, .seiten-unterzeile {
  max-width: 34rem;
  margin-top: 24px;
  font-size: 18px;
  line-height: 30px;
  color: var(--text-2);
}
.hero-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* einmaliger, ruhiger Auftritt beim Laden */
.hero-text > *, .logo-gross, .seiten-kopf-raster > * { animation: auftauchen 0.5s var(--kurve) both; }
.hero-text > :nth-child(2) { animation-delay: 0.05s; }
.hero-text > :nth-child(3) { animation-delay: 0.1s; }
.hero-text > :nth-child(4) { animation-delay: 0.15s; }
.logo-gross, .seiten-kopf-raster > :nth-child(2) { animation-delay: 0.15s; }
@keyframes auftauchen { from { opacity: 0; transform: translateY(8px); } }

/* ── Das Logo groß (Hero der Startseite) ───────────────── */

.logo-felder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.logo-feld {
  display: flex;
  flex-direction: column;
  aspect-ratio: 1 / 1;
  padding: 20px;
  border: 1px solid var(--linie);
  border-radius: var(--r-karte);
  background: var(--flaeche);
  transition: border-color 0.16s var(--kurve), background-color 0.16s var(--kurve);
}
.logo-feld-oben { display: flex; align-items: flex-start; justify-content: space-between; }
.logo-feld-oben i { width: 24px; height: 24px; border-radius: 6px; background: rgba(238, 234, 227, 0.12); }
.logo-feld-oben svg { width: 18px; height: 18px; color: var(--grau); transition: transform 0.16s var(--kurve), color 0.16s var(--kurve); }
.logo-feld strong { margin-top: 32px; font-size: 18px; line-height: 24px; font-weight: 500; }
.logo-feld-text { margin: 4px 0 12px; font-size: 14px; line-height: 20px; color: var(--grau); }
.logo-feld .status { margin-top: auto; }
.logo-feld.an { border-color: var(--bernstein-rand); background: var(--bernstein-zart); }
.logo-feld.an .logo-feld-oben i { background: var(--bernstein); }
a.logo-feld:hover { border-color: var(--bernstein-halb); }
a.logo-feld:hover .logo-feld-oben svg { transform: translateX(2px); color: var(--text); }
.logo-feld.offen { background: transparent; }
.logo-feld.offen .logo-feld-oben i { background: transparent; border: 1.5px solid var(--feld-aus); }
a.logo-feld.offen:hover { border-color: var(--linie-stark); }
.logo-unterschrift { margin-top: 16px; font-size: 13px; line-height: 20px; color: var(--grau); }

/* ── Kopf der Unterseiten ──────────────────────────────── */

.seiten-kopf { padding: 64px 0 96px; }
.seiten-kopf-zwei {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  max-width: none;
}
.pfad { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; font-size: 14px; line-height: 20px; color: var(--grau); }
.pfad a { color: var(--text-2); transition: color 0.16s var(--kurve); }
.pfad a:hover { color: var(--text); }
.ueberzeile { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }

/* ── Bildplätze (Bilder liefert der User später) ───────── */

.bildplatz {
  display: grid;
  place-items: center;
  aspect-ratio: var(--seite, 16 / 10);
  border: 1px solid var(--linie);
  border-radius: var(--r-karte);
  background: var(--flaeche-2);
  overflow: hidden;
}
.bildplatz img { width: 100%; height: 100%; object-fit: cover; }
.bild-reihe { margin-top: -32px; padding-bottom: 112px; }
.bild-gross { border-radius: var(--r-tafel); }
.bild-zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 64px; }

/* ── Fakten-Leiste ─────────────────────────────────────── */

.fakten { border-top: 1px solid var(--linie); }
.fakten-liste {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding: 24px 0;
  font-size: 15px;
  line-height: 20px;
  color: var(--text-2);
}
.fakten-liste li { display: flex; align-items: center; gap: 12px; }
.fakten-liste li::before { content: ""; width: 4px; height: 4px; border-radius: 1px; background: var(--feld-aus); }

/* ── Bereiche ──────────────────────────────────────────── */

.bereich { padding: 112px 0; border-top: 1px solid var(--linie); }
section[id] { scroll-margin-top: 64px; }

.bereich-kopf { max-width: 640px; margin-bottom: 48px; }
.bereich h2 {
  font-size: clamp(32px, 1.6vw + 20px, 44px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.bereich-kopf p, .wahl-text p, .faq-kopf p { margin-top: 16px; font-size: 17px; line-height: 28px; color: var(--text-2); }

/* ── Kennzeichen: kleines 2×2-Feld (wie im Logo) ───────── */

.feld {
  flex: none;
  display: grid;
  grid-template-columns: repeat(2, 8px);
  gap: 2px;
}
.feld i { width: 8px; height: 8px; border-radius: 2px; background: rgba(238, 234, 227, 0.1); }
.feld i.hier { background: var(--feld-aus); }        /* Platz dieses Bereichs, noch nicht fertig */
.feld i.an-aus { background: var(--bernstein-halb); } /* anderer Bereich, schon fertig */
.feld i.an { background: var(--bernstein); }         /* dieser Bereich, fertig */

/* ── Status (Punkt + Text, keine Pille) ────────────────── */

.status {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 20px;
  color: var(--grau);
  white-space: nowrap;
}
.status i { width: 6px; height: 6px; border-radius: 50%; background: var(--feld-aus); }
.status-an { color: var(--bernstein); }
.status-an i { background: var(--bernstein); }
.status-halb i { background: var(--bernstein-halb); }   /* In Arbeit: läuft schon, noch nicht veröffentlicht */

/* ── Startseite: Was es gibt ───────────────────────────── */

.zwei-karten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.produkt-karte, .script-karte {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--linie);
  border-radius: var(--r-karte);
  background: var(--flaeche);
  overflow: hidden;
  transition: border-color 0.16s var(--kurve);
}
.produkt-karte .bildplatz, .script-karte .bildplatz { border: 0; border-bottom: 1px solid var(--linie); border-radius: 0; }
a.produkt-karte:hover, a.script-karte:hover { border-color: var(--linie-stark); }
a.produkt-karte:hover .mehr svg, a.script-karte:hover .mehr svg, a.mehr:hover svg { transform: translateX(2px); color: var(--text); }
.produkt-karte-text { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.produkt-karte-oben { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.produkt-karte h3 { margin-top: 20px; font-size: 24px; line-height: 1.2; font-weight: 500; letter-spacing: -0.015em; }
.produkt-karte p { margin: 8px 0 24px; font-size: 15px; line-height: 24px; color: var(--text-2); }
.produkt-karte .mehr { margin-top: auto; }

.geplant { margin-top: 16px; border: 1px solid var(--linie); border-radius: var(--r-karte); overflow: hidden; }
a.geplant-zeile { transition: background-color 0.16s var(--kurve); }
a.geplant-zeile:hover { background: rgba(238, 234, 227, 0.03); }
.geplant-zeile {
  display: grid;
  grid-template-columns: auto 128px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
}
.geplant-zeile + .geplant-zeile { border-top: 1px solid var(--linie); }
.geplant-zeile strong { font-size: 15px; line-height: 24px; font-weight: 500; }
.geplant-text { font-size: 15px; line-height: 24px; color: var(--text-2); }
.zusatz-titel { margin: 48px 0 16px; font-size: 15px; line-height: 24px; font-weight: 500; color: var(--text-2); }

/* ── Startseite: vier Bereiche (seit Fassung 9) ────────── */

.sparten { display: grid; gap: 16px; }
.sparte {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  border: 1px solid var(--linie);
  border-radius: var(--r-karte);
  background: var(--flaeche);
  overflow: hidden;
}
/* Bild gerahmt in der Karte, immer ganz sichtbar (kein Beschnitt, egal wie hoch der Text wird) */
.sparte > .bildplatz { align-self: center; margin: 24px 0 24px 24px; border-radius: var(--r-knopf); }
.sparte-rechts > .bildplatz { order: 2; margin: 24px 24px 24px 0; }
.sparte-text { display: flex; flex-direction: column; padding: 32px; }
.sparte-oben { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sparte h3 { margin-top: 20px; font-size: 24px; line-height: 1.2; font-weight: 500; letter-spacing: -0.015em; }
.sparte-text > p { margin-top: 8px; font-size: 15px; line-height: 24px; color: var(--text-2); }
.sparte-text > .mehr { margin-top: auto; padding-top: 24px; }

.eintraege { margin-top: 24px; border-top: 1px solid var(--linie); }
.eintrag { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 14px 0; border-bottom: 1px solid var(--linie); }
.eintrag:last-child { border-bottom: 0; padding-bottom: 0; }
.eintrag strong { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; line-height: 24px; font-weight: 500; }
.eintrag strong svg { width: 14px; height: 14px; color: var(--grau); transition: transform 0.16s var(--kurve), color 0.16s var(--kurve); }
a.eintrag:hover strong svg { transform: translateX(2px); color: var(--text); }
.eintrag .status { align-self: center; }
.eintrag p { grid-column: 1 / -1; font-size: 14px; line-height: 22px; color: var(--text-2); }

.sparten-zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sparte-klein { grid-template-columns: 1fr; background: transparent; }

/* ── Scripts-Seite ─────────────────────────────────────── */

.script-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.script-karte-gross { grid-column: 1 / -1; flex-direction: row; }
.script-karte-gross .bildplatz { flex: none; width: 58%; border-bottom: 0; border-right: 1px solid var(--linie); }
.script-karte-gross .script-karte-text { justify-content: center; padding: 32px; }
.script-karte-text { display: flex; flex-direction: column; flex: 1; padding: 20px 24px 24px; }
.script-karte h3 { font-size: 18px; line-height: 24px; font-weight: 500; }
.script-karte-gross h3 { font-size: 24px; line-height: 32px; letter-spacing: -0.015em; }
.script-karte-text > p:not(.script-meta) { margin-top: 8px; font-size: 15px; line-height: 24px; color: var(--text-2); }
.script-meta { margin-top: 16px; font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--grau); }
.script-karte .mehr { margin-top: 20px; }
.script-karte-gross .mehr { margin-top: 24px; }
.script-karte-folgt { background: transparent; }
.script-karte-folgt .script-karte-text { justify-content: center; padding: 32px 24px; }
.script-karte-folgt .mehr { margin-top: 20px; }

/* ── Ablauf in Schritten ───────────────────────────────── */

.wahl {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
}
.wahl-text p { max-width: 28rem; }

.schritte li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  padding: 24px 0;
  border-top: 1px solid var(--linie);
}
.schritte li:last-child { border-bottom: 1px solid var(--linie); }
.schritte li > span {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 24px;
  color: var(--grau);
  font-variant-numeric: tabular-nums;
}
.schritte strong { font-size: 17px; line-height: 24px; font-weight: 500; }
.schritte p { margin-top: 4px; font-size: 15px; line-height: 24px; color: var(--text-2); }

.schritte-quer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.schritte-quer li { position: relative; display: block; padding: 24px 0 0; border-top: 0; }
/* Linie über jedem Schritt (statt border-top), zeichnet sich beim Reinscrollen von links */
.schritte-quer li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--linie-stark); transform-origin: left; transition: transform 0.9s var(--kurve); transition-delay: calc(var(--i, 0) * 140ms + 0.15s); }
html.js .schritte-quer li.rein:not(.da)::before { transform: scaleX(0); transition: none; }
.schritte-quer li:last-child { border-bottom: 0; }
.schritte-quer li > span { display: block; margin-bottom: 16px; }

/* ── Kopf mit Technik-Kasten (Dashboard, Bot) ──────────── */

.dash-kopf {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  margin-bottom: 64px;
}
.dash-kopf .bereich-kopf { margin-bottom: 0; }

.technik {
  border: 1px solid var(--linie);
  border-radius: var(--r-karte);
  background: var(--flaeche);
}
.technik > div {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 20px;
  font-size: 14px;
  line-height: 20px;
}
.technik > div + div { border-top: 1px solid var(--linie); }
.technik dt { color: var(--grau); }

.funktionen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.funktion { padding-top: 24px; border-top: 1px solid var(--linie-stark); }
.funktion > svg { width: 20px; height: 20px; margin-bottom: 16px; color: var(--grau); }
.funktion h3 { font-size: 17px; line-height: 24px; font-weight: 500; }
.funktion ul { margin-top: 12px; }
.funktion li {
  position: relative;
  padding-left: 16px;
  font-size: 15px;
  line-height: 24px;
  color: var(--text-2);
}
.funktion li + li { margin-top: 8px; }
.funktion li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 1px;
  background: var(--grau);
}

.hinweis-kasten {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 16px;
  margin-top: 64px;
  padding: 24px;
  border: 1px solid var(--linie);
  border-radius: var(--r-karte);
  background: var(--flaeche);
}
.hinweis-kasten > svg { width: 20px; height: 20px; margin-top: 2px; color: var(--grau); }
.hinweis-kasten h3 { font-size: 17px; line-height: 24px; font-weight: 500; }
.hinweis-kasten p { margin-top: 8px; max-width: 52rem; font-size: 15px; line-height: 24px; color: var(--text-2); }

/* ── Über Alya ─────────────────────────────────────────── */

.ueber {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.ueber-text > p { margin-top: 16px; max-width: 34rem; font-size: 17px; line-height: 28px; color: var(--text-2); }
.ueber-zahlen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.ueber-zahlen > div { padding-top: 16px; border-top: 1px solid var(--linie-stark); }
.ueber-zahlen dt { font-size: 32px; line-height: 40px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ueber-zahlen dd { margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--grau); }

.punkte { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
.punkt { padding-top: 24px; border-top: 1px solid var(--linie-stark); }
.punkt h3 { font-size: 17px; line-height: 24px; font-weight: 500; }
.punkt p { margin-top: 8px; font-size: 15px; line-height: 24px; color: var(--text-2); }

/* ── FAQ ───────────────────────────────────────────────── */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
}
.faq-kopf p { max-width: 24rem; }

.faq-liste details { border-top: 1px solid var(--linie); }
.faq-liste details:last-child { border-bottom: 1px solid var(--linie); }
.faq-liste summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 17px;
  line-height: 24px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
  transition: color 0.16s var(--kurve);
}
.faq-liste summary::-webkit-details-marker { display: none; }
.faq-liste summary:hover { color: #ffffff; }
.faq-liste summary svg { flex: none; width: 18px; height: 18px; color: var(--grau); transition: transform 0.2s var(--kurve); }
.faq-liste details[open] summary svg { transform: rotate(45deg); }
.faq-liste details p { max-width: 40rem; padding: 0 32px 24px 0; font-size: 15px; line-height: 24px; color: var(--text-2); }
.faq-liste details a { color: var(--text); text-decoration: underline; text-decoration-color: var(--linie-stark); text-underline-offset: 4px; }
.faq-liste details a:hover { text-decoration-color: var(--text); }

/* ── Abschluss ─────────────────────────────────────────── */

.schluss {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px 48px;
}
.schluss p { margin-top: 12px; max-width: 34rem; font-size: 17px; line-height: 28px; color: var(--text-2); }

/* ── Fuß ───────────────────────────────────────────────── */

.fuss { border-top: 1px solid var(--linie); }
.fuss-raster {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding: 64px 0 48px;
}
.fuss-marke p { max-width: 18rem; margin-top: 16px; font-size: 14px; line-height: 20px; color: var(--grau); }
.fuss h4 { font-size: 14px; line-height: 20px; font-weight: 500; }
.fuss ul { margin-top: 16px; }
.fuss li { line-height: 20px; }
.fuss li + li { margin-top: 12px; }
.fuss li a, .fuss li span { font-size: 14px; line-height: 20px; color: var(--grau); transition: color 0.16s var(--kurve); }
.fuss li a:hover { color: var(--text); }
.fuss-recht {
  padding: 24px 0 32px;
  border-top: 1px solid var(--linie);
  font-size: 13px;
  line-height: 20px;
  color: var(--grau);
}

/* ── Kleinere Bildschirme ──────────────────────────────── */

@media (max-width: 1040px) {
  .hero { padding: 64px 0 88px; }
  .hero-raster, .seiten-kopf-zwei { grid-template-columns: 1fr; gap: 48px; }
  .hero-text { max-width: 640px; }
  .seiten-kopf-zwei > .bildplatz { max-width: 640px; }
  .logo-gross { max-width: 520px; }
}

@media (max-width: 960px) {
  .dash-kopf, .wahl, .ueber, .faq { grid-template-columns: 1fr; }
  .dash-kopf { gap: 40px; margin-bottom: 56px; }
  .wahl, .ueber, .faq { gap: 40px; }
  .schritte-quer { grid-template-columns: 1fr; gap: 0; }
  .schritte-quer li { padding: 24px 0; }
  .schritte-quer li:last-child { border-bottom: 1px solid var(--linie-stark); }
  .schritte-quer li > span { margin-bottom: 8px; }
  .funktionen { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
  .script-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .script-karte-gross { flex-direction: column; }
  .script-karte-gross .bildplatz { width: auto; border-right: 0; border-bottom: 1px solid var(--linie); }
  .script-karte-gross .script-karte-text { padding: 20px 24px 24px; }
  .geplant-zeile { grid-template-columns: auto minmax(0, 1fr) auto; }
  .sparte { grid-template-columns: 1fr; }
  .sparte > .bildplatz, .sparte-rechts > .bildplatz { order: 0; margin: 20px 20px 0; }
  .geplant-text { grid-column: 2 / -1; grid-row: 2; }
  .fuss-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fuss-marke { grid-column: 1 / -1; }
  .bereich { padding: 96px 0; }
}

@media (max-width: 720px) {
  .kopf-innen { gap: 12px; }
  .kopf-links { display: none; }
  .kopf .knopf { margin-left: auto; }
  .menu-knopf {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 40px;
    height: 36px;
    border: 1px solid var(--linie-stark);
    border-radius: var(--r-knopf);
    background: var(--flaeche-2);
  }
  .menu-knopf span { width: 16px; height: 1.5px; border-radius: 1px; background: var(--text); transition: transform 0.2s var(--kurve); }
  .kopf.menu-offen .menu-knopf span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .kopf.menu-offen .menu-knopf span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .kopf.menu-offen { border-bottom-color: var(--linie); }
  .kopf.menu-offen .kopf-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px 16px 16px;
    background: var(--grund);
    border-bottom: 1px solid var(--linie);
  }
  .kopf.menu-offen .kopf-links a { display: flex; align-items: center; height: 48px; padding: 0 12px; font-size: 17px; }
  .zwei-karten, .bild-zwei, .sparten-zwei { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .rahmen { width: calc(100% - 32px); }
  .hero { padding: 48px 0 72px; }
  .seiten-kopf { padding: 40px 0 72px; }
  .pfad { margin-bottom: 24px; }
  .hero-unterzeile, .seiten-unterzeile { font-size: 17px; line-height: 28px; }
  .hero-knoepfe { margin-top: 32px; }
  .hero-knoepfe .knopf { flex: 1 1 auto; }

  .logo-felder { gap: 8px; }
  .logo-feld { padding: 16px; }
  .logo-feld strong { margin-top: 16px; font-size: 16px; }
  .logo-feld-text { font-size: 13px; }

  .fakten-liste { justify-content: flex-start; gap: 12px 24px; padding: 20px 0; font-size: 14px; }

  .bereich { padding: 80px 0; }
  .bereich-kopf { margin-bottom: 40px; }
  .bild-reihe { margin-top: -24px; padding-bottom: 80px; }
  .bild-zwei { margin-top: 48px; }
  .funktionen { grid-template-columns: 1fr; gap: 32px; }
  .script-raster { grid-template-columns: 1fr; }
  .hinweis-kasten { margin-top: 48px; padding: 20px; }
  .technik > div { grid-template-columns: 1fr; gap: 4px; padding: 12px 16px; }
  .seiten-kopf-zwei > .technik { order: 2; }
  .produkt-karte-text, .sparte-text { padding: 20px; }
  .geplant-zeile { padding: 16px 20px; }
  .punkte { grid-template-columns: 1fr; gap: 32px; }
  .ueber-zahlen { grid-template-columns: 1fr; gap: 0; }
  .ueber-zahlen > div { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: baseline; gap: 16px; padding: 12px 0; }
  .ueber-zahlen dt { font-size: 24px; line-height: 32px; }
  .ueber-zahlen dd { margin-top: 0; }
  .faq-liste summary { font-size: 16px; }
  .faq-liste details p { padding-right: 0; }
  .schluss .knopf { width: 100%; }
  .fuss-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 48px 0 40px; }
}

@media (max-width: 380px) {
  .hero h1, .seiten-kopf h1 { font-size: 36px; }
  .logo-feld-text { display: none; }
}

/* ── Leben (Fassung 10): Die Werkstatt geht an ──────────
   Ruhig gehalten: kein Leuchten, keine Verläufe. Bernstein-Lämpchen bedeuten:
   an = fertig, pulsiert = in Arbeit, aus = geplant. Alles aus bei „weniger Bewegung“. */

@keyframes atmen { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes blinken { 50% { opacity: 0; } }
/* Flackern beim Einschalten wie eine Werkstattlampe */
@keyframes feld-an {
  0%, 30% { border-color: var(--linie); background-color: var(--flaeche); }
  34% { border-color: var(--bernstein-rand); background-color: var(--bernstein-zart); }
  40% { border-color: var(--linie); background-color: var(--flaeche); }
  48% { border-color: var(--bernstein-rand); background-color: var(--bernstein-zart); }
  53% { border-color: var(--linie); background-color: var(--flaeche); }
  62%, 100% { border-color: var(--bernstein-rand); background-color: var(--bernstein-zart); }
}
@keyframes lampe-an {
  0%, 30% { background-color: rgba(238, 234, 227, 0.12); }
  34% { background-color: var(--bernstein); }
  40% { background-color: rgba(238, 234, 227, 0.12); }
  48% { background-color: var(--bernstein); }
  53% { background-color: rgba(238, 234, 227, 0.12); }
  62%, 100% { background-color: var(--bernstein); }
}

/* Hero: die zwei leuchtenden Felder gehen nacheinander an (nur beim Laden, danach normal) */
.logo-feld.an { animation: feld-an 0.9s linear 0.55s backwards; }
.logo-feld.an + .logo-feld.an { animation-delay: 0.9s; }
.logo-feld.an .logo-feld-oben i { animation: lampe-an 0.9s linear 0.55s backwards; }
.logo-feld.an + .logo-feld.an .logo-feld-oben i { animation-delay: 0.9s; }
.logo-feld.an .status { animation: auftauchen 0.4s var(--kurve) 1.2s backwards; }
.logo-feld.an + .logo-feld.an .status { animation-delay: 1.55s; }
/* „In Arbeit“: Lämpchen pulsiert langsam weiter */
.logo-feld.arbeitet .logo-feld-oben i { animation: lampe-an 0.9s linear 0.55s backwards, atmen 2.4s ease-in-out 1.6s infinite; }
.status-halb i { animation: atmen 2.4s ease-in-out infinite; }

/* Werkbank-Zeile im Hero: woran gerade gebaut wird */
.werkbank { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 32px; min-height: 20px; font-family: var(--mono); font-size: 13px; line-height: 20px; color: var(--grau); }
.werkbank-lampe { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--bernstein); animation: atmen 2.4s ease-in-out infinite; }
.werkbank-ding { display: inline-flex; align-items: center; gap: 2px; color: var(--text); }
.cursor { display: inline-block; width: 7px; height: 15px; border-radius: 1px; background: var(--bernstein); animation: blinken 1.1s steps(1) infinite; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Beim Reinscrollen sanft einblenden (Klassen setzt alya.js; ohne JS ist alles sofort da) */
html.js .rein { opacity: 0; transform: translateY(16px); }   /* verstecken: sofort, ohne Übergang */
html.js .rein.da { opacity: 1; transform: none; transition: opacity 0.7s var(--kurve), transform 0.7s var(--kurve); transition-delay: calc(var(--i, 0) * 90ms); }

/* Karten zum Anklicken heben sich leicht, Bilder zoomen minimal */
a.logo-feld, a.script-karte, a.produkt-karte { transition: border-color 0.16s var(--kurve), background-color 0.16s var(--kurve), transform 0.25s var(--kurve); }
a.logo-feld:hover, a.script-karte:hover, a.produkt-karte:hover { transform: translateY(-3px); }
.bildplatz img { transition: transform 0.6s var(--kurve); }
a.script-karte:hover .bildplatz img, a.produkt-karte:hover .bildplatz img { transform: scale(1.02); }

/* FAQ klappt weich auf (Chrome/Edge; andere Browser öffnen wie bisher sofort) */
:root { interpolate-size: allow-keywords; }
.faq-liste details::details-content { block-size: 0; overflow-y: clip; transition: block-size 0.32s var(--kurve), content-visibility 0.32s allow-discrete; }
.faq-liste details[open]::details-content { block-size: auto; }

/* ── Mehr Lämpchen (Fassung 11) ─────────────────────────
   Gleiche Sprache wie die Logo-Lampen: kurz flackern, dann an. Aus-Zustand nur unter html.bewegt
   (setzt das Inline-Skript im <head>, nicht bei „weniger Bewegung“) → ohne JS / ruhig ist alles an. */

/* 1. Hauptschalter: Logo im Kopf schaltet sich beim Laden als Erstes an */
.marke-schalter .m-an { fill: #f0a43c; }
.marke-schalter .m-aus { fill: #eeeae3; opacity: 0.24; }
@keyframes schalter-an {
  0%, 30% { fill: rgba(238, 234, 227, 0.24); }
  34% { fill: #f0a43c; } 40% { fill: rgba(238, 234, 227, 0.24); }
  48% { fill: #f0a43c; } 53% { fill: rgba(238, 234, 227, 0.24); }
  62%, 100% { fill: #f0a43c; }
}
.marke-schalter .m-an { animation: schalter-an 0.8s linear 0.12s backwards; }
.marke-schalter .m-an + .m-an { animation-delay: 0.3s; }

/* 2. Kleine 2×2-Kennzeichen schalten sich an, wenn sie ins Bild kommen (Klasse .licht setzt alya.js) */
@keyframes feldlampe-an {
  0%, 30% { background-color: rgba(238, 234, 227, 0.1); }
  34% { background-color: var(--bernstein); } 40% { background-color: rgba(238, 234, 227, 0.1); }
  48% { background-color: var(--bernstein); } 53% { background-color: rgba(238, 234, 227, 0.1); }
  62%, 100% { background-color: var(--bernstein); }
}
@keyframes feldlampe-halb { from { background-color: rgba(238, 234, 227, 0.1); } }
html.bewegt .feld:not(.licht) i.an, html.bewegt .feld:not(.licht) i.an-aus { background-color: rgba(238, 234, 227, 0.1); }
.feld.licht i.an { animation: feldlampe-an 0.9s linear 0.45s backwards; }
.feld.licht i.an-aus { animation: feldlampe-halb 0.5s ease 0.3s backwards; }

/* 3. Geplante Felder im Hero: beim Drüberfahren kurz schwach flackern und wieder aus („noch nicht so weit“) */
@keyframes noch-nicht {
  0%, 100% { background-color: rgba(238, 234, 227, 0.12); }
  12% { background-color: var(--bernstein-halb); } 22% { background-color: rgba(238, 234, 227, 0.12); }
  36% { background-color: var(--bernstein-halb); } 50% { background-color: rgba(238, 234, 227, 0.12); }
}
a.logo-feld:not(.an):hover .logo-feld-oben i { animation: noch-nicht 0.7s linear 1; }

/* 4. Schritte: Nummer leuchtet kurz auf, wenn sich ihre Linie zeichnet */
@keyframes nummer-an { 0% { color: var(--grau); } 18%, 45% { color: var(--bernstein); } 100% { color: var(--grau); } }
.schritte-quer li:nth-child(2) { --n: 1; }
.schritte-quer li:nth-child(3) { --n: 2; }
.schritte-quer li.licht > span { animation: nummer-an 1.6s ease calc(var(--n, 0) * 140ms + 0.15s) backwards; }

/* ── Weniger Bewegung ──────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
