/* ==========================================================================
   KSG – Kieler Service & Gebäudedienstleistung
   Stylesheet · Mobile First
   --------------------------------------------------------------------------
   1. Tokens          6. Hero              11. Kontakt           
   2. Base            7. Sektionen         12. Footer
   3. Layout          8. Karten & Listen   13. Fixierter Anruf  
   4. Buttons         9. Ablauf            14. Rechtliches
   5. Header & Nav   10. CTA-Band          15. Animationen
   ========================================================================== */

/* 0. Fonts (lokal gehostet, latin-Subset, Variable Font 400–700) ----------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/inter-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: "Inter Tight";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/inter-tight-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;
}

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  color-scheme: dark;
  --bg: #0a0b0d;
  --bg-rgb: 10, 11, 13;
  --surface-rgb: 20, 23, 27;
  --fg-rgb: 255, 255, 255;
  --accent-fg: var(--accent); /* Gold für Text & Icons */
  --focus: var(--accent);
  --footer-bg: #07080a;
  --placeholder: #7a7f87;
  --wa: #25d366; /* WhatsApp-Grün */
  --bg-raised: #0f1114;
  --surface: #14171b;
  --surface-2: #1b1f24;
  --line: rgba(var(--fg-rgb), 0.08);
  --line-strong: rgba(var(--fg-rgb), 0.16);
  --text: #f4f3ef;
  --text-soft: #d3d5d9;
  --muted: #aeb2b8;
  --subtle: #8a8f97;
  --accent: #efb921; /* Gold aus dem KSG-Logo */
  --accent-hi: #f7cb45;
  --accent-soft: rgba(239, 185, 33, 0.11);
  --accent-line: rgba(239, 185, 33, 0.45);
  --ink: #0a0b0d;
  --error: #ff8f80;
  --success: #86d9a9;

  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter Tight", "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-h1: clamp(2rem, 1.1rem + 4.4vw, 4.25rem);
  --fs-h2: clamp(1.85rem, 1.2rem + 2.6vw, 3.25rem);
  --fs-h3: clamp(1.2rem, 1.08rem + 0.5vw, 1.45rem);

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 68px;
  --mobile-bar-h: 72px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.75);
}


/* Helles Design (per Umschalter, gespeichert in localStorage) */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f5f1;
  --bg-rgb: 246, 245, 241;
  --bg-raised: #efede7;
  --surface: #ffffff;
  --surface-rgb: 255, 255, 255;
  --surface-2: #f3f1ec;
  --fg-rgb: 10, 11, 13;
  --line: rgba(10, 11, 13, 0.1);
  --line-strong: rgba(10, 11, 13, 0.18);
  --text: #101216;
  --text-soft: #30343a;
  --muted: #50555c;
  --subtle: #676c74;
  --accent-fg: #8a6300; /* dunkleres Gold: Kontrast ≥ 4.5:1 auf hellem Grund */
  --accent-soft: rgba(239, 185, 33, 0.2);
  --accent-line: rgba(160, 116, 0, 0.45);
  --focus: #8a6300;
  --error: #b3261e;
  --success: #1b7a45;
  --footer-bg: #ecebe5;
  --placeholder: #7b8088;
  --wa: #128c4a;
  --shadow: 0 30px 60px -30px rgba(20, 22, 26, 0.28);
}

@media (min-width: 1024px) {
  :root { --header-h: 84px; }
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  padding-bottom: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom));
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }

button, input, select, textarea { font: inherit; color: inherit; }

[hidden] { display: none !important; }

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

::selection { background: var(--accent); color: var(--ink); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 300;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.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;
}

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

.icon.icon--fill { fill: currentColor; stroke: none; }

/* 3. Layout ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--tight { padding-block: var(--section); } /* gleicher Rhythmus wie alle Sections, damit Eyebrows einheitlich sitzen */
.section--raised {
  --cell-bg: var(--bg-raised);
  background: var(--bg-raised);
  border-block: 1px solid var(--line);
}
/* Zwei gleichfarbige Sections nacheinander: kein doppelter Abstand.
   Nach einer hinterlegten Section (Trennlinie) aber immer voller Abstand – sonst klebt die Eyebrow an der Linie. */
.section + .section:not(.section--raised) { padding-top: 0; }
.section.section--raised + .section { padding-top: var(--section); }

.section-head { max-width: 780px; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head .lead { margin-top: 1.25rem; }
@media (min-width: 800px) { .section-head--nowrap { max-width: none; } .section-head--nowrap .h2 { white-space: nowrap; } }

@media (min-width: 1024px) {
  .section-head--split {
    max-width: none;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: end;
  }
  .section-head--split .lead { margin-top: 0; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: var(--accent-fg);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 28px;
  height: 1px;
  background: currentColor;
}

.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); letter-spacing: -0.015em; }

.lead { max-width: 62ch; color: var(--muted); font-size: var(--fs-lead); line-height: 1.6; }

.prose { max-width: 64ch; }
.prose p { color: var(--muted); }
.prose p + p { margin-top: 1.1em; }
.prose strong { color: var(--text); font-weight: 600; }
.h2 + .prose { margin-top: 1.5rem; }

