/* =========================================================
   Halama-IT GmbH – Design System
   ========================================================= */

/* ---------- Fonts (self-hosted, kein externes CDN) ---------- */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/sourcesans3-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/sourcesans3-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  /* Marke: Petrol aus dem Halama-IT Logo */
  --brand-950: #001D2B;
  --brand-900: #002B41;
  --brand-800: #003651;
  --brand-700: #004465;
  --brand-600: #045c82;
  --brand-500: #0a76a3;
  --brand-400: #1e97c7;
  --brand-300: #6acdf7;

  /* Akzent: Cyan aus dem bisherigen Auftritt */
  --accent-600: #00a0b5;
  --accent-500: #00bcd4;
  --accent-400: #22d3e8;
  --accent-300: #7fe6f2;

  /* Neutral */
  --ink: #14202b;
  --text: #2b3a48;
  --muted: #5f727f;
  --muted-2: #8798a4;
  --line: #dfe5e8;
  --line-soft: #eaeff2;
  --surface: #ffffff;
  --surface-2: #f4f6f7;
  --surface-3: #eef3f5;

  /* Dunkle Flächen */
  --dark-900: #0b1620;
  --dark-800: #0f2130;
  --dark-700: #143040;
  --dark-600: #1c3f52;

  --success: #12a06a;
  --danger: #d64545;
  --warning: #e0921a;

  /* Gradienten */
  --grad-brand: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-500) 55%, var(--accent-500) 100%);
  --grad-accent: linear-gradient(120deg, var(--accent-500), var(--brand-400));
  --grad-dark: linear-gradient(160deg, #06131c 0%, #0d2333 45%, #0a3049 100%);

  /* Typo */
  --font-head: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --fs-lg: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --fs-xl: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
  --fs-h4: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  --fs-h3: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem);
  --fs-h2: clamp(1.75rem, 1.4rem + 1.6vw, 2.875rem);
  --fs-h1: clamp(2.1rem, 1.55rem + 2.7vw, 4.1rem);

  /* Raum */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --section-y: clamp(3.5rem, 2rem + 6vw, 7rem);

  /* Radien & Schatten */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-pill: 999px;

  --sh-xs: 0 1px 2px rgba(0, 41, 62, 0.06);
  --sh-sm: 0 2px 8px rgba(0, 41, 62, 0.07);
  --sh-md: 0 10px 30px -12px rgba(0, 41, 62, 0.22);
  --sh-lg: 0 24px 60px -20px rgba(0, 41, 62, 0.3);
  --sh-glow: 0 12px 40px -12px rgba(0, 188, 212, 0.45);

  --container: 1220px;
  --header-h: 76px;
  --topbar-h: 40px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Sprungziele nicht unter Topbar und Header verstecken */
  scroll-padding-top: calc(var(--topbar-h) + var(--header-h) + 20px);
}
@media (max-width: 1080px) {
  html { scroll-padding-top: calc(var(--header-h) + 20px); }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.68;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
  /* Sicherheitsnetz: sollte ein Bild je in einen Rahmen mit falschem
     Seitenverhaeltnis geraten, wird es eingepasst statt verzerrt. */
  object-fit: contain;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.16;
  letter-spacing: -0.018em;
  margin: 0 0 var(--sp-4);
  font-weight: 800;
  text-wrap: balance;
  /* Sicherheitsnetz gegen lange Komposita auf schmalen Displays */
  overflow-wrap: break-word;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; }
h4 { font-size: var(--fs-h4); font-weight: 700; }

p { margin: 0 0 var(--sp-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-600); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--accent-600); }

ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.25em; }
li + li { margin-top: 0.3em; }

strong, b { font-weight: 700; color: var(--ink); }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-6) 0; }

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

::selection { background: var(--accent-500); color: #04222b; }

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 2000;
  background: var(--brand-700);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-weight: 600;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); color: #fff; }

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

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}
.container--narrow { max-width: 860px; }
.container--wide { max-width: 1400px; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.section--alt { background: var(--surface-2); }
.section--soft {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
}
.section--dark {
  background: var(--grad-dark);
  color: rgba(233, 242, 247, 0.86);
}
.section--dark h1, .section--dark h2, .section--dark h3,
.section--dark h4, .section--dark h5, .section--dark h6 { color: #fff; }
.section--dark a { color: var(--accent-300); }
.section--dark strong { color: #fff; }

.grid { display: grid; gap: clamp(1.15rem, 2.2vw, 2rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split--media-first > .split__media { order: -1; }

@media (max-width: 900px) {
  /* minmax(0, 1fr) statt 1fr: sonst uebernimmt die Spalte das
     min-content-Minimum verschachtelter auto-fit-Raster und wird zu breit. */
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split--media-first > .split__media { order: 0; }
}
@media (min-width: 640px) and (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Section-Kopf ---------- */
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: var(--fs-lg); }
.section--dark .section-head p { color: rgba(226, 239, 246, 0.75); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-500);
  margin-bottom: var(--sp-3);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-accent);
}
.section--dark .eyebrow { color: var(--accent-400); }

.text-gradient {
  background: linear-gradient(100deg, var(--accent-400), var(--brand-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { font-size: var(--fs-lg); color: var(--muted); }
.section--dark .lead { color: rgba(226, 239, 246, 0.8); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--brand-700);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.85em 1.6em;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 1.2;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn > * { position: relative; z-index: 1; }
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

/* Shine-Sweep */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.38) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out);
}
.btn:hover::after { transform: translateX(120%); }

.btn--primary {
  background: var(--grad-brand);
  background-size: 160% 160%;
  box-shadow: var(--sh-md);
}
.btn--primary:hover { box-shadow: var(--sh-glow); background-position: 100% 50%; }

.btn--accent {
  --btn-fg: #032b34;
  background: linear-gradient(120deg, var(--accent-400), var(--accent-500));
  box-shadow: var(--sh-md);
}
.btn--accent:hover { box-shadow: var(--sh-glow); }

.btn--ghost {
  --btn-fg: var(--brand-700);
  background: transparent;
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--brand-400); background: var(--surface-2); }

.btn--outline-light {
  --btn-fg: #fff;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(6px);
}
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.6); }

