/* =========================================================
   TecStructive Consulting — Design System
   Hell, ruhig, seriös. Ein einziger Akzent (Marineblau),
   sonst Papierweiß und Anthrazit.
   Keine externen Ressourcen (DSGVO: keine Google Fonts, kein CDN).
   ========================================================= */

:root {
  /* Flächen */
  --bg:            #ffffff;
  --bg-soft:       #f6f7f9;
  --bg-deep:       #0f1d33;   /* dunkle Kontrastflächen, sparsam eingesetzt */
  --surface:       #ffffff;
  --line:          #e3e7ec;
  --line-strong:   #cfd6df;

  /* Text */
  --text:          #14181f;
  --text-muted:    #55606f;
  --text-dim:      #6b7686;  /* dunkler als der erste Entwurf: 4,6:1 auf Weiß, WCAG-AA-Schwelle erreicht */
  --text-invert:   #eef2f8;

  /* Akzent — genau einer */
  --accent:        #14395f;
  --accent-hover:  #1d4f80;
  --accent-soft:   #eef2f7;
  --accent-line:   #c3d0de;
  --ok:            #1c6b4b;

  /* Maße */
  --radius:        10px;
  --radius-sm:     7px;
  --maxw:          1140px;
  --gutter:        clamp(20px, 5vw, 44px);

  --shadow-sm:     0 1px 2px rgba(15, 29, 51, .05);
  --shadow:        0 2px 4px rgba(15, 29, 51, .04), 0 12px 28px -14px rgba(15, 29, 51, .16);
  --shadow-lg:     0 4px 8px rgba(15, 29, 51, .05), 0 24px 56px -20px rgba(15, 29, 51, .22);

  --font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  /* Fest positionierte Elemente richten sich am Viewport inkl. Scrollbalken aus und
     wären sonst minimal breiter als der Inhaltsbereich. */
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0 0 .55em;
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 640;
  color: var(--text);
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.14rem; letter-spacing: -0.01em; }
p  { margin: 0 0 1em; color: var(--text-muted); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

section { position: relative; padding: clamp(64px, 8vw, 106px) 0; }
section.tinted { background: var(--bg-soft); border-block: 1px solid var(--line); }
section.dark {
  background: var(--bg-deep);
  color: var(--text-invert);
}
section.dark h2, section.dark h3 { color: #fff; }
section.dark p { color: #b9c5d6; }
section.dark .eyebrow { color: #7fb0e6; }

/* ---------- Bausteine ---------- */

.eyebrow {
  display: block;
  font-size: .76rem;
  font-weight: 650;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.lead { font-size: clamp(1.02rem, 1.4vw, 1.14rem); max-width: 64ch; color: var(--text-muted); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

.rule { width: 46px; height: 3px; background: var(--accent); margin-bottom: 22px; }
.section-head.center .rule { margin-inline: auto; }

/* Hervorgehobenes Zitat — trägt die Kernsätze */
blockquote.claim {
  margin: 0;
  padding: 26px 0 26px 28px;
  border-left: 3px solid var(--accent);
  font-size: clamp(1.15rem, 2vw, 1.42rem);
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
}
blockquote.claim cite { display: block; margin-top: 12px; font-size: .84rem; font-style: normal; color: var(--text-dim); letter-spacing: .02em; }
section.dark blockquote.claim { border-left-color: #7fb0e6; color: #fff; }
section.dark blockquote.claim cite { color: #93a5bd; }

/* Illustration "KI liest → Regel rechnet" im Grundregel-Abschnitt */
.grundregel-deco { display: block; width: 176px; height: auto; margin-bottom: 24px; }

/* Ergebnis-Eigenschaften als Pillen statt Fließtext-Aufzählung */
.rule-pills-intro { margin: 26px 0 12px; color: #cfdcee; font-size: .96rem; }
.rule-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.rule-pills span {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.06);
  color: #dce6f5;
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: -.005em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: var(--shadow); }
.btn-ghost { background: #fff; border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 10px 18px; font-size: .88rem; }
section.dark .btn-ghost { background: transparent; border-color: rgba(255,255,255,.3); color: #fff; }
section.dark .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }

.grid { display: grid; gap: 20px; }
/* min(…, 100%) verhindert, dass eine Spalte breiter wird als der Bildschirm —
   sonst ragt der Inhalt auf schmalen Geräten aus dem sichtbaren Bereich. */
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(228px, 100%), 1fr)); }

.ico {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
}
.ico svg { width: 21px; height: 21px; stroke-width: 1.6; }

/* ---------- Kopfzeile ---------- */

header.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
header.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 12px rgba(15,29,51,.05); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 74px; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.02em; font-size: 1.02rem; color: var(--text); }
.logo-icon { width: 34px; height: 34px; flex: none; display: block; object-fit: contain; }
.logo small { display: block; font-size: .63rem; font-weight: 500; letter-spacing: .17em; text-transform: uppercase; color: var(--text-dim); }

/* Fußzeile: Logo etwas größer, mehr Luft zum Text darunter */
.foot-about .logo-icon { width: 38px; height: 38px; }

.nav-links { display: flex; align-items: center; gap: 27px; }
.nav-links a { font-size: .92rem; color: var(--text-muted); font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent; transition: color .18s ease, border-color .18s ease; }
.nav-links a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.burger { display: none; width: 42px; height: 42px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: #fff; color: var(--text); cursor: pointer; }

/* ---------- Sprachumschalter ---------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  flex: none;
}
.lang-switch .lang-btn {
  padding: 5px 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .03em;
  cursor: pointer;
  font-family: inherit;
  transition: background .18s ease, color .18s ease;
}
.lang-switch .lang-btn:hover { color: var(--accent); }
.lang-switch .lang-btn.on { background: var(--accent); color: #fff; }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; padding-top: clamp(120px, 15vw, 172px); padding-bottom: clamp(56px, 7vw, 84px); }
.hero-single { position: relative; z-index: 1; }
.hero-content { max-width: 700px; }

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

.hero p.lead { font-size: clamp(1.04rem, 1.6vw, 1.18rem); }

/* Vier Kernthemen als Pillen direkt unter der Headline */
.hero-chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 20px 0 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .83rem;
  font-weight: 650;
  letter-spacing: -0.005em;
}
.chip svg { width: 15px; height: 15px; stroke-width: 1.8; flex: none; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Vertrauens-Zeile: kurze, konkrete Aussagen statt Fließtext */
.hero-note { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .87rem; color: var(--text-dim); display: flex; flex-wrap: wrap; gap: 10px 24px; }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note svg { width: 15px; height: 15px; stroke-width: 1.8; color: var(--accent); flex: none; }

/* Dekoratives Liniennetz — dezenter Hintergrund hinter dem Hero-Text, deutet "vernetzte Prozesse" an */
.hero-deco {
  position: absolute;
  top: -30px;
  right: clamp(-60px, -2vw, 10px);
  width: min(46vw, 460px);
  height: auto;
  opacity: .4;
  pointer-events: none;
  z-index: 0;
}

/* Kontrast-Statement: erste Zeile gedimmt, zweite Zeile die eigentliche Aussage */
.hero-contrast {
  margin: 22px 0 0;
  font-size: clamp(1.02rem, 1.4vw, 1.14rem);
  line-height: 1.5;
  max-width: 60ch;
}
.hero-contrast .dim { display: block; color: var(--text-dim); text-decoration: line-through; text-decoration-color: var(--line-strong); margin-bottom: 4px; }
.hero-contrast span:not(.dim) { display: block; color: var(--text); font-weight: 560; letter-spacing: -0.01em; }

/* ---------- Grundsätze statt Kennzahlen ---------- */

.principles { border-block: 1px solid var(--line); background: var(--bg-soft); padding: 0; }
.principles-inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.principle { padding: 32px 30px; border-right: 1px solid var(--line); }
.principle:last-child { border-right: 0; }
.principle b { display: block; font-size: 1.02rem; margin-bottom: 6px; letter-spacing: -.01em; }
.principle span { font-size: .9rem; color: var(--text-muted); }

/* ---------- Problem ---------- */

/* Illustration "unstrukturiert → strukturiert" über der Problem-Liste */
.problem-deco {
  display: block;
  width: min(100%, 460px);
  height: auto;
  margin: 0 0 34px;
}

/* Vier kurze Leitfragen — Icon-Liste statt Fließtext */
.problem-questions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 30px; }
.pq {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
}
.pq-num {
  flex: none;
  font-family: var(--mono); font-size: .78rem; font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
}
.pq p { margin: 0; font-size: .96rem; color: var(--text); font-weight: 550; }

.problem-closing { max-width: 760px; font-size: 1.02rem; color: var(--text-muted); margin-bottom: 30px; }

/* Kurzer, hervorgehobener Callout */
.highlight-box {
  max-width: 760px;
  border-radius: var(--radius);
  border: 1px solid var(--accent-line);
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 22px 26px;
  margin-bottom: 8px;
}
.highlight-box b { display: block; font-size: 1.02rem; margin-bottom: 6px; color: var(--text); letter-spacing: -.01em; }
.highlight-box p { margin: 0; font-size: .94rem; color: var(--text-muted); }

.solution-box {
  border-radius: var(--radius);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  padding: 32px;
  height: 100%;
}
.solution-box ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 13px; }
.solution-box li { display: flex; gap: 11px; align-items: flex-start; font-size: .94rem; color: var(--text-muted); }
.solution-box li::before {
  content: "";
  flex: none; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  margin-top: 9px;
}
.solution-box li b { color: var(--text); }

/* ---------- Leistungen ---------- */

/* Illustration "acht zusammenhängende Bausteine" über der Sektionsüberschrift */
.leistungen-deco { display: block; width: min(100%, 260px); height: auto; margin: 0 auto 20px; }

.svc h3 { margin-bottom: 9px; }
.svc p { font-size: .94rem; margin-bottom: 16px; }
.svc ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 7px; }
.svc li { font-size: .87rem; color: var(--text-dim); padding-left: 15px; position: relative; }
.svc li::before { content: "–"; position: absolute; left: 0; color: var(--accent); }
.svc .more { font-size: .86rem; color: var(--accent); font-weight: 600; }
.svc .more::after { content: " →"; }

/* ---------- Stufen ---------- */

.stufen { position: relative; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }

/* Gepunktete Weg-Linie mit Marker-Punkten, führt visuell durch die sechs Stufen */
.vorgehen-path { position: absolute; left: 34px; top: 6px; bottom: 6px; width: 14px; height: calc(100% - 12px); pointer-events: none; z-index: 0; }

.stufe {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 78px 1fr 168px;
  gap: 24px;
  padding: 26px 28px;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background .2s ease;
}
.stufe:last-child { border-bottom: 0; }
.stufe:hover { background: var(--bg-soft); }
.stufe .num {
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  padding: 6px 0 0;
  border-top: 2px solid var(--accent);
  letter-spacing: .06em;
}
.stufe h3 { margin-bottom: 6px; font-size: 1.08rem; }
.stufe p { margin: 0; font-size: .94rem; }
.stufe .meta { font-size: .84rem; color: var(--text-dim); text-align: right; padding-top: 3px; }
.stufe .meta b { display: block; color: var(--text); font-weight: 600; font-size: .88rem; }
.stufe.laufend .num { color: var(--ok); border-top-color: var(--ok); }

/* ---------- Branchen ---------- */

.branch {
  padding: 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.branch:hover { border-color: var(--accent-line); box-shadow: var(--shadow-sm); }
.branch b { font-size: .98rem; display: block; margin-bottom: 5px; }
.branch p { font-size: .87rem; margin: 0; }

/* ---------- Rechner ---------- */

.calc {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.calc-in { padding: clamp(26px, 3.5vw, 40px); border-right: 1px solid var(--line); }
.calc-out { padding: clamp(26px, 3.5vw, 40px); background: var(--bg-soft); display: flex; flex-direction: column; justify-content: center; }
.field { margin-bottom: 24px; }
.field:last-child { margin-bottom: 0; }
.field label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .9rem; font-weight: 500; margin-bottom: 11px; color: var(--text); }
.field label output { font-family: var(--mono); color: var(--accent); font-size: .92rem; font-weight: 600; flex: none; }
.field .hint { display: block; font-size: .78rem; color: var(--text-dim); margin-top: 8px; }

input[type="range"] {
  width: 100%; height: 4px; border-radius: 99px;
  appearance: none; -webkit-appearance: none;
  background: linear-gradient(90deg, var(--accent) var(--p, 40%), var(--line-strong) var(--p, 40%));
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 5px solid var(--accent);
  cursor: pointer; box-shadow: var(--shadow-sm);
}
input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 5px solid var(--accent); cursor: pointer;
}
input[type="range"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }

.result-label { font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; color: var(--text-dim); font-weight: 650; margin-bottom: 10px; }
.result-big { font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 660; letter-spacing: -.035em; line-height: 1.05; margin-bottom: 4px; color: var(--accent); }
.result-sub { font-size: .9rem; color: var(--text-muted); margin-bottom: 24px; }
.result-rows { display: grid; gap: 0; margin-bottom: 22px; border-top: 1px solid var(--line); }
.result-row { display: flex; justify-content: space-between; gap: 14px; font-size: .9rem; padding: 11px 0; border-bottom: 1px solid var(--line); }
.result-row span { color: var(--text-muted); }
.result-row b { font-family: var(--mono); font-weight: 600; color: var(--text); flex: none; }
.result-row.total b { color: var(--accent); }
.calc-note { font-size: .78rem; color: var(--text-dim); line-height: 1.6; margin: 16px 0 0; }

/* ---------- Potenzialcheck ---------- */

.check-q {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: #fff;
}
.check-q:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.check-q:last-of-type { border-bottom: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }
.check-q p { margin: 0; font-size: .94rem; color: var(--text); }
.toggle { display: flex; gap: 7px; flex: none; }
.toggle button {
  padding: 6px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text-muted);
  font-size: .84rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: all .18s ease;
}
.toggle button:hover { border-color: var(--accent); color: var(--accent); }
.toggle button.on { background: var(--accent); border-color: var(--accent); color: #fff; }

.check-result {
  margin-top: 22px;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
}
.check-result h3 { margin-bottom: 4px; }
.meter { height: 6px; border-radius: 99px; background: #fff; border: 1px solid var(--line); overflow: hidden; margin: 16px 0 14px; }
.meter i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .5s ease; }

/* ---------- FAQ ---------- */

.faq details { border: 1px solid var(--line); border-bottom: 0; background: #fff; }
.faq details:first-of-type { border-radius: var(--radius) var(--radius) 0 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }
.faq summary {
  padding: 19px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: .99rem;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.35rem; font-weight: 300; flex: none; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq .answer { padding: 0 24px 20px; }
.faq .answer p { margin: 0; font-size: .94rem; }

/* ---------- Kontakt ---------- */

.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(28px, 4vw, 52px); align-items: start; }
.kontakt-deco { display: block; width: min(100%, 190px); height: auto; margin: 0 0 22px; }
.contact-item { display: flex; gap: 15px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.contact-item:last-of-type { border-bottom: 0; }
.contact-item .ico { margin: 0; width: 38px; height: 38px; flex: none; }
.contact-item b { display: block; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 2px; }
.contact-item a, .contact-item p { font-size: .97rem; color: var(--text); margin: 0; }
.contact-item a:hover { color: var(--accent); }

form.contact { display: grid; gap: 15px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
form.contact label { font-size: .84rem; font-weight: 500; color: var(--text-muted); display: block; margin-bottom: 6px; }
form.contact input, form.contact textarea, form.contact select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: .94rem;
  transition: border-color .18s ease, box-shadow .18s ease;
}
form.contact textarea { min-height: 128px; resize: vertical; }
form.contact input:focus, form.contact textarea:focus, form.contact select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 57, 95, .1);
}
form.contact input::placeholder, form.contact textarea::placeholder { color: var(--text-dim); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--text-dim); }
.consent input { width: auto; margin-top: 3px; accent-color: var(--accent); }
.consent a { color: var(--accent); text-decoration: underline; }

/* ---------- Abschlussband ---------- */

.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { max-width: 58ch; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Fußzeile ---------- */

footer.site { border-top: 1px solid var(--line); padding: 52px 0 30px; background: var(--bg-soft); }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; margin-bottom: 38px; }
.foot-grid h4 { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 14px; font-weight: 650; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot-grid a { font-size: .89rem; color: var(--text-muted); }
.foot-grid a:hover { color: var(--accent); }
.foot-about p { font-size: .89rem; margin-top: 15px; max-width: 36ch; }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid var(--line);
  font-size: .83rem; color: var(--text-dim);
}
.foot-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.foot-badges span { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .74rem; background: #fff; }
.foot-badges a { color: inherit; }

/* ---------- Rechtstexte ---------- */

.legal { padding-top: 132px; padding-bottom: 80px; }
.legal .wrap { max-width: 800px; }
.legal h2 { font-size: 1.38rem; margin-top: 44px; }
.legal h3 { font-size: 1.04rem; margin-top: 28px; }
.legal p, .legal li { color: var(--text-muted); font-size: .96rem; }
.legal ul { padding-left: 20px; display: grid; gap: 7px; }
.legal a { color: var(--accent); text-decoration: underline; }
.legal .box { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-soft); padding: 20px 24px; margin: 20px 0; }
.legal .todo { border-color: #e6d3a3; background: #fdf8ec; }
.legal .todo b { color: #7a5a10; }

/* ---------- Scroll-Einblendung ---------- */

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsiv ---------- */

@media (max-width: 980px) {
  .hero-deco { display: none; }
  .contact-grid, .calc { grid-template-columns: 1fr; }
  .calc-in { border-right: 0; border-bottom: 1px solid var(--line); }
  .principles-inner { grid-template-columns: 1fr; }
  .principle { border-right: 0; border-bottom: 1px solid var(--line); }
  .principle:last-child { border-bottom: 0; }
  .stufe { grid-template-columns: 60px 1fr; }
  .stufe .meta { grid-column: 2; text-align: left; padding-top: 10px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Kopfzeile: eigener Umschaltpunkt ----------
   Die waagerechte Navigation braucht rund 1.120 px (Logo 133 + sieben Links 642 +
   Sprachumschalter/Button 219 + Abstaende 125). Lag der Umschaltpunkt bei 760 px,
   war die Kopfzeile zwischen 760 und 1.120 px zu breit: der "Erstgespraech"-Button
   wurde rechts abgeschnitten (bei 1024 px reichte er bis 1085 px, sichtbar war bis
   1009 px) — auf Tablets und kleinen Laptops also der wichtigste Knopf unerreichbar.
   Deshalb klappt die Navigation jetzt schon ab 1.120 px ins Menue. */
@media (max-width: 1120px) {
  .nav-links {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 6px 0 14px;
    transform: translateY(-135%);
    transition: transform .25s ease;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 14px var(--gutter); font-size: 1rem; border-bottom: 0; }
  .burger { display: grid; place-items: center; }
}

/* Der Erstgespraechs-Knopf bleibt so lange wie moeglich sichtbar und verschwindet
   erst, wenn daneben wirklich kein Platz mehr ist. */
@media (max-width: 560px) {
  .nav-cta .btn { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .check-q { flex-direction: column; align-items: flex-start; gap: 12px; }
  blockquote.claim { padding-left: 20px; }
  .problem-questions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
