/* ============================================================
   eVERA GmbH – Design-System
   Farben: Navy #101930 (primär) · Gold #f3d793 (Akzent/Text)
           Logo-Gelb #f3d73a (Buttons, mit Lichtverlauf)
   Typo:   Inter (400–900), Headlines 800/900
   ============================================================ */

:root {
  --navy: #101930;
  --navy-deep: #0b1224;
  --navy-soft: #1a2542;
  --navy-line: rgba(255, 255, 255, 0.10);
  --gold: #f3d793;
  --gold-strong: #ecc367;
  --gold-dark: #86641d;
  /* Buttons: Logo-Gelb aus dem eVERA-Zeichen, plus hellere/dunklere Stufe
     für den Lichtverlauf im Button */
  --gold-btn: #f3d73a;
  --gold-btn-light: #fbeb92;
  --gold-btn-deep: #e0c31d;
  --ink: #101930;
  --muted: #5b6478;
  --muted-light: #9aa3b8;
  --bg-light: #ffffff;
  --bg-grey: #f5f6fa;
  --line: #e6e8f0;
  --radius: 10px;
  --container: 1240px;
  --shadow: 0 20px 60px rgba(16, 25, 48, 0.14);
  --transition: 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg-light);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* nicht hidden – ScrollTrigger/Sticky-Gotcha */
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

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

h1, h2, h3, h4 {
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.04;
  color: var(--ink);
}

.h-hero { font-size: clamp(2.6rem, 7vw, 5.2rem); color: #fff; }
.h-section { font-size: clamp(2rem, 4.6vw, 3.4rem); margin-bottom: 0.5em; }
.h-card { font-size: 1.35rem; letter-spacing: -0.02em; line-height: 1.2; }

.accent { color: var(--gold-dark); }
.on-dark .accent, .accent-gold { color: var(--gold); }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.on-dark .lead { color: var(--muted-light); }

/* Sektions-Label (z. B. "01 · UNSERE ENERGIELÖSUNGEN") */
.label {
  border-radius: 0 8px 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(16, 25, 48, 0.06);
  border-left: 3px solid var(--gold-strong);
  padding: 8px 14px;
  margin-bottom: 26px;
}
.on-dark .label,
.page-hero .label {
  color: var(--gold);
  background: rgba(243, 215, 147, 0.08);
  border-left-color: var(--gold);
}

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

section { padding: clamp(70px, 9vw, 130px) 0; }
.on-dark { background: var(--navy); color: #fff; }
.on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }
.on-deep { background: var(--navy-deep); }
.on-grey { background: var(--bg-grey); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 30px;
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(5px); }

/* Logo-Gelb mit Lichtverlauf: oben links heller, unten rechts satter –
   dadurch wirkt der Button plastisch statt flächig. */
.btn-gold {
  position: relative;
  overflow: hidden;
  background: var(--gold-btn);
  background-image: linear-gradient(135deg,
    var(--gold-btn-light) 0%,
    var(--gold-btn) 46%,
    var(--gold-btn-deep) 100%);
  color: var(--navy);
}
/* Glanzstreifen, der beim Überfahren einmal durchläuft */
.btn-gold::after {
  content: "";
  position: absolute;
  top: -20%; bottom: -20%; left: -75%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: skewX(-18deg);
  transition: left 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
}
.btn-gold:hover::after { left: 130%; }
.btn-gold:hover {
  background-image: linear-gradient(135deg,
    #fdf2b4 0%,
    var(--gold-btn) 52%,
    var(--gold-btn-deep) 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(243, 215, 58, 0.28);
}

.btn-outline { border: 1.5px solid rgba(255, 255, 255, 0.35); color: #fff; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-soft); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(16, 25, 48, 0.25); }

.btn-outline-dark { border: 1.5px solid rgba(16, 25, 48, 0.3); color: var(--navy); }
.btn-outline-dark:hover { border-color: var(--navy); transform: translateY(-2px); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
/* Statt Balken mit Weichzeichner: weicher Verlauf, der nach unten ausläuft –
   dieselbe Logik wie der Schleier über dem Hero-Bild. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -38px 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(11, 18, 36, 0.82) 0%,
    rgba(11, 18, 36, 0.62) 38%,
    rgba(11, 18, 36, 0.32) 68%,
    rgba(11, 18, 36, 0.10) 88%,
    rgba(11, 18, 36, 0) 100%);
  transition: opacity 0.3s ease;
}
/* Beim Scrollen wird daraus die klassische, gut lesbare Leiste. */
.site-header.scrolled::before { opacity: 0; }
.site-header.scrolled {
  background: rgba(11, 18, 36, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--navy-line);
}
.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}
.logo {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo .logo-mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: var(--gold);
  color: var(--navy);
  border-radius: 3px;
  font-size: 1rem;
}
.logo em { font-style: normal; color: var(--gold); }
.logo img { height: 46px; width: auto; }
.site-footer .logo img { height: 60px; }

.main-nav { display: flex; align-items: center; gap: clamp(16px, 1.7vw, 26px); margin-left: auto; min-width: 0; }
.main-nav > a, .dropdown > button {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.97rem;
  font-weight: 600;
  padding: 8px 0;
  white-space: nowrap;   /* sonst bricht „Über uns" mitten im Menü um */
  flex: none;
  transition: color 0.2s ease;
  display: inline-flex; align-items: center; gap: 6px;
}
.main-nav > a:hover, .dropdown > button:hover { color: var(--gold); }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: -16px;
  min-width: 310px;
  background: #fff;
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 14px;
  border-radius: 4px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}
.dropdown-menu a:hover { background: var(--bg-grey); color: var(--navy); }
.dropdown-menu a .nav-icon { flex: 0 0 26px; width: 26px; height: 26px; margin-top: 2px; align-self: flex-start; color: var(--navy); }
.dropdown-menu a .nav-icon img, .dropdown-menu a .nav-icon svg { width: 100%; height: 100%; object-fit: contain; display: block; }
.dropdown-menu a .nav-txt { display: block; }
.dropdown-menu a .nav-txt span { display: block; font-size: 0.8rem; font-weight: 400; color: var(--muted); }

.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap; flex: none;
  color: #fff; font-weight: 700; font-size: 0.97rem;
}
.header-phone:hover { color: var(--gold); }
/* Höhere Spezifität als „.main-nav > a", damit der Button seine Innenabstände
   in KEINEM Breakpoint verliert (sonst klebt der Text am Rand). */
.main-nav > a.header-cta,
.header-cta {
  padding: 13px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.1;
  /* .main-nav > a würde sonst die Schriftfarbe auf Weiß ziehen – auf Gold
     unlesbar. Deshalb hier explizit Navy. */
  color: var(--navy);
  flex: 0 0 auto;
  white-space: nowrap;
  text-align: center;
}
.main-nav > a.header-cta:hover, .header-cta:hover { color: var(--navy); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 1360px) {
  .main-nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px clamp(20px, 4vw, 48px);
    gap: 4px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }
  body.nav-open .main-nav { transform: translateX(0); }
  .main-nav > a, .dropdown > button { font-size: 1.15rem; padding: 12px 0; }
  .dropdown-menu {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    background: transparent; box-shadow: none; padding: 0 0 6px 16px;
  }
  .dropdown-menu a { color: rgba(255,255,255,0.75); }
  .dropdown-menu a:hover { background: rgba(255,255,255,0.06); color: var(--gold); }
  .dropdown-menu a .nav-txt span { color: var(--muted-light); }
  /* dunkles Mobilmenü: Navy-Icons weiß umfärben */
  .dropdown-menu a .nav-icon { color: #fff; }
  .dropdown-menu a .nav-icon img { filter: brightness(0) invert(1); opacity: 0.85; }
  .header-phone { display: none; }
  /* Im ausgeklappten Menü sitzt der Button als eigene, volle Fläche unten */
  .main-nav > a.header-cta {
    align-self: stretch;
    margin-top: 22px;
    padding: 16px 24px;
    font-size: 1rem;
  }
  .nav-toggle { display: flex; margin-left: auto; }
}

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

.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  padding: 190px 0 52px;
  background: var(--navy-deep);
  overflow: clip;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 45% 55% at 12% 32%, rgba(46, 78, 150, 0.38), transparent 62%),
    radial-gradient(ellipse 40% 45% at 6% 78%, rgba(243, 215, 147, 0.07), transparent 60%),
    linear-gradient(150deg, #101c3a 0%, #0b1224 60%, #0a1020 100%);
}
.hero-bg::after {
  /* dezentes Panel-Raster als Solar-Anspielung */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 55% 75% at 8% 45%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 55% 75% at 8% 45%, #000 10%, transparent 70%);
}