.btn--sm { padding: 0.6em 1.15em; font-size: 0.8438rem; }
.btn--lg { padding: 1.02em 2em; font-size: 1.0313rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9375rem;
}
.link-arrow svg { width: 1.05em; height: 1.05em; transition: transform 0.25s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Badges / Pills ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.4em 0.9em;
  border-radius: var(--r-pill);
  background: rgba(0, 188, 212, 0.12);
  color: var(--brand-600);
  border: 1px solid rgba(0, 188, 212, 0.28);
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge--light {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.26);
  color: #eafcff;
  backdrop-filter: blur(6px);
}
.badge--dot::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-400);
  box-shadow: 0 0 0 0 rgba(34, 211, 232, 0.7);
  animation: pulse-dot 2.4s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(34, 211, 232, 0.65); }
  70% { box-shadow: 0 0 0 9px rgba(34, 211, 232, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 232, 0); }
}

/* ---------- Karten ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.4vw, 2.1rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xs);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); border-color: rgba(0, 188, 212, 0.35); }
.card:hover::before { transform: scaleX(1); }
.card h3, .card h4 { margin-bottom: var(--sp-2); }
.card p { color: var(--muted); font-size: var(--fs-sm); }
.card__foot { margin-top: auto; padding-top: var(--sp-4); }

.card--flat { box-shadow: none; }
.card--flat:hover { transform: none; box-shadow: var(--sh-sm); }
.card--glass {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(14px);
  color: rgba(228, 240, 246, 0.84);
}
.card--glass h3, .card--glass h4 { color: #fff; }
.card--glass p { color: rgba(222, 236, 244, 0.76); }
.card--glass:hover { border-color: rgba(0, 188, 212, 0.45); background: rgba(255, 255, 255, 0.085); }

.card__icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  margin-bottom: var(--sp-4);
  border-radius: 15px;
  background: linear-gradient(140deg, rgba(0, 188, 212, 0.16), rgba(4, 92, 130, 0.14));
  border: 1px solid rgba(0, 188, 212, 0.24);
  color: var(--brand-600);
  transition: transform 0.35s var(--ease-out), background 0.35s var(--ease);
}
.card__icon svg { width: 26px; height: 26px; }
.card:hover .card__icon { transform: translateY(-2px) rotate(-4deg); }
.card--glass .card__icon {
  background: rgba(0, 188, 212, 0.16);
  border-color: rgba(0, 188, 212, 0.3);
  color: var(--accent-300);
}

/* Nummerierte Karte */
.card__num {
  font-family: var(--font-head);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: var(--sp-3);
}