.split {
  display: grid;
  gap: clamp(2.5rem, 2rem + 3vw, 5.5rem);
  align-items: start; /* Eyebrow immer oben – nicht neben hohen Bildern nach unten zentriert */
}
@media (min-width: 1024px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: -1; }
  /* Bild füllt die Höhe des Textblocks und schließt unten bündig ab */
  .split--fill { align-items: stretch; }
  .split--fill .split__media,
  .split--fill .media-frame { height: 100%; }
  .split--fill .media-frame img { height: 100%; aspect-ratio: auto; }
}
.split__content .btn-group,
.split__content .text-link { margin-top: 2.25rem; }

.grid-2 { display: grid; gap: 1.25rem; }
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

/* 4. Buttons --------------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 54px;
  padding: 0.85rem 1.4rem;
  border: 1px solid var(--btn-bd);
  border-radius: 10px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { --btn-bg: rgba(var(--fg-rgb), 0.06); --btn-bd: rgba(var(--fg-rgb), 0.34); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn .icon { width: 1.15em; height: 1.15em; transition: transform 0.25s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(3px); }

.btn--primary {
  --btn-bg: var(--accent);
  --btn-fg: var(--ink);
  --btn-bd: var(--accent);
  box-shadow: 0 12px 32px -14px rgba(239, 185, 33, 0.6);
}
.btn--primary:hover { --btn-bg: var(--accent-hi); --btn-bd: var(--accent-hi); box-shadow: 0 16px 36px -14px rgba(239, 185, 33, 0.75); }
.btn--primary .icon { stroke-width: 2; }

.btn--dark { --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink); }
.btn--dark:hover { --btn-bg: #1e2227; --btn-bd: #1e2227; }

.btn--outline-dark { --btn-fg: var(--ink); --btn-bd: rgba(10, 11, 13, 0.4); }
.btn--outline-dark:hover { --btn-bg: rgba(10, 11, 13, 0.08); --btn-bd: var(--ink); }
.btn--outline-dark:focus-visible, .btn--dark:focus-visible { outline-color: var(--ink); }

.btn--sm { min-height: 44px; padding: 0.55rem 1rem; font-size: 0.9375rem; }

.btn--wa .icon { color: var(--wa); }
.btn--icon { width: 50px; padding: 0; }

.btn-group { display: flex; flex-direction: column; gap: 0.75rem; }
.btn-group .btn { width: 100%; }
@media (min-width: 600px) {
  .btn-group { flex-direction: row; flex-wrap: wrap; }
  .btn-group .btn { width: auto; }
}

/* Unterseiten-Hero: ein Haupt-CTA, darunter Telefon & WhatsApp als ruhige Direktkontakte */
.hero-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.hero-contact__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.hero-contact__link .icon { width: 1.15rem; height: 1.15rem; color: var(--accent-fg); }
.hero-contact__link--wa .icon { color: var(--wa); }
.hero-contact__link:hover { color: var(--accent-fg); }
@media (max-width: 599px) {
  .hero-contact { row-gap: 0; margin-top: 1.25rem; }
  .hero-contact > span { flex-basis: 100%; }
}
.hero-contact__link + .hero-contact__link { position: relative; }
.hero-contact__link + .hero-contact__link::before {
  content: "";
  position: absolute;
  left: -0.75rem;
  top: 50%;
  width: 1px;
  height: 1.1em;
  background: var(--line-strong);
  transform: translateY(-50%);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--line-strong);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.text-link .icon { width: 1.1em; height: 1.1em; transition: transform 0.25s var(--ease); }
.text-link:hover { color: var(--accent-fg); border-color: var(--accent); }
.text-link:hover .icon { transform: translateX(3px); }

/* 5. Header & Navigation --------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
/* Hintergrund als Pseudo-Element: backdrop-filter würde sonst das fixierte Mobile-Menü einschließen */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(var(--bg-rgb), 0.78);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  transition: background-color 0.3s var(--ease);
}
.site-header.is-scrolled { border-color: var(--line); }
.site-header.is-scrolled::before { background: rgba(var(--bg-rgb), 0.92); }
.nav-open .site-header::before { background: var(--bg); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  border-radius: 6px;
}
.brand img { width: auto; height: 44px; }
.brand-text {
  display: none;
  padding-left: 0.8rem;
  border-left: 1px solid var(--line-strong);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.01em;
}
@media (min-width: 430px) { .brand-text { display: block; } }
@media (min-width: 1024px) {
  .brand img { height: 54px; }
  .brand-text { display: none; }
}
@media (min-width: 1280px) { .brand-text { display: block; } }

/* Mobile Navigation (Off-Canvas) */
.site-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 1rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.25s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
}
.nav-open .site-nav {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.25s var(--ease), transform 0.3s var(--ease), visibility 0s;
}
/* Scrollsperre nur auf <html>: overflow auf <body> würde den sticky Header vom Fenster lösen */
.nav-open { overflow: hidden; }

.nav-list { list-style: none; display: flex; flex-direction: column; }
.nav-list > li { border-bottom: 1px solid var(--line); }

.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.9rem 0;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav-link:hover { color: var(--accent-fg); }
.nav-link[aria-current="page"], .nav-link.is-active { color: var(--accent-fg); }
.nav-link .icon { width: 1.1rem; height: 1.1rem; transition: transform 0.25s var(--ease); }
.nav-dropdown > button[aria-expanded="true"] .icon { transform: rotate(180deg); }

