/* ============================================================
   DH Cloudservices – Designsystem (dunkle Variante, v2)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,800&family=Hanken+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@600;700&display=swap');

:root {
  --bg:        #0A1310;
  --bg-2:      #0E1B16;
  --card:      #13251E;
  --card-2:    #172C23;
  --line:      rgba(108, 182, 88, 0.16);
  --line-2:    rgba(108, 182, 88, 0.34);

  --text:      #E9F1EA;
  --text-2:    #B9C9BD;
  --muted:     #7E9187;

  --leaf:      #6CB658;
  --leaf-2:    #8AD46E;
  --leaf-dim:  rgba(108, 182, 88, 0.10);
  --spark:     #CDE85F;

  --radius:    16px;
  --radius-lg: 24px;
  --maxw:      1180px;

  --shadow:    0 20px 50px -20px rgba(0, 0, 0, 0.7);
  --glow:      0 0 0 1px var(--line-2), 0 24px 60px -24px rgba(108, 182, 88, 0.45);

  --font-display: 'Bricolage Grotesque', 'Hanken Grotesk', system-ui, sans-serif;
  --font-body:    'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

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

img { max-width: 100%; display: block; }
a { color: var(--leaf-2); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Typografie ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--leaf);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--leaf); border-radius: 2px; }

.lead { font-size: 1.12rem; color: var(--text-2); max-width: 60ch; }
.section-head { max-width: 60ch; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head p { color: var(--text-2); margin-top: 16px; }

section { padding: clamp(72px, 9vw, 118px) 0; }
.section-alt { background: var(--bg-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-body); font-weight: 700; font-size: 0.98rem;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none !important; white-space: nowrap;
}
.btn-primary { background: var(--leaf); color: #08120C; }
.btn-primary:hover { background: var(--leaf-2); transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(108,182,88,.7); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--leaf-dim); border-color: var(--leaf); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10, 19, 16, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(10,19,16,.96); }
.nav { display: flex; align-items: center; gap: 20px; height: 74px; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none !important; flex-shrink: 0; }
.brand img { height: 40px; width: auto; display: block; }
.brand .wordmark {
  font-family: var(--font-display); font-weight: 800; font-size: 1.16rem;
  letter-spacing: -0.02em; line-height: 1; color: var(--text); white-space: nowrap;
}
.brand .wordmark span { color: var(--leaf); }
/* Kopfzeile: Symbol etwas größer */
.brand-header img { height: 46px; width: auto; }
.brand-footer img { height: 44px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-links a {
  padding: 9px 12px; border-radius: 10px; color: var(--text-2);
  font-weight: 600; font-size: 0.93rem; text-decoration: none !important;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text); background: var(--leaf-dim); }
.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.85rem; font-weight: 700;
  color: var(--text); padding: 10px 15px; border: 1px solid var(--line);
  border-radius: 999px; text-decoration: none !important;
}
.nav-phone:hover { border-color: var(--leaf); color: var(--leaf-2); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; cursor: pointer; color: var(--text); }
.cta-short { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(70px, 9vw, 118px) 0 clamp(60px, 7vw, 96px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% 30% 40% -10%;
  background: radial-gradient(60% 60% at 30% 40%, rgba(108,182,88,.16), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; right: -10%; top: -20%; width: 55%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(138,212,110,.12), transparent);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--leaf-2); }
.hero .lead { margin-top: 22px; font-size: 1.16rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; }
.hero-points li { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 0.93rem; font-weight: 600; }
.hero-points svg { flex: none; color: var(--leaf); }

.hero-panel {
  background: linear-gradient(160deg, var(--card-2), var(--card));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow);
}
.hero-panel h3 { font-size: 0.98rem; color: var(--text-2); font-weight: 600; margin-bottom: 18px; }
.device-list { display: grid; gap: 11px; }
.device {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 13px;
}
.device-ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; background: var(--leaf-dim); border-radius: 10px; color: var(--leaf-2); }
.device b { display: block; font-size: 0.96rem; }
.device small { color: var(--muted); font-size: 0.83rem; }