/* Medienfläche vollflächig – der Verlauf kommt von unten */
.hero-img, .hero-video, .hero-veil { pointer-events: none; }
.hero-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
/* Video liegt über dem Standbild und blendet sich ein, sobald Bilder laufen.
   Fehlt die Datei, bleibt schlicht das Bild sichtbar.
   KEINE Transition auf opacity: Die Deckkraft setzt main.js Frame für Frame
   (Ein-/Ausblenden an Clip-Anfang und -Ende). Eine Transition zöge jeden dieser
   Werte nach – beim Start sah das aus wie hängen und dann springen. */
.hero-video {
  opacity: 0;
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 62%;
}
/* Verlauf von unten: trägt Headline, Fließtext und Zahlenleiste,
   lässt das Bild nach oben hin frei */
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(0deg,
    rgba(11, 18, 36, 0.96) 0%,
    rgba(11, 18, 36, 0.90) 20%,
    rgba(11, 18, 36, 0.64) 44%,
    rgba(11, 18, 36, 0.32) 66%,
    rgba(11, 18, 36, 0.14) 86%,
    rgba(11, 18, 36, 0.10) 100%);
}

/* Schmale Viewports: kräftigerer Schleier, weil der Text mehr Fläche einnimmt */
@media (max-width: 900px) {
  .hero-veil {
    background: linear-gradient(0deg,
      rgba(11, 18, 36, 0.97) 0%,
      rgba(11, 18, 36, 0.95) 35%,
      rgba(11, 18, 36, 0.82) 62%,
      rgba(11, 18, 36, 0.55) 85%,
      rgba(11, 18, 36, 0.42) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}

.hero-content { position: relative; z-index: 2; max-width: 860px; }
/* Trägt die Lesbarkeit, damit der Schleier heller bleiben kann */
.hero .h-hero { text-shadow: 0 2px 28px rgba(8, 14, 28, 0.75); }
.hero .lead { text-shadow: 0 1px 16px rgba(8, 14, 28, 0.85); }
.hero .hero-badge { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

.hero-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(243, 215, 147, 0.09);
  border-left: 3px solid var(--gold);
  padding: 9px 16px;
  margin-bottom: 28px;
}
.hero .underline {
  display: block;
  width: min(640px, 80%);
  height: 4px;
  margin-top: 26px;
  background: linear-gradient(90deg, var(--gold), rgba(243, 215, 147, 0.15));
  transform-origin: left;
}
.hero .lead { margin: 26px 0 38px; color: rgba(255, 255, 255, 0.82); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; }

/* Stats-Leiste */
.stats-bar {
  position: relative; z-index: 2;
  margin-top: clamp(50px, 7vw, 90px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.stat {
  padding: 20px 22px;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  line-height: 1.35;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--navy-line);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.stat b {
  display: block;
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.stat b .gold { color: var(--gold); }
.stat > span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-light);
  line-height: 1.4;
}
.stat b span { font-size: inherit; letter-spacing: inherit; text-transform: none; }
@media (max-width: 820px) {
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: none; padding-left: 0; }
  .stat { padding-top: 18px; }
}

/* ---------- Karten-Grid (Leistungen) ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3 { grid-template-columns: 1fr; } }

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 42px 34px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); z-index: 2; }
.service-icon {
  width: 120px; height: 120px;
  margin: 0 auto 18px;
  color: var(--navy);
  transition: transform var(--transition);
}
.service-card:hover .service-icon { transform: scale(1.06) translateY(-4px); }
.service-icon svg { width: 100%; height: 100%; }
.service-icon img { width: 100%; height: 100%; object-fit: contain; }
.service-card p { color: var(--muted); font-size: 0.98rem; }
.service-card .more {
  margin-top: auto;
  font-weight: 700;
  color: var(--gold-dark);
  display: inline-flex; align-items: center; gap: 8px;
}
.service-card .more .arrow { transition: transform 0.25s ease; }
.service-card:hover .more .arrow { transform: translateX(5px); }
.service-card.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 40px; }
.service-card.wide .service-icon { margin: 0; flex: 0 0 120px; height: 120px; }
@media (max-width: 640px) { .service-card.wide { flex-direction: column; } }

/* ---------- Hersteller-Marquee ---------- */

.brands { padding: 46px 0; border-top: 1px solid var(--navy-line); border-bottom: 1px solid var(--navy-line); }
.brands .label-line {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 26px;
}
.marquee { overflow: clip; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track {
  display: flex;
  gap: clamp(48px, 6vw, 90px);
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.brand-item {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.brand-item img {
  height: clamp(26px, 3vw, 38px);
  width: auto;
  opacity: 0.72;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.brand-item:hover img { opacity: 1; transform: scale(1.06); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Video-/Referenz-Kacheln ---------- */

.tile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 900px) { .tile-grid { grid-template-columns: 1fr; } }

.ref-tile { background: var(--navy-deep); border: 1px solid var(--navy-line); border-radius: 16px; overflow: clip; display: flex; flex-direction: column; transition: transform var(--transition), border-color var(--transition); }
.ref-tile:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.22); }
.ref-media {
  position: relative;
  aspect-ratio: 16 / 9.5;
  background:
    radial-gradient(ellipse 80% 90% at 50% 10%, rgba(243, 215, 147, 0.10), transparent 60%),
    linear-gradient(165deg, #17223f, #0d1428);
  display: grid; place-items: center;
  overflow: clip;
}
.ref-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ref-media .placeholder-note {
  font-size: 0.85rem; font-weight: 600;
  color: var(--muted-light);
  border: 1px dashed rgba(255,255,255,0.25);
  padding: 10px 18px; border-radius: 4px;
}
.ref-tag {
  border-radius: 8px;
  position: absolute; top: 18px; left: 18px;
  background: #fff; color: var(--navy);
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 7px 12px;
}
.play-btn {
  position: relative; z-index: 2;
  width: 84px; height: 84px;
  background: var(--gold);
  color: var(--navy);
  display: grid; place-items: center;
  font-size: 1.5rem;
  transition: transform 0.25s ease;
}
.ref-tile:hover .play-btn { transform: scale(1.1); }
.ref-body { padding: 30px 30px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.ref-body .quote-mark { color: var(--gold); font-size: 2.2rem; font-weight: 900; line-height: 1; }
.ref-body h3 { color: #fff; font-size: 1.35rem; }
.ref-body p { color: var(--muted-light); font-size: 0.97rem; }
.ref-meta {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 20px;
  border-top: 1px solid var(--navy-line);
  padding-top: 18px;
  margin-top: auto;          /* immer am unteren Rand der Kachel */
  line-height: 1.4;
}
.ref-meta .who b { color: #fff; display: block; }
.ref-meta .who span { color: var(--muted-light); font-size: 0.88rem; }
.ref-meta .fact { text-align: right; }
.ref-meta .fact b { color: var(--gold); display: block; font-size: 1.25rem; }
.ref-meta .fact span { color: var(--muted-light); font-size: 0.85rem; }

/* Bewertungs-Zeile im Sektions-Kopf */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 54px; }
.rating-box { text-align: right; }
.rating-box .stars { color: #f6bf26; font-size: 1.25rem; letter-spacing: 3px; }
.rating-box b { font-size: 1.9rem; font-weight: 900; margin-left: 10px; }
.rating-box span { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted-light); }

/* ---------- Google Reviews ---------- */

.review-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 2px 10px rgba(16, 25, 48, 0.04); padding: 34px 30px 26px; display: flex; flex-direction: column; transition: transform var(--transition), box-shadow var(--transition); }
.review-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(16, 25, 48, 0.10); }
.review-card .stars { color: #f6bf26; font-size: 1.1rem; letter-spacing: 3px; margin-bottom: 18px; }
.review-card p { color: var(--muted); font-size: 0.97rem; }
.review-card p + p { margin-top: 14px; }
.review-foot {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px;
  line-height: 1.35;
}
.review-foot b { flex: 1 1 auto; min-width: 0; }
.review-foot span { flex: 0 1 auto; text-align: right; }
/* Auf schmalen Karten lieber untereinander als aus dem Kasten laufen */
@media (max-width: 720px) {
  .review-foot { flex-wrap: wrap; gap: 4px; }
  .review-foot span { text-align: left; }
}
.review-foot b { font-size: 0.97rem; }
.review-foot span { color: var(--muted-light); font-size: 0.85rem; }
.reviews-note { text-align: center; color: var(--muted-light); font-size: 0.85rem; margin-top: 26px; }

/* ---------- Reels-Karussell (Instagram-Clips im Handy-Rahmen) ---------- */

.reels-section .lead { margin-top: 14px; }
.reels {
  position: relative;
  margin-top: 46px;
  padding: 6px 0 10px;
}
/* Immer genau drei Handys: links/rechts abgedunkelt, in der Mitte das aktive */
.reel-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
}
.reel-card {
  display: none;
  flex: 0 0 auto;
  width: 270px;
  color: var(--ink);
}
.reel-card.is-prev, .reel-card.is-next, .reel-card.is-active { display: block; }
.reel-card.is-prev { order: 1; }
.reel-card.is-active { order: 2; }
.reel-card.is-next { order: 3; }
/* abgedunkelt, nicht verschwommen */
.reel-card.is-prev .phone, .reel-card.is-next .phone {
  filter: brightness(0.7);
  transform: scale(0.88);
  transform-origin: center;
}
.reel-card.is-prev:hover .phone, .reel-card.is-next:hover .phone { filter: brightness(0.85); }
.reel-card .phone { transition: filter var(--transition), transform var(--transition); }
.reel-card.is-active .phone { animation: reel-in 0.4s ease; }
@keyframes reel-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }

/* Handy-Rahmen – ohne Schlagschatten */
.phone {
  background: #fff;
  border: 9px solid #0d0f14;
  border-radius: 42px;
  overflow: hidden;
}
.phone-status {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 18px 5px;
  font-size: 0.72rem; font-weight: 700; color: #0d0f14;
}
.phone-status .notch {
  position: absolute; left: 50%; top: 4px; transform: translateX(-50%);
  width: 86px; height: 22px; border-radius: 14px; background: #0d0f14;
}
.st-icons { display: inline-flex; align-items: center; gap: 4px; color: #0d0f14; }
.st-icons svg { height: 9px; width: auto; display: block; }
.st-icons .st-batt { height: 11px; }

.phone-head {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px 8px;
}
.ig-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-btn), var(--navy));
  flex: none;
}
.ig-name {
  font-size: 0.76rem; font-weight: 700; line-height: 1.2; flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ig-name i { display: block; font-style: normal; font-weight: 500; font-size: 0.68rem; color: var(--muted-light); }
.ig-follow {
  font-size: 0.72rem; font-weight: 700; color: #0d0f14;
  background: #f1f2f5; border-radius: 8px;
  padding: 6px 13px; flex: none;
}
.ig-more { color: #0d0f14; font-size: 0.7rem; letter-spacing: 1px; flex: none; }

.phone-media {
  position: relative;
  aspect-ratio: 9 / 13.2;
  background:
    radial-gradient(ellipse 90% 70% at 30% 20%, rgba(243, 215, 147, 0.14), transparent 60%),
    linear-gradient(160deg, #1a2542, #0d1428);
  overflow: clip;
}
.phone-media img,
.phone-media .reel-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Play-Symbol nur, solange der Clip steht */
.reel-card.is-playing .reel-play { opacity: 0; pointer-events: none; }
.reel-play { transition: transform var(--transition), opacity var(--transition); }
.reel-play {
  /* Mitte des sichtbaren Videos – die „Mehr dazu"-Leiste unten zählt nicht mit */
  position: absolute;
  left: 50%; top: calc(50% - 19px);
  transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  display: grid; place-items: center;
  transition: transform var(--transition);
}
.reel-play svg { width: 26px; height: 26px; margin-left: 2px; }
.reel-card:hover .reel-play { transform: translate(-50%, -50%) scale(1.08); }
.ig-mute {
  position: absolute; right: 12px; bottom: 54px;
  width: 30px; height: 30px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(20, 24, 34, 0.55);
  color: #fff;
  display: grid; place-items: center;
  transition: background var(--transition), transform var(--transition);
}
.ig-mute:hover { background: rgba(20, 24, 34, 0.8); transform: scale(1.08); }
.ig-mute svg { width: 16px; height: 16px; grid-area: 1 / 1; }
/* Symbol je nach Zustand: durchgestrichen = stumm, Wellen = Ton läuft */
.ig-mute .ic-an { display: none; }
.reel-card.ton-an .ig-mute .ic-an { display: block; }
.reel-card.ton-an .ig-mute .ic-aus { display: none; }
.reel-card.ton-an .ig-mute { background: var(--gold-btn); color: var(--navy); }
.reel-more {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: #8ba2b8;
  color: #fff;
  font-size: 0.78rem; font-weight: 600;
  padding: 10px 14px;
  display: flex; justify-content: space-between; align-items: center;
}

.phone-actions {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px 4px;
  color: #0d0f14;
}
.ig-act { display: inline-flex; align-items: center; gap: 16px; }
.ig-a { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 600; }
.ig-a i { font-style: normal; }
.phone-actions svg { width: 21px; height: 21px; display: block; }
.phone-caption {
  padding: 6px 14px 10px;
  font-size: 0.75rem; line-height: 1.45; color: var(--muted);
}
.phone-caption b { color: #0d0f14; }
.phone-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 18px 13px;
  color: #0d0f14;
}
.phone-nav svg { width: 20px; height: 20px; }
.ig-me { width: 19px; height: 19px; border-radius: 50%; background: #3b6ef6; display: block; }

/* Pfeile + Punkte */
.reel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3;
  width: 52px; height: 52px; border-radius: 50%;
  border: none; cursor: pointer;
  background: var(--navy); color: #fff;
  font-size: 1.5rem; line-height: 1;
  transition: background var(--transition), transform var(--transition);
}
.reel-arrow:hover { background: var(--navy-soft); transform: translateY(-50%) scale(1.06); }
.reel-arrow.prev { left: clamp(10px, 5vw, 90px); }
.reel-arrow.next { right: clamp(10px, 5vw, 90px); }

.reel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.reel-dot {
  width: 9px; height: 9px; padding: 0;
  border: none; border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: width var(--transition), background var(--transition);
}
.reel-dot.is-active { width: 26px; border-radius: 6px; background: var(--navy); }

@media (max-width: 900px) {
  .reel-card { width: 230px; }
  .reel-arrow { width: 42px; height: 42px; font-size: 1.2rem; }
  .reel-arrow.prev { left: 6px; }
  .reel-arrow.next { right: 6px; }
}
/* Auf schmalen Displays nur das aktive Handy */
@media (max-width: 640px) {
  .reel-card.is-prev, .reel-card.is-next { display: none; }
  .reel-card { width: min(280px, 76vw); }
}

/* ---------- USP-Kacheln (Startseite „Warum eVERA") ---------- */

.usp-cards { display: flex; flex-direction: column; gap: 20px; }
.usp-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 30px;
  box-shadow: 0 2px 10px rgba(16, 25, 48, 0.04);
  transition: transform var(--transition), box-shadow var(--transition),
              border-color var(--transition);
}
.usp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(16, 25, 48, 0.10);
  border-color: rgba(16, 25, 48, 0.18);
}
.usp-kicker {
  display: block;
  font-size: 0.76rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 10px;
}
.usp-card h3 { font-size: 1.2rem; line-height: 1.35; margin-bottom: 10px; }
.usp-card p { color: var(--muted); font-size: 0.97rem; }
.on-grey .usp-card { background: #fff; }
@media (max-width: 560px) { .usp-card { padding: 24px 22px; } }

/* ---------- Firmengeschichte (vertikale Timeline) ---------- */

/* Überschrift links bleibt stehen, während die Timeline rechts durchläuft */
@media (min-width: 981px) {
  .split-sticky > div:first-child { position: sticky; top: 130px; }
}

.timeline { position: relative; padding-left: 74px; }
/* Schiene inkl. mitwachsender Füllung */
.tl-rail {
  position: absolute;
  left: 26px; top: 10px; bottom: 10px;
  width: 3px;
  background: var(--line);
  border-radius: 3px;
}
.on-dark .tl-rail { background: var(--navy-line); }
.tl-fill {
  display: block;
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, var(--navy), var(--gold-btn));
  border-radius: 3px;
  transition: height 0.15s linear;
}

.tl-item {
  position: relative;
  padding-bottom: 46px;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item.visible { opacity: 1; transform: none; }

/* Kreis mit gestricheltem Innenring + Nummern-Badge – wie im Vorbild */
.tl-marker { position: absolute; left: -74px; top: 0; width: 56px; height: 56px; }
.tl-dot {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line);
  display: grid; place-items: center;
  color: var(--muted-light);
  transition: border-color var(--transition), color var(--transition),
              box-shadow var(--transition), transform var(--transition);
}
.tl-dot::before {
  content: "";
  position: absolute; inset: 5px;
  border-radius: 50%;
  border: 1px dashed var(--line);
  transition: border-color var(--transition);
}
.tl-dot svg { width: 24px; height: 24px; position: relative; }
.tl-num {
  position: absolute; top: -6px; right: -6px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--line);
  color: var(--muted);
  display: grid; place-items: center;
  font-size: 0.78rem; font-weight: 800;
  transition: background var(--transition), color var(--transition);
}
/* Zustand, sobald die Füllung den Punkt erreicht hat */
.tl-item.done .tl-dot {
  border-color: var(--navy);
  color: var(--navy);
  box-shadow: 0 10px 26px rgba(16, 25, 48, 0.12);
}
.tl-item.done .tl-dot::before { border-color: rgba(16, 25, 48, 0.25); }
.tl-item.done .tl-num {
  background: var(--gold-btn);
  color: var(--navy);
}

.tl-year {
  display: inline-block;
  font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 6px;
}
.tl-body h3 { font-size: 1.25rem; margin-bottom: 8px; }
.tl-body p { color: var(--muted); font-size: 0.97rem; }

@media (max-width: 560px) {
  .timeline { padding-left: 60px; }
  .tl-marker { left: -60px; width: 46px; height: 46px; }
  .tl-rail { left: 21px; }
  .tl-dot svg { width: 20px; height: 20px; }
  .tl-num { width: 21px; height: 21px; font-size: 0.72rem; }
}

@media (prefers-reduced-motion: reduce) {
  .tl-item { opacity: 1; transform: none; transition: none; }
  .tl-fill { transition: none; }
}

/* ---------- Einzugsgebiet ---------- */

.ort-gruppe + .ort-gruppe { margin-top: 60px; }
.ort-gruppe-titel {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 24px;
}
.ort-gruppe-titel span {
  font-size: 0.75rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted-light);
}
.ort-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}
.ort-card {
  display: flex; flex-direction: column; gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 24px 20px;
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(16, 25, 48, 0.04);
  transition: transform var(--transition), box-shadow var(--transition),
              border-color var(--transition);
}
.ort-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(16, 25, 48, 0.10);
  border-color: rgba(16, 25, 48, 0.18);
}
.ort-kreis {
  font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-dark);
}
.ort-card h3 { font-size: 1.15rem; line-height: 1.25; }
.ort-card p { color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.ort-card .more {
  margin-top: auto; padding-top: 12px;
  font-weight: 700; font-size: 0.9rem; color: var(--gold-dark);
  display: inline-flex; align-items: center; gap: 8px;
}
.ort-card:hover .more .arrow { transform: translateX(4px); }

/* Nachbarorte als Chip-Reihe */
.ort-links { display: flex; flex-wrap: wrap; gap: 10px; }
.ort-links a {
  background: var(--bg-grey);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.92rem; font-weight: 600;
  color: var(--ink);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.ort-links a:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Ortsliste im Footer sind jetzt Links */
.region-links a:hover { color: var(--gold); }

/* ---------- Blog ---------- */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
@media (max-width: 980px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: clip;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--navy); }
.blog-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(ellipse 90% 70% at 30% 20%, rgba(243, 215, 147, 0.14), transparent 60%),
    linear-gradient(160deg, #1a2542, #0d1428);
  display: grid; place-items: center;
  overflow: clip;
}
.blog-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.blog-card:hover .blog-media img { transform: scale(1.04); }
.blog-media img { transition: transform var(--transition); }
.blog-body { padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.blog-meta { display: flex; align-items: center; gap: 12px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-light); }
.blog-cat { color: var(--gold-dark); }
.blog-card h3 { font-size: 1.22rem; line-height: 1.3; }
.blog-card p { color: var(--muted); font-size: 0.95rem; }
.blog-card .more { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--gold-dark); display: inline-flex; align-items: center; gap: 8px; }
.blog-card:hover .more .arrow { transform: translateX(4px); }
.on-grey .blog-card { background: #fff; }

/* Beitragsseite */
.post-hero { padding-top: 150px; padding-bottom: 70px; }
.post-hero .post-meta { display: flex; gap: 14px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-light); margin: 0 0 16px; position: relative; z-index: 2; }
.post-hero .post-meta .blog-cat { color: var(--gold); }