/* Featurelisten */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.ticks li {
  position: relative;
  margin: 0;
  padding-left: 2rem;
  font-size: var(--fs-sm);
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.34em;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(0, 188, 212, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23045c82' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.section--dark .ticks li::before,
.card--glass .ticks li::before {
  background-color: rgba(0, 188, 212, 0.2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fe6f2' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.ticks--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem 1.75rem; }
@media (max-width: 700px) { .ticks--2 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Topbar ---------- */
/* Bleibt beim Scrollen oben stehen, damit Telefon und Fax auf dem
   Desktop dauerhaft erreichbar sind. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 910;
  background: var(--brand-900);
  color: rgba(226, 240, 247, 0.82);
  font-size: 0.8438rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.topbar__inner {
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}
.topbar__contact { display: flex; align-items: center; gap: 1.35rem; flex-wrap: wrap; }
.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  min-height: 26px;
  padding-block: 0.2rem;
  color: inherit;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
a.topbar__item:hover { color: var(--accent-300); }
.topbar__item svg { width: 15px; height: 15px; opacity: 0.75; flex: none; }
.topbar__item b { color: #fff; font-weight: 700; }
.topbar__actions { display: flex; align-items: center; gap: 0.6rem; }
.topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.34em 0.9em;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r-pill);
  color: #eaf7fb;
  font-weight: 600;
  font-size: 0.8125rem;
  white-space: nowrap;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.topbar__link:hover { background: rgba(0, 188, 212, 0.2); border-color: var(--accent-500); color: #fff; }
.topbar__link svg { width: 14px; height: 14px; }
.topbar__link--accent { background: rgba(0, 188, 212, 0.16); border-color: rgba(0, 188, 212, 0.45); }

@media (max-width: 1080px) {
  .topbar { display: none; }
  /* Ohne Topbar sitzt der Header wieder direkt am oberen Rand */
  .site-header { top: 0; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: var(--topbar-h);
  z-index: 900;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--sh-sm); background: rgba(255, 255, 255, 0.96); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: var(--header-h);
  transition: min-height 0.3s var(--ease);
}
.site-header.is-stuck .header__inner { min-height: 64px; }

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img {
  width: 208px;
  height: auto;
  transition: width 0.3s var(--ease);
}
.site-header.is-stuck .brand img { width: 176px; }
@media (max-width: 480px) { .brand img { width: 164px; } }

/* Navigation */
.nav { display: flex; align-items: center; gap: 0.15rem; }
.nav > ul {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav > ul > li { margin: 0; position: relative; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.6rem 0.85rem;
  border-radius: var(--r-md);
  font-family: var(--font-head);
  font-size: 0.9063rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav__link:hover { color: var(--brand-600); background: var(--surface-2); }
.nav__link[aria-current='page'] { color: var(--brand-600); }
.nav__link[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0.85rem; right: 0.85rem;
  bottom: 0.15rem;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-accent);
}
.nav__caret { width: 14px; height: 14px; opacity: 0.6; transition: transform 0.25s var(--ease); }
.nav__item--has-sub:hover .nav__caret,
.nav__item--has-sub:focus-within .nav__caret { transform: rotate(180deg); }

/* Dropdown */
.nav__sub {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  min-width: 300px;
  list-style: none;
  margin: 0;
  padding: 0.55rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease-out), visibility 0.25s;
}
.nav__item--has-sub:hover > .nav__sub,
.nav__item--has-sub:focus-within > .nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav__sub::before {
  content: '';
  position: absolute;
  top: -10px; left: 0; right: 0;
  height: 10px;
}
.nav__sub li { margin: 0; }
.nav__sub a {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: var(--r-md);
  color: var(--ink);
  transition: background 0.2s var(--ease);
}
.nav__sub a:hover { background: var(--surface-2); }
.nav__sub a span {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9063rem;
  line-height: 1.35;
}
.nav__sub a small {
  display: block;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.45;
  margin-top: 0.12em;
}
.nav__sub svg {
  width: 20px; height: 20px;
  margin-top: 0.2em;
  flex: none;
  color: var(--brand-500);
}

.header__cta { display: flex; align-items: center; gap: 0.55rem; flex: none; }

/* Burger */
.burger {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  place-items: center;
  flex: none;
}
.burger span {
  display: block;
  width: 20px; height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.burger span + span { margin-top: 5px; }
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1150px) {
  .nav, .header__cta { display: none; }
  .burger { display: grid; }
}

/* ---------- Mobile Drawer ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
  pointer-events: none;
}
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(6, 20, 28, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute;
  top: 0; right: 0;
  width: min(400px, 88vw);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  box-shadow: var(--sh-lg);
  transform: translateX(100%);
  transition: transform 0.42s var(--ease-out);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 2;
}
.drawer__head img { width: 168px; }
.drawer__close {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  flex: none;
}
.drawer__close svg { width: 20px; height: 20px; }
.drawer__body { padding: 1rem 1.25rem 1.5rem; flex: 1; }

.mnav { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.mnav li { margin: 0; border-bottom: 1px solid var(--line-soft); }
.mnav > li > a,
.mnav__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.95rem 0.2rem;
  border: 0;
  background: none;
  font-family: var(--font-head);
  font-size: 1.0313rem;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
}
.mnav__toggle svg { width: 18px; height: 18px; opacity: 0.6; transition: transform 0.3s var(--ease); flex: none; }
.mnav__toggle[aria-expanded='true'] { color: var(--brand-600); }
.mnav__toggle[aria-expanded='true'] svg { transform: rotate(180deg); }
.mnav__sub {
  list-style: none;
  margin: 0;
  padding: 0 0 0.6rem 0.2rem;
  display: grid;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s var(--ease);
}
.mnav__sub li { border: 0; }
.mnav__sub a {
  display: block;
  padding: 0.55rem 0 0.55rem 1rem;
  border-left: 2px solid var(--line);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted);
}
.mnav__sub a:hover { color: var(--brand-600); border-color: var(--accent-500); }

.drawer__contact {
  display: grid;
  gap: 0.5rem;
  padding: 1.15rem;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  border: 1px solid var(--line);
  margin-top: 1.25rem;
}
.drawer__contact a, .drawer__contact span {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.9375rem;
  color: var(--text);
}
.drawer__contact svg { width: 17px; height: 17px; color: var(--brand-500); flex: none; }
.drawer__contact b { font-variant-numeric: tabular-nums; }

/* ---------- Mobile Sticky Bottom Bar ---------- */
.quickbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 850;
  display: none;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px) saturate(1.5);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -6px 24px -12px rgba(0, 41, 62, 0.28);
}
.quickbar__inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.quickbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.6rem 0.25rem 0.55rem;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  position: relative;
}
.quickbar a + a::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: var(--line);
}
.quickbar svg { width: 21px; height: 21px; color: var(--brand-600); }
.quickbar a:first-child { color: var(--brand-700); }
.quickbar a:first-child svg { color: var(--accent-600); }
.quickbar a:active { background: var(--surface-2); }