.submenu { list-style: none; display: none; padding: 0 0 1rem; }
.nav-dropdown > button[aria-expanded="true"] + .submenu { display: block; }

.submenu a {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.65rem 0;
  border-radius: 10px;
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.submenu a small { display: block; margin-top: 0.15rem; color: var(--subtle); font-size: 0.75rem; font-weight: 400; }
.submenu a:hover, .submenu a[aria-current="page"] { color: var(--accent-fg); }
.submenu-all { border-top: 1px solid var(--line); margin-top: 0.5rem; padding-top: 0.5rem; }
.submenu-all a { font-size: 0.95rem; color: var(--muted); }

.nav-mobile-contact { display: grid; gap: 0.75rem; margin-top: 2rem; }
.nav-mobile-meta { margin-top: 0.5rem; color: var(--subtle); font-size: 0.9rem; text-align: center; }
.nav-mobile-meta a { color: var(--text-soft); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }

.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover { border-color: rgba(var(--fg-rgb), 0.34); background: rgba(var(--fg-rgb), 0.05); }
.icon-btn--call { color: var(--accent-fg); }
.icon-btn--wa { color: var(--wa); }
.icon-btn--wa .icon { width: 1.3rem; height: 1.3rem; }
.icon-btn--wa:hover { border-color: var(--wa); background: rgba(37, 211, 102, 0.08); }
@media (max-width: 1023px) {
  /* Handy & Tablet: WhatsApp direkt neben Anrufen, Design-Umschalter davor */
  .header-wa, .icon-btn--call, .nav-toggle { order: 1; }
}
@media (max-width: 899px) {
  /* Handy: Anrufen & WhatsApp stehen in der Leiste am unteren Rand – nicht doppelt im Header */
  .header-wa, .icon-btn--call { display: none; }
}
@media (max-width: 379px) {
  /* sehr schmale Handys: Buttons etwas kompakter, damit alles in eine Zeile passt */
  .header-actions { gap: 0.375rem; }
  .header-actions .icon-btn { width: 44px; height: 44px; }
}

.nav-toggle span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 1.75px;
  margin-left: -10px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) { transform: translateY(-4px); }
.nav-toggle span:nth-child(2) { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: rotate(-45deg); }

.header-phone, .header-cta { display: none; }

@media (min-width: 1024px) {
  .site-nav {
    position: static;
    inset: auto;
    flex-direction: row;
    margin-inline: auto;
    padding: 0;
    overflow: visible;
    background: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .nav-open, .nav-open body { overflow: visible; }

  .nav-list { flex-direction: row; align-items: center; gap: 0.15rem; }
  .nav-list > li { position: relative; border: 0; }

  .nav-link {
    position: relative;
    width: auto;
    gap: 0.35rem;
    padding: 0.6rem 0.95rem;
    border-radius: 8px;
    color: var(--text-soft);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0;
  }
  .nav-link:hover { color: var(--text); background: rgba(var(--fg-rgb), 0.05); }
  .nav-link[aria-current="page"], .nav-link.is-active { color: var(--text); }
  .nav-link[aria-current="page"]::after, .nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 0.95rem;
    right: 0.95rem;
    bottom: 0.3rem;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
  }
  .nav-link .icon { width: 0.95rem; height: 0.95rem; }

  .submenu {
    display: block;
    position: absolute;
    top: calc(100% + 12px);
    left: -0.75rem;
    width: 280px;
    padding: 0.5rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
  .nav-dropdown > button[aria-expanded="true"] + .submenu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.2s var(--ease), transform 0.25s var(--ease), visibility 0s;
  }
  .submenu a { padding: 0.6rem 0.85rem; color: var(--text); font-size: 0.95rem; }
  .submenu a:hover, .submenu a[aria-current="page"] { color: var(--text); background: rgba(var(--fg-rgb), 0.05); }
  .submenu-all { margin-top: 0.35rem; padding-top: 0.35rem; }
  .submenu-all a { color: var(--muted); padding-block: 0.55rem; }

  .nav-mobile-contact, .icon-btn--call, .nav-toggle { display: none; }
  .header-cta { display: inline-flex; }
}

@media (min-width: 1024px) and (hover: hover) {
  .nav-dropdown:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.2s var(--ease), transform 0.25s var(--ease), visibility 0s;
  }
}

@media (min-width: 1024px) {
  .header-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    color: var(--text);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    transition: color 0.2s var(--ease);
  }
  .header-phone .icon { color: var(--accent-fg); width: 1.1rem; height: 1.1rem; }
  .header-phone:hover { color: var(--accent-fg); }
}

/* Logo-Varianten & Design-Umschalter */
.logo--on-light { display: none; }
[data-theme="light"] .logo--on-dark { display: none; }
[data-theme="light"] .logo--on-light { display: block; }

.theme-toggle .icon { width: 1.2rem; height: 1.2rem; }
.theme-toggle .icon--moon { display: none; }
[data-theme="light"] .theme-toggle .icon--sun { display: none; }
[data-theme="light"] .theme-toggle .icon--moon { display: block; }

.theme-switching *, .theme-switching *::before, .theme-switching *::after {
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, fill 0.35s ease, stroke 0.35s ease !important;
}

