/* ==========================================================================
   Nordstack Cloud – Landingpage
   Vanilla CSS, keine Abhängigkeiten. Dark by default, Light per Toggle.
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */
:root {
  --bg:            #0a0e1a;
  --bg-alt:        #0d1322;
  --surface:       #121a2b;
  --surface-2:     #162034;
  --line:          #22304c;
  --line-soft:     #1a2540;

  --text:          #e8edf7;
  --text-mut:      #9aa8c4;
  --text-dim:      #6f7f9f;

  --accent:        #5eead4;
  --accent-2:      #6366f1;
  --accent-ink:    #05221c;
  --warn:          #fbbf24;
  --ok:            #34d399;

  --grad: linear-gradient(115deg, #5eead4 0%, #38bdf8 45%, #818cf8 100%);

  --radius:        14px;
  --radius-lg:     22px;
  --shadow:        0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.7);
  --shadow-lg:     0 24px 70px -24px rgba(3,7,18,.9);

  --maxw:          1180px;
  --pad:           clamp(1.1rem, 4vw, 2rem);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  color-scheme: dark;
}

html[data-theme="light"] {
  --bg:            #f7f9fc;
  --bg-alt:        #eef2f9;
  --surface:       #ffffff;
  --surface-2:     #f3f6fc;
  --line:          #dbe3ef;
  --line-soft:     #e6ecf6;

  --text:          #0e1626;
  --text-mut:      #4a5a75;
  --text-dim:      #6c7c98;

  --accent:        #0d9488;
  --accent-2:      #4f46e5;
  --accent-ink:    #ffffff;

  --grad: linear-gradient(115deg, #0d9488 0%, #0284c7 45%, #4f46e5 100%);
  --shadow:        0 1px 2px rgba(16,24,40,.06), 0 10px 30px -14px rgba(16,24,40,.25);
  --shadow-lg:     0 30px 70px -30px rgba(16,24,40,.35);

  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: .7rem 1.1rem; border-radius: 0 0 10px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* --- Layout --------------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.container.narrow { max-width: 820px; }

.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line-soft); }

.section-head { max-width: 660px; margin-bottom: clamp(2.2rem, 5vw, 3.2rem); }
.section-sub { color: var(--text-mut); font-size: 1.06rem; margin-top: .7rem; }

.grid { display: grid; gap: 1.25rem; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.25rem, 5.6vw, 3.9rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.16rem; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
  animation: blip 2.4s ease-in-out infinite;
}
@keyframes blip { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .62rem 1.1rem;
  border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: .93rem; white-space: nowrap; cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease, opacity .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad); color: #06131b;
  box-shadow: 0 8px 24px -10px color-mix(in srgb, var(--accent) 60%, transparent);
}
.btn-primary:hover { box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
html[data-theme="light"] .btn-primary { color: #fff; }

.btn-outline { border-color: var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost { color: var(--text-mut); }
.btn-ghost:hover { color: var(--text); }

.btn-lg { padding: .85rem 1.5rem; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; }

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line-soft); background: color-mix(in srgb, var(--bg) 92%, transparent); }

.header-inner { display: flex; align-items: center; gap: 1.4rem; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: .58rem; font-weight: 800; letter-spacing: -.02em; font-size: 1.08rem; }
.brand-mark { width: 28px; height: 28px; flex: none; }

.nav { margin-left: auto; }
.nav-list { display: flex; gap: .3rem; }
.nav-list a {
  display: block; padding: .45rem .7rem; border-radius: 8px;
  color: var(--text-mut); font-size: .93rem; font-weight: 500;
  transition: color .15s ease, background .15s ease;
}
.nav-list a:hover { color: var(--text); background: var(--surface); }

.header-actions { display: flex; align-items: center; gap: .5rem; }

.theme-toggle {
  width: 36px; height: 36px; border-radius: 9px;
  background: transparent; border: 1px solid var(--line); color: var(--text-mut);
  cursor: pointer; display: grid; place-items: center; font-size: 1rem;
  transition: color .15s ease, border-color .15s ease;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }

.nav-toggle { display: none; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 9px; background: transparent; cursor: pointer; }
.nav-toggle span { display: block; width: 17px; height: 2px; margin: 3px auto; background: var(--text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* --- Hero ----------------------------------------------------------------- */
.hero { position: relative; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 3.5rem); overflow: hidden; }
.hero-glow {
  position: absolute; inset: -30% -10% auto -10%; height: 780px; pointer-events: none;
  background:
    radial-gradient(46% 42% at 22% 28%, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 70%),
    radial-gradient(40% 40% at 78% 12%, color-mix(in srgb, var(--accent-2) 26%, transparent) 0%, transparent 72%);
  filter: blur(20px);
}

.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center;
}
.hero-copy h1 { margin: 1rem 0 1.1rem; }
.lead { color: var(--text-mut); font-size: clamp(1.02rem, 1.6vw, 1.15rem); max-width: 56ch; }

.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.9rem 0 1.6rem; }