@media (max-width: 1150px) {
  .quickbar { display: block; }
  body { padding-bottom: 66px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--grad-dark);
  color: rgba(226, 240, 247, 0.86);
  padding-block: clamp(3.25rem, 2rem + 7vw, 7rem);
  isolation: isolate;
}
.hero--sub { padding-block: clamp(2.75rem, 2rem + 4.5vw, 5rem); }
.hero h1, .hero h2, .hero h3 { color: #fff; }

/* Animierter Gradient-Mesh + Grid */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hero__bg::before {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(38% 44% at 18% 22%, rgba(0, 188, 212, 0.34), transparent 62%),
    radial-gradient(34% 40% at 82% 18%, rgba(30, 151, 199, 0.3), transparent 64%),
    radial-gradient(46% 52% at 68% 88%, rgba(0, 68, 101, 0.55), transparent 66%);
  filter: blur(10px);
  animation: mesh-drift 22s var(--ease) infinite alternate;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(100% 82% at 50% 30%, #000 12%, transparent 78%);
  -webkit-mask-image: radial-gradient(100% 82% at 50% 30%, #000 12%, transparent 78%);
}
@keyframes mesh-drift {
  0%   { transform: translate3d(-2%, -1%, 0) scale(1); }
  50%  { transform: translate3d(3%, 2%, 0) scale(1.08); }
  100% { transform: translate3d(-1%, 3%, 0) scale(1.03); }
}

.hero__glow {
  position: absolute;
  z-index: -1;
  width: 46vw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 188, 212, 0.3), transparent 66%);
  filter: blur(40px);
  pointer-events: none;
}
.hero__glow--a { top: -14%; right: -8%; animation: float-slow 15s ease-in-out infinite; }
.hero__glow--b { bottom: -22%; left: -10%; width: 38vw; animation: float-slow 19s ease-in-out infinite reverse; }
@keyframes float-slow {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(2.5%, -4%, 0); }
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(2.25rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 1000px) { .hero__grid { grid-template-columns: minmax(0, 1fr); } }

/* Auf schmalen Displays Telefon und Fax nach oben holen, damit sie ohne
   Scrollen sichtbar sind. Der ausfuehrliche Einleitungstext rutscht dafuer
   unter die Handlungsaufforderungen. */
@media (max-width: 1000px) {
  .hero { padding-block: clamp(2rem, 1.25rem + 4vw, 4rem); }
  .hero__col { display: flex; flex-direction: column; }
  .hero__col > .badge { order: 1; align-self: flex-start; }
  .hero__col > .hero__title { order: 2; }
  .hero__col > .hero__contact { order: 3; margin: 0 0 var(--sp-5); }
  .hero__col > .btn-row { order: 4; }
  .hero__col > .hero__text { order: 5; margin: var(--sp-6) 0 0; }
}

.hero__title { margin-bottom: var(--sp-5); }
.hero__text {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  color: rgba(228, 241, 248, 0.82);
  max-width: 58ch;
  margin-bottom: var(--sp-6);
}

/* Kontakt-Kacheln im Hero – Rufnummer sofort sichtbar */
.hero__contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 275px), 1fr));
  gap: 1rem;
  margin-top: var(--sp-6);
  max-width: 880px;
}
.contact-tile {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: #fff;
  transition: transform 0.3s var(--ease-out), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.contact-tile:hover {
  color: #fff;
  transform: translateY(-3px);
  background: rgba(0, 188, 212, 0.16);
  border-color: rgba(0, 188, 212, 0.5);
}
.contact-tile__icon {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  flex: none;
  border-radius: 14px;
  background: rgba(0, 188, 212, 0.2);
  border: 1px solid rgba(0, 188, 212, 0.35);
  color: var(--accent-300);
}
.contact-tile__icon svg { width: 24px; height: 24px; }
.contact-tile small {
  display: block;
  font-size: 0.7813rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(226, 240, 247, 0.7);
  font-weight: 600;
  font-family: var(--font-head);
  margin-bottom: 0.1em;
}
.contact-tile b {
  display: block;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.contact-tile--static { cursor: default; }
.contact-tile--static:hover { transform: none; background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.15); }

/* Hero-Medien */
.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  border-radius: var(--r-xl);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.hero__media--plain img { border: 0; box-shadow: none; }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1rem;
  border-radius: var(--r-md);
  background: rgba(11, 30, 41, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  box-shadow: var(--sh-lg);
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  animation: float-card 6s ease-in-out infinite;
}
.float-card svg { width: 20px; height: 20px; color: var(--accent-400); flex: none; }
.float-card small { display: block; font-weight: 600; font-size: 0.6875rem; color: rgba(226, 240, 247, 0.7); }
.float-card--tl { top: 8%; left: -4%; }
.float-card--br { bottom: 8%; right: -4%; animation-delay: -3s; }
@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (max-width: 620px) { .float-card { display: none; } }

/* Breadcrumb */
.crumbs { font-size: 0.8438rem; margin-bottom: var(--sp-4); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.crumbs li { margin: 0; display: flex; align-items: center; gap: 0.4rem; color: rgba(226, 240, 247, 0.6); }
.crumbs li + li::before { content: '/'; opacity: 0.45; }
.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: rgba(226, 240, 247, 0.8);
}
.crumbs a:hover { color: var(--accent-300); }
.crumbs [aria-current] { color: #fff; font-weight: 600; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}
.stat {
  padding: clamp(1.35rem, 2.2vw, 2rem);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease);
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.stat__value {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 1.6rem + 2vw, 3.1rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label {
  display: block;
  margin-top: 0.55rem;
  font-size: var(--fs-sm);
  color: var(--muted);
  font-weight: 600;
}
.section--dark .stat {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.13);
}
.section--dark .stat__value {
  background: linear-gradient(120deg, var(--accent-300), #fff);
  -webkit-background-clip: text;
  background-clip: text;
}
.section--dark .stat__label { color: rgba(226, 240, 247, 0.72); }

/* ---------- Marquee (Partnerlogos) ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: grid;
  place-items: center;
  height: 66px;
  flex: none;
}
.marquee__item img {
  width: auto !important;
  height: auto;
  max-height: 46px;
  max-width: 220px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.55;
  transition: filter 0.3s var(--ease), opacity 0.3s var(--ease), transform 0.3s var(--ease-out);
}
.marquee__item:hover img { filter: none; opacity: 1; transform: scale(1.06); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Herstellerlogos
   In Flex-Spalten wie .card wuerden Bilder sonst auf die volle Spaltenbreite
   gedehnt, weil align-items standardmaessig stretch ist. align-self haelt sie
   auf ihrer natuerlichen Groesse, die Hoehe steuert --logo-h. */
.brand-logo {
  align-self: flex-start;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: var(--logo-h, 44px);
  margin-bottom: 1.35rem;
}
.brand-logo--center { align-self: center; margin-inline: auto; }
.brand-logo--invert { filter: brightness(0) invert(1); opacity: 0.88; }
.brand-logo--plate {
  background: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}

/* Statisches Logo-Raster */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 1px;
  /* Trennlinien entstehen ueber Outlines der Kacheln, damit nicht belegte
     Rasterfelder in der Flaechenfarbe bleiben statt grau zu erscheinen. */
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.logo-grid > * {
  display: grid;
  place-items: center;
  min-height: 128px;
  padding: 1.5rem;
  background: var(--surface);
  outline: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}
.logo-grid > *:hover { background: var(--surface-2); }
.logo-grid img {
  width: auto;
  height: auto;
  max-height: 52px;
  max-width: min(100%, 220px);
  object-fit: contain;
}

/* Preis-/Angebotsblock fuer Servicevertraege */
.offer {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: stretch;
}
@media (max-width: 900px) { .offer { grid-template-columns: minmax(0, 1fr); } }

.offer__price {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  border-radius: var(--r-xl);
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--sh-lg);
  position: relative;
  overflow: hidden;
}
.offer__price::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(80% 80% at 100% 0%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(80% 80% at 100% 0%, #000, transparent 70%);
  pointer-events: none;
}
.offer__price > * { position: relative; z-index: 1; }
.offer__price .badge { align-self: flex-start; }
.offer__amount {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.offer__amount strong {
  font-family: var(--font-head);
  font-size: clamp(2.75rem, 2rem + 3vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}
.offer__amount span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.0625rem;
  opacity: 0.9;
}
.offer__note {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}
.offer__promo {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.9375rem;
  font-weight: 600;
}
.offer__promo svg { width: 22px; height: 22px; flex: none; margin-top: 0.1em; color: #fff; }

.feature-mini {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
@media (max-width: 640px) { .feature-mini { grid-template-columns: 1fr; } }
.feature-mini article {
  padding: 1.1rem 1.2rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.feature-mini h4 { margin-bottom: 0.35rem; font-size: 1rem; }
.feature-mini p { margin: 0; font-size: var(--fs-sm); color: var(--muted); }

/* T2med Preisliste + Rechner */
#preise .container {
  max-width: min(76rem, 94vw);
}

.price-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.92fr);
  gap: clamp(1.35rem, 3vw, 2.35rem);
  align-items: stretch;
  width: 100%;
  margin-inline: auto;
}
@media (max-width: 980px) {
  .price-layout {
    grid-template-columns: minmax(0, 1fr);
    max-width: 40rem;
    margin-inline: auto;
  }
}

.price-layout__list {
  min-width: 0;
}

.price-sheet {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-sm, 0 8px 28px rgba(10, 40, 60, 0.06));
  height: 100%;
}

.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(10.5rem, 0.75fr);
  gap: 1rem 1.5rem;
  align-items: center;
  padding: clamp(1.35rem, 2.2vw, 1.85rem) clamp(1.35rem, 2.4vw, 2rem);
  border-bottom: 1px solid var(--line);
}
.price-row:last-child { border-bottom: 0; }
.price-row:nth-child(even) { background: rgba(0, 68, 101, 0.03); }
@media (max-width: 640px) {
  .price-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    text-align: center;
  }
}

.price-row__copy h3 {
  margin: 0 0 0.65rem;
  color: var(--brand-700);
  font-size: 1.125rem;
}
.price-row__copy .ticks { gap: 0.4rem; }
.price-row__copy .ticks li { font-size: 0.875rem; }

.price-row__figures {
  display: grid;
  gap: 0.65rem;
  justify-items: end;
  padding-left: 1.35rem;
  border-left: 1px solid var(--line);
}
@media (max-width: 640px) {
  .price-row__figures {
    padding-left: 0;
    border-left: 0;
    padding-top: 0.85rem;
    border-top: 1px dashed var(--line);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: stretch;
  }
}

.price-tag {
  display: grid;
  gap: 0.15rem;
  text-align: right;
}
@media (max-width: 640px) {
  .price-tag { text-align: center; }
}
.price-tag__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.price-tag strong {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.price-tag--accent .price-tag__label { color: var(--brand-500); }
.price-tag--accent strong { color: var(--brand-700); font-size: 1.35rem; }

.price-calc {
  position: sticky;
  top: 6.5rem;
  display: grid;
  gap: 1.25rem;
  align-content: start;
  padding: clamp(1.35rem, 2.2vw, 1.75rem);
  border-radius: var(--r-xl);
  background: linear-gradient(165deg, var(--brand-700) 0%, #003552 55%, #00263a 100%);
  color: #fff;
  box-shadow: var(--sh-lg, 0 18px 40px rgba(0, 40, 70, 0.22));
  min-height: 100%;
}
@media (max-width: 980px) {
  .price-calc {
    position: static;
    top: auto;
  }
}
.price-calc__head h3 {
  margin: 0 0 0.35rem;
  color: #fff;
  font-size: 1.25rem;
}
.price-calc__head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--fs-sm);
}

.price-calc__controls {
  display: grid;
  gap: 1.1rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.price-calc__controls .stepper {
  justify-items: stretch;
}

.stepper {
  display: grid;
  gap: 0.4rem;
}
.stepper > label {
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
}
.stepper small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.75rem;
}
.stepper__ctrl {
  display: grid;
  grid-template-columns: 2.75rem minmax(3.5rem, 1fr) 2.75rem;
  align-items: center;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--r-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}
.stepper__ctrl button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
  height: 2.75rem;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.2s var(--ease);
}
.stepper__ctrl button:hover { background: rgba(255, 255, 255, 0.12); }
.stepper__ctrl button:focus-visible {
  outline: 2px solid var(--accent-400);
  outline-offset: -2px;
}
.stepper__ctrl input {
  appearance: textfield;
  -moz-appearance: textfield;
  width: 100%;
  height: 2.65rem;
  border: 0;
  border-inline: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #fff;
  text-align: center;
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
}
.stepper__ctrl input::-webkit-outer-spin-button,
.stepper__ctrl input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.stepper__ctrl input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.1);
}