.back-link {
  position: relative; z-index: 2;
  display: flex; width: fit-content;   /* eigene Zeile, nicht neben dem Label */
  align-items: center; gap: 10px;
  font-size: 0.92rem; font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 26px;
}
.back-link:hover { color: var(--gold); }
.back-link .arrow-back { display: inline-block; transition: transform var(--transition); }
.back-link:hover .arrow-back { transform: translateX(-4px); }
.back-link-dark { color: var(--muted); display: inline-flex; }
.back-link-dark:hover { color: var(--navy); }

.post-media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  max-width: 900px;
  margin: 0 auto 46px;
  background:
    radial-gradient(ellipse 90% 70% at 30% 20%, rgba(243, 215, 147, 0.14), transparent 60%),
    linear-gradient(160deg, #1a2542, #0d1428);
  display: grid; place-items: center;
  overflow: clip;
}
.post-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-body { max-width: 720px; margin: 0 auto; }
.post-body h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 40px 0 14px; }
.post-body ul, .post-body ol { margin: 10px 0 10px 22px; }
.post-body ol { list-style: decimal; }
.post-body h3 { font-size: 1.15rem; margin: 26px 0 10px; }
/* Hinweiskasten und Abschluss-CTA im Beitrag */
.post-hinweis {
  background: var(--bg-grey);
  border-left: 3px solid var(--gold-btn);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin: 36px 0 0;
  font-size: 0.92rem; color: var(--muted);
}
.post-hinweis a { text-decoration: underline; }
.post-cta {
  background: var(--navy);
  color: #fff;
  border-radius: 16px;
  padding: 34px 34px 32px;
  margin-top: 34px;
}
.post-cta h3 { color: #fff; font-size: 1.35rem; margin-bottom: 10px; }
.post-cta p { color: var(--muted-light); margin-bottom: 22px; }
.post-body li { margin-bottom: 8px; }

/* ---------- USP / Nummerierte Liste ---------- */

.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
@media (max-width: 980px) { .split { grid-template-columns: 1fr; } }

/* Einzelne, abgerundete Kacheln untereinander – gleiche Sprache wie .usp-card */
.numbered-list { display: flex; flex-direction: column; gap: 18px; }
.numbered-item {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 16px;
  padding: 26px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(16, 25, 48, 0.04);
  transition: transform var(--transition), box-shadow var(--transition),
              border-color var(--transition);
}
.numbered-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(16, 25, 48, 0.10);
  border-color: rgba(16, 25, 48, 0.18);
}
.on-dark .numbered-item {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--navy-line);
}
.on-dark .numbered-item:hover { border-color: rgba(255, 255, 255, 0.25); box-shadow: none; }
.numbered-item .num {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--gold-dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.on-dark .numbered-item .num { color: var(--gold); }
.numbered-item h3 { font-size: 1.2rem; margin-bottom: 10px; }
.numbered-item p { color: var(--muted); font-size: 0.97rem; }
.on-dark .numbered-item p { color: var(--muted-light); }
@media (max-width: 560px) {
  .numbered-item { grid-template-columns: 48px 1fr; padding: 22px 20px; gap: 12px; }
  .numbered-item .num { font-size: 1.35rem; }
}

.split-media {
  position: sticky; top: 110px;
  border-radius: 16px;
  aspect-ratio: 4 / 4.6;
  background:
    radial-gradient(ellipse 90% 70% at 30% 20%, rgba(243, 215, 147, 0.14), transparent 60%),
    linear-gradient(160deg, #1a2542, #0d1428);
  display: grid; place-items: center;
  overflow: clip;
}
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Bild bleibt im Fluss stehen (kein Mitscrollen) – muss trotzdem „positioniert"
   sein, sonst hängt sich das absolut gesetzte <img> an einen anderen Vorfahren
   und springt beim Scrollen weg. */
.split-media.not-sticky { position: relative; top: auto; }

/* Breites Querformat-Bild über die volle Container-Breite (z. B. Teamfoto) */
.media-wide {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background:
    radial-gradient(ellipse 90% 70% at 30% 20%, rgba(243, 215, 147, 0.14), transparent 60%),
    linear-gradient(160deg, #1a2542, #0d1428);
  display: grid; place-items: center;
  overflow: clip;
}
.media-wide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
@media (max-width: 640px) { .media-wide { aspect-ratio: 3 / 2; } }
.split-media .placeholder-note {
  font-size: 0.85rem; font-weight: 600;
  color: var(--muted-light);
  border: 1px dashed rgba(122, 133, 160, 0.5);
  padding: 10px 18px; border-radius: 4px;
}

/* ---------- Fallstudie / Stat-Kacheln ---------- */

.stat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 36px; }
@media (max-width: 640px) { .stat-tiles { grid-template-columns: 1fr; } }
.stat-tile { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--navy-line); border-radius: 12px; padding: 22px 20px; display: flex; flex-direction: column; gap: 4px; line-height: 1.35; }
.stat-tile .check { color: var(--gold); font-weight: 900; }
.stat-tile b { display: block; font-size: 1.7rem; font-weight: 900; color: #fff; margin-top: 2px; line-height: 1.2; }
.stat-tile span { color: var(--muted-light); font-size: 0.85rem; }
/* Variante für Wort-Kennzahlen statt Zahlen (z. B. „Eigenverbrauch") */
.stat-tile.txt b { font-size: 1.1rem; line-height: 1.25; }

/* Fakten unter der Fallstudie: eine Zeile je Punkt statt enger Spalten */
.fakten-liste { display: flex; flex-direction: column; gap: 10px; margin-top: 34px; }
.fakt {
  display: grid;
  grid-template-columns: 22px 1fr;
  grid-template-areas: "check titel" ".     text";
  gap: 2px 12px;
  align-items: baseline;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--navy-line);
  border-radius: 12px;
  padding: 16px 20px;
  line-height: 1.4;
  transition: background var(--transition), border-color var(--transition);
}
.fakt:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.22); }
.fakt .check { grid-area: check; color: var(--gold); font-weight: 900; }
.fakt b { grid-area: titel; color: #fff; font-size: 1.02rem; }
.fakt > span:last-child { grid-area: text; color: var(--muted-light); font-size: 0.92rem; }
@media (max-width: 560px) {
  .fakt { grid-template-columns: 20px 1fr; padding: 14px 16px; }
}

/* ---------- Abwechselnde Bild/Text-Reihen ---------- */

.feature-rows { border: 1px solid var(--line); border-radius: 18px; overflow: clip; }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.feature-row:first-child { border-top: none; }
@media (max-width: 900px) { .feature-row { grid-template-columns: 1fr; } }
.feature-media {
  min-height: 420px;
  border-radius: 14px;
  overflow: clip;
  position: relative;
  background:
    radial-gradient(ellipse 80% 70% at 60% 30%, rgba(243, 215, 147, 0.10), transparent 65%),
    linear-gradient(160deg, #f0f2f7, #dfe3ee);
  display: grid; place-items: center;
}
.feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-media .placeholder-note {
  font-size: 0.85rem; font-weight: 600; color: var(--muted);
  border: 1px dashed rgba(91, 100, 120, 0.4);
  padding: 10px 18px; border-radius: 4px;
}
.feature-row:nth-child(even) .feature-media { order: 2; }
@media (max-width: 900px) { .feature-row:nth-child(even) .feature-media { order: 0; } }
.feature-body { padding: clamp(36px, 5vw, 70px); display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.feature-body .kicker {
  font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold-dark);
}
.feature-body h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.feature-body p { color: var(--muted); }
.feature-body .btn { margin-top: 8px; }

/* ---------- Prozess-Schritte ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.step { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 32px 28px; box-shadow: 0 2px 10px rgba(16, 25, 48, 0.04); transition: transform var(--transition), box-shadow var(--transition); }
.step:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(16, 25, 48, 0.10); }
.step .num { font-size: 2rem; font-weight: 900; color: var(--gold-dark); display: block; margin-bottom: 14px; }
.step h3 { font-size: 1.15rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.95rem; }

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

.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; transition: border-color var(--transition), box-shadow var(--transition); }
.faq-item:hover { border-color: rgba(16, 25, 48, 0.18); box-shadow: 0 10px 26px rgba(16, 25, 48, 0.06); }
.faq-item.open { border-color: rgba(16, 25, 48, 0.22); box-shadow: 0 14px 32px rgba(16, 25, 48, 0.08); }
.faq-q {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  text-align: left;
  padding: 28px 4px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.2s ease;
}
.faq-q:hover { color: var(--gold-dark); }
.faq-q .faq-icon {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  position: relative;
  transition: transform 0.3s ease;
}
.faq-q .faq-icon::before, .faq-q .faq-icon::after {
  content: "";
  position: absolute; inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  background: currentColor;
  width: 16px; height: 2px;
}
.faq-q .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.3s ease, opacity 0.3s ease; }
.faq-item.open .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1); }
.faq-a-inner { padding: 0 40px 28px 4px; color: var(--muted); max-width: 75ch; }

/* ---------- Funnel / Mehrschritt-Formular ---------- */

.funnel-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
@media (max-width: 980px) { .funnel-wrap { grid-template-columns: 1fr; } }

.check-list { display: flex; flex-direction: column; gap: 14px; margin: 30px 0; }
.check-list li { display: flex; gap: 12px; align-items: baseline; color: rgba(255, 255, 255, 0.88); }
.check-list .check { color: var(--gold); font-weight: 900; }

.call-hint { border-top: 1px solid var(--navy-line); padding-top: 26px; margin-top: 10px; }
.call-hint .small-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-light); }
.call-hint a { display: block; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; color: var(--gold); margin: 6px 0 2px; }
.call-hint p { color: var(--muted-light); font-size: 0.9rem; }