/* 6. Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(2.75rem, 1.5rem + 6vw, 5rem) clamp(2.5rem, 2rem + 3vw, 3.75rem);
  border-bottom: 1px solid var(--line);
}

.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }

/* Hero-Foto (Startseite) */
.hero-slide { position: absolute; inset: 0; opacity: 0; }
.hero-slide.is-active { z-index: 2; opacity: 1; }
.hero-media::after { z-index: 3; }
/* Gespiegelte Motive: Mitarbeiter steht rechts, der Text links bleibt frei */
.hero-slide.is-flip { transform: scaleX(-1); }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, center);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(var(--bg-rgb), 0.72) 0%, rgba(var(--bg-rgb), 0.86) 50%, var(--bg) 100%);
}

.hero-content { max-width: 860px; }
.hero-title {
  margin-bottom: 1.5rem;
  font-size: var(--fs-h1);
  line-height: 1.03;
  letter-spacing: -0.035em;
}
.hero-title span { display: block; color: var(--accent-fg); } /* Keyword + Stadt in Zeile 1, Aussage in Gold darunter */
.hero--page .hero-title, .hero--plain .hero-title { font-size: clamp(2rem, 1.2rem + 3vw, 3.6rem); } /* längere Titel mit Stadtname */
.hero .lead { margin-bottom: 2.25rem; color: var(--text-soft); }

/* Startseite: zweiter Hero-Absatz – auf Mobile unter den Buttons, damit der CTA sofort sichtbar ist */
.hero--home .hero-content { display: flex; flex-direction: column; }
.hero--home .eyebrow { align-self: flex-start; }
.hero--home .hero-title { font-size: clamp(2rem, 1.15rem + 3.9vw, 3.9rem); }
.hero--home .lead { margin-bottom: 1.75rem; }
.hero-text { order: 3; max-width: 62ch; margin-top: 1.75rem; color: var(--muted); }
@media (min-width: 760px) {
  .hero--home .lead { margin-bottom: 1rem; }
  .hero-text { order: 0; margin: 0 0 2.25rem; }
}

.trust-bar {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1.25rem;
  max-width: 920px;
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.75rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-strong);
}
.trust-bar li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
}
.trust-bar .icon { width: 1.1rem; height: 1.1rem; margin-top: 0.05rem; color: var(--accent-fg); stroke-width: 2.25; }
@media (min-width: 760px) {
  .trust-bar { display: flex; flex-wrap: wrap; gap: 0.9rem 2.25rem; max-width: none; }
}
@media (min-width: 1024px) {
  .trust-bar { justify-content: space-between; gap: 0.9rem 1.5rem; } /* bricht nur um, wenn es wirklich nicht passt */
  .trust-bar li { white-space: nowrap; }
}

@media (min-width: 1024px) {
  .hero {
    display: flex;
    align-items: center;
    min-height: min(880px, calc(100svh - var(--header-h)));
    padding-block: 4.5rem 3.5rem;
  }
  .hero-inner { width: 100%; }
  .hero-media { left: auto; width: 56%; }
  .hero-media::after {
    background:
      linear-gradient(90deg, var(--bg) 0%, rgba(var(--bg-rgb), 0.62) 28%, rgba(var(--bg-rgb), 0.12) 62%, rgba(var(--bg-rgb), 0.3) 100%),
      linear-gradient(0deg, var(--bg) 0%, rgba(var(--bg-rgb), 0) 32%);
  }
  /* Startseite: das Hero-Foto über die gesamte Breite führen. */
  .hero--home .hero-media { left: 0; width: 100%; }
  /* Hero-Fotos: rechte Hero-Seite füllen, Ausschnitt so, dass der Kopf im Bild bleibt,
     nach links weich in den Hintergrund auslaufen */
  .hero-media img.hero-slide.is-side {
    left: auto;
    width: 58%;
    object-position: var(--pos-lg, 50% 50%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
  }
  .hero-media img.hero-slide.is-daylight { filter: brightness(0.82) saturate(0.95); } /* Tageslicht-Fotos an die dunkle Seite angleichen */
  /* gespiegelt: Maske wird mitgespiegelt, daher Richtung umkehren */
  .hero-media img.hero-slide.is-side.is-flip {
    -webkit-mask-image: linear-gradient(270deg, transparent 0%, #000 38%);
    mask-image: linear-gradient(270deg, transparent 0%, #000 38%);
  }
  .hero--home .hero-media::after {
    background:
      linear-gradient(90deg, rgba(var(--bg-rgb), 0.96) 0%, rgba(var(--bg-rgb), 0.88) 30%, rgba(var(--bg-rgb), 0.58) 50%, rgba(var(--bg-rgb), 0.12) 75%, rgba(var(--bg-rgb), 0.2) 100%),
      linear-gradient(0deg, var(--bg) 0%, rgba(var(--bg-rgb), 0) 32%);
  }
  .hero-content { max-width: 760px; }
  .hero--home .hero-content { max-width: 840px; }
  .hero--page { min-height: min(760px, calc(100svh - var(--header-h))); }
  .hero--page .hero-content { max-width: 720px; }
}

/* Hero ohne Bild (Kontakt, Rechtliches) */
.hero--plain::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 85% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 90% at 85% 0%, #000 0%, transparent 70%);
}
.hero--plain::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -30%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 720px;
  max-height: 720px;
  background: radial-gradient(circle, rgba(239, 185, 33, 0.1) 0%, transparent 65%);
}
@media (min-width: 1024px) {
  .hero--plain { min-height: 0; padding-block: 5.5rem 4.5rem; }
}

.breadcrumb { margin-bottom: 1.75rem; }
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: var(--subtle);
  font-size: 0.85rem;
}
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; opacity: 0.6; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--text-soft); }

