/* ============================================================
   TopLocal Media – Design System
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Farben */
  --blue:        #2350b8;
  --blue-dark:   #1c3f92;
  --accent:      #e8412a;
  --accent-dark: #cf3620;
  --text:        #0f172a;
  --text-muted:  #475569;
  --bg:          #ffffff;
  --bg-alt:      #f8fafc;
  --border:      #e2e8f0;

  /* Typografie */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --container: 1200px;
  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 4px 20px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.10);

  /* Sektions-Padding */
  --section-y: clamp(64px, 9vw, 120px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
ul { list-style: none; }

/* ---------- Typografie ---------- */
h1, h2, h3, h4 { line-height: 1.15; color: var(--text); font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 700; }
p  { color: var(--text-muted); }

.text-accent { color: var(--accent); }

/* Rotierendes Branchen-Wort (Wechsel per JS alle 2 Sekunden) */
.rotate-word {
  display: inline-block;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.rotate-word.is-changing { opacity: 0; transform: translateY(10px); }
.text-blue   { color: var(--blue); }

/* ---------- Layout-Helfer ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Ab Desktop kompaktere Sektionsabstände, damit zwischen zwei Punkten weniger
   Scrollweg liegt. Auf Handy und Tablet bleiben die Werte aus :root, dort ist
   der Abstand die einzige klare Trennung zwischen den Sektionen. */
@media (min-width: 981px) {
  :root { --section-y: clamp(48px, 4.5vw, 68px); }
}

.section {
  padding: var(--section-y) 0;
  position: relative;
  /* zarter Blauschimmer als Farbfläche (zählt nicht als Deko-Element) */
  background-image: radial-gradient(ellipse 720px 460px at 100% 0%, rgba(35, 80, 184, 0.06), transparent 70%);
  background-repeat: no-repeat;
  background-position: right top;
}
.section--alt {
  /* Blau getönte Fläche statt neutralem Grau */
  background-color: #eef3fb;
  background-image:
    radial-gradient(ellipse 560px 380px at 0% 100%, rgba(232, 65, 42, 0.045), transparent 70%),
    linear-gradient(160deg, #f2f6fd 0%, #e9f0fb 55%, #eef3fb 100%);
  background-repeat: no-repeat;
  background-position: left bottom, center;
  background-size: auto, cover;
}

/* Warme Rosé-Fläche (Hero-Farbwelt) für ausgewählte getönte Sektionen –
   genau dort, wo auch die warme Deko (rote Linien bzw. rotes Icon) sitzt */
.section--alt:nth-of-type(8n+3),
.section--alt:nth-of-type(8n) {
  background-color: #f6e6e1;
  background-image:
    radial-gradient(ellipse 560px 380px at 100% 0%, rgba(255, 255, 255, 0.55), transparent 70%),
    linear-gradient(160deg, #faf1ef 0%, #f5e2dc 55%, #f2dad1 100%);
  background-repeat: no-repeat;
  background-position: right top, center;
  background-size: auto, cover;
}

/* Inhalte über den Deko-Ebenen halten */
.section > .container { position: relative; z-index: 1; }

/* ---------- Deko-Elemente: pro Sektion genau EIN Element ----------
   Zyklus über 8 Sektionen, je zwei Varianten pro Elementtyp:
   8n+1 → Punkte A (oben rechts) · 8n+5 → Punkte B (unten links, gedreht)
   8n+3 → Linien A (rot, steigend) · 8n+7 → Linien B (blau, fallend)
   8n+4 → Laptop-Icon · 8n → Monitor-Icon
   8n+2 / 8n+6 → frei (Linien ragen hinein) */

/* Punkte Variante A: oben rechts */
.section:nth-of-type(8n+1)::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: 4%;
  top: 36px;
  pointer-events: none;
  z-index: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='%232350b8'%3E%3Ccircle cx='30' cy='40' r='7' opacity='.10'/%3E%3Ccircle cx='75' cy='28' r='5' opacity='.14'/%3E%3Ccircle cx='120' cy='70' r='11' opacity='.09'/%3E%3Ccircle cx='40' cy='120' r='4' opacity='.16'/%3E%3Ccircle cx='170' cy='40' r='6' opacity='.12'/%3E%3Ccircle cx='150' cy='140' r='9' opacity='.08'/%3E%3Ccircle cx='90' cy='180' r='5' opacity='.13'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
}
/* Punkte Variante B: unten links, größer und gedreht */
.section:nth-of-type(8n+5)::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  left: 5%;
  bottom: 40px;
  transform: rotate(18deg);
  pointer-events: none;
  z-index: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='%232350b8'%3E%3Ccircle cx='30' cy='40' r='7' opacity='.10'/%3E%3Ccircle cx='75' cy='28' r='5' opacity='.14'/%3E%3Ccircle cx='120' cy='70' r='11' opacity='.09'/%3E%3Ccircle cx='40' cy='120' r='4' opacity='.16'/%3E%3Ccircle cx='170' cy='40' r='6' opacity='.12'/%3E%3Ccircle cx='150' cy='140' r='9' opacity='.08'/%3E%3Ccircle cx='90' cy='180' r='5' opacity='.13'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
}
/* Punkte auf getönten Flächen in Lachs */
.section--alt:nth-of-type(4n+1)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='%23e6a79f'%3E%3Ccircle cx='30' cy='40' r='7' opacity='.45'/%3E%3Ccircle cx='75' cy='28' r='5' opacity='.60'/%3E%3Ccircle cx='120' cy='70' r='11' opacity='.38'/%3E%3Ccircle cx='40' cy='120' r='4' opacity='.65'/%3E%3Ccircle cx='170' cy='40' r='6' opacity='.52'/%3E%3Ccircle cx='150' cy='140' r='9' opacity='.35'/%3E%3Ccircle cx='90' cy='180' r='5' opacity='.55'/%3E%3C/g%3E%3C/svg%3E");
}

/* Linien Variante A: rot, ansteigend – ragen oben in die vorherige Sektion */
.section:nth-of-type(8n+3)::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -300px;
  height: calc(55% + 300px);
  pointer-events: none;
  z-index: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 400' preserveAspectRatio='none' fill='none'%3E%3Cpath d='M0 340 C150 260 200 120 340 90 C450 68 540 130 600 110' stroke='%23e8412a' stroke-opacity='.14' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M0 400 C160 330 230 190 380 150 C480 123 550 180 600 165' stroke='%23e8412a' stroke-opacity='.18' stroke-width='1.5' stroke-dasharray='8 10' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
/* Linien Variante B: blau, fallend mit Senke – anderer Verlauf, ragen tiefer hinein */
.section:nth-of-type(8n+7)::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -220px;
  height: calc(72% + 220px);
  pointer-events: none;
  z-index: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 400' preserveAspectRatio='none' fill='none'%3E%3Cpath d='M0 90 C130 140 210 300 330 320 C460 342 540 250 600 270' stroke='%232350b8' stroke-opacity='.11' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M0 30 C150 70 240 250 370 265 C480 278 550 195 600 215' stroke='%232350b8' stroke-opacity='.14' stroke-width='1.5' stroke-dasharray='8 10' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

/* Icons (abwechselnd Laptop/Blau unten rechts und Monitor/Rot oben links) */
.section:nth-of-type(8n+4)::after {
  content: "";
  position: absolute;
  width: clamp(120px, 14vw, 190px);
  height: clamp(120px, 14vw, 190px);
  right: 3%;
  bottom: 24px;
  transform: rotate(-8deg);
  pointer-events: none;
  z-index: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232350b8' stroke-opacity='.12' stroke-width='0.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='11' rx='1.5'/%3E%3Cpath d='M2 19h20l-2-3H4z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.section:nth-of-type(8n)::after {
  content: "";
  position: absolute;
  width: clamp(120px, 14vw, 190px);
  height: clamp(120px, 14vw, 190px);
  left: 4%;
  top: 56px;
  transform: rotate(6deg);
  pointer-events: none;
  z-index: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8412a' stroke-opacity='.16' stroke-width='0.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='12' rx='1.5'/%3E%3Cpath d='M9 20h6M12 16v4'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ---------- Seitenspezifische Verschiebung, damit die Deko nicht auf
   jeder Seite an denselben Stellen sitzt ---------- */

/* Google-Ads-Seite: Positionen gespiegelt */
.page-google-ads .section:nth-of-type(8n+1)::before { right: auto; left: 5%; top: 52px; transform: rotate(-12deg); }
.page-google-ads .section:nth-of-type(8n+5)::before { left: auto; right: 6%; bottom: auto; top: 48px; transform: rotate(-18deg); }
.page-google-ads .section:nth-of-type(8n+4)::after { right: auto; left: 4%; bottom: 36px; transform: rotate(7deg); }
.page-google-ads .section:nth-of-type(8n)::after { left: auto; right: 5%; top: auto; bottom: 32px; transform: rotate(-6deg); }
.page-google-ads .section:nth-of-type(8n+3)::before { top: -240px; height: calc(68% + 240px); }

/* Website-Seite: eigene Versätze */
.page-website .section:nth-of-type(8n+1)::before { right: 10%; top: auto; bottom: 44px; transform: rotate(24deg); }
.page-website .section:nth-of-type(8n+5)::before { left: auto; right: 5%; transform: rotate(-14deg); }
.page-website .section:nth-of-type(8n+4)::after { right: auto; left: 5%; bottom: auto; top: 48px; transform: rotate(6deg); }
.page-website .section:nth-of-type(8n)::after { left: auto; right: 4%; top: auto; bottom: 36px; transform: rotate(8deg); }
.page-website .section:nth-of-type(8n+7)::before { top: -320px; height: calc(58% + 320px); }

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(40px, 5vw, 60px);
  text-align: center;
}
.section-head p { margin-top: 16px; font-size: 1.1rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  padding: 16px 28px;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(232, 65, 42, 0.28);
}
.btn--primary:hover { background: var(--accent-dark); color: #fff; box-shadow: 0 10px 26px rgba(232, 65, 42, 0.36); }

.btn--blue {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 18px rgba(35, 80, 184, 0.24);
}
.btn--blue:hover { background: var(--blue-dark); color: #fff; }

.btn--outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--border);
}
.btn--outline:hover { border-color: var(--blue); color: var(--blue); background: #fff; }

.btn--lg { padding: 18px 34px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- Header / Navigation ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, backdrop-filter .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--border);
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.05);
}

