/* Rehbein IT-Services — Website
   Farben aus dem Corporate Design (Signalpetrol, Tiefschiefer, Kupfer, Nebelgrau),
   Layout und Bewegung nach dem Vorbild moderner Produktseiten.
   Keine Webfonts: Systemschriften (San Francisco auf Apple-Geräten, Segoe UI auf Windows). */

:root {
  --petrol: #0E6E7D;
  --petrol-hover: #0B5A66;
  --petrol-press: #094A54;
  --petrol-tint: #E4EEF0;
  --slate: #1B2A33;
  --copper: #B4622A;
  --copper-hover: #9C5424;
  --fog: #EEF1F2;

  --bg: #ffffff;
  --bg-muted: #f4f6f7;
  --bg-elev: #ffffff;
  --bg-dark: #0f171c;
  --text: #1B2A33;
  --text-2: #56666e;
  --text-3: #7d8a90;
  --brand: var(--petrol);
  --brand-hover: var(--petrol-hover);
  --brand-soft: var(--petrol-tint);
  --accent: var(--copper);
  --accent-hover: var(--copper-hover);
  /* Buttons mit weißer Schrift: dunkleres Kupfer für Kontrast ≥ 4,5:1 (WCAG AA) */
  --accent-btn: #9C5424; --accent-btn-hover: #844620; --accent-btn-text: #fff;
  --line: rgba(27, 42, 51, .12);
  --line-strong: rgba(27, 42, 51, .22);
  --nav-bg: rgba(255, 255, 255, .72);
  --shadow-1: 0 1px 2px rgba(27, 42, 51, .05), 0 6px 24px rgba(27, 42, 51, .06);
  --shadow-2: 0 2px 6px rgba(27, 42, 51, .06), 0 20px 48px rgba(27, 42, 51, .12);
  --focus: 0 0 0 3px rgba(14, 110, 125, .35);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI Variable", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --pill: 980px;

  --wrap: 1120px;
  --wrap-narrow: 780px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);
  --nav-h: 56px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-std: cubic-bezier(.2, 0, .3, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --bg-muted: #0d1215; --bg-elev: #151c20; --bg-dark: #0d1215;
    --text: #f3f5f6; --text-2: #a6b2b8; --text-3: #7f8c92;
    --brand: #4fb3c2; --brand-hover: #6cc3d0; --brand-soft: rgba(79, 179, 194, .14);
    --accent: #cf7a41; --accent-hover: #dc8b54;
    --accent-btn: #cf7a41; --accent-btn-hover: #dc8b54; --accent-btn-text: #111;
    --line: rgba(255, 255, 255, .12); --line-strong: rgba(255, 255, 255, .22);
    --nav-bg: rgba(12, 16, 19, .72);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4); --shadow-2: 0 20px 48px rgba(0, 0, 0, .5);
    --focus: 0 0 0 3px rgba(79, 179, 194, .45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --bg-muted: #0d1215; --bg-elev: #151c20; --bg-dark: #0d1215;
  --text: #f3f5f6; --text-2: #a6b2b8; --text-3: #7f8c92;
  --brand: #4fb3c2; --brand-hover: #6cc3d0; --brand-soft: rgba(79, 179, 194, .14);
  --accent: #cf7a41; --accent-hover: #dc8b54;
  --accent-btn: #cf7a41; --accent-btn-hover: #dc8b54; --accent-btn-text: #111;
  --line: rgba(255, 255, 255, .12); --line-strong: rgba(255, 255, 255, .22);
  --nav-bg: rgba(12, 16, 19, .72);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4); --shadow-2: 0 20px 48px rgba(0, 0, 0, .5);
  --focus: 0 0 0 3px rgba(79, 179, 194, .45);
  color-scheme: dark;
}

/* --- Grundlagen ------------------------------------------------------------ */

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.5; letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.022em; line-height: 1.12; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
::selection { background: var(--brand-soft); }
address { font-style: normal; }
code { font-family: var(--font-mono); font-size: .9em; background: var(--bg-muted); padding: .1em .35em; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: var(--pill); transition: top .2s; }
.skip:focus { top: 12px; text-decoration: none; }

.icon { width: 1.25em; height: 1.25em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: calc(var(--wrap-narrow) + 2 * var(--gutter)); }
.center { text-align: center; }
.muted { color: var(--text-2); }

/* --- Typografie --------------------------------------------------------------- */

