/* Gemeinsames Stylesheet der Marketing-Seiten: Startseite,
   /graph-engineering und /loop-engineering. Aus index.html
   extrahiert, damit alle drei Seiten identisch aussehen. */

/* ============================================================
   Grundlage
   ============================================================ */

:root {
  --bg: #f6f6f4;
  --text: #14141a;
  --muted: #6d6d7a;
  --faint: #9a9aa6;
  --line: rgba(20, 20, 40, 0.08);
  --card: #ffffff;
  --ink: #101016;
  --accent: #5b5bd6;
  --panel-r: 28px;
  --ease: cubic-bezier(0.25, 1, 0.4, 1);

  --card-shadow:
    0 0 0 1px rgba(20, 20, 45, 0.05),
    0 2px 4px rgba(20, 20, 45, 0.05),
    0 14px 34px -10px rgba(20, 20, 45, 0.28);
  --chip-shadow:
    0 0 0 1px rgba(20, 20, 45, 0.05),
    0 6px 18px -6px rgba(20, 20, 45, 0.3);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  font-feature-settings: 'liga' 1, 'calt' 1, 'cv11' 1;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Pill-Buttons ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.006em;
  white-space: nowrap;
  transition: transform 0.16s var(--ease), background 0.16s var(--ease),
    box-shadow 0.16s var(--ease);
}

.pill-dark {
  background: var(--ink);
  color: #fff;
}

.pill-dark:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(16, 16, 22, 0.5);
}

.pill-white {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(20, 20, 45, 0.08), 0 2px 6px rgba(20, 20, 45, 0.08);
}

.pill-white:hover {
  transform: translateY(-1px);
}

.pill-ghost-light {
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55);
}

.pill-ghost-light:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Zurückhaltend auf hellem Grund: im Kopf steht daneben die Hauptaktion */
.pill-quiet {
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(20, 20, 45, 0.16);
}

.pill-quiet:hover {
  background: rgba(20, 20, 45, 0.05);
  transform: translateY(-1px);
}

/* ---------- Navigation ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 246, 244, 0.85);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  backdrop-filter: blur(14px) saturate(1.6);
}

.site-inner {
  height: 66px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.logo {
  height: 25px;
  width: auto;
  display: block;
  color: var(--ink);
}

.site-nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--ink);
}

.site-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- Abschnitts-Rhythmus ---------- */

section {
  padding: 84px 0 0;
}

.sec-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
}

.sec-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(91, 91, 214, 0.09);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 18px;
}

h1,
h2,
h3 {
  letter-spacing: -0.03em;
  line-height: 1.08;
  font-weight: 700;
  color: var(--ink);
}

h2 {
  font-size: clamp(30px, 4.6vw, 46px);
}

.sec-sub {
  margin: 16px auto 0;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 62ch;
}

.sec-cta {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Gradient-Panels ---------- */

.panel {
  position: relative;
  max-width: 1120px;
  margin: 44px auto 0;
  border-radius: var(--panel-r);
  padding: clamp(28px, 5vw, 60px);
  overflow: hidden;
}

@media (max-width: 1160px) {
  .panel {
    margin-left: 16px;
    margin-right: 16px;
  }
}

.panel::before {
  /* Lichtschleier über dem Verlauf — nimmt den Flächen die Härte */
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 70% at 15% 0%, rgba(255, 255, 255, 0.32), transparent 55%),
    radial-gradient(70% 60% at 90% 100%, rgba(255, 255, 255, 0.14), transparent 60%);
  pointer-events: none;
}

.panel > * {
  position: relative;
}

/* Lebendiger 3D-Graph im Hero — vom Skript eingehängt, liegt unter dem
   Inhalt (im DOM zuerst) und fängt keine Zeigerereignisse */
.panel > .hero3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.panel-indigo {
  background: linear-gradient(128deg, #3f3fb4 0%, #5b5bd6 34%, #7d8ef0 68%, #b3c6fa 100%);
}

.panel-violet {
  background: linear-gradient(128deg, #4f39b8 0%, #7a5cf0 45%, #b79df8 100%);
}

.panel-teal {
  background: linear-gradient(128deg, #0f766e 0%, #14b8a6 48%, #99e8dc 100%);
}

.panel-blue {
  background: linear-gradient(128deg, #1e40af 0%, #3b6ae0 45%, #93b4f8 100%);
}

.panel-sunset {
  background: linear-gradient(128deg, #6d28d9 0%, #a855f7 45%, #f0abfc 100%);
}

/* ---------- Weiße UI-Karten in den Panels ---------- */

.ui-card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  color: var(--text);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--chip-shadow);
}

.chip .dot-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
}

.chip .dot-red {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
}

.chip code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  background: rgba(91, 91, 214, 0.1);
  color: var(--accent);
  border-radius: 5px;
  padding: 1px 6px;
}

/* Icons in Badges und Chips — dieselben Pfade wie in der App */
.badge svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

.chip svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--accent);
}