/* Transparenter Header über dunklem Hero (z. B. Google Ads) → helle Navigation */
.hero-dark .header:not(.is-scrolled) {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.28) 0%, transparent 100%);
}
.hero-dark .header:not(.is-scrolled) .nav__logo img {
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
}
.hero-dark .header:not(.is-scrolled) .nav__links a,
.hero-dark .header:not(.is-scrolled) .nav__links a:hover,
.hero-dark .header:not(.is-scrolled) .nav__phone,
.hero-dark .header:not(.is-scrolled) .nav__phone svg { color: #fff; }
.hero-dark .header:not(.is-scrolled) .nav__toggle span { background: #fff; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 34px; width: auto; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.98rem;
  position: relative;
  padding: 4px 0;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .2s ease;
}
.nav__links a:hover { color: var(--blue); }
.nav__links a:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 18px; }
.nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.nav__phone svg { width: 18px; height: 18px; color: var(--blue); }
.nav__phone:hover { color: var(--blue); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Trust-Badge ---------- */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow);
}
.trust-badge .stars { color: #f5a623; letter-spacing: 1px; }
.trust-badge strong { color: var(--text); }

/* Bewertungsleiste mit Avatar-Gruppe (Hero) */
.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.avatar-stack { display: flex; align-items: center; }
.avatar-stack img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
  margin-left: -12px;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.2);
}
.avatar-stack img:first-child { margin-left: 0; }
.hero-rating__text { display: flex; flex-direction: column; gap: 3px; }
.hero-rating__text .stars { color: #f5a623; letter-spacing: 2px; font-size: 1.05rem; line-height: 1; }
.hero-rating__label { color: var(--text); font-size: 0.98rem; line-height: 1.3; }
.hero-rating__label strong { color: var(--text); font-weight: 700; }

@media (max-width: 860px) {
  /* Verhindert, dass der Avatar-Stapel schrumpft und die Bilder den Text überdecken */
  .avatar-stack { flex-shrink: 0; }
}

@media (max-width: 420px) {
  .avatar-stack img { width: 36px; height: 36px; }
  .hero-rating__label { font-size: 0.9rem; }
}

/* ---------- Hero ---------- */
.hero {
  padding: calc(74px + clamp(40px, 6vw, 80px)) 0 var(--section-y);
  background-color: #fff;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='%232350b8'%3E%3Ccircle cx='30' cy='40' r='7' opacity='.12'/%3E%3Ccircle cx='75' cy='28' r='5' opacity='.16'/%3E%3Ccircle cx='120' cy='70' r='11' opacity='.10'/%3E%3Ccircle cx='40' cy='120' r='4' opacity='.18'/%3E%3Ccircle cx='170' cy='40' r='6' opacity='.14'/%3E%3Ccircle cx='150' cy='140' r='9' opacity='.09'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(ellipse 640px 420px at 88% 8%, rgba(35, 80, 184, 0.07), transparent 70%),
    linear-gradient(180deg, #f0f5ff 0%, #ffffff 100%);
  background-repeat: no-repeat;
  background-position: left 5% top 110px, right top, center;
  background-size: auto, auto, cover;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero__content h1 { margin: 20px 0; }
.hero__content .lead { font-size: 1.2rem; color: var(--text-muted); max-width: 34ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ---------- Split-Hero (Google Ads) ---------- */
.hero-split-wrap {
  position: relative;
  background: var(--bg);
  overflow: hidden;
  padding-bottom: clamp(28px, 4vw, 56px);
}
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.hero-split__panel {
  background:
    radial-gradient(ellipse at 15% 20%, rgba(255, 255, 255, 0.5) 0%, transparent 55%),
    linear-gradient(175deg, #f3e2e0 0%, #eab2a4 58%, #e18b75 100%);
  color: var(--text);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(74px + clamp(40px, 5vw, 72px)) clamp(20px, 2vw, 32px) clamp(104px, 10vw, 150px)
           clamp(96px, 9vw, 144px);
}
.hero-split__content { max-width: 660px; }
.hero-split__content .hero-rating { margin-bottom: 16px; }
/* Ortsmarke steht im Split-Hero auf einer eigenen Zeile zwischen Bewertungen
   und H1 und nimmt die warmen Panel-Farben auf, statt weiss/blau auszubrechen. */
.hero-split__content .ortsmarke {
  display: flex;
  width: fit-content;
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--accent-dark);
}
.hero-split__panel h1 { color: var(--text); margin: 16px 0 20px; }
.hero-split__lead { color: #4a3733; font-size: 1.18rem; max-width: 44ch; }
.hero-split__panel .hero__ctas { margin-top: 30px; }

/* Value-Prop-Checkliste im Hero-Panel */
.hero-checklist { display: flex; flex-direction: column; gap: 13px; margin-top: 26px; }
.hero-checklist__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--text);
  font-size: 1.02rem;
}
.hero-checklist__icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  color: #15803d;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-checklist__icon svg { width: 15px; height: 15px; }
.hero-split__panel .btn--outline { color: var(--text); border-color: rgba(15, 23, 42, 0.4); background: rgba(255, 255, 255, 0.35); }
.hero-split__panel .btn--outline:hover { background: var(--text); color: #fff; border-color: var(--text); }

.hero-badge {
  display: inline-block;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.6);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 8px 15px;
  border-radius: 8px;
}

.hero-rating--light .hero-rating__label,
.hero-rating--light .hero-rating__label strong { color: var(--text); }

.hero-split__media { position: relative; min-height: 100%; }
.hero-split__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Value-Prop-Karten (überlappen den Hero) */
.hero-split-wrap .container { position: relative; z-index: 5; }
.value-cards {
  position: relative;
  z-index: 5;
  margin-top: -64px;
  background: #eef4fb;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}
.value-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: clamp(28px, 3vw, 40px) 24px;
}
.value-card + .value-card { border-left: 1px solid var(--border); }
.value-card__num {
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.03em;
}
.value-card__label { font-weight: 600; color: var(--text); font-size: 1.05rem; line-height: 1.35; }

.hero__visual { position: relative; }
.hero__visual img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}
.hero__visual .placeholder { aspect-ratio: 4 / 3; }

/* Bild-Platzhalter (für spätere echte Fotos/Screenshots) */
.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  background:
    repeating-linear-gradient(45deg, #f1f5f9, #f1f5f9 12px, #eef2f7 12px, #eef2f7 24px);
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius);
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 24px;
  min-height: 200px;
}
.placeholder svg { width: 40px; height: 40px; opacity: .6; }
.placeholder span { max-width: 30ch; }

/* ---------- Trust-Zahlenband ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}
.stats__item {
  padding: 12px;
}
.stats__num {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stats__label { margin-top: 10px; font-weight: 600; color: var(--text); }

/* ---------- Karten-Grid ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 1rem; }

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(35, 80, 184, 0.08);
  color: var(--blue);
  margin-bottom: 18px;
}
.card__icon svg { width: 26px; height: 26px; }

/* Große Service-Karten (Startseite) */
.service-card {
  display: flex;
  flex-direction: column;
  padding: 38px;
}
.service-card__num {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.service-card h3 { font-size: 1.5rem; font-weight: 800; }
.service-card p { margin: 12px 0 24px; }
.service-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Avatare auf der Website-Seite ---------- */
/* Grübelnder Avatar neben dem Kopf der Problem-Sektion (nur Desktop) */
.problem-wrap { position: relative; }
.problem-avatar { display: none; }
@media (min-width: 1240px) {
  .problem-avatar {
    display: block;
    position: absolute;
    top: -90px;
    right: 10px;
    width: clamp(170px, 15vw, 225px);
    height: auto;
    z-index: 0;
    pointer-events: none;
  }
}
/* Präsentations-Avatar in der Kontakt-Infospalte (nur Desktop) */
.contact-avatar { display: none; }
@media (min-width: 981px) {
  .contact-avatar {
    display: block;
    width: min(280px, 75%);
    height: auto;
    margin-top: 44px;
  }
}

/* ---------- Leistungsumfang: Checkliste als ein Paket ---------- */
.package {
  max-width: 1040px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: clamp(28px, 4vw, 50px);
}
.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.6vw, 30px) clamp(28px, 4vw, 54px);
}
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist svg {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  color: #16a34a;
  margin-top: 4px;
}
.checklist span { color: var(--text-muted); font-size: 1rem; }
.checklist strong {
  display: block;
  color: var(--text);
  font-weight: 700;
  font-size: 1.08rem;
  margin-bottom: 4px;
}
@media (max-width: 780px) {
  .checklist { grid-template-columns: 1fr; }
}
.package__note {
  margin: clamp(26px, 3vw, 36px) auto 0;
  max-width: 760px;
  text-align: center;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  font-weight: 700;
  color: var(--text);
}
.package__note a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.package__note a:hover { color: var(--blue-dark); }