.funnel {
  background: #fff;
  color: var(--ink);
  border-radius: 18px;
  padding: clamp(30px, 4vw, 50px);
  box-shadow: var(--shadow);
}
.funnel .step-label { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 10px; }
.on-dark .funnel h3, .funnel h3 { color: var(--ink); font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 26px; }
.on-dark .funnel .funnel-success h3 { color: var(--ink); }
.funnel-progress { height: 4px; background: var(--line); border-radius: 4px; overflow: clip; margin-bottom: 30px; }
.funnel-progress i { display: block; height: 100%; background: var(--gold-strong); transition: width 0.4s ease; }

.option-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .option-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.option {
  background: var(--bg-grey);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 18px;
  display: flex; flex-direction: column; gap: 10px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition),
              transform var(--transition), box-shadow var(--transition);
  font-weight: 700; font-size: 0.97rem;
  position: relative;
}
.option .opt-icon { width: 34px; height: 34px; color: var(--navy); }
.option .opt-icon svg { width: 100%; height: 100%; }
.option .opt-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* ausgewählte Kachel ist navy – Icon dann weiß statt navy */
.option.selected .opt-icon img { filter: brightness(0) invert(1); }
.option:hover { background: #fff; border-color: rgba(16, 25, 48, 0.22); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16, 25, 48, 0.07); }
.option.selected { background: var(--navy); border-color: var(--navy); color: #fff; }
.option.selected .opt-icon { color: var(--gold); }
.option.selected::after {
  content: "✓";
  position: absolute; top: 10px; right: 12px;
  color: var(--gold); font-weight: 900;
}
.option-note { font-size: 0.85rem; color: var(--muted-light); margin-top: 12px; }

.funnel-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 34px; border-top: 1px solid var(--line); padding-top: 26px; }
.funnel-back { color: var(--muted); font-weight: 700; }
.funnel-back:hover { color: var(--ink); }
.funnel-next[disabled] { opacity: 0.4; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

.funnel input[type="text"], .funnel input[type="tel"], .funnel input[type="email"],
.form-field input, .form-field textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s ease;
}
.funnel input:focus, .form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--navy);
}
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-grid { grid-template-columns: 1fr; } }
.form-field label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; }
.form-hint { font-size: 0.8rem; color: var(--muted-light); margin-top: 14px; }
.funnel-success { text-align: center; padding: 40px 10px; }
.funnel-success .big-check {
  width: 74px; height: 74px; margin: 0 auto 22px;
  background: var(--gold); color: var(--navy);
  display: grid; place-items: center;
  font-size: 2rem; font-weight: 900;
  border-radius: 50%;
}

