/*
Theme Name:  BITnet TISAX
Theme URI:   https://tisax-niedersachsen.de
Author:      BITnet System GbR
Author URI:  https://www.bitnet-system.de
Description: Eigenständiges Landingpage-Theme für die TISAX-Pillar-Page von BITnet System. Kein Page-Builder, keine Plugins: SEO, Schema, Formular-Mailer und Sitemap sind im Theme gelöst. Design-Quelle: Claude-Design-Projekt "TISAX Landingpage erstellen".
Version:     1.0.0
Requires at least: 6.4
Requires PHP: 8.1
License:     Proprietär – nur für BITnet System GbR
Text Domain: bitnet-tisax
*/

/* ==========================================================================
   1. Design-Tokens (verbindlich, aus dem Design-Handoff)
   ========================================================================== */
:root {
  --accent:      #9D2139;
  --accent-hi:   #BE2A47;
  --accent-lo:   #78182B;
  --accent-txt:  #E58399;
  --body:        #434748;
  --ink:         #23272A;
  --ink-2:       #2C3134;
  --line-dark:   #3C4245;
  --line-dark2:  #4A5053;
  --line-ghost:  #454D56;
  --muted:       #63686A;
  --muted-dark:  #969A9B;
  --on-dark:     #C0C3C4;
  --on-dark-hi:  #CFD1D2;
  --paper:       #FFFFFF;
  --sand:        #F4F4F3;
  --line:        #E3E3E2;
  --line-2:      #EEEEED;
  --line-sand:   #DDDDDB;
  --field:       #CACBCA;
  --ok:          #2E7D4F;
  --warn:        #C9821A;
  --font-sans:   'Switzer', system-ui, -apple-system, sans-serif;
  --font-mono:   'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
}

/* ==========================================================================
   2. Fonts (selbst gehostet, DSGVO – Hausschrift Switzer wie bitnet-system.de,
      Dateien 1:1 aus dem BITnet Theme; kein OMGF, kein externes CDN)
   ========================================================================== */