/* ============================================================
   Held: Panel mit Canvas-Mockup
   ============================================================ */

.hero {
  padding-top: 26px;
}

.hero .panel {
  margin-top: 0;
  padding-bottom: 0;
  text-align: center;
}

.hero h1 {
  color: #fff;
  font-size: clamp(36px, 6vw, 62px);
  max-width: 17ch;
  margin: 18px auto 0;
}

.hero-eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 7px 16px;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  line-height: 1.65;
  max-width: 58ch;
  margin: 18px auto 0;
}

.hero-cta {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Canvas-Mockup */

.hero-stage {
  position: relative;
  margin: 44px auto -4px;
  max-width: 900px;
}

.browser {
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  text-align: left;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #fafafc;
}

.browser-bar .dots {
  display: flex;
  gap: 5px;
}

.browser-bar .dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e4e4ea;
}

.browser-bar .addr {
  margin: 0 auto;
  font-size: 11px;
  color: var(--faint);
  background: #f0f0f4;
  border-radius: 7px;
  padding: 4px 14px;
}

.canvas {
  position: relative;
  height: 380px;
  background-color: #fcfcfe;
  background-image: radial-gradient(#e3e3ec 1.1px, transparent 1.1px);
  background-size: 20px 20px;
}

.canvas svg.edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.node {
  position: absolute;
  background: #fff;
  border: 1px solid #e6e6ee;
  border-radius: 12px;
  padding: 11px 13px;
  width: 148px;
  box-shadow: 0 1px 2px rgba(20, 20, 45, 0.05);
  text-align: left;
}

.node.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 91, 214, 0.18);
}

.node-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.node-badges {
  display: flex;
  gap: 5px;
  margin-top: 7px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--muted);
  background: #f2f2f6;
  border-radius: 5px;
  padding: 2.5px 6px;
}

.badge.voice {
  color: var(--accent);
  background: rgba(91, 91, 214, 0.1);
}

.node.circle {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
}

/* Node-Contract-Panel im Mockup */

.contract {
  position: absolute;
  top: 26px;
  right: -46px;
  width: 224px;
  padding: 16px;
  text-align: left;
  z-index: 3;
}

.contract h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
}

.contract .field {
  margin-top: 10px;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
}

.contract .input {
  margin-top: 5px;
  border: 1px solid #e6e6ee;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  background: #fafafc;
}

.contract .voice-btn {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 9px;
  padding: 8px 11px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(91, 91, 214, 0.09);
}

.voice-btn .rec {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
}

.contract .def {
  margin-top: 10px;
  border: 1px solid #e6e6ee;
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
}

.def .def-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.def .def-head .model {
  color: #16a34a;
  text-transform: none;
  letter-spacing: 0;
}

.def p {
  margin-top: 6px;
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--muted);
}