/* ---------- Kennzahlen-Streifen ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 34px 0; text-align: center; }
.strip b { display: block; font-family: var(--font-mono); font-size: 1.5rem; color: var(--leaf-2); }
.strip span { font-size: 0.87rem; color: var(--muted); }

/* ---------- Mitarbeiter-Rechner ---------- */
.calc {
  max-width: 780px; margin: 0 auto 40px;
  background: linear-gradient(160deg, var(--card-2), var(--card));
  border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow);
}
.calc-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 22px; }
.calc-field { flex: 1 1 230px; }
.calc-field label { display: block; font-weight: 700; font-size: 0.93rem; margin-bottom: 9px; }
.calc-input-wrap { display: flex; align-items: center; gap: 10px; }
.calc-input-wrap button {
  width: 46px; height: 54px; flex: none; border-radius: 12px; cursor: pointer;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  color: var(--text); font-size: 1.35rem; font-weight: 700; line-height: 1;
  transition: border-color .15s, background .15s;
}
.calc-input-wrap button:hover { border-color: var(--leaf); background: var(--leaf-dim); }
.calc-input-wrap input {
  flex: 1; min-width: 0; height: 54px; text-align: center;
  background: rgba(0,0,0,.3); border: 1px solid var(--line-2); border-radius: 12px;
  color: var(--text); font-family: var(--font-mono); font-size: 1.35rem; font-weight: 700;
}
.calc-input-wrap input:focus { outline: none; border-color: var(--leaf); }
.calc-input-wrap input::-webkit-outer-spin-button,
.calc-input-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-input-wrap input[type=number] { -moz-appearance: textfield; }

.calc-result { flex: 1 1 270px; }
.calc-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.calc-result strong { display: block; font-family: var(--font-display); font-size: 1.4rem; color: var(--leaf-2); line-height: 1.25; margin-top: 5px; }
.calc-note { font-size: 0.87rem; color: var(--text-2); margin-top: 4px; }

/* ---------- KI-Umschalter ---------- */
.switch-center { display: flex; justify-content: center; }
.ki-switch {
  display: inline-flex; padding: 5px; gap: 4px; margin-bottom: 14px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 999px;
}
.ki-opt {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; border: none; cursor: pointer;
  background: transparent; color: var(--text-2);
  font-family: var(--font-body); font-weight: 700; font-size: 0.96rem;
  transition: background .22s ease, color .22s ease;
}
.ki-opt[aria-pressed="true"] { background: var(--leaf); color: #08120C; }
.ki-opt.ki-opt-ki[aria-pressed="true"] { background: var(--spark); color: #14210B; }
.ki-hint { text-align: center; color: var(--muted); font-size: 0.91rem; margin-bottom: 46px; }
.ki-hint b { color: var(--spark); font-family: var(--font-mono); }

/* ---------- Preiskacheln ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.tile {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 28px 28px; transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.tile.is-match { border-color: var(--leaf); box-shadow: var(--glow); transform: translateY(-4px); }
.tile-badge {
  position: absolute; top: -13px; left: 28px;
  background: var(--leaf); color: #08120C; font-size: 0.72rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; padding: 5px 13px; border-radius: 999px;
  opacity: 0; transform: translateY(-6px); transition: opacity .25s ease, transform .25s ease;
}
.tile.is-match .tile-badge { opacity: 1; transform: translateY(0); }
.tile-cap { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--leaf); }
.tile h3 { margin: 10px 0 6px; font-size: 1.38rem; }
.tile-sub { color: var(--muted); font-size: 0.91rem; }

.tile-price { margin: 24px 0 6px; display: flex; align-items: baseline; gap: 8px; }
.tile-price .amount { font-family: var(--font-mono); font-size: 2.5rem; font-weight: 700; letter-spacing: -0.02em; }
.tile-price .cur { font-family: var(--font-mono); font-size: 1.15rem; color: var(--text-2); }
.tile-price .per { font-size: 0.88rem; color: var(--muted); }
.tile-install { font-size: 0.89rem; color: var(--text-2); }
.tile-install b { font-family: var(--font-mono); color: var(--text); }
.tile-vat { font-size: 0.79rem; color: var(--muted); margin-top: 6px; }

.tile-feats { list-style: none; margin: 24px 0 22px; display: grid; gap: 11px; border-top: 1px solid var(--line); padding-top: 22px; }
.tile-feats li { display: flex; gap: 10px; font-size: 0.93rem; color: var(--text-2); }
.tile-feats svg { flex: none; color: var(--leaf); margin-top: 4px; }

/* KI-Trennüberschrift + KI-Features: standardmäßig gedämpft, mit KI leuchtend */
.tile-feats li.ki-head {
  margin-top: 8px; padding-top: 15px; border-top: 1px dashed var(--line-2);
  align-items: center; font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  transition: color .25s ease;
}
.tile-feats li.ki-head svg { color: var(--muted); margin-top: 0; transition: color .25s ease; }
.tile-feats li.ki-feat { color: var(--muted); transition: color .25s ease; }
.tile-feats li.ki-feat svg { color: var(--muted); transition: color .25s ease; }
.ki-tag {
  margin-left: auto; align-self: center; font-family: var(--font-mono);
  font-size: 0.6rem; font-weight: 700; letter-spacing: .08em;
  padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line-2);
  color: var(--muted); transition: all .25s ease;
}
body.ki-on .tile-feats li.ki-head,
body.ki-on .tile-feats li.ki-head svg,
body.ki-on .tile-feats li.ki-feat,
body.ki-on .tile-feats li.ki-feat svg { color: var(--spark); }
body.ki-on .ki-tag { color: var(--spark); border-color: var(--spark); background: rgba(205,232,95,.1); }
.tile-ki {
  display: flex; align-items: center; gap: 9px; padding: 12px 14px; border-radius: 12px;
  border: 1px dashed var(--line-2); color: var(--muted); font-size: 0.89rem;
  margin-bottom: 22px; transition: all .25s ease;
}
.tile-ki svg { flex: none; }
body.ki-on .tile-ki { border-style: solid; border-color: var(--spark); background: rgba(205,232,95,.08); color: var(--spark); font-weight: 600; }
.tile .btn { margin-top: auto; }

/* ---------- Funktionsmatrix ---------- */
.matrix-wrap { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); overflow: hidden; }
.matrix-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.matrix { width: 100%; border-collapse: collapse; min-width: 660px; font-size: 0.94rem; }
table.matrix thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--card-2); border-bottom: 1px solid var(--line-2);
  padding: 18px 16px; text-align: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1rem;
}
table.matrix thead th:first-child {
  text-align: left; min-width: 300px; color: var(--text-2);
  font-size: 0.78rem; font-family: var(--font-mono); letter-spacing: .12em;
  text-transform: uppercase; font-weight: 700;
}
table.matrix thead th .edition { display: block; color: var(--leaf-2); }
table.matrix thead th .edition-sub { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.77rem; color: var(--muted); margin-top: 2px; }

