/* ==========================================================================
   Energy-42 – Stylesheet
   ========================================================================== */

/* ---------- Schriften (lokal gehostet, DSGVO-freundlich) ---------- */
@font-face { font-family: "Inter Tight"; font-weight: 400; font-display: swap; src: url("../fonts/inter-tight-regular.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 500; font-display: swap; src: url("../fonts/inter-tight-500.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 600; font-display: swap; src: url("../fonts/inter-tight-600.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 700; font-display: swap; src: url("../fonts/inter-tight-700.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-display: swap; src: url("../fonts/instrument-sans-regular.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 500; font-display: swap; src: url("../fonts/instrument-sans-500.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-display: swap; src: url("../fonts/instrument-sans-600.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 700; font-display: swap; src: url("../fonts/instrument-sans-700.woff2") format("woff2"); }

/* ---------- Design-Tokens ---------- */
:root {
  --orange: #ef9922;
  --orange-dark: #d9851a;
  --navy: #0c2451;
  --ink: #090c0c;
  --text: #2b2f2f;
  --muted: #5c6262;
  --gray: #f2f2f2;
  --line: #e4e4e4;
  --white: #fff;
  --dark: #1e2020;
  --radius: 16px;
  --radius-sm: 8px;
  --font-head: "Inter Tight", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --container: 1260px;
  --container-wide: 1416px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 88px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Weicher Seitenwechsel (View Transitions; ältere Browser wechseln wie gewohnt) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .35s var(--ease) both vtOut; }
::view-transition-new(root) { animation: .55s var(--ease) both vtIn; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; } }
.site-header { view-transition-name: site-header; }
::view-transition-group(site-header) { animation-duration: .35s; }

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
html { overflow-x: hidden; overflow-x: clip; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; letter-spacing: -0.4px; color: var(--navy); margin: 0; line-height: 1.12; }
h1 { font-size: clamp(38px, 5.2vw, 64px); }
h2 { font-size: clamp(32px, 4vw, 48px); }
h3 { font-size: 24px; line-height: 1.2; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--orange); color: #000; padding: 10px 16px; }
.skip-link:focus { left: 16px; top: 16px; }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.container-wide { width: 100%; max-width: calc(var(--container-wide) + 64px); margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-gray { background: var(--gray); }
.center { text-align: center; }
.lead { font-size: 18px; line-height: 1.5; }
.measure { max-width: 680px; margin-left: auto; margin-right: auto; }

/* ---------- Text-Effekte: Marker & Unterstreichung ---------- */
.hl {
  display: inline-block;
  background: var(--orange);
  color: var(--navy);
  padding: 0 .16em;
  border-radius: 6px;
  line-height: 1.12;
}
.hl-light { color: #fff; }
.u {
  position: relative;
  display: inline;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9 C 60 4, 120 3, 180 6 S 270 10, 297 5' fill='none' stroke='%23ef9922' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% .28em;
  padding-bottom: .12em;
  transition: background-size 1.1s var(--ease) .25s;
}
.is-visible .u, .u.is-visible { background-size: 100% .28em; }
.link-u {
  display: inline-block;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding-bottom: 6px;
  background: linear-gradient(var(--orange), var(--orange)) 0 100% / 100% 2px no-repeat;
  transition: background-size .35s var(--ease);
}
.link-u:hover { background-size: 40% 2px; }

.pill {
  display: inline-block;
  background: var(--orange);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  line-height: 20px;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--orange);
  --fg: #000;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 28px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--fg);
  font: 600 15px/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), color .25s;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, .22);
  transform: translateX(-101%);
  transition: transform .45s var(--ease);
}
.btn:hover::before { transform: translateX(0); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(239, 153, 34, .8); }
.btn-navy { --bg: var(--navy); --fg: var(--orange); }
.btn-navy:hover { box-shadow: 0 10px 24px -10px rgba(12, 36, 81, .8); }
.btn-outline { --bg: #fff; --fg: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-outline::before { background: rgba(239, 153, 34, .12); }
.btn-outline:hover { box-shadow: inset 0 0 0 1px var(--orange); }
.btn-glow { box-shadow: 0 0 0 4px rgba(239, 153, 34, .25), 0 10px 30px -6px rgba(239, 153, 34, .7); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.phone-link { display: inline-flex; align-items: center; gap: 10px; color: inherit; font-weight: 600; font-size: 15px; text-decoration: none; }
.phone-link svg { width: 20px; height: 20px; }
.phone-link:hover { color: var(--orange); }

.rating { margin-top: 36px; font-size: 15px; }
.rating .stars { color: var(--orange); letter-spacing: 4px; font-size: 15px; }
.rating strong { font-weight: 700; }
.rating span { opacity: .8; }
.rating-center { text-align: center; margin-top: 18px; }

/* ---------- Header ---------- */
.topbar {
  background: #151717;
  color: #fff;
  font-size: 16px;
  transition: margin-top .35s var(--ease);
}
.topbar .container-wide { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; }
.topbar-contact { display: flex; gap: 24px; }
.topbar a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.topbar a:hover { color: var(--orange); }
.topbar svg { width: 17px; height: 17px; }

.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: transform .35s var(--ease); }
.navbar {
  position: relative;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  transition: background-color .35s var(--ease), border-color .35s, box-shadow .35s;
}
.navbar .container-wide { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.logo img { height: 44px; width: auto; }
.logo .logo-dark { display: none; }
.nav { display: flex; gap: 26px; margin: 0; padding: 0; list-style: none; flex: 1; }
.nav a {
  position: relative;
  font-size: 15.2px;
  text-decoration: none;
  padding: 6px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.btn-cta { min-height: 56px; padding: 6px 28px; flex-direction: column; gap: 0; line-height: 1.15; }
.btn-cta small { font-size: 12px; font-weight: 400; opacity: .8; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  border: 1px solid currentColor;
  color: inherit;
  transition: background-color .25s, color .25s, border-color .25s;
}
.icon-btn:hover { background: var(--orange); border-color: var(--orange); color: #000; }
.icon-btn svg { width: 20px; height: 20px; }
.burger { display: none; background: none; border: 0; color: inherit; padding: 8px; cursor: pointer; }
.burger svg { width: 28px; height: 28px; }

/* Zustand: gescrollt */
.site-header.is-scrolled .topbar { margin-top: -44px; }
.site-header.is-scrolled .navbar { background: #262828; border-color: transparent; box-shadow: 0 10px 30px -15px rgba(0, 0, 0, .5); }
.site-header.is-hidden { transform: translateY(-100%); }

/* Helle Kopfzeile auf Unterseiten ohne Hero */
.header-light .navbar { background: #fff; color: var(--ink); border-color: var(--line); }
.header-light .logo .logo-light { display: none; }
.header-light .logo .logo-dark { display: block; }
.header-light .site-header.is-scrolled .navbar { background: #fff; }
.header-light main { padding-top: calc(var(--header-h) + 44px); }

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #151717;
  color: #fff;
  padding: 24px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(100%);
  transition: transform .4s var(--ease);
  visibility: hidden;
}
.mobile-nav.is-open { transform: none; visibility: visible; }
.mobile-nav-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.mobile-nav a.m-link { font: 700 28px/1.3 var(--font-head); text-decoration: none; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.mobile-nav a.m-link[aria-current="page"] { color: var(--orange); }
.mobile-nav .btn { margin-top: 24px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: #0b0b0b;
}
.hero-media {
  position: absolute;
  inset: 0;
  /* Video blendet weich aus dem dunklen Hintergrund auf (Klasse is-ready setzt main.js) */
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s var(--ease), transform 2.8s var(--ease);
}
.hero-media.is-ready { opacity: 1; transform: none; }
/* Dunkle Videos (Privat, Gewerbe): reines Aufblenden wäre kaum sichtbar, daher zusätzlich
   aus der Unschärfe scharf werden und etwas stärker heranzoomen */
.hero-dim .hero-media {
  transform: scale(1.12);
  filter: blur(14px) brightness(1.35);
  transition: opacity 1.6s var(--ease), transform 3s var(--ease), filter 2s var(--ease);
}
.hero-dim .hero-media.is-ready { transform: none; filter: none; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .42) 60%, rgba(0, 0, 0, .32) 100%);
}
.hero-dim .hero-media::after { background: linear-gradient(90deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .6)); }
.hero-content { position: relative; z-index: 2; padding-top: calc(var(--header-h) + 60px); padding-bottom: 80px; }
.hero h1 { color: #fff; max-width: 820px; }
.hero h1 .accent { color: var(--orange); display: block; }
.hero h1 .hl { color: #fff; margin-top: 6px; }
.hero-sub { font-size: 20px; margin: 18px 0 0; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.hero-sub.plain { text-decoration: none; }
.hero .btn-row { margin-top: 36px; }
.hero-text { font-size: 18px; line-height: 1.5; max-width: 560px; margin-top: 22px; }

/* Hero-Einblendung beim Laden */
.hero-content > * { opacity: 0; transform: translateY(24px); animation: heroIn .9s var(--ease) forwards; }
.hero-content > *:nth-child(2) { animation-delay: .12s; }
.hero-content > *:nth-child(3) { animation-delay: .24s; }
.hero-content > *:nth-child(4) { animation-delay: .36s; }
.hero-content > *:nth-child(5) { animation-delay: .48s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* ---------- Grid-Layouts mit Karten ---------- */
.split-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}
.split-grid > .split-intro { grid-column: 1 / span 2; padding-right: clamp(0px, 4vw, 60px); }
.split-grid > .span-2 { grid-column: span 2; }
.split-grid .split-intro.rows-2 { grid-row: span 2; }
.split-intro h2 { margin-bottom: 26px; }
.split-intro p { font-size: 18px; line-height: 1.5; }
.split-intro .btn { margin-top: 18px; }

.card {
  background: var(--gray);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -24px rgba(12, 36, 81, .35); }
.card h3 { margin: 18px 0 18px; }
.card p { font-size: 16px; line-height: 1.5; color: var(--text); }
.card .ico { width: 34px; height: 34px; color: var(--orange); }
.card .ico svg { width: 100%; height: 100%; }
.card-white { background: #fff; border: 1px solid var(--line); }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* ---------- CTA-Band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 28px; }
.cta-band p { max-width: 880px; margin: 0 auto 36px; font-size: 18px; }

/* ---------- Medien-Band (Contracting / Mieterstrom) ---------- */
.media-band { position: relative; background: #111; overflow: hidden; }
.media-band-inner {
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: 560px;
  display: flex;
  align-items: center;
}
.media-band-bg { position: absolute; inset: 0; }
.media-band-bg video, .media-band-bg img { width: 100%; height: 100%; object-fit: cover; }
.media-band-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .55) 60%, rgba(0, 0, 0, .85) 100%); }
.media-band .container-wide { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: end; padding-top: 90px; padding-bottom: 90px; }
.media-band h2 { color: #fff; font-size: clamp(32px, 3.5vw, 48px); margin: 14px 0 22px; }
.media-band h2 .hl { color: #fff; }
.media-band p { max-width: 560px; font-size: 18px; }
.media-band .link-u { color: #fff; margin-top: 10px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat-num { font: 700 clamp(28px, 2.6vw, 38px)/1 var(--font-head); letter-spacing: -0.4px; display: flex; align-items: baseline; white-space: nowrap; }
.stat-num .tilde { font-size: .6em; margin-right: 2px; }
.stat-label { font-size: 16px; margin-top: 10px; line-height: 1.4; }
.parallax-img { position: absolute; inset: -15% 0; }
.parallax-img img { width: 100%; height: 100%; object-fit: cover; }

/* Zahlen-Roller (Slot-Effekt) */
.roll { display: inline-flex; overflow: hidden; height: 1em; line-height: 1; }
.roll-digit { display: inline-block; height: 1em; overflow: hidden; }
.roll-strip { display: flex; flex-direction: column; transition: transform 2.2s cubic-bezier(.16, 1, .3, 1); }
.roll-strip span { height: 1em; display: block; }

/* ---------- Schritte / Timeline ---------- */
.steps { position: relative; max-width: 1360px; margin: 64px auto 0; }
.steps::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--line); }
.steps-progress { position: absolute; top: 0; left: 50%; width: 2px; margin-left: -.5px; background: var(--orange); height: var(--progress, 0%); transition: height .15s linear; }
.step { position: relative; display: grid; grid-template-columns: 1fr 80px 1fr; align-items: start; margin-bottom: 10px; }
.step-icon { grid-column: 2; display: grid; place-items: center; width: 46px; height: 46px; margin: 6px auto 0; border-radius: 50%; background: #fff; color: var(--orange); position: relative; z-index: 2; }
.step-icon svg { width: 30px; height: 30px; }
.step-card { background: var(--gray); border-radius: var(--radius); padding: 32px 32px 40px; }
.step-card h3 { margin: 16px 0 18px; }
.step-card p { font-size: 16px; }
.step:nth-child(odd of .step) .step-card { grid-column: 3; grid-row: 1; }
.step:nth-child(odd of .step) .step-icon { grid-row: 1; }
.step:nth-child(even of .step) .step-card { grid-column: 1; grid-row: 1; text-align: right; }
.step:nth-child(even of .step) .step-icon { grid-row: 1; }
.step + .step { margin-top: 0; }
.step:nth-child(even of .step) { margin-top: -0px; }
.steps .step:not(:first-of-type) { margin-top: 10px; }

/* ---------- Digital-Band ---------- */
.digital { position: relative; padding: 110px 0 36px; overflow: hidden; }
.digital::before { content: ""; position: absolute; left: 0; right: 0; top: 78px; height: 1px; background: rgba(255, 255, 255, .25); z-index: 1; }
.digital .parallax-img { inset: -20% 0; }
.digital-card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  background: rgba(239, 153, 34, .86);
  backdrop-filter: blur(2px);
  border-radius: var(--radius);
  padding: 56px clamp(24px, 6vw, 92px);
  color: var(--ink);
}
.digital-card h2 { font-size: clamp(32px, 3.4vw, 48px); }
.digital-card p { font-size: 18px; max-width: 440px; margin-bottom: 26px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin-top: 56px; align-items: start; }
.faq-col { display: grid; gap: 16px; }
.faq {
  background: var(--gray);
  border-radius: var(--radius);
  transition: box-shadow .3s;
}
.faq:hover { box-shadow: 0 12px 30px -20px rgba(12, 36, 81, .45); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 32px;
  font: 700 22px/1.25 var(--font-head);
  letter-spacing: -0.4px;
  color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 9px; height: 9px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .3s var(--ease);
}
.faq[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq-body { overflow: hidden; height: 0; transition: height .35s var(--ease); }
.faq[open] .faq-body { height: auto; }
.faq-body p { padding: 0 32px 30px; font-size: 16px; }

/* ---------- Checklisten ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; align-items: center; gap: 14px; font-size: 17px; }
.checklist li::before {
  content: "";
  flex: none;
  width: 22px; height: 22px;
  border-radius: 5px;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c2451' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- Vorteile-Band (Privat) ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.why-grid h2 { margin-top: 18px; font-size: clamp(32px, 3.4vw, 48px); }

/* ---------- Vorher/Nachher-Slider ---------- */
.compare {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
  --pos: 50%;
  margin-top: 26px;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare .compare-top { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-1px); }
.compare-handle span {
  position: absolute;
  top: 50%; left: 50%;
  width: 40px; height: 40px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.compare input { position: absolute; inset: 0; opacity: 0; cursor: ew-resize; width: 100%; height: 100%; margin: 0; }
.pv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.pv-intro h2 { margin: 16px 0 18px; }
.pv-intro p { font-size: 18px; }
.pv-cards { display: grid; gap: 14px; }
.pv-cards .card { padding: 30px 32px 34px; }
.pv-cards .card h3 { margin: 0 0 16px; font-size: 24px; }

/* ---------- Halbkreis-Anzeigen ---------- */
.gauge { position: relative; width: 110px; height: 62px; }
.gauge svg { width: 110px; height: 62px; overflow: visible; }
.gauge .track { stroke: rgba(239, 153, 34, .18); }
.gauge .bar { stroke: var(--orange); stroke-dasharray: 157; stroke-dashoffset: 157; transition: stroke-dashoffset 1.8s var(--ease) .2s; }
.is-visible .gauge .bar { stroke-dashoffset: 0; }
.gauge-num { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font: 700 22px/1 var(--font-head); color: var(--navy); }

/* ---------- Gewerbe: Diagramm ---------- */
.diagram { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1; margin: 0 auto; }
.d-node { position: absolute; display: flex; flex-direction: column; align-items: center; transform: translate(-50%, -50%); }
.d-circle { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; box-shadow: 0 8px 22px -10px rgba(0, 0, 0, .25); }
.d-circle img { width: 30px; height: 30px; object-fit: contain; }
.d-center .d-circle { width: 100px; height: 100px; }
.d-center .d-circle img { width: 48px; height: 48px; }
.d-label { margin-top: 8px; background: #fff; border-radius: 6px; padding: 3px 10px; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; box-shadow: 0 4px 12px -8px rgba(0, 0, 0, .3); }
.d-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.d-lines line { stroke: var(--orange); stroke-width: 2.5; stroke-dasharray: 10 14; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }
.d-node .d-circle { animation: float 4s ease-in-out infinite; }
.d-node:nth-child(3) .d-circle { animation-delay: -1s; }
.d-node:nth-child(4) .d-circle { animation-delay: -2s; }
.d-node:nth-child(5) .d-circle { animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-5px); } }
.reasons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.reasons-grid h2 { font-size: clamp(32px, 3.4vw, 48px); margin-bottom: 26px; }
.reasons-grid h3 { margin: 36px 0 20px; font-size: 28px; }
.reasons-grid p { font-size: 18px; }

/* ---------- Seitenkopf (Unterseiten) ---------- */
.page-head { text-align: center; padding: 40px 0 20px; }
.page-head h1 { margin-top: 20px; font-size: clamp(36px, 4.4vw, 56px); }
.page-head p { max-width: 820px; margin: 22px auto 0; font-size: 18px; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.form-card { background: var(--gray); border-radius: var(--radius); padding: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%;
  font: 400 16px/1.4 var(--font-body);
  color: var(--ink);
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(239, 153, 34, .2); }
.phone-field { display: flex; }
.phone-field select { width: auto; border-radius: 6px 0 0 6px; border-right: 0; padding-right: 4px; }
.phone-field input { border-radius: 0 6px 6px 0; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; margin: 6px 0 22px; }
.check input { width: 18px; height: 18px; accent-color: var(--orange); }
.hp { position: absolute; left: -9999px; }
.form-msg { margin-top: 14px; font-size: 16px; font-weight: 600; }
.form-msg.ok { color: #1c7c3c; }
.form-msg.err { color: #b3261e; }
.map-card { position: relative; border-radius: var(--radius); overflow: hidden; background: #e8eee6; min-height: 520px; }
.map-card .map-canvas { position: absolute; inset: 0; }
.map-card .map-canvas canvas { filter: saturate(.5) brightness(1.1) contrast(.9); }
.map-consent { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; background: url("../img/map-placeholder.svg") center / cover; }
.map-consent-box { background: rgba(255, 255, 255, .94); border-radius: 12px; padding: 22px 24px; max-width: 380px; font-size: 15px; box-shadow: 0 10px 30px -15px rgba(0, 0, 0, .35); }
.map-consent-box strong { display: block; font: 700 18px/1.3 var(--font-head); color: var(--navy); margin-bottom: 8px; }
.map-consent-box .btn { margin-top: 14px; min-height: 42px; padding: 6px 20px; }
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 60px; }
.info-cards .card { background: #fff; border: 1px solid #eee; padding: 36px; }
.info-cards .card h3 { font-size: 24px; margin: 20px 0 10px; }
.info-cards .card p { font-size: 16px; margin-bottom: 20px; }
.info-cards .card a, .info-cards .card .val { font-weight: 700; font-size: 17px; color: var(--ink); }

/* ---------- News ---------- */
.news-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 50px; }
.news-card {
  position: relative;
  width: 300px;
  aspect-ratio: 23 / 33;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}
.news-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.news-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 30%, rgba(0, 0, 0, .8) 100%); }
.news-card:hover img { transform: scale(1.07); }
.news-card > * { position: relative; z-index: 2; }
.news-card .pill { align-self: flex-start; font-size: 11px; padding: 3px 10px; line-height: 18px; }
.news-card h3 { color: #fff; font-size: 20px; margin-bottom: 8px; }
.news-card p { font-size: 14px; opacity: .85; }

/* ---------- Artikel ---------- */
.article-head { display: grid; grid-template-columns: 380px 1fr; gap: 44px; align-items: start; max-width: 1040px; margin: 30px auto 0; }
.article-head img { border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.article-head h1 { font-size: clamp(28px, 3vw, 38px); }
.article-head .sub { margin: 16px 0 14px; font-size: 18px; }
.article-head .teaser { color: #8a8f8f; font-size: 16px; }
.meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; font-size: 15px; }
.meta strong { display: block; color: var(--ink); font-size: 16px; }
.prose { max-width: 1040px; margin: 56px auto 0; font-size: 17px; line-height: 1.65; }
.prose h2 { font-size: 21px; margin: 32px 0 12px; color: var(--ink); letter-spacing: 0; font-family: var(--font-body); }
.prose ul { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--navy); }
.prose blockquote { border-left: 3px solid var(--navy); margin: 26px 0; padding: 4px 0 4px 20px; font: 700 21px/1.4 var(--font-head); color: var(--ink); }
.legal { max-width: 960px; margin: 0 auto; font-size: 17px; }
.legal h1 { font-size: clamp(30px, 3.5vw, 42px); margin-bottom: 28px; }
.legal h2 { font-size: 22px; margin: 32px 0 12px; scroll-margin-top: 110px; }
.legal-placeholder { border: 2px dashed var(--orange); border-radius: var(--radius); padding: 28px; background: #fff8ee; }

/* ---------- Karriere ---------- */
.career-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; margin-top: 50px; }
.career-grid img { border-radius: var(--radius); aspect-ratio: 16 / 9.4; object-fit: cover; width: 100%; }
.career-grid h3 { font-size: 22px; margin-bottom: 8px; }
.career-grid p { font-size: 16px; margin-bottom: 22px; }
.apply-box { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: center; background: var(--gray); border-radius: var(--radius); padding: 34px 36px; margin-top: 40px; }
.apply-box h3 { font-size: 28px; margin-bottom: 14px; }
.apply-box p { font-size: 16px; }
.apply-box .btn { min-height: 52px; }
.apply-actions { display: grid; gap: 10px; }

/* ---------- Footer ---------- */
.site-footer {
  color: #fff;
  background-color: #191b1b;
  background-image:
    radial-gradient(circle at 12% 14%, #191b1b 0%, transparent 70%),
    radial-gradient(circle at 19% 65%, #090c0c 0%, transparent 70%),
    radial-gradient(circle at 52% 65%, rgba(12, 36, 81, .46) 0%, transparent 70%),
    radial-gradient(circle at 57% 12%, rgba(239, 153, 34, .14) 0%, transparent 70%),
    radial-gradient(circle at 81% 72%, #090c0c 0%, transparent 70%),
    radial-gradient(circle at 89% 11%, #090c0c 0%, transparent 70%);
  padding: 60px 0 40px;
}
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1.6fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .12); max-width: 1180px; }
.footer-top h4 { color: #fff; font-size: 20px; margin-bottom: 26px; }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; font-size: 15.2px; }
.footer-top a { text-decoration: none; color: #cfcfcf; transition: color .2s; }
.footer-top a:hover, .footer-top a[aria-current="page"] { color: var(--orange); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: #cfcfcf; cursor: pointer; transition: color .2s; }
.linkbtn:hover { color: var(--orange); }
.footer-contact a { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-size: 15.2px; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 60px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; padding-top: 28px; }
.footer-bottom .logo-footer { height: 91px; width: auto; }
.footer-bottom small { display: block; margin-top: 14px; font-size: 14px; }
.badges { display: flex; align-items: center; gap: 50px; }
.badges img.pe { height: 100px; width: auto; }

/* ---------- Popup ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; visibility: hidden; opacity: 0; transition: opacity .35s, visibility .35s; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 10, 24, .62); backdrop-filter: blur(3px); }
.modal-box {
  position: relative;
  width: 100%;
  max-width: 500px;
  background: linear-gradient(160deg, #13244a 0%, #0a1733 100%);
  color: #fff;
  border-radius: 14px;
  padding: 32px 30px 26px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6);
  transform: translateY(24px) scale(.97);
  transition: transform .45s var(--ease);
}
.modal.is-open .modal-box { transform: none; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.modal-close:hover { background: var(--orange); color: #000; }
.modal-tag { display: inline-block; background: rgba(239, 153, 34, .18); color: #ffc46e; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 20px; }
.modal-box h2 { color: #fff; font-size: 26px; margin: 16px 0 10px; line-height: 1.2; }
.modal-box p { font-size: 15px; color: #c9d1e3; }
.modal-checks { list-style: none; margin: 18px 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.modal-checks li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; background: rgba(255, 255, 255, .06); padding: 8px 10px; border-radius: 8px; }
.modal-checks li span { flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--orange); color: #000; display: grid; place-items: center; font-size: 10px; font-weight: 700; }
.modal-warn { background: rgba(239, 153, 34, .1); border: 1px solid rgba(239, 153, 34, .35); border-radius: 8px; padding: 12px 14px; font-size: 13.5px; margin-bottom: 18px; }
.modal-warn a { color: #ffc46e; font-weight: 600; display: inline-block; margin-top: 4px; }

/* ---------- Scroll-Animationen ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.from-left { transform: translateX(-50px); }
.reveal.from-right { transform: translateX(50px); }
.reveal.zoom { transform: scale(.94); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav, .nav-cta .btn-cta { display: none; }
  .burger { display: inline-flex; }
  .navbar .container-wide { justify-content: space-between; }
  .split-grid { grid-template-columns: 1fr 1fr; }
  .split-grid > .split-intro { grid-column: 1 / -1; padding-right: 0; margin-bottom: 20px; }
  .split-grid .split-intro.rows-2 { grid-row: auto; }
  .media-band .container-wide { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .topbar-text { display: none; }
  .topbar .container-wide { justify-content: center; }
  .cards-3, .faq-grid, .why-grid, .pv-grid, .reasons-grid, .contact-grid, .info-cards, .career-grid, .apply-box, .digital-card, .article-head { grid-template-columns: 1fr; }
  .faq-grid { gap: 16px; }
  .steps::before, .steps-progress { left: 20px; }
  .step { grid-template-columns: 40px 1fr; gap: 16px; }
  .step .step-icon { grid-column: 1 !important; margin: 26px 0 0; }
  .step .step-card { grid-column: 2 !important; text-align: left !important; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
  .badges { gap: 24px; }
  .map-card { min-height: 340px; }
  .article-head { max-width: 520px; }
}
@media (max-width: 560px) {
  :root { --header-h: 70px; }
  .logo img { height: 38px; }
  .topbar-contact { gap: 18px; font-size: 12px; }
  .topbar .mail-text { display: none; }
  .split-grid, .cards-2 { grid-template-columns: 1fr; }
  .split-grid > .span-2 { grid-column: auto; }
  .stats { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .modal-checks { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero .btn-row { gap: 18px; }
  .media-band-inner { min-height: 0; }
  .news-card { width: 100%; max-width: 340px; }
}