.hero-facts { display: flex; flex-wrap: wrap; gap: 1.6rem; font-size: .88rem; color: var(--text-dim); }
.hero-facts strong { display: block; color: var(--text); font-size: 1.05rem; letter-spacing: -.01em; }

/* Terminal */
.hero-visual { position: relative; }
.terminal {
  border-radius: var(--radius-lg); overflow: hidden;
  background: #070b14; border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
}
html[data-theme="light"] .terminal { background: #0b1220; }
.term-bar {
  display: flex; align-items: center; gap: .4rem;
  padding: .65rem .9rem; background: #0d1424; border-bottom: 1px solid #1b2740;
}
.tdot { width: 10px; height: 10px; border-radius: 50%; }
.tdot.r { background: #ff5f57 } .tdot.y { background: #febc2e } .tdot.g { background: #28c840 }
.term-title { margin-left: .6rem; font-family: var(--mono); font-size: .74rem; color: #6b7c9c; }
.term-body {
  margin: 0; padding: 1.1rem 1.15rem 1.3rem;
  font-family: var(--mono); font-size: .78rem; line-height: 1.85; color: #cbd5e1;
  padding-bottom: 3rem;
  overflow-x: auto;
}
.c-mut { color: #5b6b8c } .c-cmd { color: #7dd3fc } .c-ok { color: #86efac } .c-hi { color: #fcd34d }
.caret { display: inline-block; width: 8px; height: 1em; background: #7dd3fc; vertical-align: -2px; margin-left: 3px; animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 0%,50% { opacity: 1 } 51%,100% { opacity: 0 } }

.float-card {
  position: absolute; padding: .7rem .9rem; border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  animation: bob 6s ease-in-out infinite;
}
.fc-1 { left: -34px; bottom: -30px; }
.fc-2 { right: -18px; top: -22px; animation-delay: -3s; }
@keyframes bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }
.fc-label { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); margin-bottom: .35rem; }
.fc-value { font-size: 1.3rem; font-weight: 700; color: var(--accent); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 32px; }
.bars i { width: 6px; height: var(--h); background: var(--grad); border-radius: 2px; }

/* Logo-Leiste */
.logo-strip {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: 1.6rem; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.8rem;
}
.logo-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); }
.logo-strip ul { display: flex; flex-wrap: wrap; gap: 1rem 1.9rem; }
.logo-strip li { font-weight: 600; color: var(--text-dim); opacity: .75; letter-spacing: -.01em; transition: color .18s ease, opacity .18s ease; }
.logo-strip li:hover { color: var(--text); opacity: 1; }

/* --- Cards ---------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

/* Features */
.features { grid-template-columns: repeat(3, 1fr); }
.feature { transition: transform .18s ease, border-color .18s ease; }
.feature:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.ficon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.15rem; margin-bottom: 1rem;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}
.feature p { color: var(--text-mut); font-size: .94rem; margin-top: .5rem; }
.feature code { font-family: var(--mono); font-size: .85em; background: var(--surface-2); padding: .1em .35em; border-radius: 5px; }

.ticks { margin-top: 1rem; display: grid; gap: .4rem; }
.ticks li { position: relative; padding-left: 1.35rem; font-size: .87rem; color: var(--text-dim); }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700; font-size: .85rem;
}
.ticks.light li { color: color-mix(in srgb, var(--text) 78%, transparent); font-size: .93rem; }