/* ---------- CTA-Schluss-Sektion ---------- */

.cta-final .split { align-items: center; }
.cta-media {
  position: relative;
  aspect-ratio: 4 / 4.4;
  border-radius: 18px;
  overflow: clip;
  background:
    radial-gradient(ellipse 80% 60% at 40% 25%, rgba(243, 215, 147, 0.13), transparent 60%),
    linear-gradient(160deg, #1a2542, #0c1327);
  display: grid; place-items: center;
}
.cta-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-media .person-tag {
  position: absolute; left: 22px; bottom: 22px;
  background: #fff; color: var(--ink);
  border-radius: 12px;
  padding: 13px 20px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}
.cta-media .person-tag b { display: block; font-size: 1.05rem; }
.cta-media .person-tag span { color: var(--muted); font-size: 0.85rem; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 30px 0 36px; }
@media (max-width: 600px) { .check-grid { grid-template-columns: 1fr; } }
.check-grid li { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--navy-line); border-radius: 12px; padding: 16px 18px; display: flex; gap: 12px; align-items: baseline; color: rgba(255,255,255,0.88); font-weight: 600; transition: background var(--transition), border-color var(--transition); }
.check-grid li:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.22); }
.check-grid .check { color: var(--gold); font-weight: 900; }

/* ---------- Preistabellen ---------- */