/* 7. Sektionen ------------------------------------------------------------- */
.position { display: grid; gap: 2rem; }
@media (min-width: 1024px) {
  .position { grid-template-columns: 5fr 6fr; gap: 5rem; align-items: start; }
}
.position .prose { font-size: 1.0625rem; }
.position-claim {
  margin-top: 1.5rem;
  color: var(--accent-fg);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.7rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
@media (min-width: 1024px) {
  .position > div:first-child { position: sticky; top: calc(var(--header-h) + 2rem); }
}

.focus-list-label {
  margin-top: 2.5rem;
  color: var(--subtle);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
@media (max-width: 479px) { .focus-list { grid-template-columns: 1fr !important; } }
.focus-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1.5rem;
  margin-top: 1rem;
  border-top: 1px solid var(--line-strong);
}
.focus-list-label { font-family: var(--font); line-height: 1.3; }
.focus-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
  line-height: 1.3;
}
.focus-list li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--accent);
  transform: rotate(45deg);
}

.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.media-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: var(--pos, center); }
.media-frame--wide img { aspect-ratio: 4 / 3; }
.media-frame::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 72px;
  height: 72px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  border-top-left-radius: var(--radius-lg);
  pointer-events: none;
}
.media-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content;
  max-width: calc(100% - 2rem);
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(var(--bg-rgb), 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.3;
}
.media-caption::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.owner-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  width: fit-content;
  max-width: 100%;
}
.owner-card .benefit__icon { width: 44px; height: 44px; margin: 0; }
.owner-card span { display: block; color: var(--subtle); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.statement { margin: 2rem 0 1.5rem; padding-left: 1.25rem; border-left: 3px solid var(--accent); }
.statement__label { margin-bottom: 0.4rem; color: var(--subtle); font-size: 0.9rem; }
.statement__text {
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.statement__text span { color: var(--accent-fg); }
.owner-card strong { display: block; color: var(--text); font-weight: 600; line-height: 1.35; }

.tags-label {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--subtle);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.875rem;
  line-height: 1.4;
}

/* 8. Karten & Listen ------------------------------------------------------- */
.services-grid { display: grid; gap: 1.25rem; }
@media (min-width: 760px) {
  .services-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color 0.3s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.service-card:hover { border-color: var(--accent-line); transform: translateY(-3px); box-shadow: var(--shadow); }
.service-card:focus-within { border-color: var(--accent-line); }

.service-card__media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface-2); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); transition: transform 0.7s var(--ease); }
.service-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(var(--surface-rgb), 0.55) 0%, transparent 45%); }
.service-card:hover .service-card__media img { transform: scale(1.04); }

.service-card__body { display: flex; flex: 1; flex-direction: column; gap: 0.9rem; padding: 1.5rem; }
@media (min-width: 1024px) { .service-card__body { padding: 2rem 2rem 2.1rem; } }

.service-card h3 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem); }
.service-card p { color: var(--muted); }
.service-card .service-card__intro { color: var(--text-soft); font-weight: 500; }
.service-card .service-card__list-label { margin-top: 0.25rem; color: var(--text); font-size: 0.9rem; font-weight: 600; }
.service-card__list { list-style: none; display: grid; gap: 0.45rem 1.25rem; margin-bottom: 0.75rem; }
@media (min-width: 480px) { .service-card__list { grid-template-columns: 1fr 1fr; } }
.service-card__list li { display: flex; align-items: flex-start; gap: 0.55rem; color: var(--text-soft); font-size: 0.95rem; line-height: 1.45; }
.service-card__list .icon { width: 1.05rem; height: 1.05rem; margin-top: 0.15rem; color: var(--accent-fg); stroke-width: 2.25; }
.service-card__cta { margin-top: auto; align-self: flex-start; }
.service-card__cta::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.service-card__cta:focus-visible { outline: none; }
.service-card__cta:focus-visible::after { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: var(--radius-lg); }
.service-card:hover .service-card__cta { color: var(--accent-fg); border-color: var(--accent); }
.service-card:hover .service-card__cta .icon { transform: translateX(3px); }
/* Fünfte Karte: über beide Spalten, Bild links und Text rechts – kein einzelnes Loch im Raster */
@media (min-width: 760px) {
  .service-card--wide { grid-column: 1 / -1; flex-direction: row; }
  .service-card--wide .service-card__media { flex: 0 0 46%; aspect-ratio: auto; }
  .service-card--wide .service-card__media img { position: absolute; inset: 0; } /* Text bestimmt die Höhe, Foto füllt nur */
  .service-card--wide .service-card__media::after { background: linear-gradient(270deg, rgba(var(--surface-rgb), 0.55) 0%, transparent 45%); }
}

.section-foot {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
}
.section-foot p { color: var(--muted); }
.section-foot p strong { display: block; margin-bottom: 0.2rem; color: var(--text); font-size: 1.125rem; font-weight: 600; }
@media (min-width: 1200px) {
  .section-foot { flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.75rem 2rem; }
  .section-foot .btn-group { flex-wrap: nowrap; flex: none; }
}