table.matrix tr.group td {
  background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--leaf); font-weight: 700; padding: 12px 16px;
}
table.matrix tbody td { padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,.04); }
table.matrix tbody td:first-child { color: var(--text-2); }
table.matrix tbody td:not(:first-child) { text-align: center; width: 130px; }
table.matrix.matrix-2col tbody td:not(:first-child) { width: 170px; }
table.matrix tbody tr:hover td { background: rgba(108,182,88,.04); }
.yes { color: var(--leaf-2); }
.no { color: rgba(255,255,255,.16); }
.val { font-family: var(--font-mono); font-weight: 700; color: var(--text); font-size: 0.9rem; }
.matrix-foot { padding: 16px; font-size: 0.84rem; color: var(--muted); border-top: 1px solid var(--line); background: var(--card-2); }

/* ---------- Karten ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color .2s ease, transform .2s ease; }
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card-ico { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: var(--leaf-dim); color: var(--leaf-2); margin-bottom: 16px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 0.94rem; }
.card ul { list-style: none; margin-top: 12px; display: grid; gap: 8px; }
.card ul li { display: flex; gap: 9px; font-size: 0.91rem; color: var(--text-2); }
.card ul svg { flex: none; color: var(--leaf); margin-top: 4px; }

/* ---------- Tarife ---------- */
.tariffs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tariff { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.tariff:hover { border-color: var(--line-2); }
.tariff h3 { color: var(--leaf-2); font-size: 1.05rem; }
.tariff .amount { font-family: var(--font-mono); font-size: 1.85rem; font-weight: 700; margin: 12px 0 2px; }
.tariff .per { font-size: 0.84rem; color: var(--muted); }
.tariff ul { list-style: none; margin-top: 18px; display: grid; gap: 9px; border-top: 1px solid var(--line); padding-top: 18px; }
.tariff ul li { display: flex; gap: 9px; font-size: 0.89rem; color: var(--text-2); }
.tariff ul svg { flex: none; color: var(--leaf); margin-top: 4px; }

/* ---------- FAQ ---------- */
.faq { max-width: 840px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: none; border: none; cursor: pointer; text-align: left; padding: 24px 0; color: var(--text);
  font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; letter-spacing: -0.01em;
}
.faq-q:hover { color: var(--leaf-2); }
.faq-icon { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); color: var(--leaf); transition: transform .28s ease, background .2s ease; }
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--leaf-dim); }
.faq-a { overflow: hidden; height: 0; transition: height .3s ease; }
.faq-a > div { padding: 0 0 24px; color: var(--text-2); max-width: 68ch; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact-info { display: grid; gap: 18px; margin-top: 30px; }
.contact-line { display: flex; gap: 13px; align-items: flex-start; }
.contact-line svg { flex: none; color: var(--leaf); margin-top: 3px; }
.contact-line b { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.contact-line a, .contact-line span { color: var(--text); }

.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.87rem; font-weight: 700; margin-bottom: 7px; }
.field label .req { color: var(--leaf); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px;
  background: rgba(0,0,0,.3); border: 1px solid var(--line);
  color: var(--text); font-family: var(--font-body); font-size: 0.96rem;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--leaf); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.check { display: flex; gap: 11px; align-items: flex-start; font-size: 0.87rem; color: var(--text-2); margin-bottom: 20px; }
.check input { width: 18px; height: 18px; flex: none; margin-top: 3px; accent-color: var(--leaf); }
.form-msg { margin-top: 14px; font-size: 0.9rem; display: none; }
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-msg.show { display: block; }
.form-msg.ok { color: var(--leaf-2); }
.form-msg.err { color: #FF9B8A; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid > div > p { color: var(--muted); font-size: 0.92rem; margin-top: 14px; max-width: 40ch; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col a { color: var(--text-2); font-size: 0.93rem; text-decoration: none; }
.footer-col a:hover { color: var(--leaf-2); }
.footer-bottom { margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--muted); font-size: 0.85rem; }

/* ---------- Rechtsseiten ---------- */
.legal { padding: 60px 0 90px; }
.legal-inner { max-width: 780px; margin: 0 auto; }
.legal h1 { font-size: clamp(1.7rem, 6vw, 2.8rem); margin-bottom: 30px; overflow-wrap: anywhere; hyphens: auto; }
.legal h2 { font-size: clamp(1.2rem, 4.5vw, 1.4rem); margin: 40px 0 14px; overflow-wrap: anywhere; hyphens: auto; }
.legal h3 { font-size: 1.08rem; margin: 26px 0 10px; overflow-wrap: anywhere; hyphens: auto; }
.legal p, .legal li { color: var(--text-2); font-size: 0.96rem; margin-bottom: 12px; overflow-wrap: anywhere; }
.legal a { overflow-wrap: anywhere; }
.legal ul, .legal ol { padding-left: 22px; margin-bottom: 16px; }
.legal strong { color: var(--text); }
.legal .meta { font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; margin-top: 40px; }
.legal .box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 24px 0 8px; }
.legal .box p:last-child { margin-bottom: 0; }
.legal .updated { font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; margin-top: 44px; }