.price-calc__check {
  color: rgba(255, 255, 255, 0.9);
  align-items: flex-start;
}
.price-calc__check input[type='checkbox'] {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  margin-top: 0.15rem;
}
.price-calc__check input[type='checkbox']:checked {
  background: var(--accent-400);
  border-color: var(--accent-400);
}

.price-calc__result {
  display: grid;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.price-calc__sum {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}
.price-calc__sum span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}
.price-calc__sum strong {
  font-family: var(--font-head);
  font-size: clamp(1.65rem, 1.3rem + 1vw, 2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
}
.price-calc__sum--once strong {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.92);
}
.price-calc__breakdown {
  list-style: none;
  margin: 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  gap: 0.35rem;
}
.price-calc__breakdown li {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.4;
}

.price-calc__actions {
  display: grid;
  gap: 0.65rem;
}
.price-calc .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.price-calc .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
}

.price-legal {
  max-width: 52rem;
  margin: 1.75rem auto 0;
  padding-inline: 0.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
}

.seo-fineprint {
  margin: 1.75rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Rechner bleibt bedienbar, auch wenn Scroll-Reveal noch laeuft */
.price-calc[data-reveal] {
  opacity: 1;
  transform: none;
}

/* ---------- Tabs / Showcase ---------- */
.showcase { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.showcase__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.showcase__tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.62em 1.15em;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 700;
  transition: all 0.25s var(--ease);
}
.showcase__tab svg { width: 17px; height: 17px; }
.showcase__tab:hover { color: var(--brand-600); border-color: var(--brand-400); }
.showcase__tab[aria-selected='true'] {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--sh-md);
}
.section--dark .showcase__tab {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(226, 240, 247, 0.78);
}
.section--dark .showcase__tab:hover { color: #fff; border-color: rgba(0, 188, 212, 0.5); }
.section--dark .showcase__tab[aria-selected='true'] {
  background: linear-gradient(120deg, var(--accent-500), var(--brand-400));
  color: #04222b;
}

.showcase__panels { position: relative; }
.showcase__panel { display: none; }
.showcase__panel.is-active { display: block; animation: panel-in 0.5s var(--ease-out) both; }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.shot {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: var(--sh-lg);
}
.shot img { width: 100%; }
.section--dark .shot {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.13);
}
.shot--plain { background: none; border: 0; box-shadow: none; border-radius: 0; }