.price-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 14px; overflow: clip; margin: 26px 0; }
.price-table th {
  text-align: left;
  font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--bg-grey);
  padding: 14px 18px;
  border: 1px solid var(--line);
}
.price-table td { padding: 16px 18px; border: 1px solid var(--line); color: var(--muted); }
.price-table td:first-child { font-weight: 800; color: var(--ink); }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-deep); color: var(--muted-light); padding: 80px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  padding-bottom: 60px;
}
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { font-size: 0.95rem; margin-top: 18px; max-width: 34ch; }
.footer-col h4 {
  color: #fff; font-size: 0.8rem; font-weight: 800;
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.95rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--gold); }
.footer-contact li { display: flex; gap: 10px; font-size: 0.95rem; }

/* Social-Buttons im Footer */
.social-links { display: flex; gap: 12px; margin-top: 26px; }
.social-links a {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--navy-line);
  display: grid; place-items: center;
  color: #fff;
  transition: background var(--transition), color var(--transition),
              transform var(--transition), border-color var(--transition);
}
.social-links a:hover {
  background: var(--gold-btn);
  border-color: var(--gold-btn);
  color: var(--navy);
  transform: translateY(-2px);
}
.social-links svg { width: 21px; height: 21px; display: block; }
.footer-contact .ci { margin-top: 0.15em; color: var(--gold); }

.footer-region { border-top: 1px solid var(--navy-line); padding: 44px 0; }
.footer-region h4 { color: #fff; font-size: 0.85rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; }
.region-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.region-links span, .region-links a { font-size: 0.9rem; color: var(--muted-light); }
.region-links a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--navy-line);
  padding: 26px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  font-size: 0.85rem;
}
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; width: 100%; }

/* ---------- Unterseiten-Hero ---------- */

.page-hero {
  position: relative;
  padding: 190px 0 90px;
  background: var(--navy-deep);
  overflow: clip;
}
.page-hero .hero-bg { position: absolute; inset: 0; }
.page-hero .hero-icon { position: relative; z-index: 2; width: 76px; height: 76px; margin-bottom: 22px; color: #fff; }
.page-hero .hero-icon svg { width: 100%; height: 100%; }
/* Navy-PNGs auf dunklem Hero weiß umfärben */
.page-hero .hero-icon img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); color: #fff; max-width: 900px; }
.page-hero .lead { margin: 24px 0 34px; color: rgba(255,255,255,0.82); }
.page-hero .hero-ctas { margin-bottom: 10px; }
.page-hero .call-line { color: var(--muted-light); font-size: 0.95rem; margin-top: 18px; }
.page-hero .call-line a { color: var(--gold); font-weight: 800; }

/* ---------- Ratenrechner ---------- */