/* ---------- Unterseiten-Hero ---------- */
.page-hero { padding: 70px 0 20px; position: relative; }
.page-hero::before {
  content: ""; position: absolute; inset: -40% 40% 30% -10%;
  background: radial-gradient(50% 50% at 30% 50%, rgba(108,182,88,.14), transparent 70%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; }
.back-link { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--leaf); text-decoration: none; margin-bottom: 18px; }
.back-link:hover { color: var(--leaf-2); }

/* ---------- CTA-Band ---------- */
.cta-band { background: linear-gradient(140deg, #143024, #0D1B15); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px; }
.cta-inner h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-inner p { color: var(--text-2); margin-top: 8px; }

/* ---------- Responsive ---------- */
/* Navigation: ab hier Burger-Menü, sonst passt sie nicht in eine Zeile */
@media (max-width: 1240px) {
  .nav-links {
    display: none; position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 14px;
    background: var(--bg-2); border: 1px solid var(--line); border-radius: 0 0 16px 16px;
    box-shadow: var(--shadow); z-index: 70;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 14px; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-phone { display: none; }
}

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .tiles { grid-template-columns: 1fr; }
  .tile.is-match { transform: none; }
  .cards { grid-template-columns: 1fr 1fr; }
  .tariffs { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .strip-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { gap: 10px; }
  .nav-cta .btn { padding: 11px 15px; font-size: 0.86rem; }
  .cards { grid-template-columns: 1fr; }
  .tariffs { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .form-row { grid-template-columns: 1fr; }
  .form, .calc { padding: 22px; }
  .calc-row { flex-direction: column; align-items: stretch; }
  table.matrix thead th:first-child { min-width: 210px; }
  table.matrix tbody td:not(:first-child) { width: 78px; }
}

/* Sehr schmale Screens: Wortmarke weicht dem Symbol, CTA wird kürzer */
@media (max-width: 500px) {
  .brand .wordmark { display: none; }
  .brand-header img { height: 42px; }
  .nav-cta .btn { padding: 10px 14px; font-size: 0.84rem; }
  .cta-full { display: none; }
  .cta-short { display: inline; }
  .wrap { padding: 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