/* ---------- Kundenprojekte-Slider (endlos) ---------- */
.projects-slider { --projects-gap: clamp(20px, 2.4vw, 32px); }
.projects-slider__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
}
.projects-slider__viewport::-webkit-scrollbar { display: none; }
.projects-slider__viewport.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.projects-slider__viewport:focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; border-radius: var(--radius-sm); }
.projects-slider__track {
  display: flex;
  align-items: start;
  gap: var(--projects-gap);
}
/* Kartenbreite setzt JS exakt auf 3 / 2 / 1 sichtbare Karten (--card-w),
   der Fallback greift, solange JS noch nicht gelaufen ist. */
.project {
  flex: 0 0 var(--card-w, calc((100% - 2 * var(--projects-gap)) / 3));
  scroll-snap-align: start;
  text-align: center;
  margin: 0;
}
.projects-slider__viewport.is-dragging .project { pointer-events: none; }
@media (max-width: 980px) {
  .project { flex-basis: var(--card-w, calc((100% - var(--projects-gap)) / 2)); }
}
@media (max-width: 640px) {
  .project { flex-basis: var(--card-w, 100%); }
}
.projects-slider__nav {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(32px, 4vw, 48px);
}
.projects-slider__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: #c3cbdd;
  color: #fff;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.projects-slider__arrow svg { width: 22px; height: 22px; }