.benefits {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
}
@media (min-width: 600px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .benefits { grid-template-columns: repeat(4, 1fr); } }

.benefit { padding: 2rem 1.5rem; background: var(--cell-bg, var(--bg)); transition: background-color 0.3s var(--ease); }
.benefit:hover { background: var(--surface); }
@media (min-width: 1100px) { .benefit { padding: 2.5rem 2rem; } }
.benefit__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-fg);
}
.benefit__icon .icon { width: 1.5rem; height: 1.5rem; }
.benefit__icon--wa { color: var(--wa); background: rgba(37, 211, 102, 0.12); }
.benefit h3 { margin-bottom: 0.6rem; font-size: 1.2rem; letter-spacing: -0.01em; }
.benefit p { color: var(--muted); font-size: 0.975rem; }
@media (min-width: 600px) and (max-width: 1099px) { .benefits--5 > :last-child { grid-column: 1 / -1; } }
@media (min-width: 1100px) {
  .benefits--5 { grid-template-columns: repeat(6, 1fr); }
  .benefits--5 > :nth-child(-n + 3) { grid-column: span 2; }
  .benefits--5 > :nth-child(n + 4) { grid-column: span 3; }
}

.card {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.card__title { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.5rem; font-size: var(--fs-h3); }
.card__title .benefit__icon { width: 44px; height: 44px; margin: 0; }
.card__title .benefit__icon .icon { width: 1.3rem; height: 1.3rem; }
.card-note { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--subtle); font-size: 0.9rem; }

.checklist { list-style: none; display: grid; gap: 0.9rem; }
.checklist li { display: flex; align-items: flex-start; gap: 0.8rem; color: var(--text-soft); line-height: 1.5; }
.checklist .icon { width: 1.2rem; height: 1.2rem; margin-top: 0.15rem; color: var(--accent-fg); stroke-width: 2.25; }

.gallery { display: grid; gap: 1rem; }
@media (min-width: 600px) { .gallery { grid-template-columns: repeat(var(--cols, 2), 1fr); gap: 1.25rem; } }
@media (max-width: 899px) { .gallery[style*="--cols:3"] { grid-template-columns: 1fr 1fr; } .gallery[style*="--cols:3"] figure:last-child { display: none; } }
@media (max-width: 599px) { .gallery[style*="--cols:3"] { grid-template-columns: 1fr; } .gallery[style*="--cols:3"] figure:last-child { display: block; } }
.gallery figure { position: relative; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 0.7s var(--ease); }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { padding: 0.9rem 1.1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; }