/* ---------- Feature-Zeilen ---------- */
.feature-row { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
.feature-row > .split:nth-child(even) > .split__media { order: -1; }
@media (max-width: 900px) {
  .feature-row > .split:nth-child(even) > .split__media { order: 0; }
}

/* ---------- Telefon-Mockups (Patmed) ---------- */
/* Feste Spaltenzahl statt auto-fit, damit die sechs Ansichten immer
   vollstaendige Reihen bilden. */
.phones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.75rem);
  align-items: end;
}
@media (max-width: 620px) {
  .phones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.phone { text-align: center; }
.phone img {
  width: 100%;
  max-width: 250px;
  margin-inline: auto;
  filter: drop-shadow(0 26px 44px rgba(0, 0, 0, 0.42));
  transition: transform 0.45s var(--ease-out);
}
.phone:hover img { transform: translateY(-10px); }
.phone figcaption {
  margin-top: 0.9rem;
  font-family: var(--font-head);
  font-size: 0.8438rem;
  font-weight: 700;
  color: rgba(226, 240, 247, 0.82);
}
.phone:nth-child(even) { transform: translateY(-1.75rem); }
@media (max-width: 620px) { .phone:nth-child(even) { transform: none; } }

/* ---------- Accordion ---------- */
.acc { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.acc__item + .acc__item { border-top: 1px solid var(--line); }
.acc__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.15rem 1.35rem;
  border: 0;
  background: none;
  text-align: left;
  font-family: var(--font-head);
  font-size: var(--fs-h4);
  font-weight: 700;
  color: var(--ink);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.acc__btn:hover { background: var(--surface-2); color: var(--brand-600); }
.acc__btn svg { width: 20px; height: 20px; flex: none; color: var(--brand-500); transition: transform 0.3s var(--ease); }
.acc__btn[aria-expanded='true'] { color: var(--brand-600); }
.acc__btn[aria-expanded='true'] svg { transform: rotate(45deg); }
.acc__body { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.acc__body > div { padding: 0 1.35rem 1.35rem; color: var(--muted); }

/* ---------- Formulare ---------- */
.form { display: grid; gap: 1.15rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
@media (max-width: 640px) { .form__row { grid-template-columns: minmax(0, 1fr); } }

.field { display: grid; gap: 0.4rem; }
.field > label {
  font-family: var(--font-head);
  font-size: 0.8438rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.field .req { color: var(--danger); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: var(--fs-base);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.field textarea { min-height: 148px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0;
  border-color: var(--accent-500);
  box-shadow: 0 0 0 4px rgba(0, 188, 212, 0.16);
}
.field input:user-invalid, .field textarea:user-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(214, 69, 69, 0.12);
}
.field small { color: var(--muted); font-size: 0.8125rem; }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f727f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 18px;
  padding-right: 2.6rem;
}

.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: 0.9063rem;
  /* Grosszuegige Zeilenhoehe, damit auch die Inline-Links gut treffbar sind */
  line-height: 1.75;
  color: var(--muted);
}
.check input[type='checkbox'] {
  appearance: none;
  width: 24px; height: 24px;
  margin: 0.1rem 0 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  flex: none;
  transition: all 0.2s var(--ease);
}
.check input[type='checkbox']:hover { border-color: var(--brand-400); }
.check input[type='checkbox']:checked {
  background: var(--brand-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
  border-color: var(--brand-600);
}
.check a { text-decoration: underline; text-underline-offset: 2px; }

/* Honeypot – für Menschen unsichtbar */
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form__note { font-size: 0.8438rem; color: var(--muted); }

.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1rem 1.15rem;
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  border: 1px solid;
}
.alert svg { width: 20px; height: 20px; flex: none; margin-top: 0.1em; }
.alert[hidden] { display: none; }
.alert--ok { background: rgba(18, 160, 106, 0.09); border-color: rgba(18, 160, 106, 0.35); color: #0c6f4a; }
.alert--err { background: rgba(214, 69, 69, 0.08); border-color: rgba(214, 69, 69, 0.32); color: #9d2b2b; }
.alert strong { display: block; margin-bottom: 0.15em; color: inherit; }

.btn.is-busy { pointer-events: none; opacity: 0.72; }
.btn.is-busy::before {
  content: '';
  width: 1.05em; height: 1.05em;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  position: relative;
  z-index: 1;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Info-Panels ---------- */
.panel {
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  border-radius: var(--r-lg);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.panel--accent {
  background: linear-gradient(140deg, rgba(0, 188, 212, 0.09), rgba(4, 92, 130, 0.07));
  border-color: rgba(0, 188, 212, 0.3);
}
.panel--dark {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
}

.kv { display: grid; gap: 0.65rem; margin: 0; }
.kv__row {
  display: grid;
  grid-template-columns: minmax(140px, auto) 1fr;
  gap: 0.4rem 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px dashed var(--line);
}
.kv__row:last-child { border-bottom: 0; padding-bottom: 0; }
.kv dt { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 0.9063rem; }
.kv dd { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.section--dark .kv__row { border-color: rgba(255, 255, 255, 0.14); }
.section--dark .kv dt { color: #fff; }
.section--dark .kv dd { color: rgba(226, 240, 247, 0.75); }
@media (max-width: 560px) { .kv__row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- CTA-Band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(2rem, 4vw, 3.5rem);
  background: var(--grad-brand);
  color: #fff;
  isolation: isolate;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(70% 100% at 100% 0%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(70% 100% at 100% 0%, #000, transparent 70%);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.88); }
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.cta-band__inner > div:first-child { max-width: 62ch; }

/* ---------- Bewertung ---------- */
.review {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
  padding: 1.15rem 1.5rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-xs);
}
.review__stars { display: flex; gap: 0.15rem; color: #f5a623; }
.review__stars svg { width: 20px; height: 20px; }
.review p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-950);
  color: rgba(214, 231, 240, 0.72);
  font-size: var(--fs-sm);
  padding-top: clamp(3rem, 5vw, 4.5rem);
}
.site-footer h2, .site-footer h3, .site-footer h4 { color: #fff; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 3.5vw, 3rem);
  padding-bottom: clamp(2.25rem, 4vw, 3.25rem);
}
@media (max-width: 980px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: minmax(0, 1fr); } }

.footer__brand img { width: 200px; margin-bottom: var(--sp-4); }
.footer__title {
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--sp-4);
}
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.62rem; }
.footer__list li { margin: 0; }
.footer__list a, .footer__list span { color: rgba(214, 231, 240, 0.76); display: inline-flex; align-items: center; gap: 0.55em; }
.footer__list a:hover { color: var(--accent-300); }
.footer__list svg { width: 16px; height: 16px; color: var(--accent-500); flex: none; }
.footer__list b { color: #fff; font-variant-numeric: tabular-nums; }

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8438rem;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; align-items: center; }
.footer__legal a, .footer__legal button {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding-inline: 0.2rem;
  color: rgba(214, 231, 240, 0.76);
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}
.footer__legal a:hover, .footer__legal button:hover { color: var(--accent-300); text-decoration: underline; }

/* ---------- Cookie-Consent ---------- */
.consent {
  position: fixed;
  z-index: 1200;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  transform: translate(-50%, calc(100% + 2rem));
  width: min(1060px, calc(100vw - 2rem));
  padding: clamp(1.25rem, 2.5vw, 1.85rem);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: 0 30px 70px -20px rgba(0, 30, 46, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.5s var(--ease-out), opacity 0.4s var(--ease), visibility 0.4s;
}
.consent.is-visible { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
@media (max-width: 1150px) { .consent { bottom: calc(66px + max(0.75rem, env(safe-area-inset-bottom))); } }

.consent__head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.7rem; }
.consent__head svg { width: 24px; height: 24px; color: var(--brand-600); flex: none; }
.consent__head h2 {
  font-size: var(--fs-h4);
  margin: 0;
}
.consent p { font-size: 0.9063rem; color: var(--muted); }
.consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.15rem;
}
.consent__actions .btn { flex: 1 1 auto; min-width: 170px; }
.consent__links { margin-top: 0.9rem; font-size: 0.8125rem; display: flex; gap: 1.15rem; flex-wrap: wrap; }

.consent__options {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.15rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), margin-top 0.3s var(--ease);
}
.consent__options[hidden] { display: grid; }
.consent.is-detail .consent__options { max-height: 460px; overflow-y: auto; }
.consent:not(.is-detail) .consent__options { margin-top: 0; }

.consent-opt {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  padding: 0.95rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
}
.consent-opt h3 { font-size: 0.9375rem; margin: 0 0 0.2rem; }
.consent-opt p { font-size: 0.8438rem; margin: 0; }

/* Toggle */
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; margin-top: 0.1rem; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span {
  position: absolute;
  inset: 0;
  background: var(--muted-2);
  border-radius: var(--r-pill);
  transition: background 0.25s var(--ease);
  pointer-events: none;
}
.switch span::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--sh-xs);
  transition: transform 0.25s var(--ease-out);
}
.switch input:checked + span { background: var(--brand-600); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 3px solid var(--accent-500); outline-offset: 2px; }
.switch input:disabled + span { background: var(--brand-400); opacity: 0.6; cursor: not-allowed; }

/* Klick-zum-Laden Platzhalter für externe Inhalte */
.embed-consent {
  display: grid;
  place-items: center;
  gap: 0.9rem;
  min-height: 320px;
  padding: 2rem;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-2);
}
.embed-consent svg { width: 34px; height: 34px; color: var(--brand-500); }
.embed-consent p { font-size: var(--fs-sm); color: var(--muted); max-width: 46ch; margin: 0; }

/* ---------- Scroll-Progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 1100;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--grad-accent);
  pointer-events: none;
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.5rem;
  z-index: 840;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  color: var(--brand-700);
  box-shadow: var(--sh-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease-out), visibility 0.3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; }
.to-top:hover { color: var(--accent-600); border-color: var(--accent-500); }
@media (max-width: 1150px) { .to-top { bottom: calc(66px + 1rem); } }

/* ---------- Prosa (Recht) ---------- */
.prose { max-width: 78ch; }
.prose h2 { font-size: var(--fs-h3); margin-top: var(--sp-7); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--fs-h4); margin-top: var(--sp-6); }
.prose p, .prose li { color: var(--text); }
.prose a { text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.prose .placeholder {
  display: inline-block;
  padding: 0.05em 0.45em;
  border-radius: 5px;
  background: rgba(224, 146, 26, 0.15);
  border: 1px dashed rgba(224, 146, 26, 0.6);
  color: #8a5a06;
  font-family: ui-monospace, monospace;
  font-size: 0.875em;
  font-weight: 600;
}

/* Tabellen in Prosa (z. B. Cookie-Uebersicht) */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-4);
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  min-width: 32rem;
}
.table-wrap th,
.table-wrap td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}
.table-wrap thead th {
  background: var(--surface-2);
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
  border-bottom-color: var(--line);
  white-space: nowrap;
}
.table-wrap tbody tr:last-child td { border-bottom: 0; }
.table-wrap code { overflow-wrap: anywhere; }

.toc {
  padding: 1.35rem 1.5rem;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  border: 1px solid var(--line);
  margin-bottom: var(--sp-7);
}
.toc ol { margin: 0; padding-left: 1.35em; columns: 2; column-gap: 2rem; }
.toc li { font-size: var(--fs-sm); break-inside: avoid; }
@media (max-width: 640px) { .toc ol { columns: 1; } }

/* ---------- Scroll-Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal='left'] { transform: translateX(-28px); }
[data-reveal='right'] { transform: translateX(28px); }
[data-reveal='scale'] { transform: scale(0.955); }
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* ---------- Utilities ---------- */
/* Feste Zeilenumbrueche, die auf schmalen Displays entfallen */
@media (max-width: 760px) {
  br.br-wide { display: none; }
}

.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .marquee__track { animation: none; transform: none; }
  .phone:nth-child(even) { transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .topbar, .site-header, .quickbar, .consent, .to-top, .scroll-progress, .drawer { display: none !important; }
  body { padding-bottom: 0; color: #000; }
  .hero, .section--dark { background: #fff !important; color: #000 !important; }
  .hero h1, .section--dark h2, .section--dark h3 { color: #000 !important; }
  a { color: #000; text-decoration: underline; }
}