.projects-slider__arrow:hover { background: var(--blue); transform: translateY(-2px); }
.project__shot {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.project h3 { font-size: 1.25rem; margin: 22px 0 10px; }
.project p { font-size: 0.98rem; }

/* ---------- Website-Hero: zentriert auf Rosé mit durchlaufendem Website-Marquee ---------- */
.hero-websites {
  padding-top: calc(74px + clamp(44px, 7vw, 96px));
  background:
    radial-gradient(ellipse at 15% 20%, rgba(255, 255, 255, 0.5) 0%, transparent 55%),
    linear-gradient(175deg, #f3e2e0 0%, #eab2a4 58%, #e18b75 100%);
  overflow: hidden;
}
.hero-websites__content { text-align: center; max-width: 940px; margin: 0 auto; }
.hero-websites h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); }
.hero-websites__sub {
  margin-top: 22px;
  font-size: clamp(1.35rem, 2.8vw, 1.95rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.hero-websites__audience {
  margin-top: 14px;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  font-weight: 600;
  color: var(--text);
}
.hero-websites__cta { margin-top: clamp(30px, 4vw, 44px); }
.hero-checks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px clamp(24px, 5vw, 72px);
  margin-top: clamp(40px, 6vw, 72px);
}
.hero-checks li { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: clamp(1rem, 1.5vw, 1.2rem); color: var(--text); }
.hero-checks svg { width: 26px; height: 26px; color: #16a34a; flex: 0 0 auto; }

/* Endlos durchlaufende Website-Screenshots */
.hero-marquee { margin-top: clamp(44px, 6vw, 80px); padding-bottom: clamp(44px, 6vw, 80px); overflow: hidden; }
.hero-marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 45s linear infinite;
  will-change: transform;
}
.hero-marquee img {
  width: clamp(280px, 32vw, 460px);
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.22);
  margin-right: clamp(18px, 2.4vw, 32px);
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-marquee__track { animation: none; }
}