.calc-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 5vw, 70px); align-items: start; }
@media (max-width: 900px) { .calc-wrap { grid-template-columns: 1fr; } }
.calc-panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: clamp(30px, 4vw, 46px); }
.calc-field { margin-bottom: 34px; }
.calc-field .calc-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.calc-field label { font-weight: 800; font-size: 1rem; }
.calc-field output { font-weight: 900; font-size: 1.25rem; color: var(--gold-dark); }
input[type="range"] {
  width: 100%;
  appearance: none; -webkit-appearance: none;
  height: 5px;
  background: var(--line);
  border-radius: 3px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none;
  width: 26px; height: 26px;
  background: var(--navy);
  border: 4px solid var(--gold);
  border-radius: 50%;
  cursor: grab;
}
.calc-result { background: var(--navy); color: #fff; border-radius: 16px; padding: clamp(30px, 4vw, 46px); position: sticky; top: 110px; }
.calc-result .small-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-light); }
.calc-result .rate { font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 900; color: var(--gold); margin: 8px 0 4px; }
.calc-result .rate small { font-size: 1.1rem; color: rgba(255,255,255,0.75); font-weight: 700; }
.calc-rows { border-top: 1px solid var(--navy-line); margin-top: 26px; }
.calc-rows div { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--navy-line); font-size: 0.95rem; }
.calc-rows div b { color: #fff; }
.calc-note { font-size: 0.8rem; color: var(--muted-light); margin-top: 20px; }

/* ---------- Vergleichsrechner (ohne/mit Solar) ---------- */

.vergleich { display: flex; flex-direction: column; gap: 20px; }

.v-eingabe {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 32px 26px;
}
.v-eingabe .small-label {
  display: block;
  font-size: 0.75rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.v-eingabe-zeile { display: flex; align-items: baseline; gap: 12px; margin-top: 22px; }
.v-eingabe-zeile input {
  width: 150px;
  font-family: inherit;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 900;
  color: var(--navy);
  border: none;
  border-bottom: 2px solid var(--gold-btn);
  border-radius: 0;
  padding: 2px 4px;
  background: transparent;
}
.v-eingabe-zeile input:focus { outline: none; border-bottom-color: var(--navy); }
.v-eingabe-zeile span { font-size: 1.2rem; font-weight: 800; color: var(--muted); }

.v-karten { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 780px) { .v-karten { grid-template-columns: 1fr; } }

.v-karte { border-radius: 16px; padding: 30px 32px 28px; }
.v-karte .small-label {
  display: block;
  font-size: 0.75rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.v-betrag {
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 12px 0 6px;
}
.v-betrag.durchgestrichen { text-decoration: line-through; text-decoration-thickness: 4px; }
.v-untertitel { font-size: 0.95rem; }
.v-zeilen { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.v-zeilen div {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; padding: 7px 0;
  font-size: 0.97rem;
}

/* links: heutiger Zustand */
.v-ohne { background: #fff; border: 1px solid var(--line); }
.v-ohne .small-label { color: var(--muted); }
.v-ohne .v-betrag { color: #c0392b; }
.v-ohne .v-untertitel { color: var(--muted); }
.v-ohne .v-zeilen b { color: var(--ink); }

/* rechts: mit Anlage */
.v-mit { background: var(--navy); color: #fff; border: 1px solid var(--navy); }
.v-mit .small-label { color: var(--gold); }
.v-mit .v-betrag { color: #fff; }
.v-mit .v-untertitel { color: var(--muted-light); }
.v-mit .v-zeilen { border-top-color: var(--navy-line); }
.v-mit .v-zeilen span { color: var(--muted-light); }
.v-mit .v-zeilen b { color: #fff; }
.v-mit .v-hervor { border-top: 1px solid var(--navy-line); margin-top: 6px; padding-top: 12px; }
.v-mit .v-hervor b { color: var(--gold); font-size: 1.15rem; font-weight: 900; }
.v-mit .v-hervor b.minus { color: #e8a09a; }

.v-hinweis {
  display: flex; align-items: flex-start; gap: 14px;
  background: #fdf6de;
  border-left: 4px solid var(--gold-btn);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin-top: 26px;
}
.v-hinweis-icon {
  flex: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--navy); color: var(--gold-btn);
  display: grid; place-items: center;
  font-weight: 900; font-size: 0.85rem;
}
.v-hinweis p { font-size: 0.95rem; color: var(--ink); }
.v-cta { display: flex; justify-content: center; margin-top: 30px; }

/* ---------- Scroll-Reveal-Animationen ---------- */

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--d, 0s);
}
.reveal.visible { opacity: 1; transform: none; }

.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--d, 0s);
}
.reveal-scale.visible { opacity: 1; transform: none; }

/* Nur Einblenden, ohne Transform. Für Boxen mit absolut gesetztem Bild darin:
   ein Transform erzeugt einen eigenen Bezugsrahmen, der am Ende der Animation
   wieder wegfällt – das Bild würde dabei sichtbar springen. */
.reveal-fade { opacity: 0; transition: opacity 0.8s ease; transition-delay: var(--d, 0s); }
.reveal-fade.visible { opacity: 1; }

/* ---------- Kontakt-Icons (maskiert → nehmen immer die Textfarbe an) ---------- */

.ci {
  display: inline-block;
  width: 1.05em; height: 1.05em;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--ci) center / contain no-repeat;
  mask: var(--ci) center / contain no-repeat;
  vertical-align: -0.16em;
}
.ci-tel { --ci: url("/assets/img/icons/kontakt-tel.png"); }
.ci-mail { --ci: url("/assets/img/icons/kontakt-mail.png"); }
.ci-pin { --ci: url("/assets/img/icons/kontakt-pin.png"); }
.ci-user { --ci: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='7.4' r='4.3'/%3E%3Cpath d='M3.5 21.2c0-4.4 3.8-7.2 8.5-7.2s8.5 2.8 8.5 7.2z'/%3E%3C/svg%3E"); }

.hero .hero-badge, .hero .h-hero, .hero .underline, .hero .lead, .hero .hero-ctas {
  opacity: 0;
  transform: translateY(30px);
  animation: hero-in 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.hero .underline { transform: scaleX(0); animation-name: hero-line; }
.hero .h-hero { animation-delay: 0.12s; }
.hero .underline { animation-delay: 0.4s; }
.hero .lead { animation-delay: 0.34s; }
.hero .hero-ctas { animation-delay: 0.48s; }
@keyframes hero-in { to { opacity: 1; transform: none; } }
@keyframes hero-line { to { opacity: 1; transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-scale, .reveal-fade,
  .hero .hero-badge, .hero .h-hero, .hero .underline, .hero .lead, .hero .hero-ctas {
    animation: none; transition: none; opacity: 1; transform: none;
  }
  .marquee-track { animation: none; }
  .team-card:hover { transform: none; }
}

/* ---------- Utilities ---------- */

.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 34px; } .mt-4 { margin-top: 50px; }
.mb-3 { margin-bottom: 34px; } .mb-4 { margin-bottom: 50px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.prose { max-width: 78ch; }
.prose p { margin-bottom: 1.2em; color: var(--muted); }
.prose h3 { margin: 1.6em 0 0.6em; font-size: 1.35rem; }
.prose ul { list-style: disc; padding-left: 22px; color: var(--muted); margin-bottom: 1.2em; }
.prose ul li { margin-bottom: 0.4em; }

/* ---------- Team-Raster (Über uns) ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 980px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .team-grid { grid-template-columns: 1fr; } }

.team-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: clip;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
/* Hover: leichtes Anheben + goldener Sonnenschein, der von unten aufglüht */
.team-card:hover {
  transform: translateY(-7px);
  border-color: rgba(243, 215, 58, 0.75);
  box-shadow: 0 18px 40px rgba(16, 25, 48, 0.16),
              0 8px 26px -6px rgba(243, 215, 58, 0.45);
}
.team-card .team-photo::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 125% 95% at 50% 110%, rgba(243, 215, 58, 0.58), transparent 66%),
    linear-gradient(to top, rgba(243, 215, 147, 0.4), transparent 55%);
  opacity: 0;
  transition: opacity 0.45s ease;
}
.team-card:hover .team-photo::after { opacity: 1; }
.team-card .team-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse 90% 70% at 30% 20%, rgba(243, 215, 147, 0.14), transparent 60%),
    linear-gradient(160deg, #1a2542, #0d1428);
}
.team-card .team-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}
.team-card .team-photo .placeholder-note {
  font-size: 0.8rem; font-weight: 600;
  color: var(--muted-light);
  border: 1px dashed rgba(122, 133, 160, 0.5);
  padding: 8px 14px; border-radius: 4px;
  text-align: center;
}
.team-card .team-meta { padding: 16px 18px 18px; }
.team-card .team-meta b { display: block; font-size: 1.02rem; color: var(--navy); }
.team-card .team-meta span {
  font-size: 0.85rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600;
}

/* ---------- Goldener Lichtschein am Mauszeiger ---------- */
/* Folgt der Maus mit leichter Verzögerung. Zwei Ebenen: weicher Halo (hilft auf
   dunklen Sektionen) + kleinerer warmer Kern (bleibt auf Weiß sichtbar). */

.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 280px; height: 280px;
  margin: -140px 0 0 -140px;      /* zentriert auf der Zeigerposition */
  z-index: 60;                     /* über Inhalten, unter Header/Menü */
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  will-change: transform;
}
.cursor-glow.is-on { opacity: 1; }
.cursor-glow::before,
.cursor-glow::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
}
/* Äußerer Schein – enger gefasst, läuft früher aus */
.cursor-glow::before {
  background: radial-gradient(circle at 50% 50%,
    rgba(243, 215, 58, 0.14) 0%,
    rgba(243, 215, 147, 0.07) 32%,
    transparent 56%);
}
/* Kleinerer, wärmerer Kern */
.cursor-glow::after {
  inset: 30%;
  background: radial-gradient(circle at 50% 50%,
    rgba(243, 215, 58, 0.18) 0%,
    transparent 70%);
}

/* Kein Zeiger-Schein auf Touch-Geräten */
@media (hover: none), (pointer: coarse) {
  .cursor-glow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor-glow { display: none; }
}

/* ---------- Energieberatung: Ergebnis-Karten & Fakten ---------- */

/* Schmal: eine Karte pro Zeile. Ab 860 px: 2 breite Karten oben, 3 darunter –
   das bricht das starre Raster auf. Die span-Regeln dürfen NUR im breiten
   Layout gelten, sonst erzeugen sie in der Ein-Spalten-Ansicht Extra-Spalten. */
.result-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 860px) {
  .result-grid { grid-template-columns: repeat(6, 1fr); }
  .result-grid .result-card:nth-child(1),
  .result-grid .result-card:nth-child(2) { grid-column: span 3; }
  .result-grid .result-card:nth-child(n+3) { grid-column: span 2; }
}