/* --- Preise --------------------------------------------------------------- */
.billing-switch {
  display: inline-flex; gap: .25rem; padding: .25rem;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 12px;
  margin-bottom: 2rem;
}
.bs-btn {
  border: 0; background: transparent; color: var(--text-mut);
  padding: .5rem 1rem; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: .9rem;
  display: inline-flex; align-items: center; gap: .5rem;
  transition: background .16s ease, color .16s ease;
}
.bs-btn.is-active { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.badge {
  font-size: .68rem; font-weight: 700; padding: .12rem .4rem; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent);
}

.pricing { grid-template-columns: repeat(4, 1fr); align-items: start; }

.plan { display: flex; flex-direction: column; position: relative; }
.plan.is-featured {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, var(--surface)) 0%, var(--surface) 55%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent), var(--shadow-lg);
}
.plan-flag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #06131b;
  font-size: .68rem; font-weight: 700; letter-spacing: .04em;
  padding: .25rem .7rem; border-radius: 999px; white-space: nowrap;
}
html[data-theme="light"] .plan-flag { color: #fff; }

.plan-name { font-size: 1.05rem; }
.plan-for { color: var(--text-dim); font-size: .84rem; margin-top: .25rem; min-height: 2.4em; }

.price { display: flex; align-items: baseline; gap: .12rem; margin-top: 1rem; letter-spacing: -.03em; }
.price .cur { font-size: 1.1rem; font-weight: 600; color: var(--text-mut); }
.price .amount { font-size: 2.35rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.price .per { font-size: .85rem; color: var(--text-dim); margin-left: .25rem; }
.price-custom { font-size: 2.05rem; font-weight: 800; }
.price-note { font-size: .78rem; color: var(--text-dim); margin: .2rem 0 1.15rem; font-variant-numeric: tabular-nums; }

.specs { margin-top: 1.25rem; padding-top: 1.15rem; border-top: 1px solid var(--line-soft); display: grid; gap: .55rem; }
.specs li { font-size: .87rem; color: var(--text-mut); }
.specs b { color: var(--text); font-variant-numeric: tabular-nums; }

.price-legend { margin-top: 1.6rem; font-size: .8rem; color: var(--text-dim); }

/* --- Konfigurator --------------------------------------------------------- */
.config { display: grid; grid-template-columns: 1.35fr .95fr; gap: 1.5rem; align-items: start; }

.config-controls {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem);
  display: grid; gap: 1.9rem;
}
.ctrl { border: 0; padding: 0; margin: 0; min-width: 0; }
.ctrl > label, .ctrl legend {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  font-weight: 600; font-size: .93rem; margin-bottom: .8rem; width: 100%; padding: 0;
}
.ctrl output {
  font-family: var(--mono); font-size: .9rem; font-weight: 500;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.scale { display: flex; justify-content: space-between; font-size: .72rem; color: var(--text-dim); margin-top: .45rem; }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 999px; background: var(--surface-2);
  border: 1px solid var(--line); cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--grad); border: 2px solid var(--bg);
  box-shadow: 0 2px 8px rgba(0,0,0,.4); cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--bg);
  background: var(--accent); cursor: grab;
}

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .9rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-2);
  font-size: .88rem; font-weight: 500; color: var(--text-mut);
  transition: all .16s ease;
}
.chip em { font-style: normal; font-size: .72rem; color: var(--accent); font-weight: 600; }
.chip input:checked + span {
  border-color: var(--accent); color: var(--text);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.opt { display: flex; gap: .75rem; align-items: flex-start; padding: .7rem .85rem; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--surface-2); cursor: pointer; margin-bottom: .55rem; transition: border-color .16s ease; }
.opt:hover { border-color: var(--line); }
.opt:last-child { margin-bottom: 0; }
.opt input { margin-top: .3rem; width: 17px; height: 17px; accent-color: var(--accent); flex: none; }
.opt b { display: block; font-size: .9rem; font-weight: 600; }
.opt small { display: block; font-size: .78rem; color: var(--text-dim); }