.display-1 { font-size: clamp(40px, 7vw, 80px); line-height: 1.04; letter-spacing: -.035em; }
.display-2 { font-size: clamp(32px, 5vw, 56px); line-height: 1.07; letter-spacing: -.03em; }
.display-3 { font-size: clamp(24px, 3vw, 32px); line-height: 1.15; letter-spacing: -.024em; }
.lead { font-size: clamp(19px, 2.1vw, 24px); line-height: 1.42; color: var(--text-2); font-weight: 400; letter-spacing: -.016em; max-width: 44em; }
.center .lead, .lead.center { margin-left: auto; margin-right: auto; }
.lead--on-dark { color: #b9c5ca; }
.eyebrow { display: block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin: 0 0 14px; }
.eyebrow--brand { color: var(--brand); }
.eyebrow--on-dark { color: #7fc7d2; }
.text-brand { color: var(--brand); }
.fineprint { font-size: 14px; color: var(--text-2); line-height: 1.5; }
.fineprint--on-dark { color: #9fb0b7; }
.prose { font-size: 19px; line-height: 1.6; color: var(--text); }
.prose p { margin-bottom: 1.1em; }
.section-subtitle { margin: clamp(48px, 7vw, 88px) 0 24px; }

/* --- Buttons -------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--pill); border: 1px solid transparent;
  font-size: 16px; font-weight: 500; line-height: 1.2; cursor: pointer; text-decoration: none;
  transition: background-color .2s var(--ease-std), color .2s var(--ease-std), border-color .2s var(--ease-std), transform .2s var(--ease-std), box-shadow .2s var(--ease-std);
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn .icon { width: 18px; height: 18px; }
.btn--sm { padding: 7px 14px; font-size: 14px; }
.btn--lg { padding: 15px 28px; font-size: 17px; }
.btn--block { display: flex; width: 100%; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-hover); color: #fff; }
:root[data-theme="dark"] .btn--primary { color: #04181c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn--primary { color: #04181c; } }
.btn--accent { background: var(--accent-btn); color: var(--accent-btn-text); }
.btn--accent:hover { background: var(--accent-btn-hover); color: var(--accent-btn-text); }
.btn--secondary { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--secondary:hover { background: var(--brand-soft); color: var(--brand); }
.btn--ghost { background: var(--bg-muted); color: var(--text); }
.btn--ghost:hover { background: var(--line); color: var(--text); }
.btn--ghost-dark { background: rgba(255, 255, 255, .1); color: #fff; }
.btn--ghost-dark:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn-row--center { justify-content: center; }
.btn-stack { display: grid; gap: 10px; margin-top: 20px; }
.btn-link { background: none; border: 0; padding: 8px 0; color: var(--text-2); font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.btn-link:hover { color: var(--text); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 500; color: var(--brand); }
.link-arrow .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow--on-dark { color: #7fc7d2; }
.link-arrow--small { font-size: 15px; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; background: transparent; color: var(--text); border-radius: 50%; cursor: pointer;
  transition: background-color .2s var(--ease-std);
}
.icon-btn:hover { background: var(--bg-muted); }
.icon-btn .icon { width: 20px; height: 20px; }
.icon-btn--round { border: 1px solid var(--line-strong); background: var(--bg-elev); font-size: 20px; }

/* --- Navigation --------------------------------------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__bar { display: flex; align-items: center; gap: 20px; height: var(--nav-h); }
.nav__brand { display: flex; align-items: center; flex: 0 0 auto; }
.nav__logo { height: 34px; width: auto; }
.nav__links { flex: 1 1 auto; }
.nav__links ul { display: flex; justify-content: center; gap: clamp(14px, 2.2vw, 30px); list-style: none; }
.nav__links a { display: inline-block; padding: 12px 0; white-space: nowrap; font-size: 14px; color: var(--text); opacity: .82; transition: opacity .2s; }
.nav__links a:hover { opacity: 1; text-decoration: none; }
.nav__links a[aria-current="page"] { opacity: 1; color: var(--brand); font-weight: 500; }
.nav__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav__toggle { display: none; }
/* Telefon im Kopf: mobil als runder Button, auf breiten Bildschirmen mit Nummer */
.nav__call { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 22px; color: var(--brand); font-size: 14px; font-weight: 600; white-space: nowrap; }
.nav__call:hover { background: var(--bg-muted); text-decoration: none; }
.nav__call .icon { width: 20px; height: 20px; }
.nav__call-num { display: none; }
@media (min-width: 1440px) { .nav__call-num { display: inline; } }
/* Zwischen Mobil- und breiter Desktop-Ansicht ist im Kopf kein Platz für das Telefon */
@media (min-width: 1101px) and (max-width: 1279px) { .nav__call { display: none; } }
.nav__toggle .icon--close, .nav.is-open .nav__toggle .icon--menu { display: none; }
.nav.is-open .nav__toggle .icon--close { display: block; }
[data-theme-toggle] .icon--sun { display: none; }
:root[data-theme="dark"] [data-theme-toggle] .icon--sun { display: block; }
:root[data-theme="dark"] [data-theme-toggle] .icon--moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) [data-theme-toggle] .icon--sun { display: block; }
  :root:not([data-theme="light"]) [data-theme-toggle] .icon--moon { display: none; }
}
.nav__sheet { border-top: 1px solid var(--line); background: var(--bg); max-height: calc(100vh - var(--nav-h)); overflow-y: auto; }
.nav__sheet nav { padding-top: 12px; padding-bottom: 28px; }
.nav__sheet-list { list-style: none; margin-bottom: 24px; }
.nav__sheet-list a { display: block; padding: 12px 0; font-size: 24px; font-weight: 600; letter-spacing: -.02em; color: var(--text); border-bottom: 1px solid var(--line); }
.nav__sheet-list a[aria-current="page"] { color: var(--brand); }
.nav__sheet .fineprint { margin-top: 16px; }

@media (max-width: 1100px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-grid; }
  html.js .nav.is-open .nav__sheet { animation: sheet-in .35s var(--ease); }
}
@media (min-width: 1101px) { .nav__sheet { display: none !important; } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; font-size: 13px; color: var(--text-3); margin-bottom: 28px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--text-3); }
.crumbs a { color: var(--text-2); }

/* --- Sektionen --------------------------------------------------------------------- */