/* ---------- Bild etwas vergrößert und zum äußeren Rand geschoben (nur Desktop) ---------- */
@media (min-width: 981px) {
  .img-bleed--right { transform: translateX(18%) scale(1.08); transform-origin: right center; }
  .img-bleed--left  { transform: translateX(-13%) scale(1.08); transform-origin: left center; }
}

/* ---------- Insight-Block ---------- */
.insight {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius: var(--radius);
  color: #fff;
  padding: clamp(40px, 6vw, 64px);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.insight h2 { color: #fff; }
.insight p { color: rgba(255,255,255,0.88); font-size: 1.15rem; margin-top: 18px; }

/* ---------- Feature-Liste mit Icons ---------- */
.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature__icon {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(35, 80, 184, 0.08);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 6px; }
.feature p { font-size: 1rem; }

/* ---------- Problem-Karten (rot akzentuiert) ---------- */
.problem-card {
  border-left: 4px solid var(--accent);
}
.problem-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; }
.problem-card h3 svg { width: 22px; height: 22px; color: var(--accent); flex: 0 0 auto; }

/* ---------- Problem → Lösung Gegenüberstellung ---------- */
.ps-table { max-width: 1040px; margin: 0 auto; }
.ps-table__head {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  gap: 20px;
  margin-bottom: 14px;
}
.ps-table__label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}
.ps-table__label--problem { color: var(--accent-dark); }
.ps-table__label--solution { color: #15803d; }
.ps-row {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  gap: 20px;
  align-items: stretch;
}
.ps-row + .ps-row { margin-top: 20px; }
.ps-cell {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow);
}
.ps-cell--problem { border-left: 4px solid var(--accent); }
.ps-cell--solution { border-left: 4px solid #16a34a; }
.ps-cell h3 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; margin-bottom: 8px; }
.ps-cell p { font-size: 0.98rem; }
.ps-cell--problem h3 svg { width: 21px; height: 21px; color: var(--accent); flex: 0 0 auto; }
.ps-cell--solution h3 svg { width: 21px; height: 21px; color: #16a34a; flex: 0 0 auto; }
.ps-arrow {
  align-self: center;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: var(--accent);
}
.ps-arrow svg { width: 20px; height: 20px; }

.emphasis-line {
  margin: 40px auto 0;
  max-width: 760px;
  text-align: center;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.4;
}

/* ---------- Bewertungen ---------- */
.testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.testimonial__stars { color: #f5a623; letter-spacing: 2px; margin-bottom: 16px; font-size: 1.05rem; }
.testimonial__quote { color: var(--text); font-size: 1.05rem; line-height: 1.6; }
.testimonial__author {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex; align-items: flex-start; gap: 14px;
}

/* Alle Karten teilen sich dieselben Zeilenhöhen (Sterne / Zitat / Autor),
   damit Bilder, Namen und Beschreibungen auf gleicher Höhe sitzen (Desktop 3-spaltig) */
@media (min-width: 981px) {
  .testimonials-grid .testimonial {
    grid-row: span 3;
    display: grid;
    grid-template-rows: subgrid;
  }
  .testimonials-grid .testimonial__author { margin-top: 0; }
}
.testimonial__avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem; flex: 0 0 auto;
  object-fit: cover;
}
.testimonial__name { display: block; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.testimonial__role { font-size: 0.9rem; color: var(--text-muted); }

/* ---------- Story / Gründer ---------- */
.story {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.story__text { font-size: 1.15rem; line-height: 1.7; margin-top: 24px; }
.story__sign { margin-top: 24px; font-weight: 700; color: var(--text); }
.story__sign span { display: block; font-weight: 500; color: var(--text-muted); font-size: 0.95rem; }

/* Zweispaltiges Story-Layout (Bild + Text) */
.story-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}
.story-split__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 0 16px rgba(15, 23, 42, 0.38);
  object-fit: cover;
}
.story-split__body .story__text { margin-top: 20px; }
.story-split__body .story__sign { margin-top: 28px; }

@media (max-width: 860px) {
  .story-split { grid-template-columns: 1fr; gap: 28px; }
  .story-split__media { max-width: 460px; margin: 0 auto; }
  .story-split__media img { aspect-ratio: 1.7; object-position: center 50%; }
}

/* ---------- Miet-Modell (Vergleichskarten) ---------- */
.rent {
  background: linear-gradient(135deg, #1c3f92 0%, #e8412a 130%);
  border-radius: var(--radius);
  padding: clamp(36px, 5vw, 60px);
  color: #fff;
}
.rent__head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.rent__head h2 { color: #fff; }
.rent__head p { color: rgba(255,255,255,0.9); font-size: 1.1rem; margin-top: 14px; }
.rent__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 820px; margin: 0 auto; }
.rent__card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  display: flex; flex-direction: column;
}
.rent__card h3 { color: var(--text); }
.rent__card p { margin-top: 12px; }
.rent__card--featured {
  outline: 3px solid var(--accent);
  outline-offset: 0;
  box-shadow: var(--shadow-lg);
}
.rent__flag {
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem; font-weight: 700;
  padding: 6px 16px; border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.03em;
}
.rent__price { font-size: 2rem; font-weight: 800; color: var(--blue); margin: 8px 0; }
.rent__price small { font-size: 1rem; font-weight: 600; color: var(--text-muted); }
.rent__note { text-align: center; color: rgba(255,255,255,0.9); margin-top: 32px; font-size: 1.02rem; }

/* ---------- Ablauf / Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; }
.step__num {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem; margin-bottom: 18px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { font-size: 1rem; }

/* ---------- Prozess-Timeline (Google Ads) – vertikale Mittellinie, alternierend ---------- */
.timeline { position: relative; max-width: 1040px; margin: 0 auto; }
.timeline__item { position: relative; padding-bottom: clamp(36px, 5vw, 64px); }
.timeline__item:last-child { padding-bottom: 0; }
/* Verbindungslinie: von jedem Marker bis zum nächsten (letzter ohne) */
.timeline__item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  bottom: 0;
  width: 2px;
  background: var(--text);
  transform: translateX(-50%);
}
/* Quadratischer Marker auf der Mittellinie */
.timeline__marker {
  position: absolute;
  left: 50%;
  top: 4px;
  width: 15px;
  height: 15px;
  background: var(--text);
  transform: translateX(-50%);
  z-index: 1;
}
.timeline__content { width: calc(50% - 44px); }
/* ungerade → rechte Seite (linksbündig), gerade → linke Seite (rechtsbündig) */
.timeline__item:nth-child(odd) .timeline__content { margin-left: calc(50% + 44px); text-align: left; }
.timeline__item:nth-child(even) .timeline__content { margin-right: calc(50% + 44px); text-align: right; }
.timeline__day {
  display: block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.timeline__content h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); margin-bottom: 12px; }