.result-card {
  position: relative;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(243, 215, 147, 0.16);
  border-radius: 16px;
  padding: 26px 26px 28px;
  overflow: clip;
  transition: border-color 0.35s ease, background 0.35s ease, transform 0.35s ease;
}
.result-card::after {           /* Sonnenschein aus der unteren Ecke */
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 12% 108%,
    rgba(243, 215, 58, 0.16), transparent 62%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.result-card:hover {
  transform: translateY(-4px);
  border-color: rgba(243, 215, 147, 0.42);
  background: rgba(255, 255, 255, 0.07);
}
.result-card:hover::after { opacity: 1; }
.result-card .result-num {
  display: block;
  font-size: 0.82rem; font-weight: 800; letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 14px;
}
.result-card h3 { font-size: 1.16rem; color: #fff; margin-bottom: 10px; }
.result-card p { color: var(--muted-light); font-size: 0.96rem; }

/* Vier Kennzahlen unter den Ergebnis-Karten */
.beratung-fakten {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 859px) { .beratung-fakten { grid-template-columns: 1fr 1fr; } }
/* Eigener Klassenname (.b-fakt), NICHT .fakt – das ist die Häkchen-Kachel der
   Startseite und würde hier 22 px für ein Icon reservieren, das es nicht gibt. */
.beratung-fakten .b-fakt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  min-height: 130px;
  padding: 22px 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(243, 215, 147, 0.16);
  border-radius: 16px;
}
.beratung-fakten .b-fakt b {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1.1;
}
.beratung-fakten .b-fakt span {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted-light);
  max-width: 22ch;
}

/* ---------- Energieberatung: typische Planungsfehler ---------- */

.fehler-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 780px) { .fehler-grid { grid-template-columns: 1fr; } }
.fehler-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-strong);
  border-radius: 4px 16px 16px 4px;
  padding: 26px 28px 28px;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.fehler-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.fehler-card h3 { font-size: 1.14rem; margin-bottom: 10px; }
.fehler-card p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Startseite: Energieberatung-Werbeblock ---------- */

.beratung-promo .split { align-items: center; }
.beratung-promo .check-list { margin: 26px 0 30px; }

.promo-media {
  position: relative;
  border-radius: 18px;
  aspect-ratio: 4 / 3.2;
  overflow: clip;
  background:
    radial-gradient(ellipse 90% 70% at 30% 20%, rgba(243, 215, 147, 0.16), transparent 60%),
    linear-gradient(160deg, #1a2542, #0d1428);
  border: 1px solid rgba(243, 215, 147, 0.18);
}
.promo-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* „0 €"-Plakette auf dem Bild */
.promo-media .promo-badge {
  position: absolute;
  left: 18px; bottom: 18px;
  background: rgba(16, 25, 48, 0.86);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(243, 215, 147, 0.4);
  border-radius: 14px;
  padding: 12px 18px;
}
.promo-media .promo-badge b {
  display: block;
  font-size: 1.5rem; font-weight: 900; line-height: 1;
  color: var(--gold);
}
.promo-media .promo-badge span {
  display: block; margin-top: 4px;
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted-light);
}
@media (max-width: 900px) { .promo-media { aspect-ratio: 16 / 10; } }

/* Kleines Gold-Etikett in der Leistungskachel */
.card-badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(243, 215, 58, 0.16);
  border: 1px solid rgba(236, 195, 103, 0.55);
  color: var(--gold-dark);
  font-size: 0.66rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- Kontaktseite: Karte (lädt erst auf Klick) ---------- */

.map-card {
  position: relative;
  border-radius: 16px;
  aspect-ratio: 4 / 4.6;
  overflow: clip;
  border: 1px solid rgba(243, 215, 147, 0.18);
  background:
    radial-gradient(ellipse 90% 70% at 30% 20%, rgba(243, 215, 147, 0.14), transparent 60%),
    linear-gradient(160deg, #1a2542, #0d1428);
}
@media (max-width: 900px) { .map-card { aspect-ratio: 4 / 3.4; } }

.map-teaser {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
  padding: 30px;
  text-align: center;
}
.map-teaser b { color: #fff; font-size: 1.15rem; }
.map-teaser .map-adresse { color: var(--muted-light); font-size: 0.95rem; line-height: 1.5; }
.map-teaser .map-load { margin-top: 10px; }
.map-teaser .map-hinweis {
  color: var(--muted-light); font-size: 0.78rem; max-width: 30ch; margin-top: 2px;
}
.map-teaser .map-extern {
  color: var(--gold); font-size: 0.85rem; font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px;
}

/* Gold-Pin mit sanftem Puls */
.map-pin {
  position: relative;
  width: 30px; height: 30px;
  margin-bottom: 6px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: linear-gradient(160deg, var(--gold), var(--gold-strong));
  box-shadow: 0 8px 22px rgba(243, 215, 58, 0.3);
}
.map-pin::after {          /* Loch in der Mitte */
  content: "";
  position: absolute; inset: 9px;
  border-radius: 50%;
  background: #101930;
}
.map-pin::before {         /* Schein unter dem Pin */
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 90px; height: 90px;
  margin: -45px 0 0 -45px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 215, 58, 0.28), transparent 65%);
  animation: map-pin-puls 2.8s ease-in-out infinite;
}
@keyframes map-pin-puls {
  0%, 100% { transform: scale(0.85); opacity: 0.55; }
  50%      { transform: scale(1.12); opacity: 0.95; }
}
@media (prefers-reduced-motion: reduce) {
  .map-pin::before { animation: none; }
}

/* Eingebettete Karte nach dem Klick */
.map-card iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.map-card.is-geladen .map-teaser { display: none; }

/* ---------- Impressum & Datenschutz ---------- */

/* Impressum: die harten Fakten als Kacheln statt als Fließtext */
.legal-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 760px) { .legal-wrap { grid-template-columns: 1fr; } }
.legal-karte {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 26px 26px;
}
.legal-karte .legal-label {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-dark);
}
.legal-karte p { color: var(--muted); line-height: 1.6; }
.legal-karte p + p { margin-top: 10px; }
.legal-karte strong { color: var(--navy); }
.legal-karte .legal-gross { font-size: 1.05rem; }
.legal-karte a { color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Datenschutz: „Kurz gesagt“-Kasten */
.legal-intro {
  background: var(--navy);
  color: #fff;
  border-radius: 18px;
  padding: clamp(26px, 3.4vw, 40px);
}
.legal-intro h2 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.legal-intro p { color: var(--muted-light); max-width: 78ch; line-height: 1.65; }

/* Sprungmarken-Leiste */
.legal-toc {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 26px;
}
.legal-toc a {
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.86rem; font-weight: 600;
  color: var(--navy);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.legal-toc a:hover { border-color: var(--gold-strong); background: rgba(243, 215, 58, 0.08); }

/* Hervorgehobener Kasten (z. B. Widerspruchsrecht Art. 21) */
.legal-box {
  background: rgba(243, 215, 58, 0.07);
  border: 1px solid rgba(236, 195, 103, 0.5);
  border-radius: 16px;
  padding: 26px 28px;
  margin: 2em 0;
}
.legal-box h4 { font-size: 1.08rem; margin-bottom: 12px; color: var(--navy); }
.legal-box p { color: var(--muted); }
.legal-box p + p { margin-top: 0.9em; }

/* Überschriften/Anker im Rechtstext */
.prose h4 { margin: 1.5em 0 0.5em; font-size: 1.08rem; color: var(--navy); }
.prose h3[id], .prose h4[id] { scroll-margin-top: 110px; }
.prose a { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Rechner: System- und Heizungsauswahl ---------- */
.vergleich [hidden] { display: none !important; }
.vergleich .option-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 560px) { .vergleich .option-grid.cols-3 { grid-template-columns: 1fr; } }
/* Zweite Beschriftung im selben Block braucht Abstand nach oben */
.v-eingabe .small-label.mt-3 { margin-top: 28px; }

/* ---------- Über uns: Einblicke (Büro/Veranstaltungen) ---------- */
.einblick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 760px) { .einblick-grid { grid-template-columns: 1fr; } }
.einblick-item { margin: 0; }
.einblick-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: clip;
  background:
    radial-gradient(ellipse 90% 70% at 30% 20%, rgba(243, 215, 147, 0.14), transparent 60%),
    linear-gradient(160deg, #1a2542, #0d1428);
  display: grid; place-items: center;
  /* Weicher Gold-Schein statt harter Kante: an den runden Ecken blitzt sonst
     durch Rundungs-Antialiasing ein Hauch vom dunklen Hintergrund durch –
     der Schein kaschiert das, statt die Rundung pixelgenau jagen zu müssen. */
  box-shadow: 0 0 0 1px rgba(243, 215, 147, 0.35), 0 0 26px rgba(243, 215, 58, 0.22);
}
.einblick-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.einblick-item figcaption {
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}