.config-summary {
  position: sticky; top: 92px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, var(--surface)) 0%, var(--surface) 60%);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: var(--shadow-lg);
}
.config-summary h3 { margin-bottom: 1.1rem; }
.sum-list { display: grid; gap: .7rem; margin-bottom: 1.25rem; }
.sum-list > div { display: flex; justify-content: space-between; gap: 1rem; font-size: .87rem; }
.sum-list dt { color: var(--text-dim); }
.sum-list dd { margin: 0; text-align: right; font-weight: 500; }

.sum-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 1.1rem; border-top: 1px solid var(--line);
}
.sum-total span { font-size: .87rem; color: var(--text-mut); }
.sum-total strong { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.sum-hourly { font-size: .78rem; color: var(--text-dim); margin: .2rem 0 1.25rem; font-variant-numeric: tabular-nums; }
.sum-fine { font-size: .75rem; color: var(--text-dim); margin-top: .8rem; text-align: center; }

/* --- Standorte ------------------------------------------------------------ */
.locations { grid-template-columns: repeat(3, 1fr); }
.loc h3 { display: flex; align-items: center; gap: .55rem; }
.loc-code {
  font-family: var(--mono); font-size: .7rem; font-weight: 500;
  padding: .12rem .45rem; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-dim);
}
.loc-meta { color: var(--text-dim); font-size: .84rem; margin-top: .2rem; }
.loc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid var(--line-soft); }
.loc-stats b { display: block; font-size: 1.02rem; letter-spacing: -.02em; }
.loc-stats span { font-size: .72rem; color: var(--text-dim); line-height: 1.35; display: block; }