.timeline__content p { font-size: 1rem; }

/* ---------- Cross-Sell / CTA-Band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius: var(--radius);
  color: #fff;
  padding: clamp(40px, 6vw, 64px);
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); font-size: 1.12rem; margin: 16px auto 28px; max-width: 620px; }
.cta-band .btn--outline { color: #fff; border-color: rgba(255,255,255,0.5); }
.cta-band .btn--outline:hover { background: #fff; color: var(--blue); border-color: #fff; }

/* Audit-Band mit Präsentations-Avatar */
.cta-band--audit { overflow: hidden; }
.cta-band--audit .cta-band__avatar { display: none; }
.cta-band--audit p { margin-left: auto; margin-right: auto; }
@media (min-width: 860px) {
  .cta-band--audit {
    display: flex;
    align-items: center;
    gap: clamp(28px, 4vw, 60px);
    text-align: left;
    padding-bottom: 0;
  }
  .cta-band--audit .cta-band__avatar {
    display: block;
    flex: 0 0 auto;
    align-self: flex-end;
    width: clamp(210px, 24vw, 300px);
    height: auto;
  }
  .cta-band--audit .cta-band__text { flex: 1; }
  .cta-band--audit p { margin-left: 0; margin-right: 0; }
}

/* Service-Sektion auf Desktop etwas höher anrücken */
@media (min-width: 1000px) {
  .service-section { padding-top: clamp(32px, 4vw, 56px); }
}

/* ---------- Service-Avatar neben den 4 Leistungskästchen (Desktop) ---------- */
.service-wrap { position: relative; }
.service-avatar { display: none; }
/* Erst wenn der Außenrand breit genug ist, sitzt der Avatar vollständig
   rechts neben dem Kartenblock – ohne die Karten zu verschieben oder anzuschneiden */
@media (min-width: 1500px) {
  .service-avatar {
    display: block;
    position: absolute;
    left: calc(100% + 8px);
    bottom: 0;
    width: min(290px, calc((100vw - 1200px) / 2 - 16px));
    height: auto;
    z-index: 0;
    pointer-events: none;
  }
}

/* ---------- FAQ-Akkordeon ---------- */
.faq { max-width: 780px; margin: 0 auto; }

/* Nachdenklicher Avatar neben dem FAQ – nur Desktop, FAQ bleibt zentriert/unverschoben */
.faq-wrap { position: relative; }
.faq-avatar { display: none; }
@media (min-width: 1240px) {
  .faq-avatar {
    /* Breite skaliert mit dem Viewport, bleibt aber immer links vom 780px-FAQ */
    --faq-avatar-w: clamp(230px, calc((100vw - 820px) / 2), 320px);
    display: block;
    position: absolute;
    bottom: 0;
    width: var(--faq-avatar-w);
    /* rechte Bildkante 16px links neben der FAQ-Kante (FAQ-Mitte = 50%, halbe FAQ-Breite = 390px) */
    left: calc(50% - 406px - var(--faq-avatar-w));
    height: auto;
    z-index: 0;
    pointer-events: none;
  }
}
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  width: 100%;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-align: left;
  padding: 24px 44px 24px 0;
  position: relative;
  display: flex;
  align-items: center;
}
.faq__q::after {
  content: "";
  position: absolute;
  right: 6px; top: 50%;
  width: 12px; height: 12px;
  border-right: 2.5px solid var(--blue);
  border-bottom: 2.5px solid var(--blue);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .25s ease;
}
.faq__item.is-open .faq__q::after { transform: translateY(-30%) rotate(-135deg); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq__a p { padding: 0 0 24px; font-size: 1.02rem; }

/* ---------- Kontaktformular ---------- */
.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: start;
}
.contact__info h2 { margin-bottom: 16px; }
.contact__info p { font-size: 1.1rem; }
.contact__methods { margin-top: 28px; display: grid; gap: 16px; }
.contact__method { display: flex; align-items: center; gap: 14px; font-weight: 600; color: var(--text); }
.contact__method svg { width: 22px; height: 22px; color: var(--blue); flex: 0 0 auto; }
/* WhatsApp im Kontaktblock als eigener Button – deutlich als Aktion erkennbar,
   in Markenfarbe, damit er nicht mit dem roten Formular-CTA konkurriert */