.section { padding: var(--section) 0; }
.section--tight { padding: clamp(40px, 6vw, 64px) 0; }
.section--flush-top { padding-top: 0; }
.section--muted { background: var(--bg-muted); }
.section--dark { background: var(--bg-dark); color: #f3f5f6; }
.section--dark .display-2, .section--dark .display-3 { color: #fff; }
.section__head { margin-bottom: clamp(40px, 6vw, 72px); }
.section__head.center .lead { margin-top: 20px; }
.section__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }

.page-hero { padding: clamp(40px, 7vw, 96px) 0 clamp(40px, 6vw, 72px); }
.page-hero .lead { margin-top: 24px; }
.page-hero--center { padding: clamp(80px, 14vw, 180px) 0; }
.page-hero--service .tile__icon--lg { margin-bottom: 24px; }

/* --- Hero Startseite ---------------------------------------------------------------- */

.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.hero .display-1 { margin: 0 auto; max-width: 15em; font-size: clamp(34px, 5.6vw, 66px); }
.hero { padding-top: clamp(40px, 6vw, 88px); }
.hero__lead { margin: 28px auto 0; }
.checks.checks--inline { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin-top: 28px; list-style: none; font-size: 15px; color: var(--text-2); }
.checks--inline li { display: inline-flex; align-items: center; gap: 6px; }
.checks--inline .icon { color: var(--brand); width: 18px; height: 18px; }

.stage {
  position: relative; margin-top: clamp(48px, 7vw, 88px); border-radius: var(--radius-xl); overflow: hidden;
  background: radial-gradient(120% 90% at 85% 10%, rgba(14, 110, 125, .55), transparent 60%), linear-gradient(160deg, #1B2A33 0%, #0c1419 100%);
  color: #fff; display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; min-height: 520px;
  box-shadow: var(--shadow-2);
}
.stage__copy { padding: clamp(32px, 5vw, 64px); align-self: center; }
.stage__quote { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.25; font-weight: 600; letter-spacing: -.02em; margin: 0 0 36px; max-width: 18em; }
.stage__portrait { align-self: end; justify-self: center; width: min(100%, 440px); margin-top: 24px; }
.stage__portrait img { width: 100%; filter: saturate(.92); -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent); mask-image: linear-gradient(to bottom, #000 80%, transparent); }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0 0 32px; }
.stats div { border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 14px; }
.stats dt { font-size: 13px; color: #9fb0b7; order: 2; }
.stats dd { margin: 0 0 4px; font-size: clamp(32px, 4vw, 48px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats--large dd { font-size: clamp(44px, 6vw, 72px); }

@media (max-width: 860px) {
  .stage { grid-template-columns: 1fr; min-height: 0; }
  .stage__portrait { width: min(78%, 360px); }
}
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; gap: 16px; } }

/* --- Grundsätze ------------------------------------------------------------------ */

.promise-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; list-style: none; }
.promise-grid li { display: flex; flex-direction: column; gap: 6px; }
.promise-grid .icon { width: 28px; height: 28px; color: var(--brand); margin-bottom: 8px; }
.promise-grid strong { font-size: 17px; }
.promise-grid span { font-size: 15px; color: var(--text-2); }
@media (max-width: 860px) { .promise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .promise-grid { grid-template-columns: 1fr; } }

/* --- Kacheln -------------------------------------------------------------------------- */

.tile {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: clamp(28px, 3.6vw, 44px); border-radius: var(--radius-xl);
  background: var(--bg-elev); color: var(--text); text-decoration: none; overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
a.tile:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow-2); }
.tile__icon {
  display: inline-grid; place-items: center; flex: 0 0 auto; width: 48px; height: 48px; border-radius: 14px;
  background: var(--brand-soft); color: var(--brand);
}
.tile__icon .icon { width: 26px; height: 26px; }
.tile__icon--lg { width: 64px; height: 64px; border-radius: 18px; }
.tile__icon--lg .icon { width: 34px; height: 34px; }
.tile__title { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; line-height: 1.12; letter-spacing: -.022em; }
.tile__text { color: var(--text-2); font-size: 17px; margin: 0; flex: 1 1 auto; }
.tile .eyebrow { margin: 8px 0 0; }
.tile .link-arrow { margin-top: 8px; }
.tile--dark { background: linear-gradient(160deg, #13343c 0%, #1B2A33 60%, #121c22 100%); color: #fff; }
.tile--dark .tile__text { color: #b9c5ca; }
.tile--dark .tile__icon { background: rgba(255, 255, 255, .1); color: #7fc7d2; }
.tile--dark .eyebrow { color: #7fc7d2; }
.tile--dark .link-arrow { color: #7fc7d2; }
.tile__bullets { margin-top: 8px; color: #d3dde1; font-size: 16px; }
.tile__bullets .icon { color: #7fc7d2; }
.tile--feature .tile__title { font-size: clamp(28px, 3.4vw, 40px); }

.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; margin-bottom: 32px; }
.bento__wide { grid-column: span 4; min-height: 380px; }
.bento__narrow { grid-column: span 2; }
.bento__third { grid-column: span 2; }
@media (max-width: 960px) {
  .bento__wide, .bento__narrow { grid-column: span 6; min-height: 0; }
  .bento__third { grid-column: span 3; }
}
@media (max-width: 640px) { .bento__third { grid-column: span 6; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.tile--tool { min-height: 460px; }
.mock-bars { display: grid; gap: 10px; margin: 16px 0; }
.mock-bars span { height: 12px; border-radius: 6px; background: linear-gradient(90deg, #4fb3c2, rgba(79, 179, 194, .25)); transform-origin: left; }
.mock-bars span:nth-child(1) { width: 82%; } .mock-bars span:nth-child(2) { width: 56%; }
.mock-bars span:nth-child(3) { width: 94%; } .mock-bars span:nth-child(4) { width: 38%; }
.mock-ring { width: 140px; height: 140px; margin: 8px 0; }
.mock-ring circle { fill: none; stroke-width: 10; }
.mock-ring__track { stroke: var(--line); }
.mock-ring__value { stroke: var(--brand); stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 70; transform: rotate(-90deg); transform-origin: center; }
.mock-ring text { font-size: 22px; font-weight: 700; fill: var(--text); letter-spacing: -.02em; }
html.js .tile--tool.reveal:not(.is-visible) .mock-bars span { transform: scaleX(.1); }
.mock-bars span { transition: transform 1.2s var(--ease) .3s; }

.tile--mini { flex-direction: row; align-items: center; gap: 16px; padding: 20px 24px; border-radius: var(--radius-lg); }
.tile--mini > span:nth-child(2) { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.tile--mini strong { font-size: 17px; }
.tile--mini span span { font-size: 14px; color: var(--text-2); }
.tile--mini > .icon { color: var(--text-3); }
.related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.related--center { max-width: 520px; margin: 40px auto 0; grid-template-columns: 1fr; text-align: left; }
@media (max-width: 720px) { .related { grid-template-columns: 1fr; } }

/* --- Karten ------------------------------------------------------------------------------- */

.card { background: var(--bg-elev); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-1); }
.card--muted { background: var(--bg-muted); box-shadow: none; }
.card__title { font-size: 21px; letter-spacing: -.02em; margin: 12px 0 14px; }
.card > .card__title:first-child { margin-top: 0; }
.card p { color: var(--text-2); margin: 0; }
.card-grid { display: grid; gap: 20px; }
.card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .card-grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .card-grid--2 { grid-template-columns: 1fr; } }

.checks { list-style: none; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .icon { color: var(--brand); width: 20px; height: 20px; margin-top: 3px; }
.checks--small { gap: 10px; font-size: 15px; color: var(--text-2); }
.checks--small .icon { width: 18px; height: 18px; margin-top: 2px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.two-col--wide-right { grid-template-columns: .8fr 1.2fr; }
@media (max-width: 860px) { .two-col, .two-col--wide-right { grid-template-columns: 1fr; } }
.two-col .display-3 { margin-bottom: 20px; }

.note { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 15px; }
.note strong { color: var(--text); }

.callout { display: flex; gap: 18px; padding: 24px 28px; border-radius: var(--radius-lg); background: var(--bg-elev); border: 1px solid var(--line); margin-top: 40px; }
.callout > .icon { width: 26px; height: 26px; color: var(--brand); margin-top: 2px; }
.callout__title { font-size: 17px; margin-bottom: 6px; letter-spacing: -.01em; }
.callout p { margin: 0; color: var(--text-2); }
.callout--accent { border-left: 4px solid var(--accent); }
.callout--accent > .icon { color: var(--accent); }

/* --- Karussell -------------------------------------------------------------------------- */

.carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 1fr); gap: 20px; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  padding: 8px var(--gutter) 24px; margin: 0 calc(-1 * var(--gutter));
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.carousel::-webkit-scrollbar { display: none; }
@media (min-width: 1100px) { .carousel { grid-auto-columns: calc((100% - 2 * var(--gutter) - 40px) / 3.2); } }
.card--segment { scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; min-height: 320px; }
.card--segment h3 { font-size: 22px; letter-spacing: -.02em; margin-top: 8px; }
.carousel-nav { display: flex; gap: 10px; }
@media (max-width: 640px) { .carousel-nav { display: none; } .section__head--row { display: block; } }

/* --- Ablauf ------------------------------------------------------------------------------ */

.steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 2px; background: linear-gradient(90deg, var(--brand), var(--line)); }
.steps__item { position: relative; padding-top: 64px; }
.steps__no { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--bg); border: 2px solid var(--brand); color: var(--brand); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.section--muted .steps__no { background: var(--bg-muted); }
.steps__item h3 { font-size: 20px; margin-bottom: 8px; letter-spacing: -.02em; }
.steps__item p { color: var(--text-2); font-size: 15px; margin: 0; }
.steps--compact .steps__item { padding-top: 60px; }
.steps--compact h3 { font-size: 17px; }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { left: 22px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--brand), var(--line)); }
  .steps__item, .steps--compact .steps__item { padding: 8px 0 28px 72px; min-height: 64px; }
}

/* --- Sicherheit (dunkel) ------------------------------------------------------------------ */

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 48px); }
.feature .icon { width: 30px; height: 30px; color: #7fc7d2; margin-bottom: 18px; }
.feature h3 { font-size: 20px; color: #fff; margin-bottom: 10px; letter-spacing: -.02em; }
.feature p { color: #a9b7bd; font-size: 16px; margin: 0; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

/* --- Über mich ------------------------------------------------------------------------------ */

.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about__portrait { border-radius: var(--radius-xl); overflow: hidden; background: radial-gradient(90% 70% at 50% 30%, rgba(14, 110, 125, .35), transparent 70%), linear-gradient(180deg, var(--bg-muted), var(--bg-muted)); aspect-ratio: 4 / 5; display: flex; align-items: flex-end; justify-content: center; }
.about__portrait img { width: 92%; }
.about__copy .display-2, .about__copy .display-1 { margin-bottom: 24px; }
.about__copy p:not(.eyebrow) { font-size: 19px; color: var(--text-2); }
.about--hero { grid-template-columns: 1.1fr .9fr; }
@media (max-width: 860px) {
  .about, .about--hero { grid-template-columns: 1fr; }
  .about__portrait { max-width: 420px; }
  .about--hero .about__portrait { order: -1; }
}
.quote { margin: 28px 0; padding: 0 0 0 20px; border-left: 3px solid var(--brand); font-size: clamp(20px, 2.2vw, 24px); line-height: 1.35; font-weight: 600; letter-spacing: -.02em; color: var(--text); }
.quote cite { display: block; margin-top: 10px; font-size: 14px; font-style: normal; font-weight: 400; color: var(--text-2); letter-spacing: 0; }

.kv { margin: 0; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.kv div:last-child { border-bottom: 0; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; text-align: right; font-weight: 500; }

/* --- FAQ ---------------------------------------------------------------------------------- */

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-size: clamp(18px, 1.9vw, 21px); font-weight: 600; letter-spacing: -.018em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--brand); }
.faq__icon { width: 22px; height: 22px; color: var(--text-3); transition: transform .35s var(--ease); }
.faq__item[open] .faq__icon { transform: rotate(180deg); }
.faq__body { padding: 0 48px 24px 0; color: var(--text-2); font-size: 17px; }
.faq__body p { margin: 0; }
html.js .faq__item[open] .faq__body { animation: fade-down .4s var(--ease); }
@keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.faq + p { margin-top: 32px; }

/* --- CTA-Band ------------------------------------------------------------------------------ */

.cta-band { background: radial-gradient(80% 120% at 50% 0%, rgba(14, 110, 125, .5), transparent 70%), var(--bg-dark); }
.cta-band .lead { margin-top: 20px; }
.cta-band .fineprint { margin-top: 20px; }

/* --- Leistungsliste ---------------------------------------------------------------------- */

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.chip {
  display: inline-flex; align-items: center; padding: 9px 16px; border-radius: var(--pill);
  background: var(--bg-muted); color: var(--text); font-size: 15px; cursor: pointer; position: relative;
  border: 1px solid transparent; transition: background-color .2s, border-color .2s, color .2s;
}
a.chip:hover { text-decoration: none; background: var(--brand-soft); color: var(--brand); }
.chips--select { margin: 0; }
.chips--select .chip { padding: 0; }
.chips--select .chip span { padding: 9px 16px; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip:has(input:checked) { background: var(--brand); color: #fff; }
:root[data-theme="dark"] .chip:has(input:checked) { color: #04181c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip:has(input:checked) { color: #04181c; } }
.chip:has(input:focus-visible) { box-shadow: var(--focus); }

.service-list { display: grid; gap: 20px; }
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-xl); background: var(--bg-muted); scroll-margin-top: calc(var(--nav-h) + 24px); }
.service-row__head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.service-row__head .eyebrow { margin: 8px 0 0; }
.service-row__head h2 a { color: var(--text); }
.service-row__head p { color: var(--text-2); }
@media (max-width: 860px) { .service-row { grid-template-columns: 1fr; } }

.range-list { list-style: none; display: grid; gap: 12px; }
.range-list li { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 24px; border-radius: var(--radius-md); background: var(--bg-muted); }
.range-list li div { display: flex; flex-direction: column; gap: 4px; }
.range-list span { color: var(--text-2); font-size: 15px; }
.range-list__value { flex: 0 0 auto; font-size: 20px !important; font-weight: 700; color: var(--brand) !important; font-variant-numeric: tabular-nums; }

/* --- Formularelemente -------------------------------------------------------------------- */

.panel { border: 0; margin: 0 0 20px; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-xl); background: var(--bg-muted); min-width: 0; }
.panel__legend { float: left; width: 100%; display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 6px; padding: 0; }
.panel__legend + * { clear: both; }
.panel__hint { color: var(--text-2); font-size: 15px; margin: 6px 0 18px; }
.step-badge { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 15px; }

.segmented { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: var(--pill); background: var(--bg-elev); border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.segmented__opt { position: relative; }
.segmented__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented__opt span { display: block; padding: 9px 16px; border-radius: var(--pill); font-size: 15px; cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease); white-space: nowrap; }
.segmented__opt:hover span { background: var(--bg-muted); }
.segmented__opt input:checked + span { background: var(--brand); color: #fff; font-weight: 500; }
:root[data-theme="dark"] .segmented__opt input:checked + span { color: #04181c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .segmented__opt input:checked + span { color: #04181c; } }
.segmented__opt input:focus-visible + span { box-shadow: var(--focus); }
@media (max-width: 560px) { .segmented { border-radius: var(--radius-md); } .segmented__opt { flex: 1 1 45%; } .segmented__opt span { text-align: center; border-radius: 10px; } }

.stepper-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.stepper-row label { font-weight: 600; }
.stepper-row .panel__hint { margin: 0; }
.stepper { display: inline-flex; align-items: center; gap: 8px; }
.stepper input { width: 64px; text-align: center; padding: 8px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--bg-elev); font-size: 17px; font-weight: 600; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.module-list { display: grid; gap: 10px; }
.module {
  position: relative; display: flex; align-items: flex-start; gap: 16px; padding: 18px 20px; border-radius: var(--radius-md);
  background: var(--bg-elev); border: 1.5px solid transparent; cursor: pointer; transition: border-color .2s, background-color .2s, transform .2s var(--ease);
}
.module:hover { border-color: var(--line-strong); }
.module input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.module__check { display: grid; place-items: center; flex: 0 0 auto; width: 24px; height: 24px; margin-top: 1px; border-radius: 7px; border: 1.5px solid var(--line-strong); color: transparent; transition: background-color .2s, border-color .2s, color .2s; }
.module__check .icon { width: 16px; height: 16px; stroke-width: 2.5; }
.module__text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 3px; }
.module__text strong { font-size: 17px; letter-spacing: -.01em; }
.module__text span { color: var(--text-2); font-size: 14px; }
.module__span { flex: 0 0 auto; font-size: 15px; font-weight: 600; color: var(--brand); font-variant-numeric: tabular-nums; white-space: nowrap; }
.module:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.module:has(input:checked) .module__check { background: var(--brand); border-color: var(--brand); color: #fff; }
.module:has(input:focus-visible) { box-shadow: var(--focus); }
@media (max-width: 560px) { .module { flex-wrap: wrap; } .module__span { margin-left: 40px; } }

.input {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: var(--bg-elev); color: var(--text); font-size: 17px; transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: var(--text-3); }
.input:focus { outline: none; border-color: var(--brand); box-shadow: var(--focus); }
.input[aria-invalid="true"] { border-color: var(--accent); }
textarea.input { resize: vertical; min-height: 160px; line-height: 1.5; }

/* --- Rechner ------------------------------------------------------------------------------ */

.calc { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.calc__summary { position: sticky; top: calc(var(--nav-h) + 20px); }
@media (max-width: 960px) { .calc { grid-template-columns: 1fr; } .calc__summary { position: static; } }
.summary-card { padding: clamp(24px, 3vw, 32px); border-radius: var(--radius-xl); background: var(--bg-elev); box-shadow: var(--shadow-2); border: 1px solid var(--line); margin-bottom: 16px; }
.summary-card__empty { color: var(--text-2); margin: 0; }
.summary-card__total { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 4px; margin: 0; font-size: clamp(44px, 5vw, 60px); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.summary-card__total small { font-size: 17px; font-weight: 500; letter-spacing: 0; color: var(--text-2); margin-left: 8px; }
.summary-card__meta { color: var(--text-2); font-size: 15px; margin: 8px 0 18px; }
.summary-card__list { list-style: none; border-top: 1px solid var(--line); margin-bottom: 18px; }
.summary-card__list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.summary-card__list li span:last-child { color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary-card .btn--block { margin-top: 18px; }
.summary-card__tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.meter { height: 8px; border-radius: 4px; background: var(--bg-muted); overflow: hidden; margin-bottom: 18px; }
.meter span { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--brand), #4fb3c2); transition: width .6s var(--ease); }
.toast { margin: 10px 0 0; font-size: 14px; color: var(--brand); font-weight: 500; }

/* --- Selbstcheck ------------------------------------------------------------------------------ */

.progress { position: sticky; top: var(--nav-h); z-index: 5; padding: 14px 0; background: var(--nav-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); display: flex; align-items: center; gap: 16px; }
.progress__bar { flex: 1 1 auto; height: 6px; border-radius: 3px; background: var(--bg-muted); overflow: hidden; }
.progress__bar span { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 3px; transition: width .5s var(--ease); }
.progress p { margin: 0; font-size: 14px; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.question { border: 0; margin: 0; padding: 28px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.question legend { float: left; width: 100%; padding: 0; margin-bottom: 18px; }
.question legend + * { clear: both; }
.question__no { display: block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.question__q { display: block; font-size: clamp(19px, 2vw, 22px); font-weight: 600; letter-spacing: -.018em; line-height: 1.3; }
.question__fix { display: flex; gap: 12px; margin: 18px 0 0; padding: 16px 18px; border-radius: var(--radius-md); background: var(--brand-soft); font-size: 16px; }
.question__fix .icon { color: var(--brand); margin-top: 2px; }
html.js .question__fix:not([hidden]) { animation: fade-down .4s var(--ease); }

.result { display: grid; grid-template-columns: 200px 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; margin-top: 48px; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-xl); background: var(--bg-elev); box-shadow: var(--shadow-2); border: 1px solid var(--line); border-top: 4px solid var(--accent); }
.result__gauge { position: relative; width: 200px; height: 200px; }
.result__gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.result__gauge circle { fill: none; stroke-width: 12; }
.gauge__track { stroke: var(--bg-muted); }
.gauge__value { stroke: var(--brand); stroke-linecap: round; stroke-dasharray: 326.73; stroke-dashoffset: 326.73; transition: stroke-dashoffset 1s var(--ease); }
.result__score { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; margin: 0; font-size: 52px; font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.result__score small { display: block; font-size: 14px; font-weight: 500; color: var(--text-2); letter-spacing: 0; margin-top: 6px; }
.result__copy .display-3 { margin-bottom: 12px; }
.result__copy > p { color: var(--text-2); }
.result__gaps { list-style: none; display: grid; gap: 8px; margin: 18px 0 0; }
.result__gaps li { display: flex; gap: 10px; font-size: 15px; }
.result__gaps li::before { content: ""; flex: 0 0 8px; height: 8px; border-radius: 50%; margin-top: 8px; background: var(--brand); }
.result__gaps li.is-partial::before { background: transparent; border: 2px solid var(--brand); }
.result .btn-row { margin-top: 28px; align-items: center; }
@media (max-width: 640px) { .result { grid-template-columns: 1fr; } .result__gauge { margin: 0 auto; width: 170px; height: 170px; } }

/* --- Kontakt ------------------------------------------------------------------------------- */

.contact { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact__aside { display: grid; gap: 20px; position: sticky; top: calc(var(--nav-h) + 20px); }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } .contact__aside { position: static; } }
.booking { display: flex; gap: 20px; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-xl); background: var(--bg-muted); margin-bottom: 48px; }
.booking p { color: var(--text-2); }
.booking .btn { margin: 4px 0 14px; }
.booking .fineprint { margin: 0; font-size: 13px; }
@media (max-width: 560px) { .booking { flex-direction: column; } }

.form { display: grid; gap: 22px; }
.form .display-3 { margin-bottom: 4px; }
.field { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 8px; }
.field__label { font-size: 15px; font-weight: 600; padding: 0; }
.field__hint { font-size: 14px; color: var(--text-2); margin: 0; display: flex; justify-content: space-between; gap: 16px; }
.field__error { font-size: 14px; color: var(--accent); margin: 0; font-weight: 500; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.req { color: var(--accent); }
.opt { font-weight: 400; color: var(--text-3); font-size: 13px; margin-left: 4px; }
.counter { flex: 0 0 auto; font-variant-numeric: tabular-nums; color: var(--text-3); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { position: relative; display: flex; gap: 14px; align-items: flex-start; font-size: 15px; cursor: pointer; padding: 18px; border-radius: var(--radius-md); background: var(--bg-muted); }
.consent input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; cursor: pointer; }
.consent__box { display: grid; place-items: center; flex: 0 0 auto; width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--line-strong); background: var(--bg-elev); color: transparent; transition: background-color .2s, border-color .2s, color .2s; }
.consent__box .icon { width: 16px; height: 16px; stroke-width: 2.5; }
.consent input:checked + .consent__box { background: var(--brand); border-color: var(--brand); color: #fff; }
.consent input:focus-visible + .consent__box { box-shadow: var(--focus); }
.consent .muted { display: block; margin-top: 6px; font-size: 13px; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form__actions .fineprint { flex: 1 1 240px; margin: 0; }
.form__status { margin: 0; padding: 16px 18px; border-radius: var(--radius-md); border-left: 4px solid var(--accent); background: var(--bg-muted); }

.success { padding: clamp(32px, 5vw, 56px); border-radius: var(--radius-xl); background: var(--bg-muted); text-align: center; }
.success:focus { outline: none; }
.success p { color: var(--text-2); max-width: 32em; margin: 16px auto 28px; }
.success__icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--brand); color: #fff; margin-bottom: 24px; }
.success__icon .icon { width: 36px; height: 36px; stroke-width: 2.5; }
html.js .success:not([hidden]) .success__icon { animation: pop .6s var(--ease); }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }

.contact-list { list-style: none; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { color: var(--brand); margin-top: 2px; }
.contact-list li > span { display: flex; flex-direction: column; gap: 2px; font-size: 16px; }
.contact-list .muted { font-size: 13px; }

/* --- Referenz ------------------------------------------------------------------------------ */

.case { padding: clamp(32px, 5vw, 72px); border-radius: var(--radius-xl); background: radial-gradient(90% 80% at 90% 0%, rgba(14, 110, 125, .5), transparent 60%), linear-gradient(160deg, #1B2A33, #0c1419); color: #fff; box-shadow: var(--shadow-2); }
.case__head { max-width: 46em; }
.case__head .display-2 { color: #fff; margin-bottom: 20px; }
.case .stats { margin: clamp(32px, 5vw, 56px) 0; }
.case__body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-bottom: 32px; }
.case__body h3 { font-size: 17px; color: #7fc7d2; margin-bottom: 8px; }
.case__body p { color: #b9c5ca; margin: 0; }
@media (max-width: 860px) { .case__body { grid-template-columns: 1fr; } }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.tags li { padding: 5px 12px; border-radius: var(--pill); background: rgba(255, 255, 255, .1); font-size: 14px; }

/* --- Glossar ---------------------------------------------------------------------------------- */

.search { position: relative; margin-bottom: 12px; }
.search > .icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.search__input { padding-left: 50px; border-radius: var(--pill); font-size: 18px; padding-top: 15px; padding-bottom: 15px; }
.glossary { margin: 24px 0 0; border-top: 1px solid var(--line); }
.glossary__item { padding: 24px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 240px 1fr; gap: 24px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.glossary__item:target { background: var(--brand-soft); margin: 0 -16px; padding-left: 16px; padding-right: 16px; border-radius: var(--radius-md); }
.glossary dt { font-size: 19px; font-weight: 700; letter-spacing: -.015em; }
.glossary dt a { color: var(--text); }
.glossary dd { margin: 0; color: var(--text-2); }
.glossary dd p { margin: 0 0 8px; }
.glossary__empty { margin-top: 24px; color: var(--text-2); }
@media (max-width: 640px) { .glossary__item { grid-template-columns: 1fr; gap: 8px; } }

/* --- Rechtstexte ------------------------------------------------------------------------------- */

.legal .callout { margin: 0 0 40px; }
.legal__sec { padding: 32px 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 24px); }
.legal__sec h2 { font-size: 22px; margin-bottom: 16px; letter-spacing: -.02em; }
.legal__sec h2 span { display: inline-block; margin-right: 14px; vertical-align: 2px; font-size: 14px; color: var(--brand); font-variant-numeric: tabular-nums; }
.legal__sec p { color: var(--text-2); line-height: 1.65; }
.toc { padding: 24px 28px; border-radius: var(--radius-lg); background: var(--bg-muted); margin-bottom: 32px; }
.toc__title { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: 12px; }
.toc ol { columns: 2; column-gap: 32px; padding-left: 20px; font-size: 15px; }
.toc li { margin-bottom: 6px; break-inside: avoid; }
@media (max-width: 560px) { .toc ol { columns: 1; } }

/* --- Fußzeile ------------------------------------------------------------------------------------ */

.footer { background: var(--bg-muted); padding: 64px 0 32px; font-size: 14px; color: var(--text-2); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer__logo { height: 36px; width: auto; margin-bottom: 18px; }
.footer address { line-height: 1.7; margin-bottom: 14px; }
.footer__brand .link-arrow { font-size: 14px; }
.footer__title { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text); margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 0; }
.footer ul a { display: inline-block; padding: 10px 0; }
.footer a { color: var(--text-2); }
.footer a:hover { color: var(--text); }
.footer .link-arrow { color: var(--brand); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; }
.footer__bottom p { margin: 0; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--nav-bg); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: var(--text); cursor: pointer; box-shadow: var(--shadow-1); transition: opacity .3s, transform .3s var(--ease); }
.to-top:hover { transform: translateY(-2px); }

/* --- Einblendungen beim Scrollen --------------------------------------------------------------- */

html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* --- Druck (Rechner und Selbstcheck als PDF) ---------------------------------------------------- */

@media print {
  :root { --bg: #fff; --bg-muted: #f3f5f6; --bg-elev: #fff; --text: #1B2A33; --text-2: #444; --brand: #0E6E7D; --shadow-1: none; --shadow-2: none; }
  body { font-size: 11pt; }
  .nav, .footer, .to-top, .cta-band, .crumbs, .btn, .btn-link, .summary-card__tools, .carousel-nav, noscript, .progress, .stepper button { display: none !important; }
  html.js .reveal { opacity: 1 !important; transform: none !important; }
  .page-hero { padding: 0 0 12pt; }
  .page-hero .display-1 { font-size: 24pt; }
  .page-hero .lead { font-size: 11pt; }
  .section { padding: 0; }
  .calc { display: block; }
  .calc__summary { position: static; }
  .summary-card { border: 1px solid #ccc; margin-top: 12pt; }
  .page-tool .module:not(:has(input:checked)) { display: none; }
  .page-tool .panel { background: none; padding: 0; }
  .result { break-inside: avoid; border: 1px solid #ccc; }
  .question { padding: 8pt 0; break-inside: avoid; }
  .segmented__opt:not(:has(input:checked)) { display: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}

/* Lange deutsche Komposita auf schmalen Bildschirmen umbrechen */
@media (max-width: 600px) {
  h1, h2, h3, .display-1, .display-2 { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
  .display-1 { font-size: clamp(34px, 10vw, 44px); }
}

/* --- Angebote (Security-Check) ------------------------------------------------------------------ */

.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 980px; margin: 0 auto 32px; align-items: stretch; }
@media (max-width: 820px) { .pricing { grid-template-columns: 1fr; } }
.price-card { display: flex; flex-direction: column; gap: 14px; padding: clamp(28px, 3.6vw, 44px); border-radius: var(--radius-xl); background: var(--bg-elev); box-shadow: var(--shadow-1); border: 1px solid var(--line); }
.section--muted .price-card { border-color: transparent; }
.price-card .eyebrow { margin: 0; }
.price-card__name { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.022em; }
.price-card__price { margin: 4px 0 0; font-size: clamp(44px, 5vw, 60px); font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.price-card__price small { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--text-2); margin-left: 8px; }
.price-card__meta { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 15px; color: var(--text-2); }
.price-card__meta .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--brand); }
.price-card__lead { margin: 0; color: var(--text-2); }
.price-card .checks { flex: 1 1 auto; align-content: start; }
.price-card__actions { display: grid; gap: 10px; margin-top: 8px; }
.price-card .fineprint { margin: 0; font-size: 13px; }
.price-card--featured { background: linear-gradient(160deg, #13343c 0%, #1B2A33 60%, #121c22 100%); color: #fff; border-color: transparent; box-shadow: var(--shadow-2); }
.price-card--featured .price-card__price small, .price-card--featured .price-card__meta, .price-card--featured .price-card__lead, .price-card--featured .checks--small { color: #b9c5ca; }
.price-card--featured .price-card__meta .icon, .price-card--featured .checks .icon { color: #7fc7d2; }

.iso-theme__no { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 4px !important; font-size: 28px; font-weight: 700; letter-spacing: -.03em; color: var(--brand) !important; font-variant-numeric: tabular-nums; }
.iso-theme__no span { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--text-2); }

.compare { border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-elev); box-shadow: var(--shadow-1); }
.compare__row { display: grid; grid-template-columns: 1fr 1.4fr 1.4fr; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--line); font-size: 15px; }
.compare__row:last-child { border-bottom: 0; }
.compare__row span:first-child { color: var(--text-2); font-weight: 500; }
.compare__row--head { font-weight: 700; font-size: 16px; background: var(--brand-soft); }
.compare__row--head span { color: var(--text) !important; }
@media (max-width: 560px) { .compare__row { grid-template-columns: 1fr 1fr; padding: 14px 16px; } .compare__row span:first-child { grid-column: 1 / -1; } .compare__row--head span:first-child { display: none; } }

.steps--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .steps--four { grid-template-columns: 1fr; } }
.steps--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .steps--three { grid-template-columns: 1fr; } }

/* Breite Kachel über die ganze Rasterzeile (neuer Leistungsbereich) */
.bento__full { grid-column: 1 / -1; }
.tile--wide-row { flex-direction: row; align-items: center; gap: clamp(20px, 3vw, 36px); }
.tile--wide-row .tile__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; }
.tile--wide-row .eyebrow { margin: 0; }
.tile--wide-row .link-arrow { flex: 0 0 auto; margin: 0; }
@media (max-width: 720px) { .tile--wide-row { flex-direction: column; align-items: flex-start; } }
.range-list li div { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .range-list li { flex-direction: column; align-items: flex-start; gap: 8px; } }
.card__title { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }

/* Qualifikationen */
.quali { display: flex; flex-direction: column; gap: 8px; }
.quali__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.quali__kind { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.quali .card__title { margin: 0; }
.quali__issuer { font-size: 14px; color: var(--text-3) !important; }
.quali .link-arrow { margin-top: auto; padding-top: 6px; }
.tags--light { margin: 0 0 24px; }
.tags--light li { background: var(--brand-soft); color: var(--brand); font-size: 13px; }
.section__head .lead { margin-top: 20px; }

/* Impressum der IT-Recht Kanzlei: fremdes Markup an die Seitentypografie angleichen */
.legal__source { margin-top: 32px; }

/* --- IT-Betreuung / GEO-Bausteine ------------------------------------------------------------ */

/* Kurzantwort ganz oben (für Leser und KI-Suchmaschinen gleichermaßen) */
.answer-box { margin-top: 36px; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-lg); background: var(--bg-muted); border-left: 4px solid var(--brand); max-width: 60em; }
.answer-box__title { font-size: 17px; letter-spacing: -.01em; margin-bottom: 10px; }
.answer-box p { margin: 0 0 16px; font-size: 17px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; margin: 0; }
.facts div { border-top: 1px solid var(--line); padding-top: 10px; }
.facts dt { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.facts dd { margin: 4px 0 0; font-weight: 600; font-size: 15px; }
@media (max-width: 720px) { .facts { grid-template-columns: 1fr 1fr; } }
.b2b-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; max-width: 60em; }
.b2b-note .icon { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; color: var(--brand); }

.pricing--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
@media (max-width: 960px) { .pricing--3 { grid-template-columns: 1fr; max-width: 520px; } }
.pricing--3 .price-card__price small { display: block; margin: 6px 0 0; }

.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); background: var(--bg-elev); box-shadow: var(--shadow-1); margin-bottom: 16px; }
.price-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.price-table caption { caption-side: bottom; text-align: left; padding: 12px 20px; font-size: 13px; color: var(--text-3); }
.price-table th, .price-table td { padding: 13px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.price-table thead th { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); background: var(--bg-muted); }
.price-table tbody th { font-weight: 600; }
.price-table td { color: var(--text-2); }
.price-table .num { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text); }
.price-table tbody tr:last-child th, .price-table tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) { .price-table th, .price-table td { padding: 11px 14px; } .price-table { font-size: 14px; } }

.stepper-row--compact { margin-top: 0; padding: 14px 0; border-top: 0; border-bottom: 1px solid var(--line); }
.stepper-row--compact:last-of-type { border-bottom: 0; }
.stepper-row--compact label { flex: 1 1 220px; }
.stepper-row--compact .panel__hint { flex: 1 1 100%; }
.module--inline { margin-top: 12px; }
.module__check--radio { border-radius: 50%; }
.input--select { width: auto; min-width: 180px; padding: 10px 14px; font-size: 16px; }
.kv--compact div { padding: 8px 0; font-size: 14px; }
.kv--large div { font-size: 16px; }
.kv--large dt { flex: 0 0 38%; }
.kv--large dd { flex: 1; text-align: left; font-weight: 400; }
@media (max-width: 560px) { .kv--large div { flex-direction: column; gap: 4px; } .kv--large dt { flex: none; } }
.bt-note { margin: 0 0 12px; font-size: 13px; color: var(--brand); font-weight: 500; }
.bt-legal { margin: 16px 0; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bg-muted); font-size: 12.5px; line-height: 1.5; color: var(--text-2); }
.bt-legal p { margin: 0 0 6px; }
.bt-legal p:last-child { margin: 0; }
.consent--compact { padding: 12px 14px; font-size: 13px; margin-bottom: 8px; }
.card__title--spaced { margin-top: 32px !important; }
.excl-title { margin-bottom: 20px; }
.excl { margin: 0; display: grid; gap: 18px; }
.excl dt { display: flex; gap: 10px; align-items: center; font-weight: 600; margin-bottom: 4px; }
.excl dt .icon { color: var(--text-3); width: 18px; height: 18px; }
.excl dd { margin: 0 0 0 28px; color: var(--text-2); font-size: 15px; }

/* Stand und Verantwortlichkeit je Seite (E-E-A-T) */
.page-meta { padding-top: 20px; padding-bottom: 20px; font-size: 13px; color: var(--text-3); border-top: 1px solid var(--line); }
.page-meta a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }

@media print { .b2b-note, .answer-box { break-inside: avoid; } .page-tool .price-card__actions { display: none; } }

/* Sternchen-Verweis auf den Sicherheitshinweis im Footer */
.fn { font-size: .45em; vertical-align: super; line-height: 0; margin-left: .06em; color: inherit; text-decoration: none; opacity: .75; }
.fn:hover, .fn:focus-visible { opacity: 1; text-decoration: underline; }
.footer__note { max-width: 78ch; margin: 28px 0 0; }

/* Zweiter Preis auf den Paketkarten: mit Laufzeit */
.price-card__terms { margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.price-card__terms strong { color: var(--text); font-weight: 600; white-space: nowrap; }
.price-card--featured .price-card__terms { color: rgba(255, 255, 255, .78); }
.price-card--featured .price-card__terms strong { color: #fff; }
.price-card__price small { line-height: 1.35; }

/* Impressum */
.imprint__title { font-size: 20px; letter-spacing: -.015em; margin: 36px 0 10px; }
.imprint__title:first-child { margin-top: 0; }
.imprint p { color: var(--text-2); line-height: 1.7; }

/* Datenschutzerklärung */
.legal__list { margin: 0 0 16px; padding-left: 1.2em; color: var(--text-2); line-height: 1.7; }
.legal__sec h3 { font-size: 17px; letter-spacing: -.01em; margin: 26px 0 8px; }
.legal__sec h3 .fn { font-size: .75em; opacity: 1; color: var(--brand); }

/* Terminbuchung: Bestätigung vor der Weiterleitung zu Proton */
.booking-gate { display: grid; gap: 12px; justify-items: start; margin: 4px 0 8px; }
.booking-gate .field__error { margin: 0; }
.booking { scroll-margin-top: 90px; }

.booking-gate__info { margin: 0; font-size: 14px; color: var(--text-2); }
.form__privacy { margin: 0; font-size: 14px; padding: 14px 18px; border-radius: var(--radius-md); background: var(--bg-muted); }
.stage__note { margin: -24px 0 28px; font-size: 13px; opacity: .8; }

.hero__about { max-width: 46em; margin: 28px auto 0; font-size: 14px; line-height: 1.6; color: var(--text-2); }

/* Preisseite: Alltagsprobleme, Fließtext, Ansprechpartner */
.problem-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.problem-list li { display: grid; gap: 6px; padding: 18px 20px; border-radius: var(--radius-md); background: var(--bg-muted); }
.problem-list strong { font-size: 17px; }
.problem-list .link-arrow { font-size: 14px; }
.prose h2 { margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 14px; }
.prose-steps { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 8px; }
.author-box { display: flex; gap: 20px; align-items: center; padding: 20px; border-radius: var(--radius-md); background: var(--bg-muted); }
.author-box img { width: 96px; height: 128px; object-fit: cover; border-radius: 12px; flex: 0 0 auto; }
.author-box p { margin: 0 0 6px; }
.author-box__name { font-weight: 700; font-size: 18px; }

/* Ratgeber */
.article-meta { margin: 12px 0 0; font-size: 14px; color: var(--text-2); }
.article h2 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.25; }
.article ul { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 8px; }
.article .table-wrap { margin: 0 0 18px; }
.article .answer-box { margin-bottom: 36px; }
.definition { padding: 16px 20px; border-left: 4px solid var(--brand); background: var(--bg-muted); border-radius: 0 var(--radius-md) var(--radius-md) 0; margin: 0 0 18px; }
.definition p { margin: 0; }
.diagram { margin: 8px 0 22px; }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram__box rect { fill: var(--bg-muted); stroke: var(--line-strong); stroke-width: 1.5; }
.diagram__box--accent rect { fill: var(--brand-soft); stroke: var(--brand); }
.diagram__num text { fill: var(--brand); font-size: 30px; font-weight: 800; }
.diagram__label text { fill: var(--text); font-size: 15px; }
.diagram__label text:nth-child(even) { fill: var(--text-2); font-size: 13px; }
.diagram__arrow path { stroke: var(--accent); stroke-width: 3; fill: none; }
.diagram__foot text { fill: var(--text-2); font-size: 14px; font-weight: 600; }
.diagram figcaption { font-size: 13px; color: var(--text-2); margin-top: 8px; }
.sources { font-size: 14px; color: var(--text-2); margin-top: 28px; }
.guide-teaser { margin-bottom: 28px; }

/* Kundenstimmen und Fallbeispiele (erscheinen erst mit echten Einträgen) */
.review blockquote { margin: 0 0 16px; font-size: 17px; line-height: 1.5; }
.review blockquote p { margin: 0; }
.review figcaption { font-size: 14px; color: var(--text-2); }
.case-card .kv { margin: 12px 0 16px; }

/* Startseite: Anruf-Zeile unter den Buttons */
.hero__call { margin: 18px 0 0; font-size: 16px; color: var(--text-2); }
.hero__call a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 4px; font-weight: 600; }
.hero__call a .icon { width: 18px; height: 18px; flex: 0 0 auto; }

/* Kontaktseite: Telefon, E-Mail und Erwartungen gleich oben */
.contact-quick { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 28px; padding: 16px 20px; border-radius: var(--radius-md); background: var(--bg-muted); font-size: 16px; }
.contact-quick li { display: flex; align-items: center; gap: 8px; }
.contact-quick .icon { width: 18px; height: 18px; color: var(--brand); flex: 0 0 auto; }
.contact-quick a { font-weight: 600; display: inline-block; padding: 8px 0; }

/* Klickflächen im Footer mindestens 44 px hoch (Telefon, E-Mail, vCard) */
.footer address a, .footer__brand .link-arrow { display: inline-block; padding: 10px 0; }

/* Über mich: Werdegang und Weiterbildungen */
.timeline { list-style: none; margin: 0 0 32px; padding: 0; border-left: 2px solid var(--line-strong); }
.timeline li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 0 0 24px 20px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); }
.timeline__year { font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: 17px; margin: 0 0 4px; }
.timeline p { margin: 0; color: var(--text-2); }
.trainings { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.trainings li { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border-radius: var(--radius-md); background: var(--bg-muted); }
.trainings span { font-size: 14px; color: var(--text-3); }
@media (max-width: 520px) { .timeline li { grid-template-columns: 1fr; gap: 4px; } }