.stats-band {
  margin-top: 1.25rem;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  background: var(--surface); overflow: hidden;
}
.stats-band > div { padding: 1.5rem 1.25rem; text-align: center; border-right: 1px solid var(--line-soft); }
.stats-band > div:last-child { border-right: 0; }
.stats-band strong { display: block; font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats-band span { font-size: .8rem; color: var(--text-dim); }

/* --- Zitate --------------------------------------------------------------- */
.quotes { grid-template-columns: repeat(3, 1fr); }
.quote { display: flex; flex-direction: column; justify-content: space-between; gap: 1.4rem; }
.quote blockquote { font-size: .97rem; color: var(--text-mut); line-height: 1.7; }
.quote blockquote::before { content: "„"; display: block; font-size: 2.6rem; line-height: .6; color: var(--accent); margin-bottom: .5rem; }
.quote figcaption b { display: block; font-size: .9rem; }
.quote figcaption span { font-size: .8rem; color: var(--text-dim); }

/* --- FAQ ------------------------------------------------------------------ */
.faq { display: grid; gap: .6rem; }
.faq details {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .16s ease;
}
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 1.05rem 3rem 1.05rem 1.25rem; position: relative;
  font-weight: 600; font-size: .97rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.15rem; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; font-weight: 400; color: var(--accent); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq-body { padding: 0 1.25rem 1.15rem; color: var(--text-mut); font-size: .93rem; }

/* --- CTA ------------------------------------------------------------------ */
.cta { padding: clamp(4rem, 9vw, 6.5rem) 0; position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 60% at 20% 40%, color-mix(in srgb, var(--accent-2) 20%, transparent), transparent 70%);
}
.cta-inner { position: relative; display: grid; grid-template-columns: 1fr .85fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.cta-copy p { color: var(--text-mut); margin: 1rem 0 1.5rem; max-width: 48ch; }
.cta-copy .ticks { gap: .6rem; }

.cta-form { padding: clamp(1.4rem, 3vw, 2rem); }
.cta-form h3 { margin-bottom: 1.25rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .85rem; font-weight: 500; color: var(--text-mut); margin-bottom: .35rem; }
.field input, .field select {
  width: 100%; padding: .68rem .85rem; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  transition: border-color .16s ease, box-shadow .16s ease;
  font-size: .93rem;
}
.field input::placeholder { color: var(--text-dim); }
.field input:focus, .field select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
.field input[aria-invalid="true"] { border-color: #f87171; }

.err { display: block; font-size: .78rem; color: #f87171; min-height: 1.1em; margin-top: .2rem; }

.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; color: var(--text-mut); cursor: pointer; margin-top: .3rem; }
.check input { margin-top: .22rem; width: 16px; height: 16px; accent-color: var(--accent); flex: none; }
.check a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.form-note { font-size: .84rem; margin-top: .8rem; text-align: center; min-height: 1.2em; }
.form-note.ok { color: var(--ok); }
.form-note.bad { color: #f87171; }

/* --- Footer --------------------------------------------------------------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line-soft); padding: clamp(3rem, 6vw, 4rem) 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.foot-brand p { color: var(--text-dim); font-size: .87rem; margin-top: .9rem; max-width: 34ch; }
.foot-status { display: flex; align-items: center; gap: .5rem; font-size: .82rem !important; color: var(--text-mut) !important; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); animation: pulse 2.2s infinite; flex: none; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.site-footer h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); margin-bottom: .9rem; }
.site-footer nav ul { display: grid; gap: .55rem; }
.site-footer nav a { font-size: .89rem; color: var(--text-mut); transition: color .15s ease; }
.site-footer nav a:hover { color: var(--accent); }

.foot-bottom {
  margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem;
  font-size: .8rem; color: var(--text-dim);
}

/* --- Scroll-Reveal -------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 1080px) {
  .features, .locations, .quotes { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .stats-band > div:nth-child(2) { border-right: 0; }
  .stats-band > div:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
}

@media (max-width: 900px) {
  .hero-inner, .config, .cta-inner { grid-template-columns: 1fr; }
  .hero-visual { order: 0; margin-top: .5rem; }
  .terminal { transform: none; }
  .fc-1, .fc-2 { display: none; }
  .config-summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }

  .nav { position: fixed; inset: 68px 0 auto 0; margin: 0; background: var(--bg);
         border-bottom: 1px solid var(--line); display: none; }
  .nav.is-open { display: block; }
  .nav-list { flex-direction: column; padding: .6rem var(--pad) 1.2rem; gap: .1rem; }
  .nav-list a { padding: .8rem .2rem; font-size: 1rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav-toggle { display: block; }
  .hide-sm { display: none; }
}

@media (max-width: 620px) {
  .features, .locations, .quotes, .pricing { grid-template-columns: 1fr; }
  .hero-facts { gap: 1.1rem 1.6rem; }
  .hero-cta .btn { width: 100%; }
  .billing-switch { width: 100%; }
  .bs-btn { flex: 1; justify-content: center; }
  .loc-stats { grid-template-columns: repeat(3, 1fr); }
  .foot-bottom { flex-direction: column; }
}

/* --- Overflow-Schutz ------------------------------------------------------ */
/* Grid-Items duerfen unter ihre min-content-Breite schrumpfen, sonst weitet
   der Terminal-Block (lange Codezeilen) die Spalte ueber das Viewport hinaus. */
.hero-inner > *, .config > *, .cta-inner > *, .grid > *, .footer-grid > *,
.legal-grid > * { min-width: 0; }
.term-body { overflow-x: auto; }

/* --- Kopfzeile auf kleinen Schirmen --------------------------------------- */
.only-sm { display: none; }

@media (max-width: 620px) {
  .header-inner { gap: .55rem; }
  .header-actions .btn-primary { display: none; }
  .only-sm { display: block; }
  .nav-list .only-sm a { color: var(--accent); font-weight: 600; border-bottom: 0; }
}

/* ==========================================================================
   Rechtsseiten (Datenschutz, Impressum, AGB)
   ========================================================================== */
.legal-hero { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.5rem, 3vw, 2.5rem); position: relative; overflow: hidden; }
.legal-hero::before {
  content: ""; position: absolute; inset: -60% 0 auto 0; height: 420px; pointer-events: none;
  background: radial-gradient(42% 50% at 30% 40%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 70%);
}
.legal-hero .container { position: relative; }
.legal-hero h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); margin: .8rem 0 .7rem; }
.legal-meta { color: var(--text-dim); font-size: .87rem; }
.legal-meta b { color: var(--text-mut); font-weight: 600; }