.contact__method--wa {
  justify-self: start;
  margin-top: 8px;
  gap: 12px;
  padding: 15px 24px;
  border-radius: 12px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.32);
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.contact__method--wa svg { width: 20px; height: 20px; color: #fff; }
.contact__method--wa:hover {
  background: #1eb257;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.42);
}
.contact__method--wa:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
@media (max-width: 640px) {
  .contact__method--wa { justify-self: stretch; justify-content: center; }
}

.form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 7px; color: var(--text); }
.field input, .field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(35, 80, 184, 0.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.field--check { display: flex; align-items: flex-start; gap: 10px; }
.field--check input { width: auto; margin-top: 4px; flex: 0 0 auto; }
.field--check label { font-weight: 500; font-size: 0.9rem; color: var(--text-muted); margin: 0; }

.form__success {
  display: none;
  text-align: center;
  padding: 20px;
}
.form__success.is-visible { display: block; }
.form__success svg { width: 56px; height: 56px; color: #16a34a; margin: 0 auto 16px; }
.form__success h3 { margin-bottom: 8px; }

/* Fehlermeldung, falls der Versand nicht durchgeht */
.form__error {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(232, 65, 42, 0.08);
  border: 1px solid rgba(232, 65, 42, 0.35);
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 600;
}
.form__error a { color: var(--accent-dark); text-decoration: underline; }

/* Honeypot */
.hp { position: absolute; left: -5000px; visibility: hidden; }

/* ---------- Footer ---------- */
.footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 64px 0 28px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 44px;
}
.footer__brand img { height: 30px; margin-bottom: 16px; }
.footer__brand p { color: #94a3b8; font-size: 0.98rem; max-width: 34ch; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; font-weight: 700; }
.footer ul li { margin-bottom: 10px; }
.footer a { color: #cbd5e1; font-size: 0.96rem; }
.footer a:hover { color: #fff; }
.footer__contact li { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: #cbd5e1; font-size: 0.96rem; }
.footer__contact svg { width: 18px; height: 18px; color: #60a5fa; flex: 0 0 auto; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.9rem;
  color: #94a3b8;
}

/* ---------- Rechts-Seiten (Datenschutz/Impressum) ---------- */
.legal { padding: calc(74px + clamp(40px, 5vw, 64px)) 0 clamp(48px, 6vw, 80px); }
.legal__content { max-width: 800px; margin: 0 auto; }
.legal__content h1 { margin-bottom: 32px; }
.legal__content h2 { font-size: 1.4rem; margin: 36px 0 14px; }
.legal__content h3 { font-size: 1.15rem; margin: 24px 0 10px; }
.legal__content p, .legal__content li { color: var(--text-muted); margin-bottom: 12px; font-size: 1rem; }
.legal__content ul { list-style: disc; padding-left: 22px; }
.legal__content a { word-break: break-word; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: flex; align-items: center; text-align: center; padding-top: 74px; }
.notfound__code { font-size: clamp(5rem, 15vw, 9rem); font-weight: 800; color: var(--blue); line-height: 1; letter-spacing: -0.04em; }

/* ---------- Cookie-Consent ---------- */
/* ---------- Floating WhatsApp-Button ---------- */
.wa-fab {
  position: fixed;
  right: clamp(16px, 2vw, 26px);
  /* --wa-lift hebt den Button an, solange der Cookie-Hinweis darunter liegt */
  bottom: calc(clamp(16px, 2vw, 26px) + var(--wa-lift, 0px));
  z-index: 190;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.28);
  transition: transform .2s ease, box-shadow .2s ease, bottom .25s ease;
}
.wa-fab svg { width: 31px; height: 31px; }
.wa-fab:hover {
  color: #fff;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
}
.wa-fab:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
@media (max-width: 640px) {
  .wa-fab { width: 54px; height: 54px; }
  .wa-fab svg { width: 28px; height: 28px; }
}
@media print { .wa-fab { display: none; } }

.cookie {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 200;
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 22px 24px;
  display: none;
}
.cookie.is-visible { display: block; }
.cookie p { font-size: 0.92rem; margin-bottom: 16px; }
.cookie__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie__actions .btn { padding: 11px 20px; font-size: 0.92rem; }

/* ---------- Scroll-Animationen ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Utility ---------- */
.mt-lg { margin-top: clamp(40px, 5vw, 60px); }
.center { text-align: center; }
.narrow { max-width: 820px; margin-left: auto; margin-right: auto; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__brand { grid-column: 1 / -1; }

  /* Problem→Lösung gestapelt: Lösung direkt unter ihrem Problem */
  .ps-table__head { display: none; }
  .ps-row { grid-template-columns: 1fr; gap: 10px; padding-bottom: 30px; }
  .ps-row + .ps-row { margin-top: 30px; }
  .ps-arrow { transform: rotate(90deg); width: 34px; height: 34px; }
  /* Trennstrich nach jeder Lösung (nicht nach der letzten) */
  .ps-row:not(:last-child) { border-bottom: 1px solid rgba(15, 23, 42, 0.14); }

  /* Split-Hero gestapelt */
  .hero-split { grid-template-columns: 1fr; }
  .hero-split__panel {
    padding: calc(74px + clamp(28px, 5vw, 44px)) 24px clamp(40px, 7vw, 56px);
  }
  .hero-split__content { max-width: none; }
  .hero-split__lead { max-width: none; }
  .hero-split__media { min-height: 0; }
  .hero-split__media img {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }
  .value-cards { grid-template-columns: 1fr; margin-top: -48px; }
  .value-card + .value-card { border-left: 0; border-top: 1px solid var(--border); }
}

@media (max-width: 860px) {
  .nav__menu {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    border-radius: 0 0 18px 18px;
    box-shadow: var(--shadow-lg);
    padding: 10px 22px 22px;
    transform: translateY(-140%);
    transition: transform .3s ease;
    max-height: calc(100vh - 74px);
    overflow-y: auto;
  }
  .nav__menu.is-open { transform: translateY(0); }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  /* Volle Zeilenbreite statt Inline-Link: nur so laufen Trennlinie und
     Tap-Flaeche ueber die ganze Zeile. */
  .nav__links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 12px;
    margin: 0 -12px;
    border-radius: var(--radius-sm);
    border-bottom: 0;
    font-size: 1.05rem;
    transition: background-color .2s ease, color .2s ease;
  }
  .nav__links li + li { border-top: 1px solid var(--border); }
  .nav__links a:hover, .nav__links a:active { background: #f2f6ff; }
  /* Unterstrich-Animation wird auf Mobil zum Chevron. */
  .nav__links a::after {
    content: "";
    position: static;
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    background: none;
    border-right: 2px solid var(--blue);
    border-bottom: 2px solid var(--blue);
    border-radius: 1px;
    transform: rotate(-45deg);
    opacity: .45;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav__links a:hover::after {
    width: 8px;
    opacity: 1;
    transform: rotate(-45deg) translate(2px, 2px);
  }
  .nav__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 16px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
  }
  /* Telefonnummer als zweite, ruhigere Schaltflaeche unter dem CTA-Button. */
  .nav__phone {
    justify-content: center;
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #f8fafc;
    font-size: 1.02rem;
    transition: border-color .2s ease, background-color .2s ease;
  }
  .nav__phone:hover { border-color: var(--blue); background: #f2f6ff; }
  .nav__actions .btn { width: 100%; }
  .nav__toggle { display: flex; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .hero__content .lead { max-width: none; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  /* Timeline vertikal: Linie links, alle Inhalte rechts, linksbündig */
  .timeline { max-width: 640px; }
  .timeline__item:not(:last-child)::before { left: 7px; }
  .timeline__marker { left: 7px; }
  .timeline__content { width: auto; }
  .timeline__item:nth-child(odd) .timeline__content,
  .timeline__item:nth-child(even) .timeline__content {
    margin-left: 36px;
    margin-right: 0;
    text-align: left;
  }
  .rent__grid { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .stats { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .hero__ctas .btn { width: 100%; }
  .card, .service-card { padding: 26px; }
}

/* ============================================================
   Ergaenzungen SEO-Ausbau 08/2026
   Branchen-Liste, Regions-Block, lokale Seiten, Footer-Adresse
   ============================================================ */

/* ---------- Branchen-Liste ---------- */
.branchen {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  max-width: 1000px;
  margin: 0 auto;
}
.branchen li {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 1rem;
  color: var(--text);
  font-weight: 600;
  /* Lange Komposita wie "Bestattungsunternehmen" passen sonst nicht in die
     Kachel und laufen rechts heraus. Trennung an den weichen Trennstellen
     im Markup, Umbruch im Wort nur als Notnagel. */
  min-width: 0;
  hyphens: auto;
  overflow-wrap: anywhere;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.branchen li:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.branchen svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: #16a34a;
}
.branchen-note {
  text-align: center;
  margin-top: 32px;
  font-size: 1.05rem;
}
.branchen-note a { font-weight: 700; border-bottom: 2px solid currentColor; }

/* ---------- Regions-Block (Standort + lokale Seiten) ---------- */
.region {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}
.region__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.region__body h2 { margin-bottom: 18px; }
.region__body p { font-size: 1.05rem; margin-bottom: 14px; }
.region__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.region__links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 18px;
  font-weight: 700;
  color: var(--blue);
  font-size: 0.98rem;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.region__links a:hover {
  background: var(--bg);
  border-color: var(--blue);
  transform: translateY(-2px);
}
.region__links svg { width: 17px; height: 17px; flex: 0 0 auto; }

/* ---------- Orts-Liste (Einzugsgebiet) ---------- */
.orte {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 860px;
  margin: 0 auto;
}
.orte li {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-muted);
}
.orte li.is-home {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* ---------- Hero mit Ortsbezug (lokale Landingpages) ---------- */
.hero-local {
  position: relative;
  padding: calc(74px + clamp(48px, 6vw, 88px)) 0 clamp(56px, 7vw, 96px);
  background: var(--bg-alt);
  overflow: hidden;
}
.hero-local__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}
.hero-local__content h1 { margin: 18px 0; }
.hero-local__lead { font-size: 1.15rem; color: var(--text-muted); max-width: 46ch; }
.hero-local__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.hero-local__caption {
  margin-top: 12px;
  font-size: 0.87rem;
  color: var(--text-muted);
  text-align: center;
}
.ortsmarke {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue);
}
.ortsmarke svg { width: 16px; height: 16px; flex: 0 0 auto; }

/* ---------- Kompakte Vertrauensleiste ---------- */
.trustbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  margin-top: 30px;
}
.trustbar li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text);
}
.trustbar svg { width: 19px; height: 19px; color: #16a34a; flex: 0 0 auto; }

/* ---------- Footer-Adresse ---------- */
.footer__contact li--addr,
.footer__contact li.is-address { align-items: flex-start; }
.footer__contact address {
  font-style: normal;
  line-height: 1.55;
  color: #cbd5e1;
}
.footer__contact address strong { color: #fff; font-weight: 700; display: block; }

/* Etwas mehr Laufweite fuer den laengeren Hero-Text der Startseite */
.hero__content .lead { max-width: 42ch; }

@media (max-width: 900px) {
  .region { grid-template-columns: 1fr; }
  .region__media { order: -1; }
  .hero-local__grid { grid-template-columns: 1fr; }
  .hero-local__media { order: -1; }
  .hero-local__lead { max-width: none; }
}

/* Footer einspaltig, sobald die zweispaltige Variante die Adresse
   umbrechen wuerde (Georg-Engel-Strasse passt sonst nicht in eine Zeile) */
@media (max-width: 620px) {
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 560px) {
  .branchen { grid-template-columns: 1fr; }
  .region__links a { width: 100%; }
}