.contract .files {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

/* Schwebende Chips um das Mockup */

.float {
  position: absolute;
  z-index: 4;
}

.float-transcribe {
  top: 54px;
  left: -34px;
}

.float-written {
  bottom: 46px;
  left: -52px;
}

.wave {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.wave i {
  width: 2.5px;
  border-radius: 2px;
  background: var(--accent);
}

.wave i:nth-child(1) { height: 5px; }
.wave i:nth-child(2) { height: 11px; }
.wave i:nth-child(3) { height: 7px; }
.wave i:nth-child(4) { height: 12px; }
.wave i:nth-child(5) { height: 5px; }

@media (max-width: 820px) {
  /* Die Pixel-Koordinaten der Knoten passen auf keinen schmalen
     Bildschirm — dort zeigt das Browser-Fenster nur den Node Contract,
     das stärkste Element des Mockups. */
  .canvas {
    height: auto;
    padding: 16px;
  }

  .canvas svg.edges,
  .canvas .node,
  .float {
    display: none;
  }

  .contract {
    position: static;
    width: auto;
    margin: 0;
    box-shadow: 0 0 0 1px var(--line);
  }
}

/* ============================================================
   Voice-Pipeline
   ============================================================ */

.flow {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 14px;
  flex-wrap: wrap;
}

.flow-card {
  /* Flexibel statt fest: vier Karten teilen sich eine Reihe, drei
     Karten werden etwas breiter — kein 3+1-Umbruch */
  flex: 1 1 210px;
  max-width: 300px;
  min-width: 210px;
  padding: 18px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flow-card h4 {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.flow-num {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(91, 91, 214, 0.1);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.flow-card p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.flow-card .demo {
  margin-top: auto;
  border: 1px solid #ececf2;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fafafc;
  font-size: 11px;
  line-height: 1.55;
  color: var(--muted);
}

.demo .rec-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
}

.demo .level {
  margin-top: 8px;
  height: 5px;
  border-radius: 3px;
  background: #ececf2;
  overflow: hidden;
}

.demo .level i {
  display: block;
  height: 100%;
  width: 62%;
  border-radius: 3px;
  background: linear-gradient(90deg, #22c55e, #86efac);
}

.demo del {
  color: #c2c2cc;
}

.demo.done {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.05);
  color: var(--text);
}

.flow-arrow {
  align-self: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 20px;
  font-weight: 700;
}

.flow-chips {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .flow-arrow {
    display: none;
  }
}

/* ============================================================
   Spezifikations-Panel
   ============================================================ */

.spec-stage {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}

.spec-doc {
  padding: 26px 28px;
  text-align: left;
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.8;
  color: #4b4b58;
  overflow-x: auto;
  /* Das Dokument ist zeilenweise gesetzt — ohne pre fällt es zu einem
     einzigen Absatz zusammen */
  white-space: pre;
}

.spec-doc-m {
  display: none;
}

.spec-doc b {
  color: var(--ink);
  font-weight: 700;
}

.spec-doc i {
  font-style: normal;
  color: var(--accent);
}

.spec-doc .cm {
  color: #9a9aa6;
}

.spec-float {
  position: absolute;
  z-index: 3;
}

.sf-1 { top: -16px; right: -30px; }
.sf-2 { bottom: 84px; right: -56px; }
.sf-3 { bottom: -14px; left: -36px; }

@media (max-width: 860px) {
  .spec-float {
    display: none;
  }
}

/* ============================================================
   Helle Inhaltsabschnitte (SEO)
   ============================================================ */

.prose {
  max-width: 760px;
  margin: 40px auto 0;
  padding: 0 20px;
}

.prose p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.75;
}

.prose p + p {
  margin-top: 14px;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.definition {
  background: #fff;
  border-radius: 16px;
  border-left: 3px solid var(--accent);
  box-shadow: 0 0 0 1px var(--line), 0 8px 24px -12px rgba(20, 20, 45, 0.12);
  padding: 22px 26px;
  margin-bottom: 26px;
}

.definition p {
  color: var(--text);
  font-size: 16px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  max-width: 1000px;
  margin: 36px auto 0;
  padding: 0 20px;
}

/* Vier Karten stehen 2×2 — auto-fit würde sie 3+1 umbrechen */
.card-grid.four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 860px;
}

@media (max-width: 620px) {
  .card-grid.four {
    grid-template-columns: 1fr;
  }
}

.lcard {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 0 0 1px var(--line), 0 6px 18px -10px rgba(20, 20, 45, 0.1);
  padding: 22px;
}

.lcard h3 {
  font-size: 15.5px;
  letter-spacing: -0.015em;
  margin-bottom: 7px;
}

.lcard p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
}

.lcard .lnum {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(91, 91, 214, 0.09);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* Vergleichstabelle */

.table-card {
  max-width: 1000px;
  margin: 36px auto 0;
  padding: 0 20px;
}

.table-scroll {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 0 0 1px var(--line), 0 8px 24px -12px rgba(20, 20, 45, 0.1);
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  text-align: left;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

thead th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--faint);
}

tbody th {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

tbody td {
  color: var(--muted);
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: none;
}

tbody tr.hl th,
tbody tr.hl td {
  background: rgba(91, 91, 214, 0.05);
}

/* Glossar */

dl.glossary {
  max-width: 1000px;
  margin: 36px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

dl.glossary > div {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--line);
  padding: 18px 20px;
}

dl.glossary dt {
  font-weight: 650;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 5px;
}

dl.glossary dd {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

/* FAQ */

.faq {
  max-width: 760px;
  margin: 36px auto 0;
  padding: 0 20px;
}

.faq-item {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--line);
  padding: 20px 24px;
}

.faq-item + .faq-item {
  margin-top: 10px;
}

.faq-item h3 {
  font-size: 15.5px;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* Eingeklappt per <details>: der volle Text bleibt im Quelltext (SEO),
   sichtbar ist nur die Frage — ein Klick öffnet die Antwort. */
details.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary h3 {
  margin-bottom: 0;
}

details.faq-item summary::after {
  content: '▾';
  color: var(--faint);
  font-size: 13px;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
}

details.faq-item[open] summary::after {
  transform: rotate(180deg);
}

details.faq-item[open] summary {
  margin-bottom: 8px;
}

/* ---------- Erklärseiten (/graph-engineering, /loop-engineering) ---------- */

.pillar-hero {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  padding: 72px 20px 0;
}

.pillar-hero h1 {
  font-size: clamp(34px, 5.5vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 18px auto 0;
  max-width: 16ch;
}

.pillar-hero .lede {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  max-width: 620px;
  margin: 18px auto 0;
}

.pillar-hero .sec-cta {
  margin-top: 26px;
}

/* ---------- Verweise auf die Erklärseiten ---------- */

a.lcard {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

a.lcard:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(20, 20, 45, 0.07),
    0 16px 36px -12px rgba(20, 20, 45, 0.25);
}

a.lcard .learn-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.faq-item code,
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: rgba(91, 91, 214, 0.08);
  color: var(--accent);
  border-radius: 5px;
  padding: 1px 5px;
}

/* ---------- Abschluss + Fuß ---------- */

.closer .panel {
  text-align: center;
  padding: clamp(48px, 7vw, 84px) clamp(28px, 5vw, 60px);
}

.closer h2 {
  color: #fff;
  max-width: 20ch;
  margin: 0 auto;
}

.closer p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 52ch;
  margin: 16px auto 0;
  font-size: 16px;
}

footer.site {
  margin-top: 84px;
  border-top: 1px solid var(--line);
  padding: 36px 0 44px;
  font-size: 13.5px;
  color: var(--faint);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-left: auto;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--ink);
}

/* Ehrliche Ansage statt totem Knopf: die App ist reiner Desktop.
   Auf Telefonen verschwinden alle App-Links, die Notiz erscheint. */
.mobile-note {
  display: none;
  align-items: center;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 550;
  color: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4);
}

/* Auf hellem Grund (Kopf der Erklärseiten) dunkel statt weiß */
.pillar-hero .mobile-note {
  color: var(--muted);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

@media (max-width: 767px) {
  .cta-app {
    display: none;
  }

  .mobile-note {
    display: inline-flex;
  }
}

@media (max-width: 760px) {
  .site-nav {
    display: none;
  }

  section {
    padding-top: 64px;
  }

  .hero {
    padding-top: 14px;
  }

  .panel {
    border-radius: 22px;
    padding: 26px 18px;
  }

  .flow-card {
    max-width: none;
  }

  /* Abgeschnittene Zeilen wirken kaputt — auf schmalen Bildschirmen
     steht der eigens schmal gesetzte Auszug, die breite Fassung ruht */
  .spec-doc {
    display: none;
  }

  .spec-doc-m {
    display: block;
    font-size: 12px;
    padding: 20px 18px;
    white-space: pre;
  }

  /* Eine 4-Spalten-Tabelle kann auf 375px nur scheitern: jede Zeile
     wird zur Karte, der Spaltenkopf zum kleinen Label über dem Wert */
  .table-scroll {
    background: none;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
  }

  table {
    min-width: 0;
  }

  table,
  tbody,
  tbody tr,
  tbody th,
  tbody td {
    display: block;
  }

  thead {
    display: none;
  }

  tbody tr {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 0 0 1px var(--line);
    padding: 16px 18px;
  }

  tbody tr + tr {
    margin-top: 10px;
  }

  tbody tr.hl {
    box-shadow: 0 0 0 1.5px rgba(91, 91, 214, 0.4);
  }

  tbody tr.hl th,
  tbody tr.hl td {
    background: none;
  }

  tbody th,
  tbody td {
    padding: 0;
    border-bottom: none;
    white-space: normal;
  }

  tbody th {
    font-size: 15.5px;
  }

  tbody td {
    margin-top: 10px;
    font-size: 13.5px;
    line-height: 1.55;
  }

  tbody td::before {
    content: attr(data-label);
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--faint);
    margin-bottom: 2px;
  }

  .footer-links {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