@font-face {
  font-family: 'Switzer';
  src: url('assets/fonts/switzer-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('assets/fonts/switzer-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('assets/fonts/switzer-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('assets/fonts/switzer-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('assets/fonts/jetbrains-mono-400-latin.woff2') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('assets/fonts/jetbrains-mono-400-latin-ext.woff2') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   3. Basis
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
:root { color-scheme: light; }
html { scroll-behavior: smooth; }
a, button, summary, label, input, select, textarea { touch-action: manipulation; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-lo); }
input, select, textarea, button { font-family: inherit; }
/* Links im Fließtext nicht nur über Farbe unterscheidbar (WCAG 1.4.1) */
p a, li a, .info-text a, .q-text a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.footer-links a, .kontakt-list a, .site-nav a, .btn, .breadcrumb a { text-decoration: none; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}
.sec--dark a:focus-visible, .sec--dark button:focus-visible, .site-footer a:focus-visible { outline-color: currentColor; }
[id] { scroll-margin-top: 84px; }

/* Ohne JS bleibt alles außer dem Frist-Rechner-Formular nutzbar */
.js-only { display: none; }
html.js .js-only { display: block; }
html.js .frist-grid.js-only { display: grid; }
html.js .no-js-note { display: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ==========================================================================
   4. Layout-Bausteine
   ========================================================================== */
.section { padding: clamp(64px, 8vw, 120px) clamp(20px, 5vw, 40px); background: var(--paper); }
.section--sand { background: var(--sand); }
.section--dark, .sec--dark { background: var(--ink); color: #fff; }
.inner { max-width: 1180px; margin: 0 auto; }
.inner--narrow { max-width: 900px; }

.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.sec--dark .kicker { color: var(--accent-txt); }

.section h2 {
  margin: 0;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.section h2.h2-md { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.12; }

.mw16 { max-width: 16ch; } .mw18 { max-width: 18ch; } .mw20 { max-width: 20ch; }
.mw22 { max-width: 22ch; } .mw24 { max-width: 24ch; }

.lead {
  margin: 22px 0 0;
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.55;
  color: var(--body);
  max-width: 62ch;
}
.lead--lg { font-size: clamp(18px, 1.9vw, 22px); }
.sec--dark .lead { color: var(--on-dark); }
.note {
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--muted);
  max-width: 70ch;
}
.note--wide { max-width: 74ch; }
.mono-note {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
/* ISA-2027-Hinweis: bewusst zurückhaltend (Codex-Review §7) */
.isa-note {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 74ch;
}

/* Schmale Viewports (~320 px): Grid-/Flex-Kinder dürfen schrumpfen,
   die Vergleichstabelle scrollt nur im eigenen Container (Codex-Review §11) */
.grid-lines > *,
.q,
.kontakt-text,
.kontakt-text > *,
.hero-stats > div { min-width: 0; }
.table-scroll { max-width: 100%; }

/* Rasterlinien statt Karten mit Schatten */
.grid-lines {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: clamp(36px, 4vw, 56px);
}
.grid-lines--sand { background: var(--line-sand); border-color: var(--line-sand); }
.grid-lines--dark { background: var(--line-dark); border-color: var(--line-dark); }
.cols-280 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.cols-300 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.cols-320 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.cols-340 { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 26px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn--sm { height: 46px; padding: 0 22px; font-size: 15px; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-lo); color: #fff; }
.sec--dark .btn--accent:hover { background: var(--accent-hi); }
.btn--ghost { background: transparent; border: 1px solid var(--line-ghost); color: #fff; }
.btn--ghost:hover { border-color: #fff; color: #fff; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--accent); color: #fff; }

.chip {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  color: var(--body);
}
.chip--dark { border-color: var(--line-dark2); color: #fff; padding: 8px 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--lg { gap: 10px; margin-top: 30px; }

/* ==========================================================================
   5. Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { height: 44px; width: auto; display: block; }
.brand-sep { width: 1px; height: 22px; background: var(--line); display: block; }
.brand-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { font-size: 14px; font-weight: 500; color: var(--body); }
.site-nav a:hover { color: var(--accent); }
.site-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: 2px;
}
.site-nav .nav-cta:hover { background: var(--accent-lo); color: #fff; }

/* Burger (CSS-only, funktioniert ohne JS) */
.nav-toggle-box { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nav-toggle { display: none; }
@media (max-width: 899px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    cursor: pointer;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #fff;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
  .nav-toggle-box:focus-visible ~ .nav-toggle { outline: 2px solid var(--ink); outline-offset: 1px; }
  .nav-toggle-box:checked ~ .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle-box:checked ~ .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-toggle-box:checked ~ .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px clamp(20px, 5vw, 40px) 20px;
  }
  .nav-toggle-box:checked ~ .site-nav { display: flex; }
  .site-nav a { padding: 13px 0; border-bottom: 1px solid var(--line-2); font-size: 16px; }
  .site-nav .nav-cta { margin-top: 16px; justify-content: center; height: 48px; border-bottom: none; }
}

/* ==========================================================================
   6. Hero
   ========================================================================== */
.hero { padding: clamp(72px, 10vw, 132px) clamp(20px, 5vw, 40px) clamp(56px, 7vw, 88px); }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid var(--line-dark2);
  border-radius: 2px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: block; }
.hero-badge span:last-child {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark);
}
.hero h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  max-width: 16ch;
}
.hero-sub {
  margin: clamp(24px, 3vw, 34px) 0 0;
  font-size: clamp(19px, 2.1vw, 26px);
  line-height: 1.45;
  color: var(--on-dark-hi);
  max-width: 52ch;
  font-weight: 400;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(32px, 4vw, 44px); }
.hero-stats {
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}
.stat-num {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.02em;
  /* „Ansprechpartner" (~234 px) überläuft sonst die 2-Spalten-Tracks bei
     428–500 px und spannt den mobilen Layout-Viewport auf (Codex §1).
     Greift nur, wenn die Spalte schmaler als das Wort ist. */
  overflow-wrap: anywhere;
  hyphens: auto;
}
.stat-label { font-size: 14px; color: var(--muted-dark); margin-top: 6px; line-height: 1.4; }

/* ==========================================================================
   7. Sektion 01 – Problem
   ========================================================================== */
.cell { background: var(--paper); padding: clamp(24px, 3vw, 36px); }
.cell--dark { background: var(--ink); color: #fff; }
.cell-label { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.cell--dark .cell-label { color: var(--muted-dark); }
.cell p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink); }
.cell--dark p { color: #fff; }
.cell .silence { margin-top: 14px; color: var(--accent); font-weight: 600; }

/* ==========================================================================
   8. Sektion 02 – Vergleichstabelle
   ========================================================================== */
.table-scroll { margin-top: clamp(36px, 4vw, 56px); border: 1px solid var(--line-sand); background: var(--paper); overflow-x: auto; }
.compare { min-width: 760px; }
.compare-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; border-bottom: 1px solid var(--line-2); }
.compare-row--head { border-bottom: 1px solid var(--line-sand); }
.compare-row:last-child { border-bottom: none; }
.compare-cell { padding: 16px 20px; font-size: 15px; color: var(--body); border-left: 1px solid var(--line-2); }
.compare-cell:first-child { border-left: none; font-weight: 600; color: var(--ink); }
.compare-row--head .compare-cell { font-size: 14px; font-weight: 600; }
.compare-row--head .compare-cell:first-child { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.compare-cell--no { color: var(--accent); font-weight: 600; }
.compare-cell--bitnet { background: var(--ink); color: #fff; font-weight: 600; border-left: none; }

/* ==========================================================================
   9. Sektion 03 – VDA-ISA-Mapping
   ========================================================================== */
.map-card { background: var(--paper); padding: clamp(22px, 2.6vw, 30px); }
.map-id { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 12px; }
.map-title { font-size: 18px; font-weight: 600; line-height: 1.35; margin-bottom: 16px; }
.map-code {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--body);
  padding: 12px 14px;
  background: var(--sand);
  border-left: 2px solid var(--ink);
}
.map-proof { margin-top: 14px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.map-proof strong { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   10. Sektion 04 – Leistungen (dunkel)
   ========================================================================== */
.tier { background: var(--ink); padding: clamp(24px, 3vw, 32px); display: flex; flex-direction: column; gap: 14px; }
.tier--hi { background: var(--ink-2); border: 1px solid var(--accent); }
.tier-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tier-label { font-family: var(--font-mono); font-size: 12px; color: var(--muted-dark); }
.tier-tag { font-family: var(--font-mono); font-size: 12px; color: var(--accent-txt); }
.tier-tag--muted { color: var(--muted-dark); }
.tier h3 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.tier p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--on-dark); flex: 1; }
.tier-foot { font-family: var(--font-mono); font-size: 13px; color: #fff; padding-top: 12px; border-top: 1px solid var(--line-dark); }
.tier--hi .tier-foot { border-top-color: #2E3740; }
.tier--cta { justify-content: center; gap: 16px; }
.tier--cta .tier-q { margin: 0; font-size: 17px; line-height: 1.5; color: #fff; font-weight: 600; }
.tier--cta p { flex: none; }
.tier--cta .btn { align-self: flex-start; }

/* ==========================================================================
   11. Sektion 05 – Aufwandstabelle
   ========================================================================== */
/* Echte <table> (semantisch extrahierbar), Optik identisch zum alten Div-Raster */
.effort {
  margin-top: clamp(36px, 4vw, 56px);
  border: 1px solid var(--line);
  width: 100%;
  border-collapse: collapse;
}
.effort th,
.effort td {
  padding: 16px 22px;
  border-bottom: 1px solid var(--line-2);
  text-align: left;
  vertical-align: middle;
}
.effort th:last-child,
.effort td:last-child { text-align: right; white-space: nowrap; }
.effort-row--head th {
  background: var(--sand);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.effort-task { font-size: 16px; color: var(--ink); }
.effort-h { font-family: var(--font-mono); font-size: 16px; color: var(--ink); font-weight: 500; }
.effort-row--total td { background: var(--ink); border-bottom: none; padding: 18px 22px; }
.effort-row--total .effort-task { color: #fff; font-weight: 600; }
.effort-row--total .effort-h { color: #fff; font-size: 18px; }

/* ==========================================================================
   12. Sektion 06 – Ablauf
   ========================================================================== */
.steps { display: grid; gap: 1px; background: var(--line-sand); border: 1px solid var(--line-sand); margin-top: clamp(36px, 4vw, 56px); }
.step {
  background: var(--paper);
  padding: clamp(22px, 3vw, 30px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(18px, 3vw, 36px);
  align-items: start;
}
.step-num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); padding-top: 4px; min-width: 78px; }
/* Grid-Kinder der Ablaufschritte dürfen schrumpfen (Codex-Nachbesserung §1;
   ab 375 px ohne sichtbare Wirkung) */
.step > * { min-width: 0; }
.step h3 { margin: 0 0 8px; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.step p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--body); max-width: 70ch; }
.step--dark { background: var(--ink); }
.step--dark .step-num { color: var(--accent-txt); }
.step--dark h3 { color: #fff; }
.step--dark p { color: var(--on-dark); }

/* ==========================================================================
   13. Sektion 07 – Frist-Rechner
   ========================================================================== */
.frist-grid {
  margin-top: clamp(36px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}
.frist-form { border: 1px solid var(--line); padding: clamp(24px, 3vw, 34px); background: var(--sand); }
.frist-form label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.frist-form label + label, .frist-form .lbl-2 { margin-top: 22px; }
.frist-form input, .frist-form select {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  font-size: 16px;
  border: 1px solid var(--field);
  background: var(--paper);
  border-radius: 2px;
  color: var(--ink);
}
.frist-form select { padding: 0 12px; }
.frist-form button { margin-top: 24px; width: 100%; height: 52px; font-size: 16px; font-weight: 600; border: none; border-radius: 2px; cursor: pointer; background: var(--ink); color: #fff; }
.frist-form button:hover { background: var(--accent); }
.frist-form .privacy-note { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.frist-result { border: 1px solid var(--line); padding: clamp(24px, 3vw, 34px); }
.frist-ampel { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.frist-ampel .dot { width: 12px; height: 12px; border-radius: 50%; display: block; background: var(--muted-dark); }
.frist-ampel .label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.frist-head { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.frist-body { margin: 16px 0 0; font-size: 16px; line-height: 1.6; color: var(--body); }
.frist-facts { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.frist-fact { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.frist-fact span:first-child { color: var(--body); }
.frist-fact span:last-child { font-family: var(--font-mono); color: var(--ink); font-weight: 500; }
.frist-result .btn { margin-top: 26px; height: 48px; padding: 0 22px; font-size: 15px; }

/* ==========================================================================
   14. Sektion 08 – Schnellcheck-Fragen
   ========================================================================== */
.q { background: var(--paper); padding: 22px 26px; display: grid; grid-template-columns: auto 1fr; gap: 18px; }
.q-num { font-family: var(--font-mono); font-size: 14px; color: var(--accent); }
.q-text { font-size: 16px; line-height: 1.55; color: var(--ink); }
.q--dark { background: var(--ink); }
.q--dark .q-num { color: var(--accent-txt); }
.q--dark .q-text { color: #fff; font-weight: 600; }

/* ==========================================================================
   15. Sektion 09 – Region
   ========================================================================== */
.split-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: clamp(28px, 4vw, 64px); align-items: start; }
.split-grid--300 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.region-text p { margin: 18px 0 0; font-size: 16px; line-height: 1.6; color: var(--body); }
.region-text .lead { margin-top: 22px; line-height: 1.6; }
.region-text .chips { margin-top: 28px; }
.info-card { border: 1px solid var(--line); }
.info-card-inner { padding: 24px 26px; display: grid; gap: 18px; }
.info-item + .info-item { border-top: 1px solid var(--line-2); padding-top: 18px; }
.info-num { font-family: var(--font-mono); font-size: 20px; color: var(--ink); font-weight: 500; }
.info-text { font-size: 15px; color: var(--body); margin-top: 4px; line-height: 1.5; }

/* ==========================================================================
   16. Sektion 10 – Wer das macht (dunkel)
   ========================================================================== */
.wer-text .lead { line-height: 1.6; }
.wer-text p:not(.lead) { margin: 18px 0 0; font-size: 16px; line-height: 1.6; color: var(--on-dark); }
/* Links auf dunklem Grund: helles Akzent-Token statt --accent (Kontrast ≥ 4,5:1) */
.wer-text p a { color: var(--accent-txt); }
.wer-text p a:hover { color: #fff; }
.portraits { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.portrait { border: 1px solid var(--line-dark); }
.portrait-ph {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.portrait-ph span { font-family: var(--font-mono); font-size: 11px; color: var(--muted-dark); text-align: center; line-height: 1.5; }
.portrait-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait-cap { padding: 18px; }
.portrait-name { font-size: 17px; font-weight: 600; }
.portrait-role { font-size: 14px; color: var(--muted-dark); margin-top: 4px; line-height: 1.5; }

/* ==========================================================================
   17. Sektion 12 – FAQ
   ========================================================================== */
.faq-list { border-top: 1px solid var(--line-sand); margin-top: clamp(32px, 4vw, 48px); }
.faq-list details { border-bottom: 1px solid var(--line-sand); }
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list [data-chev] {
  flex: none;
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  margin-right: 4px;
  transform: rotate(-45deg);
  transition: transform .2s ease;
}
.faq-list details[open] [data-chev] { transform: rotate(45deg); }
.faq-list details p { margin: 0; padding: 0 0 24px; font-size: 17px; line-height: 1.65; color: var(--body); }
.section .faq-h2 { margin-bottom: 0; }

/* ==========================================================================
   18. Sektion 13 – Kontakt (dunkel) + Formular
   ========================================================================== */
.kontakt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: clamp(32px, 4vw, 72px); align-items: start; }
.kontakt-text h2 { max-width: 18ch; line-height: 1.08; }
.kontakt-text .lead { line-height: 1.6; max-width: 48ch; }
.kontakt-list { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line-dark); display: grid; gap: 16px; }
.kontakt-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-bottom: 6px;
}
.kontakt-list a { font-size: 20px; font-weight: 600; color: #fff; }
.kontakt-list a:hover { color: var(--accent-txt); }
.kontakt-addr { font-size: 16px; color: var(--on-dark); line-height: 1.5; }

.form-card { background: var(--paper); color: var(--ink); padding: clamp(26px, 3.4vw, 40px); }
.form-card form { display: grid; gap: 18px; }
.form-title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.f-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.form-card label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-card input[type="text"], .form-card input[type="email"], .form-card input[type="tel"], .form-card input[type="date"],
.form-card select {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  font-size: 15px;
  border: 1px solid var(--field);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
}
.form-card select { padding: 0 10px; }
.form-card textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid var(--field);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  resize: vertical;
}
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--body); font-weight: 400 !important; }
.consent input { margin-top: 3px; width: 16px; height: 16px; flex: none; }
.form-card .btn { width: 100%; justify-content: center; }
.form-smallprint { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.form-error {
  border: 1px solid var(--accent);
  background: #FBF1F3;
  color: var(--accent-lo);
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.5;
}
.form-error a { font-weight: 600; }
.form-success { display: grid; gap: 16px; padding: 20px 0; }
.form-success-title { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.form-success p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--body); }
/* Honeypot: für Menschen unsichtbar, für Bots ein normales Feld */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   19. Sektion 14 – Glossar
   ========================================================================== */
.gloss { background: var(--paper); padding: 24px 26px; }
.gloss h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.gloss p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--body); }

/* ==========================================================================
   20. Footer
   ========================================================================== */
.site-footer { background: var(--sand); border-top: 1px solid var(--line); padding: clamp(40px, 5vw, 64px) clamp(20px, 5vw, 40px); }
.footer-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; align-items: start; }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.footer-brand img { height: 52px; width: auto; display: block; }
.footer-brand .brand-sep { height: 26px; background: var(--line-sand); }
.footer-tagline { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.footer-h {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.footer-links { display: grid; gap: 8px; }
.footer-links a { font-size: 14px; color: var(--body); }
.footer-links a:hover { color: var(--accent); }
.footer-addr { font-size: 14px; color: var(--muted); }
.stadt-siblings { margin: 0; max-width: 74ch; font-size: 16px; line-height: 1.7; color: var(--body); }
.footer-owner { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.footer-owner a { color: var(--body); text-decoration: underline; text-underline-offset: 3px; }
.footer-owner a:hover { color: var(--accent); }
.footer-link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 14px;
  color: var(--body);
  cursor: pointer;
  text-align: left;
}
.footer-link-btn:hover { color: var(--accent); }
.footer-meta {
  max-width: 1180px;
  margin: clamp(28px, 4vw, 44px) auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
/* Rechtlicher TISAX®-Marken-/Rollenhinweis (Codex-Review §9) */
.footer-legal {
  max-width: 1180px;
  margin: 12px auto 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

/* ==========================================================================
   Cookie-Banner (1:1 BITnet Theme, an TISAX-Tokens angepasst – helles Theme)
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  /* width:100% statt right:0 – ein fixiertes right:0 spannt inkl. Scrollbar-
     Rinne und bläht scrollWidth über clientWidth (Codex-Nachbesserung §1) */
  width: 100%;
  z-index: 9100;
  background: var(--ink);
  border-top: 2px solid var(--accent);
  box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.35);
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 40px);
  flex-wrap: wrap;
}
.cookie-banner__text {
  flex: 1;
  min-width: 260px;
  font-size: 14px;
  color: var(--on-dark);
  line-height: 1.55;
  margin: 0;
}
.cookie-banner__link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.cookie-banner__link:hover { color: var(--accent-txt); }
.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
  border: 1px solid transparent;
}
.cookie-btn--deny {
  background: transparent;
  border-color: var(--line-dark2);
  color: var(--on-dark);
}
.cookie-btn--deny:hover {
  border-color: var(--on-dark);
  color: #fff;
}
.cookie-btn--accept {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.cookie-btn--accept:hover {
  background: var(--accent-hi);
  border-color: var(--accent-hi);
}
@media (max-width: 600px) {
  .cookie-banner__inner { flex-direction: column; align-items: flex-start; }
  .cookie-banner__actions { width: 100%; }
  .cookie-btn { flex: 1; justify-content: center; }
}

/* Sehr schmale Viewports (~320 px): Ablaufschritte einspaltig, Cookie-Buttons
   untereinander – oberhalb von 340 px keine sichtbare Änderung
   (Codex-Nachbesserung §1) */
@media (max-width: 340px) {
  .step { grid-template-columns: 1fr; }
  .step-num { min-width: 0; }
  .step h3,
  .step p { overflow-wrap: anywhere; }
  .cookie-banner__text { min-width: 0; width: 100%; }
  .cookie-banner__actions { flex-direction: column; }
  .cookie-btn { width: 100%; white-space: normal; }
}

/* reCAPTCHA: Badge ausgeblendet – erlaubt, WEIL der Hinweistext am Formular
   sichtbar ist (Google-Branding-Vorgabe; Muster BITnet Theme) */
.grecaptcha-badge { visibility: hidden !important; }
.form-recaptcha-notice {
  font-size: 0.7rem;
  color: var(--muted-dark);
  line-height: 1.5;
  margin-top: 12px;
  margin-bottom: 0;
  text-align: center;
}
.form-recaptcha-notice a {
  color: var(--muted-dark);
  text-decoration: underline;
}
.form-recaptcha-notice a:hover { color: var(--on-dark-hi); }
.footer-region { margin: 0; font-size: 14px; line-height: 1.7; color: var(--body); }

/* ==========================================================================
   21. Unterseiten (Impressum, Datenschutz, Städteseiten)
   ========================================================================== */
.page-hero { background: var(--ink); color: #fff; padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 40px) clamp(40px, 5vw, 64px); }
.page-hero .kicker { color: var(--accent-txt); margin-bottom: 16px; }
.page-hero h1 { margin: 0; font-size: clamp(32px, 5.4vw, 60px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 700; max-width: 22ch; }
.page-hero .lead { color: var(--on-dark); }

.legal-content { max-width: 860px; margin: 0 auto; padding: clamp(48px, 6vw, 88px) clamp(20px, 5vw, 40px); }
.legal-content h2 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.25; letter-spacing: -0.02em; font-weight: 700; margin: 44px 0 14px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 19px; font-weight: 600; margin: 30px 0 10px; }
.legal-content h4 { font-size: 16px; font-weight: 600; margin: 24px 0 8px; }
.legal-content p, .legal-content address { margin: 0 0 16px; font-size: 16px; line-height: 1.7; color: var(--body); }
.legal-content address { font-style: normal; }
.legal-content strong { color: var(--ink); }
.legal-content ul { margin: 0 0 16px; padding-left: 22px; }
.legal-content li { margin-bottom: 8px; font-size: 16px; line-height: 1.65; color: var(--body); }
.legal-content .table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); }
.legal-content table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal-content th { text-align: left; padding: 10px 12px; border-bottom: 2px solid var(--line-sand); background: var(--sand); font-weight: 600; color: var(--ink); }
.legal-content td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); color: var(--body); vertical-align: top; }
.legal-content tr:last-child td { border-bottom: none; }
.legal-content code { font-family: var(--font-mono); font-size: 13px; background: var(--sand); padding: 2px 5px; }
.legal-stand { margin-top: 40px !important; font-size: 14px !important; color: var(--muted) !important; }

/* Städteseiten */
.stadt-intro p { margin: 18px 0 0; font-size: 16px; line-height: 1.65; color: var(--body); max-width: 70ch; }
.stadt-intro .lead { max-width: 62ch; }
.stadt-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 4vw, 40px); }
.stadt-facts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(36px, 4vw, 56px); grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.breadcrumb { font-size: 13px; margin-bottom: 18px; }
.breadcrumb a { color: var(--muted-dark); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { color: var(--line-dark2); margin: 0 8px; }
.breadcrumb .current { color: var(--on-dark); }

/* ==========================================================================
   22. Druck
   ========================================================================== */
@media print {
  .site-header, .site-footer, .hero-ctas, .nav-toggle, .form-card, #frist, .cookie-banner { display: none; }
  .sec--dark, .section--dark { background: #fff !important; color: #000 !important; }
}