.legal-body { padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.legal-grid { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }

/* Inhaltsverzeichnis */
.toc { position: sticky; top: 92px; font-size: .87rem; }
.toc h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); margin-bottom: .8rem; font-weight: 600; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; display: grid; gap: .1rem; }
.toc li { counter-increment: toc; }
.toc a {
  display: block; padding: .38rem .6rem .38rem 2rem; border-radius: 8px;
  color: var(--text-mut); position: relative; line-height: 1.35;
  transition: color .15s ease, background .15s ease;
}
.toc a::before {
  content: counter(toc) "."; position: absolute; left: .6rem; top: .38rem;
  color: var(--text-dim); font-variant-numeric: tabular-nums; font-size: .8em;
}
.toc a:hover { color: var(--text); background: var(--surface); }
.toc a.is-current { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.toc a.is-current::before { color: var(--accent); }

/* Fliesstext */
.prose { max-width: 72ch; font-size: .97rem; color: var(--text-mut); }
.prose > section { padding-top: 2.6rem; }
.prose > section:first-child { padding-top: 0; }
.prose h2 {
  font-size: 1.3rem; color: var(--text); margin-bottom: .9rem;
  display: flex; gap: .7rem; align-items: baseline;
}
.prose h2 .num { color: var(--accent); font-size: .8em; font-variant-numeric: tabular-nums; flex: none; }
.prose h3 { font-size: 1.02rem; color: var(--text); margin: 1.6rem 0 .6rem; }
.prose p { margin-bottom: .9rem; }
.prose p:last-child { margin-bottom: 0; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose code { font-family: var(--mono); font-size: .87em; background: var(--surface-2); border: 1px solid var(--line-soft); padding: .08em .35em; border-radius: 5px; color: var(--text); }

.prose ul, .prose ol { margin: 0 0 .9rem 0; padding-left: 1.4rem; display: grid; gap: .45rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--text-dim); }

.prose dl { margin: 0 0 .9rem; display: grid; gap: .7rem; }
.prose dl > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: .3rem 1rem; }
.prose dt { color: var(--text); font-weight: 600; font-size: .92rem; }
.prose dd { margin: 0; }

/* Hinweiskasten */
.callout {
  border: 1px solid color-mix(in srgb, var(--warn) 40%, var(--line));
  background: color-mix(in srgb, var(--warn) 9%, var(--surface));
  border-radius: var(--radius); padding: 1.05rem 1.2rem;
  font-size: .91rem; margin-bottom: 2rem;
}
.callout b { color: var(--text); display: block; margin-bottom: .3rem; }

/* Auszufuellende Stellen */
.ph {
  background: color-mix(in srgb, var(--warn) 22%, transparent);
  color: var(--text); border-radius: 4px; padding: .04em .3em;
  font-family: var(--mono); font-size: .86em; white-space: nowrap;
}

/* Tabellen */
.table-wrap { overflow-x: auto; margin-bottom: .9rem; border: 1px solid var(--line-soft); border-radius: var(--radius); }
.prose table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .87rem; }
.prose th, .prose td { text-align: left; padding: .7rem .85rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.prose th { color: var(--text); font-weight: 600; background: var(--surface-2); white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.prose td code { white-space: nowrap; }

@media (max-width: 900px) {
  .legal-grid { grid-template-columns: 1fr; }
  .toc {
    position: static; background: var(--surface); border: 1px solid var(--line-soft);
    border-radius: var(--radius); padding: 1.1rem 1.2rem;
  }
  .toc ol { grid-template-columns: repeat(2, 1fr); }
  .prose dl > div { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .toc ol { grid-template-columns: 1fr; }
}

@media print {
  .site-header, .toc, .site-footer, .skip-link, .legal-hero::before { display: none !important; }
  body { background: #fff; color: #000; }
  .prose { max-width: none; color: #000; font-size: 11pt; }
  .prose h2, .prose h3, .prose strong { color: #000; }
  .prose > section { padding-top: 1.4rem; break-inside: avoid; }
  .prose a { color: #000; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
}