.photo-carousel { padding: clamp(0.75rem, 1.5vw, 1.25rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.photo-carousel__controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.25rem 0.25rem 1rem; }
.photo-carousel__controls[hidden] { display: none; }
.photo-carousel__label { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.photo-carousel__label-title { color: var(--text); font-weight: 600; font-size: 0.9375rem; }
.photo-carousel__label-count { color: var(--muted); font-size: 0.8125rem; }
.photo-carousel__arrows { display: flex; flex: none; gap: 0.5rem; }
.photo-carousel__arrows .btn { width: 48px; min-height: 48px; border-radius: 50%; --btn-bg: var(--surface-2); }
.photo-carousel__arrows .btn:hover { --btn-bd: var(--accent-line); --btn-bg: var(--accent-soft); }
.photo-carousel__track { display: flex; gap: 0.75rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; padding-bottom: 0.5rem; }
.photo-carousel__track figure { flex: 0 0 85%; margin: 0; overflow: hidden; scroll-snap-align: start; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.photo-carousel__track img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 600px) { .photo-carousel__track figure { flex-basis: calc((100% - 0.75rem) / 2); } }
@media (min-width: 900px) { .photo-carousel__track { gap: 1rem; } .photo-carousel__track figure { flex-basis: calc((100% - 2rem) / 3); } }

/* Vorher-Nachher-Slider */
.compare-figure { margin: 0; }
.compare-figure figcaption { padding: 0.75rem 0.25rem 0; color: var(--muted); font-size: 0.875rem; }
.compare { --pos: 50%; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.compare__img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; pointer-events: none; }
.compare--portrait .compare__img { aspect-ratio: 4 / 5; }
.compare--landscape .compare__img { aspect-ratio: 4 / 3; }
@media (min-width: 700px) { .compare--landscape .compare__img { aspect-ratio: 16 / 9; } }
.compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__before .compare__img { height: 100%; }
.compare__tag { position: absolute; top: 0.75rem; padding: 0.25rem 0.625rem; border-radius: 999px; background: rgba(10, 11, 13, 0.7); color: #fff; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; pointer-events: none; }
.compare__tag--before { left: 0.75rem; }
.compare__tag--after { right: 0.75rem; }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(10, 11, 13, 0.25); pointer-events: none; }
.compare__knob { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 2px 10px rgba(10, 11, 13, 0.4); }
.compare__knob .icon { width: 22px; height: 22px; }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.compare:focus-within .compare__knob { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (min-width: 1024px) {
  /* Slider füllt die Höhe der Nachbarspalte */
  .split--fill .compare-figure,
  .split--fill .compare { height: 100%; }
  .split--fill .compare { min-height: 360px; }
  .split--fill .compare > .compare__img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
}
.benefits-split { display: grid; gap: 1.25rem; }
@media (min-width: 1280px) {
  .benefits-split { grid-template-columns: 1fr 1fr; }
  .benefits-split .benefits { grid-template-columns: 1fr 1fr; }
  .benefits-split__media { order: -1; }
  .benefits-split .compare-figure,
  .benefits-split .compare { height: 100%; }
  .benefits-split .compare { min-height: 360px; }
  .benefits-split .compare > .compare__img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
}

.related { display: grid; gap: 1rem; }
@media (min-width: 760px) { .related { grid-template-columns: repeat(var(--cols, 3), 1fr); } }
.related-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.related-link:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.related-link strong { display: block; color: var(--text); font-weight: 600; line-height: 1.3; }
.related-link small { display: block; color: var(--subtle); font-size: 0.85rem; }
.related-link > .icon { margin-left: auto; color: var(--subtle); transition: transform 0.25s var(--ease), color 0.2s var(--ease); }
.related-link:hover > .icon { color: var(--accent-fg); transform: translateX(3px); }

/* 9. Ablauf ---------------------------------------------------------------- */
.steps { list-style: none; display: grid; gap: 1rem; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

.step {
  position: relative;
  padding: 2rem 1.5rem 1.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
@media (min-width: 1024px) { .step { padding: 2.5rem 2rem 2.25rem; } }
.step__num {
  display: block;
  margin-bottom: 1.5rem;
  color: transparent;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  -webkit-text-stroke: 1.25px var(--accent-fg);
  font-variant-numeric: tabular-nums;
}
@supports not (-webkit-text-stroke: 1px black) { .step__num { color: var(--accent-fg); } }
.step h3 { margin-bottom: 0.65rem; font-size: 1.3rem; letter-spacing: -0.015em; }
.step p { color: var(--muted); }
@media (min-width: 900px) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 3.75rem;
    right: calc(-1.5rem - 1px);
    width: 1.5rem;
    height: 1px;
    background: var(--accent-line);
  }
}

.steps-foot { display: flex; flex-direction: column; gap: 1rem; margin-top: 2.5rem; }
.steps-foot p { color: var(--muted); }
.steps-foot a:not(.btn) { color: var(--text); font-weight: 600; white-space: nowrap; }
.steps-foot a:not(.btn):hover { color: var(--accent-fg); }
@media (min-width: 600px) { .steps-foot { flex-direction: row; align-items: center; gap: 1.75rem; } }

/* 10. CTA-Band ------------------------------------------------------------- */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2.5rem, 1.5rem + 5vw, 5.5rem) clamp(1.5rem, 1rem + 4vw, 5rem);
  border-radius: var(--radius-lg);
  background: var(--accent);
  color: var(--ink);
}
.cta-band .eyebrow { color: var(--ink); }
.cta-band h2 { max-width: 20ch; font-size: var(--fs-h2); }
.cta-band p { max-width: 56ch; margin-top: 1.25rem; color: rgba(10, 11, 13, 0.8); font-size: var(--fs-lead); }
.cta-band .btn-group { margin-top: 2.25rem; }
.cta-band__art {
  position: absolute;
  right: -3%;
  bottom: -6%;
  z-index: -1;
  width: min(62%, 440px);
  fill: none;
  stroke: rgba(10, 11, 13, 0.1);
  stroke-width: 10;
  stroke-linejoin: miter;
  pointer-events: none;
}
@media (max-width: 759px) { .cta-band__art { width: 70%; opacity: 0.7; } }
.cta-band ::selection { background: var(--ink); color: var(--accent-fg); }

/* 11. Kontakt -------------------------------------------------------------- */
.contact-options { display: grid; gap: 1.25rem; }
@media (min-width: 760px) {
  .contact-options { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .contact-options > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .contact-options { grid-template-columns: repeat(3, 1fr); }
  .contact-options > :last-child:nth-child(odd) { grid-column: auto; }
}

.contact-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  padding: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.contact-option--primary {
  border-color: var(--accent-line);
  background: linear-gradient(160deg, var(--accent-soft) 0%, transparent 55%), var(--surface);
}
.contact-option .benefit__icon { margin-bottom: 0.4rem; }
.contact-option h3 { font-size: var(--fs-h3); }
.contact-option p { max-width: 46ch; color: var(--muted); }
.contact-option__value {
  margin-block: 0.25rem 0.75rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-decoration: none;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s var(--ease);
}
.contact-option__value:hover { color: var(--accent-fg); }
.contact-option .btn { margin-top: auto; }
@media (max-width: 599px) { .contact-option .btn { width: 100%; } }

.contact-details { margin-top: 1.5rem; }

/* Anfrageformular */
.btn .icon--down { transition: transform 0.25s var(--ease); }
.btn:hover .icon--down { transform: translateY(3px); }

.inquiry { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
@media (min-width: 1024px) {
  .inquiry { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; }
  .inquiry__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.inquiry__intro .lead { margin-top: 1.25rem; }
.inquiry__intro .checklist { margin-top: 2rem; }
.inquiry__direct { margin-top: 2.25rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.inquiry__direct p { color: var(--subtle); font-size: 0.9375rem; }
.inquiry__links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; margin-top: 0.85rem; }
.inquiry__links .icon--fill { color: var(--wa); }

.section--raised .inquiry-form { box-shadow: var(--shadow); }

.form-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; gap: 1.35rem 1.25rem; }
  .field--full { grid-column: 1 / -1; }
}

.field label { display: block; margin-bottom: 0.5rem; color: var(--text-soft); font-size: 0.9375rem; font-weight: 600; }
.field label small { color: var(--subtle); font-size: 0.85em; font-weight: 400; }
.req { color: var(--accent-fg); }

.input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem; /* ≥ 16px: kein Auto-Zoom auf iOS */
  line-height: 1.4;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.input::placeholder { color: var(--placeholder); opacity: 1; }
.input:hover { border-color: rgba(var(--fg-rgb), 0.3); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input[aria-invalid="true"] { border-color: var(--error); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--error) 22%, transparent); }
textarea.input { min-height: 150px; resize: vertical; }

.select { position: relative; }
.select select { padding-right: 2.75rem; appearance: none; cursor: pointer; }
.select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.15rem;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1.75px solid var(--muted);
  border-bottom: 1.75px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.field__error { margin-top: 0.45rem; color: var(--error); font-size: 0.875rem; line-height: 1.4; }


/* Honeypot: für Menschen unsichtbar, für Bots ein normales Feld */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-foot { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.75rem; }
.form-foot p { color: var(--subtle); font-size: 0.875rem; }
.form-foot a { color: var(--muted); }
@media (min-width: 640px) {
  .form-foot { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (max-width: 639px) { .form-foot .btn { width: 100%; } }

.form-status {
  margin-top: 1.25rem;
  padding: 0.95rem 1.15rem;
  border: 1px solid var(--error);
  border-radius: 12px;
  background: color-mix(in srgb, var(--error) 9%, transparent);
  color: var(--text);
  font-size: 0.9375rem;
}
.form-status a { color: inherit; }

.inquiry-form__success { padding-block: clamp(1rem, 0.5rem + 3vw, 3rem); text-align: center; }
.inquiry-form__success:focus { outline: none; }
.inquiry-form__success .benefit__icon { margin-inline: auto; color: var(--success); background: color-mix(in srgb, var(--success) 14%, transparent); }
.inquiry-form__success .icon { stroke-width: 2.25; }
.inquiry-form__success h3 { font-size: var(--fs-h3); }
.inquiry-form__success p { max-width: 42ch; margin: 0.75rem auto 0; color: var(--muted); }

/* 12. Footer --------------------------------------------------------------- */
.site-footer {
  padding-top: clamp(3.5rem, 3rem + 3vw, 6rem);
  border-top: 1px solid var(--line);
  background: var(--footer-bg);
  font-size: 0.95rem;
}
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 3rem; } }

.footer-brand img { width: auto; height: 88px; margin-bottom: 1.5rem; }
.footer-brand p { max-width: 36ch; color: var(--muted); }
.footer-brand p strong { display: block; margin-bottom: 0.35rem; color: var(--text); font-weight: 600; }
.footer-brand .btn { margin-top: 1.5rem; }

.footer-title { margin-bottom: 1rem; color: var(--subtle); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.footer-links { list-style: none; display: grid; gap: 0.2rem; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding-block: 0.3rem;
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.footer-links a:hover { color: var(--accent-fg); }
.footer-links .icon { width: 1.05rem; height: 1.05rem; color: var(--accent-fg); }
.footer-contact address { margin-bottom: 1rem; color: var(--text-soft); line-height: 1.7; }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 0.85rem;
}
@media (min-width: 760px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }

/* 13. Fixierter Anruf ------------------------------------------------------ */
/* Mobile: Leiste am unteren Rand */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(var(--bg-rgb), 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform 0.3s var(--ease);
}
.mobile-cta .btn { min-height: 50px; gap: 0.5rem; padding: 0.55rem 0.5rem; font-size: 0.95rem; box-shadow: none; }
.mobile-cta .btn:not(.btn--primary) .icon { color: var(--accent-fg); }
.mobile-cta .btn.btn--wa .icon { color: var(--wa); }
.nav-open .mobile-cta { transform: translateY(110%); }
@media (min-width: 900px) { .mobile-cta { display: none; } }

/* 14. Rechtliches ---------------------------------------------------------- */
.legal { max-width: 780px; }
.legal h2 { margin: 2.5rem 0 0.75rem; font-size: 1.35rem; letter-spacing: -0.01em; }
.legal > h2:first-child { margin-top: 0; }
.legal h3 { margin: 1.75rem 0 0.6rem; color: var(--text-soft); font-size: 1.05rem; letter-spacing: -0.005em; }
.legal h4 { margin: 1.25rem 0 0.4rem; color: var(--text-soft); font-size: 0.95rem; font-weight: 600; }
.legal p, .legal address { color: var(--muted); }
.legal p + p, .legal p + address, .legal address + p { margin-top: 0.9rem; }
.legal a { color: var(--text); }
.legal ul { margin-top: 0.9rem; padding-left: 1.25rem; color: var(--muted); }
.legal li + li { margin-top: 0.5rem; }
.legal ul + p { margin-top: 0.9rem; }
.legal a { overflow-wrap: anywhere; }
.notice {
  margin-bottom: 2rem;
  padding: 1.1rem 1.25rem;
  border: 1px dashed var(--accent-line);
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* 15. Animationen ---------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: 0.08s; }
.js .reveal-d2 { transition-delay: 0.16s; }
.js .reveal-d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}
