/* SignalBrief Studio – ruhiges Instrumenten-Design: Dunkelblau, helle Flächen, sparsames Türkis. */
:root {
  --navy-900: #0a1a30;
  --navy-800: #0f2440;
  --navy-700: #183457;
  --ink: #14233a;
  --ink-soft: #46566d;
  --line: #d9e0e8;
  --line-strong: #bcc7d4;
  --paper: #ffffff;
  --surface: #f4f6f9;
  --surface-2: #eaeef3;
  --teal: #0a7a74;        /* Text/Buttons auf hell: Kontrast ≥ 4.5:1 */
  --teal-strong: #08625d;
  --teal-light: #5fd0c7;  /* Akzent auf Dunkelblau */
  --teal-tint: #e3f4f2;
  --amber-tint: #fbf3e1;
  --amber-ink: #6b4a0b;
  --error: #b42318;
  --error-tint: #fdecea;
  --focus: #f2b33d;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(10, 26, 48, .06), 0 8px 24px rgba(10, 26, 48, .08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
a { color: var(--teal); text-underline-offset: 2px; }
a:hover { color: var(--teal-strong); }

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

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.container.narrow { width: min(760px, 100% - 32px); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 6px;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.3em;
  font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2;
  border-radius: 8px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-strong); color: #fff; }
.btn-primary[disabled] { opacity: .65; cursor: progress; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-ghost-dark { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-ghost-dark:hover { background: var(--teal-tint); color: var(--teal-strong); }
.btn-small { min-height: 40px; padding: .5em 1em; font-size: .95rem; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy-900); color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .01em; }
.brand:hover { color: #fff; }
.brand-mark { width: 26px; height: 26px; flex: none; }
.main-nav { display: flex; gap: 22px; margin-left: auto; }
.main-nav a { color: #d3dceb; text-decoration: none; font-size: .97rem; }
.main-nav a:hover { color: #fff; text-decoration: underline; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { color: #d3dceb; font-size: .95rem; font-weight: 600; text-decoration: none; padding: 6px 4px; }
.lang-switch:hover { color: #fff; text-decoration: underline; }

@media (max-width: 860px) {
  .main-nav { display: none; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 420px) {
  .brand-name { font-size: .95rem; }
  .header-actions .btn-small { padding: .45em .75em; font-size: .9rem; }
  .header-inner { gap: 10px; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: #fff;
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.eyebrow {
  display: inline-block; font-size: .85rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal-light); margin-bottom: 18px;
}
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: #d3dceb; max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-note { margin-top: 22px; font-size: .93rem; color: #a9b8cc; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* Dokumenten-Stapel als Hauptvisual */
.doc-stack { position: relative; min-height: 430px; }
.doc-stack .tag-fictive { position: absolute; top: -6px; right: 0; z-index: 5; }
.doc {
  position: absolute; background: var(--paper); color: var(--ink);
  border-radius: 8px; box-shadow: 0 18px 40px rgba(0,0,0,.35);
  font-size: .72rem; line-height: 1.45;
}
.doc-onepager { width: 68%; left: 0; top: 18px; padding: 18px 18px 16px; z-index: 2; }
.doc-slide { width: 62%; right: 0; top: 150px; aspect-ratio: 16 / 9; padding: 14px 16px; z-index: 3; display: flex; flex-direction: column; }
.doc-faq { width: 48%; left: 14%; bottom: 0; padding: 14px 16px; z-index: 4; }
.doc-label { font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.doc-title { font-weight: 700; font-size: .86rem; line-height: 1.3; margin-bottom: 10px; }
.doc-block { border-left: 3px solid var(--line-strong); padding: 4px 0 4px 8px; margin-bottom: 7px; }
.doc-block b { display: block; font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; }
.doc-block.task { border-color: var(--navy-700); }
.doc-block.result { border-color: var(--teal); }
.doc-block.open { border-color: #c9922b; }
.doc-lines span { display: block; height: 5px; background: var(--surface-2); border-radius: 3px; margin-top: 5px; }
.doc-lines span:nth-child(2) { width: 82%; }
.doc-lines span:nth-child(3) { width: 64%; }
.slide-body { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.slide-figure {
  border: 1px dashed var(--line-strong); border-radius: 4px; background: var(--surface);
  display: grid; place-items: center; text-align: center; color: var(--ink-soft); font-size: .6rem; padding: 6px;
}
.slide-points { margin: 0; padding-left: 14px; }
.slide-foot { font-size: .58rem; color: var(--ink-soft); margin-top: 6px; }
.doc-faq p { margin: 0 0 4px; }
.doc-faq .q { font-weight: 700; }

@media (max-width: 900px) {
  .doc-stack { min-height: 400px; max-width: 560px; margin-inline: auto; width: 100%; }
}
@media (max-width: 520px) {
  .doc-stack { min-height: 0; display: grid; gap: 14px; padding-top: 34px; }
  .doc { position: static; width: auto !important; box-shadow: 0 10px 24px rgba(0,0,0,.3); }
  .doc-slide { aspect-ratio: auto; }
  .doc-stack .tag-fictive { top: 0; left: 0; right: auto; }
}

/* ---------- Tags ---------- */
.tag-fictive {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--amber-tint); color: var(--amber-ink);
  border: 1px solid #e8cf98; border-radius: 999px;
  padding: 3px 12px; font-size: .8rem; font-weight: 650;
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }
.kicker { font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; display: block; }

/* ---------- Muster ---------- */
.sample-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.35fr); gap: 24px; align-items: start; }
.sample-col { margin: 0; min-width: 0; }
.sample-arrow { align-self: center; color: var(--teal); font-size: .9rem; font-weight: 650; text-align: center; }
.sample-arrow svg { width: 40px; height: 40px; margin: 0 auto 4px; }
@media (max-width: 960px) {
  .sample-grid { grid-template-columns: minmax(0, 1fr); }
  .datasheet dl { grid-template-columns: minmax(0, auto) minmax(0, 1fr); }
  .placeholder { white-space: normal; }
  .sample-arrow svg { transform: rotate(90deg); }
}
.sample-caption { font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }

.datasheet {
  background: #fbfbf8; border: 1px solid var(--line-strong); border-radius: 6px;
  font-family: var(--mono); font-size: .84rem; line-height: 1.55; color: #26313f;
  padding: 20px; box-shadow: var(--shadow);
}
.datasheet-head { display: flex; justify-content: space-between; gap: 12px; border-bottom: 2px solid #26313f; padding-bottom: 8px; margin-bottom: 12px; font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.datasheet h3 { font-family: var(--mono); font-size: .95rem; margin-bottom: 12px; }
.datasheet dl { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 6px 14px; margin: 0 0 14px; }
.datasheet dt { color: #5a6676; }
.datasheet dd { margin: 0; }
.placeholder { background: var(--surface-2); border-radius: 3px; padding: 0 4px; color: #5a6676; white-space: nowrap; }
.datasheet .note { border-top: 1px dashed var(--line-strong); padding-top: 10px; margin: 0; font-style: italic; }

.onepager {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: clamp(20px, 3vw, 32px);
}
.onepager-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; color: var(--ink-soft); border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 18px; }
.onepager h3 { font-size: 1.3rem; margin-bottom: 18px; }
.op-block { border-left: 4px solid var(--line-strong); padding: 4px 0 4px 16px; margin-bottom: 20px; }
.op-block h4 { margin: 0 0 6px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.op-block p, .op-block ul { margin: 0; }
.op-block ul { padding-left: 1.2em; }
.op-block .meta { font-size: .88rem; color: var(--ink-soft); margin-top: 6px; }
.op-task { border-color: var(--navy-700); }
.op-task h4 { color: var(--navy-700); }
.op-result { border-color: var(--teal); }
.op-result h4 { color: var(--teal); }
.op-open { border-color: #c9922b; }
.op-open h4 { color: #8a5d0c; }
.onepager-foot { font-size: .85rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 12px; margin: 0; }
.sample-disclaimer { margin-top: 24px; font-size: .95rem; color: var(--ink-soft); max-width: 760px; }

/* ---------- Ablauf ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy-800); color: #fff; font-weight: 700; margin-bottom: 16px;
}
.steps p { color: var(--ink-soft); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Preis + Formular ---------- */
.pilot-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .pilot-grid { grid-template-columns: 1fr; } }
.price-card { background: var(--navy-800); color: #fff; border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.price-card h3 { color: #fff; font-size: 1.05rem; font-weight: 650; margin-bottom: 4px; }
.price { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 750; line-height: 1.1; margin: 0 0 4px; }
.price small { font-size: 1rem; font-weight: 500; color: #c3cfdf; }
.price-scope { color: #c3cfdf; margin-bottom: 22px; }
.check-list { list-style: none; padding: 0; margin: 0 0 22px; }
.check-list li { position: relative; padding: 10px 0 10px 32px; border-top: 1px solid rgba(255,255,255,.12); }
.check-list li::before {
  content: ""; position: absolute; left: 4px; top: 17px; width: 14px; height: 8px;
  border-left: 2.5px solid var(--teal-light); border-bottom: 2.5px solid var(--teal-light); transform: rotate(-45deg);
}
.price-note { font-size: .93rem; color: #c3cfdf; margin: 0; }
.price-note + .price-note { margin-top: 10px; }

.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); }
.form-card h3 { font-size: 1.3rem; }
.notice {
  border-radius: 8px; padding: 12px 14px; font-size: .95rem; margin-bottom: 18px;
  background: var(--teal-tint); border: 1px solid #b8e0dc;
}
.notice.warn { background: var(--amber-tint); border-color: #e8cf98; color: #4a3608; }
.notice p { margin: 0; }
.notice p + p { margin-top: 6px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 650; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--ink-soft); font-size: .93rem; }
.field .req { font-weight: 400; color: var(--ink-soft); font-size: .93rem; }
.field .hint { display: block; font-size: .9rem; color: var(--ink-soft); margin-top: 4px; }
.field input {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line-strong); border-radius: 8px;
}
.field input:hover { border-color: #8c9bb0; }
.field input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--navy-700); }
.field input[aria-invalid="true"] { border-color: var(--error); background: #fffafa; }
.field-error { display: block; color: var(--error); font-size: .93rem; font-weight: 600; margin-top: 6px; }
.field-error:empty { display: none; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-legal { font-size: .9rem; color: var(--ink-soft); margin: 14px 0 0; }.form-status { margin-top: 14px; }
.form-status:empty { display: none; }
.form-result { border-radius: 8px; padding: 18px 20px; }
.form-result h3, .form-result h1 { font-size: 1.2rem; margin-bottom: 6px; }
.form-result p:last-child { margin-bottom: 0; }
.form-result.is-success { background: var(--teal-tint); border: 1px solid #b8e0dc; }
.form-result.is-error { background: var(--error-tint); border: 1px solid #f3b9b3; color: #6d1a12; }
.form-result:focus { outline: 3px solid var(--focus); outline-offset: 3px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-weight: 650; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
  transform: translateY(-70%) rotate(45deg); transition: transform .15s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 0 20px; color: var(--ink-soft); max-width: 70ch; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #a9b8cc; padding: 36px 0; font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.site-footer a { color: #d3dceb; }
.site-footer a:hover { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }

/* ---------- Rechtliche Seiten ---------- */
.legal { padding: 48px 0 72px; }
.legal h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal address { font-style: normal; }
.ph {
  background: var(--amber-tint); color: var(--amber-ink); border: 1px dashed #d6ad5a;
  border-radius: 4px; padding: 0 5px; font-weight: 650;
}
.legal .notice { margin: 24px 0; }

.result-page { background: var(--surface); min-height: 100vh; display: grid; place-items: center; padding: 32px 0; }
