/* ============================================================
   SEMAGIN — Stylesheet
   Farbwelt aus dem Logo: EIN Blau (#026AC9) in Abstufungen + Weiß +
   EIN Grün (#87BC14). Alle Farben stehen als Variablen in :root —
   bitte ausschließlich diese verwenden, nie eigene Hex-Werte einstreuen,
   sonst wirkt die Seite wieder uneinheitlich.
   Typografie: Bricolage Grotesque (Display) + Instrument Sans (Text)
   ============================================================ */

/* Selbst gehostete Schriften (statt Google Fonts CDN):
   - Keine Nutzerdaten (IP-Adresse) fließen beim Seitenaufruf an Google ab
     -> vermeidet ein bekanntes DSGVO-Abmahnrisiko für deutsche Websites
   - Schneller, da keine zusätzliche externe Verbindung nötig ist
   Beide Dateien sind Variable Fonts: eine Datei deckt alle verwendeten
   Schriftschnitte (400–800 bzw. 400–700) ab. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-variable.woff2") format("woff2-variations"),
       url("../fonts/bricolage-grotesque-variable.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-variable.woff2") format("woff2-variations"),
       url("../fonts/instrument-sans-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-italic-variable.woff2") format("woff2-variations"),
       url("../fonts/instrument-sans-italic-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Farben — direkt aus img/logo.jpeg ausgemessen:
     Logo-Blau #026AC9, Weiß, Logo-Grün #87BC14.

     WICHTIG: Es gibt nur EIN Blau. Alle dunkleren und helleren Blautöne sind
     reine Ab- bzw. Aufhellungen genau dieses Logo-Blaus (Farbton 209° bleibt
     in jeder Stufe identisch). Dadurch wirkt die komplette Seite farblich
     einheitlich — vom hellen Sektionshintergrund bis zum dunklen Footer.
     Bitte hier keine "eigenen" Blau- oder Grüntöne ergänzen, sondern immer
     eine dieser Variablen verwenden. */
  --blue: #026AC9;        /* Logo-Blau, exakt */
  --blue-700: #025AAB;    /* Logo-Blau × 0,85 */
  --blue-800: #014A8D;    /* Logo-Blau × 0,70 */
  --blue-900: #013A6F;    /* Logo-Blau × 0,55 */
  --blue-950: #012A50;    /* Logo-Blau × 0,40 */

  --ink: #0E2740;         /* Fließtext dunkel, gleicher Farbton */
  --slate: #45607E;       /* Fließtext gedämpft, gleicher Farbton */
  --cream: #EBF3FB;       /* Logo-Blau 8 % auf Weiß */
  --paper: #FFFFFF;
  --line: #D2E4F5;        /* Logo-Blau 18 % auf Weiß */
  --line-dark: rgba(255, 255, 255, 0.14);
  --on-dark: #E1EDF9;     /* Fließtext auf dunklem Blau */
  --on-dark-muted: #9DB5CE;

  --green: #87BC14;       /* Logo-Grün, exakt */
  --green-deep: #5F8A0C;
  /* Dunklere Variante nur für Text auf hellem Grund: das helle Logo-Grün
     erreicht dort keine 4,5:1 Kontrast (WCAG AA). Für Buttons/Icons bleibt
     --green-deep unverändert, dort ist der Kontrastpartner Weiß. */
  --green-text: #4A670B;
  --green-soft: #A5D13F;
  /* Auch der WhatsApp-Button nutzt das Logo-Grün, damit die Seite nur eine
     Grün-Familie hat; erkennbar bleibt er über das WhatsApp-Icon. */
  --whatsapp: #6A9410;

  /* Einzige Farbe außerhalb der Logo-Familie: Fehlermeldungen im Formular.
     Grün würde dort „hat geklappt" signalisieren, Blau ginge unter. Wert so
     gewählt, dass er auf Weiß 4,5:1 erreicht (WCAG AA). */
  --alert: #B3261E;

  /* Typografie */
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Instrument Sans", "Segoe UI", sans-serif;

  /* Sonstiges */
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-card: 0 8px 30px rgba(1, 42, 80, 0.08);
  --shadow-pop: 0 18px 50px rgba(1, 42, 80, 0.22);
  --header-h: 76px;
}

/* ---------- Reset & Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
  text-wrap: balance;
  /* Lange deutsche Komposita („Datenschutzerklärung", „Sparpotenzial…")
     passen auf schmalen Handys sonst nicht in eine Zeile und schieben die
     ganze Seite seitlich raus. Deshalb: trennen statt überstehen lassen. */
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.container-narrow { width: min(860px, 100% - 2.5rem); }

/* ---------- Barrierefreiheit: sichtbarer Fokus & Skip-Link ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--green-soft);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 999;
  background: var(--green-deep);
  color: #fff;
  font-weight: 700;
  padding: 0.8rem 1.3rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-light { background: var(--paper); }
.section-cream { background: var(--cream); }
.section-dark { background: var(--blue-900); color: var(--on-dark); }
.section-dark h2 { color: #fff; }
.section-dark em { color: var(--green-soft); font-style: normal; }

.section-head { max-width: 720px; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.section-sub { font-size: 1.1rem; color: inherit; opacity: 0.88; max-width: 54ch; }

.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-text);
  margin-bottom: 0.9rem;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 26px; height: 2px;
  background: var(--green);
  vertical-align: middle;
  margin-right: 0.6rem;
  transform-origin: left center;
}
/* Kicker-Strich zeichnet sich, wenn die Sektion einscrollt */
.reveal .kicker::before { transform: scaleX(0); transition: transform 0.6s ease 0.25s; }
.reveal.visible .kicker::before { transform: scaleX(1); }
.kicker-light { color: var(--green-soft); }
.kicker-light::before { background: var(--green-soft); }

.accent { color: var(--green-soft); }
.accent-dark { color: var(--green-text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 54px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.9rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }

/* Primärer CTA: kräftiges Grün, deutlicher Schatten und heller Innenrand,
   damit er auf hellem wie auf dunklem Grund sofort als Button gelesen wird. */
.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
  color: #fff;
  box-shadow:
    0 10px 28px rgba(95, 138, 12, 0.45),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 38px rgba(95, 138, 12, 0.55),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.4);
}
/* Glanz-Streifen, der beim Hover einmal über den Button läuft */
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -80%;
  width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.btn-primary:hover::after { left: 130%; }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 10px 26px rgba(135, 188, 20, 0.38);
}
.btn-whatsapp:hover { transform: translateY(-2px); background: var(--green-deep); box-shadow: 0 16px 34px rgba(135, 188, 20, 0.45); }

.btn-dark { background: var(--blue-900); color: #fff; box-shadow: 0 10px 26px rgba(1, 58, 111, 0.3); }
.btn-dark:hover { transform: translateY(-2px); background: var(--blue-700); box-shadow: var(--shadow-pop); }

/* Sekundärer Button auf dunklem Grund: gefüllt und mit kräftigem Rand statt
   fast unsichtbarer Kontur — auf Fotos sonst kaum als Button erkennbar. */
.btn-ghost-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.btn-ghost-light:hover {
  transform: translateY(-2px);
  background: #fff;
  color: var(--blue-950);
  border-color: #fff;
  box-shadow: 0 14px 32px rgba(1, 42, 80, 0.35);
}

.btn-xl { min-height: 60px; padding: 1.15rem 2.3rem; font-size: 1.12rem; }
.btn-block { width: 100%; }

/* Aufmerksamkeits-Ring am wichtigsten CTA: ein ruhiger Puls, kein Blinken. */
.btn-pulse { position: relative; animation: cta-pulse 2.8s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.btn-pulse:hover { animation: none; }
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(95, 138, 12, 0.45), 0 0 0 0 rgba(165, 209, 63, 0.55); }
  55%      { box-shadow: 0 10px 28px rgba(95, 138, 12, 0.45), 0 0 0 14px rgba(165, 209, 63, 0); }
}

/* ---------- Header ----------
   Markenvorgabe (02.01): kein Hintergrundbild, weißer Hintergrund mit
   dezentem Schatten, Logo links. Bleibt beim Scrollen sichtbar. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: 0 8px 28px rgba(1, 42, 80, 0.12); }
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--blue-950);
}
/* Logo-Lockup: Aus der Logodatei werden zwei Ausschnitte nebeneinander gezeigt.
   Das „S"-Zeichen übernimmt dabei die Rolle des Anfangsbuchstabens — der
   Schriftzug daneben ist deshalb bewusst auf „EMAGIN" beschnitten. So steht
   das S nur EIN Mal im Logo, gelesen wird trotzdem „SEMAGIN".
   Beide Ausschnitte liegen auf dem Logo-Blau, dadurch wirkt es wie eine
   einzige, waagerechte Wort-Bild-Marke. Die Zahlen sind am Original
   (1600 × 941) ausgemessene Pixelwerte:
   Zeichen  = x590/y70  430×426  (weißes S inkl. grünem Bogen darüber)
   „EMAGIN" = x344/y542 1150×148 (S bei x126–275 liegt links davor und
              bleibt dadurch außerhalb des Ausschnitts). */
/* --mark-h / --word-h sind bewusst einheitenlose Zahlen (Pixel), damit sie in
   den calc()-Umrechnungen als Faktor verwendet werden können. */
.brand-lockup {
  --mark-h: 46;
  --word-h: 20;
  display: inline-flex;
  /* Unten bündig statt mittig: dann sitzt das S auf derselben Grundlinie wie
     „EMAGIN" und der grüne Bogen ragt nach oben heraus — wie im Original. */
  align-items: flex-end;
  gap: 0.28rem;
  padding: 0.42rem 0.8rem;
  background: var(--blue);
  border-radius: 10px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.brand:hover .brand-lockup { transform: scale(1.04); }
.brand-mark,
.brand-word {
  display: block;
  background-image: url(../img/logo.jpeg);
  background-repeat: no-repeat;
}
.brand-mark {
  height: calc(var(--mark-h) * 1px);
  width: calc(430px * var(--mark-h) / 426);
  background-size: calc(1600px * var(--mark-h) / 426) calc(941px * var(--mark-h) / 426);
  background-position: calc(-590px * var(--mark-h) / 426) calc(-70px * var(--mark-h) / 426);
}
.brand-word {
  height: calc(var(--word-h) * 1px);
  width: calc(1150px * var(--word-h) / 148);
  background-size: calc(1600px * var(--word-h) / 148) calc(941px * var(--word-h) / 148);
  background-position: calc(-344px * var(--word-h) / 148) calc(-542px * var(--word-h) / 148);
}
.brand-footer .brand-lockup { --mark-h: 56; --word-h: 24; }

.main-nav { display: flex; gap: clamp(0.8rem, 1.3vw, 1.35rem); }
.main-nav a {
  position: relative;
  color: var(--slate);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--blue); }
/* Unterstreichung wächst beim Hover von links nach rechts */
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -5px;
  height: 2px;
  background: var(--green);
  transition: right 0.25s ease;
}
.main-nav a:hover::after { right: 0; }
/* Aktive Seite in der Navigation */
.main-nav a[aria-current="page"] { color: var(--blue-950); }
.main-nav a[aria-current="page"]::after { right: 0; }

.header-cta { display: flex; align-items: center; gap: 1rem; }
.header-phone {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone svg { color: var(--green-deep); }
.header-phone:hover { color: var(--blue); }
.btn-header { min-height: 48px; padding: 0.7rem 1.5rem; font-size: 0.98rem; }
/* Pfeil im CTA-Button (02.01: „optional ein kleines Pfeil-Icon") */
.btn-arrow { transition: transform 0.2s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--blue-950);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  color: var(--on-dark);
  overflow: hidden;
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; background: var(--blue-950); }
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: saturate(0.85);
  /* Langsamer Zoom-Out beim Laden: gibt dem Hero Tiefe, ohne abzulenken */
  animation: heroZoom 22s ease-out both;
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}
.hero-glow {
  position: absolute; inset: -6%;
  background:
    radial-gradient(ellipse 900px 600px at 82% -10%, rgba(135, 188, 20, 0.28), transparent 60%),
    radial-gradient(ellipse 700px 500px at 8% 110%, rgba(2, 90, 171, 0.6), transparent 65%),
    linear-gradient(180deg, rgba(1, 42, 80, 0.55) 0%, rgba(1, 42, 80, 0.88) 100%);
  /* Das grüne Glühen driftet ganz langsam, wie wandernde Abendsonne */
  animation: glowDrift 16s ease-in-out infinite alternate;
}
@keyframes glowDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-2.5%, 2%) scale(1.06); }
}
.hero-grain {
  position: absolute; inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Einspaltig: die Copy trägt den Hero allein (keine Kontakt-Karte mehr) */
.hero-inner { display: block; }
.hero-copy { max-width: 780px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  margin-bottom: 1.6rem;
}
/* Choreografierter Hero-Auftritt beim Laden: Eyebrow, Headline, Text,
   Buttons, Badges und Kontakt-Karte erscheinen nacheinander */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow { animation: fadeUp 0.6s ease 0.1s both; }
.hero h1      { animation: fadeUp 0.7s ease 0.22s both; }
.hero-sub     { animation: fadeUp 0.7s ease 0.38s both; }
.hero-note    { animation: fadeUp 0.7s ease 0.48s both; }
.hero-ctas    { animation: fadeUp 0.7s ease 0.62s both; }
.hero-badges  { animation: fadeUp 0.7s ease 0.76s both; }

/* Zusatzzeile unter dem Untertitel aus der Spezifikation (02.02) */
.hero-note {
  font-size: 1rem;
  line-height: 1.65;
  max-width: 58ch;
  color: rgba(225, 237, 249, 0.8);
  margin-bottom: 2rem;
}
.hero-note strong { color: var(--green-soft); }

.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  max-width: 56ch;
  color: rgba(225, 237, 249, 0.92);
  margin-bottom: 2rem;
}
.hero-sub strong { color: var(--green-soft); }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 1.8rem; }

.hero-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.94rem;
  color: rgba(225, 237, 249, 0.9);
}
.hero-badges li { display: flex; align-items: center; }
.check {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  padding: 5px;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: rgba(135, 188, 20, 0.22);
  color: var(--green-soft);
}

.hero-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-pop);
  /* Erscheint nach der Copy, schwebt danach kaum merklich */
  animation:
    fadeUp 0.7s ease 0.6s both,
    floatCard 6s ease-in-out 2.2s infinite alternate;
}
@keyframes floatCard {
  from { transform: translateY(0); }
  to   { transform: translateY(-9px); }
}
.hero-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green-soft);
  margin-bottom: 0.6rem;
}
.hero-card-phone {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  margin-bottom: 0.3rem;
  transition: color 0.15s ease;
}
.hero-card-phone:hover { color: var(--green-soft); }
.hero-card-hours { font-size: 0.92rem; color: rgba(225, 237, 249, 0.75); margin-bottom: 0; }
.hero-card-divider { height: 1px; background: var(--line-dark); margin: 1.3rem 0; }
.hero-card-note { font-size: 0.95rem; margin-bottom: 1.1rem; }
.hero-card-note strong { color: var(--green-soft); }

/* ---------- Kompakter Seiten-Hero (Unterseiten) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 700px 420px at 88% -20%, rgba(135, 188, 20, 0.22), transparent 60%),
    linear-gradient(160deg, var(--blue-950), var(--blue-800));
  color: var(--on-dark);
  padding: clamp(3.2rem, 7vw, 5.5rem) 0;
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  margin-bottom: 0.5rem;
}
.page-hero .page-hero-sub {
  max-width: 62ch;
  font-size: 1.1rem;
  color: rgba(225, 237, 249, 0.9);
  margin: 0;
}
.page-hero .kicker { color: var(--green-soft); }
.page-hero .kicker::before { background: var(--green-soft); }

/* ---------- Teaser-Karten (Startseite → Unterseiten) ---------- */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}
.teaser-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.teaser-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-pop); border-color: var(--blue); }
.teaser-card h3 { margin-bottom: 0.2rem; }
.teaser-card p { color: var(--slate); font-size: 0.96rem; margin: 0 0 1rem; }
.teaser-more {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--blue);
}
.teaser-more::after {
  content: " →";
  transition: margin-left 0.2s ease;
}
.teaser-card:hover .teaser-more::after { margin-left: 4px; }

/* ---------- Sparpotenzial-Band (ersetzt die frühere Kennzahlen-Leiste) ---------- */
.potential {
  background: linear-gradient(120deg, var(--blue-950), var(--blue-800));
  border-top: 1px solid var(--line-dark);
  color: #fff;
  padding: clamp(2.6rem, 6vw, 4.2rem) 0;
}
.potential-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.8rem, 4vw, 3.4rem);
  align-items: center;
}
.potential-copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  margin-bottom: 0.6rem;
}
.potential-copy p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 56ch;
}
.potential-factors {
  display: grid;
  gap: 0.9rem;
  list-style: none;
}
.potential-factors li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1.05rem 1.2rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
}
.potential-factors svg { width: 26px; height: 26px; color: var(--green-soft); }
.potential-factors strong { display: block; font-size: 1rem; }
.potential-factors span {
  display: block;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Karten (Vorteile) ----------
   Bewusst asymmetrisches Raster: breite Karte oben links, breite Karte
   unten rechts — statt vier identischer Kacheln nebeneinander. */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-pop); }
.card h3 { font-size: 1.15rem; }
.card p { font-size: 0.96rem; color: var(--slate); margin: 0; }
.card p strong { color: var(--ink); }

.card-feature {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.8rem;
  align-items: center;
  padding: 2.2rem 2rem;
}
.card-wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 1.8rem;
  align-items: center;
  padding: 2.2rem 2rem;
}
.card-figure-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--green-text);
}
/* Variante, wenn im Figuren-Slot eine kurze Aussage statt einer Zahl steht:
   etwas kleiner gesetzt, damit zwei Zeilen Text nicht die Karte sprengen. */
.card-figure-num.is-text {
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.card-figure-cap {
  display: block;
  font-size: 0.88rem;
  color: var(--slate);
  margin-top: 0.5rem;
  max-width: 24ch;
}
.card-feature .card-figure { text-align: right; justify-self: end; }
.card-feature .card-figure-cap { margin-left: auto; }
/* Schlagwort über der Karten-Überschrift (früher eine Kennzahl — bewusst
   ersetzt, siehe Kommentar in leistungen.html). */
.card-token {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: var(--green-text);
  padding-bottom: 0.4rem;
  border-bottom: 3px solid var(--green);
  margin-bottom: 1.1rem;
}

/* ---------- Ersparnis-Rechner ---------- */
.section-dark#rechner {
  background:
    radial-gradient(ellipse 800px 500px at 90% 0%, rgba(135, 188, 20, 0.14), transparent 60%),
    var(--blue-900);
}
.calc-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.calc-points { list-style: none; display: grid; gap: 0.7rem; margin-top: 1.5rem; }
.calc-points li {
  position: relative;
  padding-left: 2rem;
  font-size: 1.02rem;
}
.calc-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 1px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background-color: rgba(165, 209, 63, 0.2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%239FDB4F' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

.calc-card {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  box-shadow: var(--shadow-pop);
}
.calc-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate);
  margin-bottom: 0.4rem;
}
.calc-value {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.6rem;
  color: var(--blue-900);
}
.calc-value-unit { font-size: 1rem; font-weight: 600; color: var(--slate); }

input[type="range"] {
  width: 100%;
  height: 8px;
  margin: 0.4rem 0 1.6rem;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(90deg, var(--green) var(--fill, 25%), var(--line) var(--fill, 25%));
  border-radius: 99px;
  outline-offset: 4px;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--green-deep);
  box-shadow: 0 4px 12px rgba(95, 138, 12, 0.4);
  cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--green-deep);
  box-shadow: 0 4px 12px rgba(95, 138, 12, 0.4);
  cursor: grab;
}

.calc-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.calc-result {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
}
.calc-result-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
  margin-bottom: 0.25rem;
}
.calc-result-value { font-size: 1.02rem; }
.calc-result-value strong {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green-text);
}
/* Zahlen hüpfen kurz, wenn der Regler bewegt wird */
.calc-result-value strong.bump { animation: bump 0.28s ease; }
@keyframes bump {
  0% { transform: scale(1); }
  45% { transform: scale(1.14); }
  100% { transform: scale(1); }
}
.calc-disclaimer { font-size: 0.8rem; color: var(--slate); margin: 0.9rem 0 0; }

/* ---------- Warum wir ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.why-list { display: grid; gap: 1.8rem; }
.why-item { display: flex; gap: 1.3rem; }
.why-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1.2;
  min-width: 2.4rem;
}
.why-item h3 { margin-bottom: 0.3rem; }
.why-item p { color: var(--slate); margin: 0; }

/* Direkt-Kontakt-Box neben „Warum Semagin" — ersetzt die frühere Siegel-Box
   mit Platzhalter-Logos: statt angedeuteter Zertifikate der direkte Draht. */
.direct-card {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  background: var(--blue-900);
  color: var(--on-dark);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-pop);
}
.direct-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-soft);
  margin-bottom: 0.5rem;
}
.direct-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 0.7rem;
}
.direct-text {
  font-size: 0.95rem;
  color: rgba(225, 237, 249, 0.82);
  margin-bottom: 1.3rem;
}
.direct-actions { display: grid; gap: 0.7rem; }
.direct-facts {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin-top: 1.3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.9rem;
  color: rgba(225, 237, 249, 0.85);
}
.direct-facts li { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; align-items: start; }
.direct-facts svg { width: 15px; height: 15px; margin-top: 0.35rem; color: var(--green-soft); }

/* ---------- Marken-Leiste ("Wir verbauen Technik von") ----------
   Wortmarken in Grau wie eine klassische Logo-Leiste. Jede Marke hat
   ein leicht anderes Schriftbild, damit die Reihe nicht uniform wirkt.
   Sobald offizielle Logo-Dateien vorliegen, ersetzen <img>-Tags die
   Text-Wortmarken (siehe Kommentar in index.html). */
.brands {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  text-align: center;
}
.brands-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--slate);
  margin-bottom: 1.4rem;
}
.brands-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.2rem 3rem;
  color: var(--on-dark-muted);
}
.brands-row li {
  filter: grayscale(1);
  opacity: 0.85;
  transition: color 0.2s ease, opacity 0.2s ease;
  cursor: default;
}
.brands-row li:hover { color: var(--slate); opacity: 1; }
.brands-row img { height: 28px; width: auto; filter: grayscale(1); }
.brand-sma { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: 0.18em; }
.brand-fronius { font-style: italic; font-weight: 700; font-size: 1.35rem; letter-spacing: 0.02em; }
.brand-byd {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  border: 2.5px solid currentColor;
  border-radius: 999px;
  padding: 0.25rem 0.9rem;
}
.brand-huawei { font-weight: 700; font-size: 1.15rem; letter-spacing: 0.3em; }
.brand-mb { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; letter-spacing: 0.12em; }

/* ---------- Ablauf ----------
   Redaktioneller Treppen-Aufbau statt drei identischer Karten:
   Linie oben, Markierungspunkt, große Ziffer, jeder Schritt etwas
   tiefer versetzt als der vorige. */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.6rem, 3.5vw, 2.8rem);
  padding: 0;
}
.step {
  position: relative;
  padding-top: 1.5rem;
}
/* Linie und Punkt animieren beim Scroll-Reveal: Linie zeichnet sich von
   links, der Punkt ploppt federnd auf */
.step::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--blue-900);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.9s cubic-bezier(0.25, 0.7, 0.3, 1);
}
.step::before {
  content: "";
  position: absolute;
  top: -4.5px; left: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--green);
  z-index: 1;
  transform: scale(0);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.step.visible::after { transform: scaleX(1); }
.step.visible::before { transform: scale(1); }
.step:nth-child(2)::after { transition-delay: 0.15s; }
.step:nth-child(2)::before { transition-delay: 0.35s; }
.step:nth-child(3)::after { transition-delay: 0.3s; }
.step:nth-child(3)::before { transition-delay: 0.5s; }
.step:nth-child(2) { margin-top: 2.6rem; }
.step:nth-child(3) { margin-top: 5.2rem; }
.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--green-deep);
  margin-bottom: 0.7rem;
}
.step h3 { margin-top: 0; }
.step p { color: var(--slate); font-size: 0.97rem; }
.step-time {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue-700);
}
.steps-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 3.5rem;
}

/* ---------- Privat & Gewerbe ---------- */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}
.audience-card {
  position: relative;
  border-radius: var(--radius);
  padding: 2.4rem 2rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
  background: #fff;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.audience-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-pop); }
.audience-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  /* Farbbalken wächst beim Einscrollen von links */
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.8s ease 0.25s;
}
.audience-card.visible::before { transform: scaleX(1); }
.audience-private::before { background: linear-gradient(90deg, var(--green), var(--green-soft)); }
.audience-business::before { background: linear-gradient(90deg, var(--blue-700), var(--blue-900)); }
.audience-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.audience-private .audience-tag { background: rgba(135, 188, 20, 0.16); color: var(--green-text); }
.audience-business .audience-tag { background: rgba(1, 74, 141, 0.1); color: var(--blue-700); }
.audience-card ul {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  margin: 1.1rem 0 1.7rem;
}
.audience-card li {
  position: relative;
  padding-left: 1.8rem;
  color: var(--slate);
  font-size: 0.98rem;
}
.audience-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 17px; height: 17px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%2322A06B' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}
.audience-card li strong { color: var(--ink); }

/* ---------- Über uns ---------- */
.about-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.about-photo {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-pop);
}
/* Foto-Variante (falls doch mal ein Foto statt Logo verwendet wird) */
.about-photo.is-photo { transform: rotate(-1.5deg); }
.about-photo.is-photo img { width: 100%; height: 480px; object-fit: cover; }

/* Logo-Variante: das Logo (blauer Grund) steht direkt als Karte,
   ohne weißen Rahmen drumherum. */
.about-photo.is-logo {
  background: none;
  box-shadow: none;
}
.about-photo.is-logo img,
.about-logo-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
}
.about-copy p { color: rgba(225, 237, 249, 0.9); }
.about-copy strong { color: var(--green-soft); }
.about-quote {
  margin: 1.6rem 0 1.8rem;
  padding: 1.2rem 1.4rem;
  border-left: 3px solid var(--green);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: #fff;
}
.about-quote cite {
  display: block;
  margin-top: 0.6rem;
  font-style: normal;
  font-size: 0.88rem;
  color: rgba(225, 237, 249, 0.7);
}

/* Einsatzorte-Zeile unterhalb von "Über uns" */
.service-area {
  grid-column: 1 / -1;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-dark);
}
.service-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green-soft);
  margin-bottom: 0.4rem;
}
.service-cities {
  margin: 0;
  font-size: 1.02rem;
  color: rgba(225, 237, 249, 0.85);
}

/* ---------- FAQ ---------- */
/* minmax(0, 1fr): sonst bestimmt die längste Frage die Spaltenbreite und die
   FAQ-Kacheln ragen auf schmalen Handys über den Bildschirmrand hinaus. */
.faq-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.9rem; }
.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 1.4rem;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease;
}
.faq-list details[open] { border-color: var(--green); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 0;
  font-weight: 700;
  font-size: 1.04rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-icon {
  position: relative;
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(135, 188, 20, 0.16);
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 2px;
  background: var(--green-deep);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-list details p {
  margin: 0;
  padding: 0 0 1.25rem;
  color: var(--slate);
}
/* Antwort gleitet beim Aufklappen sanft herein */
.faq-list details[open] p { animation: faqReveal 0.32s ease; }
@keyframes faqReveal {
  from { opacity: 0; transform: translateY(-7px); }
  to   { opacity: 1; transform: translateY(0); }
}
.faq-cta { text-align: center; margin-top: 2.6rem; }
.faq-cta p { font-weight: 600; margin-bottom: 0; }
.text-link {
  color: var(--green-text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.text-link:hover { color: var(--green-deep); }

/* ---------- Kontakt ---------- */
.section-contact {
  background:
    radial-gradient(ellipse 900px 600px at 15% 0%, rgba(135, 188, 20, 0.12), transparent 55%),
    linear-gradient(160deg, var(--blue-950), var(--blue-900) 60%, var(--blue-800));
  color: var(--on-dark);
}
.section-contact h2 { color: #fff; }
.section-contact em { color: var(--green-soft); font-style: normal; }
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.contact-phone {
  display: block;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 1.5rem 1.8rem;
  margin: 1.8rem 0 1rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.contact-phone:hover { border-color: var(--green); background: rgba(135, 188, 20, 0.1); }
.contact-phone-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green-soft);
  margin-bottom: 0.3rem;
}
.contact-phone-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.contact-phone-hours { display: block; font-size: 0.9rem; color: rgba(225, 237, 249, 0.7); margin-top: 0.4rem; }
.contact-badges { margin-top: 1.4rem; }
/* Gestapelte Kontakt-Buttons (E-Mail, WhatsApp) mit Abstand */
.contact-copy .btn-block { margin-bottom: 0.8rem; }

/* "So läuft Ihr Anruf" — nimmt dem Anruf die Angst */
.call-steps {
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.call-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--on-dark);
}
.call-step-num {
  flex-shrink: 0;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
}
.contact-nudge {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(225, 237, 249, 0.82);
  border-left: 3px solid var(--green-soft);
  padding: 0.3rem 0 0.3rem 1rem;
  margin: 1.4rem 0 0;
}
.contact-nudge strong { color: var(--green-soft); }

.contact-form {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-pop);
}
.form-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}
.form-title em { color: var(--green-text); font-style: normal; }
.form-sub { color: var(--slate); font-size: 0.95rem; margin-bottom: 1.5rem; }
.form-row { margin-bottom: 1.1rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(2, 106, 201, 0.18);
}
.contact-form textarea { resize: vertical; }
.contact-form .form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--slate);
  line-height: 1.5;
  margin: 0.2rem 0 1.1rem;
  cursor: pointer;
}
.contact-form .form-consent input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  accent-color: var(--green);
  cursor: pointer;
}
.form-consent a { color: var(--blue-700); }
.form-success {
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  background: rgba(135, 188, 20, 0.12);
  border: 1px solid rgba(135, 188, 20, 0.4);
  border-radius: var(--radius-sm);
  color: var(--green-text);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue-950);
  color: rgba(225, 237, 249, 0.75);
  padding: 3.5rem 0 0;
  font-size: 0.95rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.brand-footer { color: #fff; margin-bottom: 0.8rem; }
.footer-brand p { margin: 0.6rem 0 0; }
.footer-head {
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.8rem;
}
.site-footer a { color: rgba(225, 237, 249, 0.85); text-decoration: none; }
.site-footer a:hover { color: var(--green-soft); }
.site-footer address { font-style: normal; line-height: 1.8; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line-dark);
  font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Mobile Bottom Bar ---------- */
.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  gap: 1px;
  background: var(--blue-950);
  box-shadow: 0 -8px 30px rgba(1, 25, 48, 0.4);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 0.5rem;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  color: #fff;
}
.mobile-bar-call { background: linear-gradient(135deg, var(--green), var(--green-deep)); }
.mobile-bar-wa { background: var(--whatsapp); }

/* ---------- Scroll-Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg img, .hero-glow, .hero-card, .hero-eyebrow,
  .hero h1, .hero-sub, .hero-note, .hero-ctas, .hero-badges { animation: none; }
  .btn-primary::after { display: none; }
  .brand-lockup, .main-nav a::after { transition: none; }
  .step::before, .step::after,
  .reveal .kicker::before, .audience-card::before {
    transform: none;
    transition: none;
  }
  .logo-slot, .gl-stars svg {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .calc-result-value strong.bump, .faq-list details[open] p { animation: none; }
}

/* ---------- Rechtliche Seiten ---------- */
.legal-page { padding: 3.5rem 0 5rem; }
.legal-page h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1.5rem; }
.legal-page h2 { font-size: 1.3rem; margin-top: 2.2rem; }
.legal-note {
  background: rgba(135, 188, 20, 0.1);
  border: 1px solid rgba(135, 188, 20, 0.45);
  border-radius: var(--radius-sm);
  padding: 1rem 1.3rem;
  color: var(--green-text);
  font-weight: 600;
  margin-bottom: 2rem;
}

/* ============================================================
   Responsive
   ============================================================ */
/* Zwischenbreite: Nav ist noch sichtbar, aber es wird eng — die
   Telefonnummer weicht auf einen runden Icon-Button aus (bleibt klickbar),
   Nav und CTA rücken etwas dichter zusammen */
@media (max-width: 1240px) and (min-width: 1021px) {
  .header-phone span { display: none; }
  .header-phone {
    width: 42px;
    height: 42px;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid var(--line);
  }
  .header-phone svg { width: 19px; height: 19px; color: var(--green-deep); }
  .main-nav a { font-size: 0.9rem; }
  .header-cta { gap: 0.7rem; }
  .btn-header { padding: 0.6rem 1.05rem; font-size: 0.88rem; }
}

@media (max-width: 1020px) {
  /* Ab hier wird die horizontale Navigation zum Burger-Menü. Panel- und
     Toggle-Regeln stehen zusammen, damit es keine Breite gibt, in der
     weder Navigation noch Burger sichtbar ist. */
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(1, 42, 80, 0.12);
    padding: 0.6rem 0 1rem;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.85rem 1.5rem; font-size: 1.05rem; }
  .main-nav a::after { display: none; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { max-width: 480px; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .card-feature, .card-wide { grid-column: span 2; }
  /* minmax(0,1fr) statt 1fr: verhindert Grid-Blowout durch breite Inhalte */
  .calc-wrap, .why-grid, .about-wrap, .contact-wrap { grid-template-columns: minmax(0, 1fr); }
  .direct-card { position: static; }
  .steps { grid-template-columns: 1fr; gap: 2.4rem; }
  .step:nth-child(2), .step:nth-child(3) { margin-top: 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .about-photo.is-photo img { height: 340px; }
}

@media (max-width: 760px) {
  body { padding-bottom: 64px; } /* Platz für Mobile-Bar */
  .mobile-bar { display: flex; }
  .brand-lockup { --mark-h: 36; --word-h: 15; gap: 0.22rem; padding: 0.34rem 0.6rem; }
  .brand-footer .brand-lockup { --mark-h: 46; --word-h: 19; }
  .btn-header { display: none; }

  /* Telefon im Header: aus Icon+Text wird ein echter 44px-Anruf-Button */
  .header-phone span { display: none; }
  .header-phone {
    width: 44px;
    height: 44px;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green), var(--green-deep));
    box-shadow: 0 6px 16px rgba(95, 138, 12, 0.4);
  }
  .header-phone svg { color: #fff; width: 20px; height: 20px; }

  /* Footer-Links: bequeme Tap-Flächen */
  .site-footer a { display: inline-block; padding: 0.3rem 0; }
  .to-top { padding: 0.5rem 0.8rem; }

  .hero { min-height: auto; }
  /* Auf dem Handy dürfen ALLE Buttons umbrechen. Vorher galt das nur für den
     Hero — dadurch wurden längere Beschriftungen wie
     „Jetzt anrufen: +49 …" auf Unterseiten rechts abgeschnitten. */
  .btn {
    white-space: normal;
    max-width: 100%;
    text-align: center;
    padding-inline: 1.4rem;
  }
  .hero-ctas .btn { width: 100%; }
  .cards-grid { grid-template-columns: 1fr; }
  .card-feature, .card-wide { grid-column: auto; grid-template-columns: 1fr; gap: 1.2rem; }
  .card-feature .card-figure { text-align: left; justify-self: start; }
  .card-feature .card-figure-cap { margin-left: 0; }
  .card-wide .card-figure { order: 2; }
  .audience-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .calc-results { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   Ergänzungen Semagin Website Specification
   (Icon-Karten, Prozess, Cookie-Consent) — wiederverwendbar
   ============================================================ */

/* ---------- Flexibles Karten-Raster (3–5 Karten) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
}
/* Festes Dreier-Raster — für die sechs Leistungskarten (02.04), damit
   sie als gleich große 3×2-Matrix stehen statt 5+1 umzubrechen. */
.feature-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Sehr schmale Geräte (iPhone SE & Co., ab ca. 320 px):
   Logo, Anruf-Button und Burger passten hier zusammen nicht mehr in den
   Header — die Seite ließ sich dadurch seitlich verschieben. Deshalb wird
   der Seitenrand schmaler und das Logo eine Stufe kleiner. */
@media (max-width: 400px) {
  .container { width: min(1180px, 100% - 1.6rem); }
  .container-narrow { width: min(860px, 100% - 1.6rem); }
  .header-inner { gap: 0.5rem; }
  .header-cta { gap: 0.4rem; }
  .brand-lockup { --mark-h: 30; --word-h: 12; padding: 0.3rem 0.5rem; }
}

@media (max-width: 900px) { .feature-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .feature-grid-3 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Icon-Karten (Energiesystem, Kriterien, Partner, Vertrauen) ---------- */
.icon-card { display: flex; flex-direction: column; }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(2, 106, 201, 0.09);
  color: var(--blue-700);
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 26px; height: 26px; }
.icon-card h3 { font-size: 1.12rem; margin-bottom: 0.4rem; }

/* Einleitungstext unter der Abschnitts-Überschrift auf hellem Grund */
.section-intro {
  font-size: 1.08rem;
  color: var(--slate);
  max-width: 60ch;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
}

/* ---------- 4-Phasen-Prozess „So arbeitet Semagin" ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.4rem, 3vw, 2.2rem);
  list-style: none;
  padding: 0;
}
.process-step { position: relative; padding-top: 3rem; }
.process-num {
  position: absolute;
  top: 0; left: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  box-shadow: 0 8px 20px rgba(1, 58, 111, 0.28);
  z-index: 1;
}
/* Verbindungslinie zwischen den Phasen */
.process-step::before {
  content: "";
  position: absolute;
  top: 23px; left: 56px; right: calc(-1 * clamp(1.4rem, 3vw, 2.2rem) - 8px);
  height: 2px;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.7s cubic-bezier(0.25, 0.7, 0.3, 1) 0.15s;
}
.process-step.visible::before { transform: scaleX(1); }
.process-step:last-child::before { display: none; }
.process-step h3 { font-size: 1.12rem; margin: 0 0 0.4rem; }
.process-step p { color: var(--slate); font-size: 0.96rem; margin: 0; }

/* ---------- Cookie-Consent-Banner (DSGVO / § 25 TDDDG) ---------- */
.consent {
  position: fixed;
  left: 1rem; right: auto; bottom: 1rem;
  z-index: 1200;
  width: min(440px, calc(100% - 2rem));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  padding: 1.4rem 1.4rem 1.3rem;
  animation: consentIn 0.4s ease;
}
@keyframes consentIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.consent[hidden] { display: none; }
.consent h2 { font-size: 1.1rem; margin: 0 0 0.5rem; }
.consent p { color: var(--slate); font-size: 0.9rem; line-height: 1.55; margin: 0 0 1rem; }
.consent a { color: var(--blue-700); font-weight: 600; }
.consent-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.consent-actions .btn { flex: 1 1 8rem; padding: 0.8rem 1rem; font-size: 0.94rem; }

/* Neutraler Sekundär-Button (Ablehnen ist genauso prominent wie Akzeptieren) */
.btn-outline {
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--blue-700); color: var(--blue-700); transform: translateY(-2px); }

/* „Cookie-Einstellungen" als Link im Footer */
.linklike {
  background: none; border: 0; padding: 0;
  font: inherit; color: inherit; cursor: pointer;
  text-align: left; text-decoration: none;
}
.linklike:hover { text-decoration: underline; }

/* ---------- Responsive: neue Komponenten ---------- */
@media (max-width: 1020px) {
  .process { grid-template-columns: 1fr 1fr; }
  .process-step:nth-child(2n)::before { display: none; }
}
@media (max-width: 760px) {
  .consent { left: 0.8rem; right: 0.8rem; width: auto; bottom: calc(64px + 0.7rem); }
}
@media (max-width: 600px) {
  .process { grid-template-columns: 1fr; }
  .process-step { padding-top: 0; padding-left: 4rem; min-height: 48px; }
  .process-step::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .consent { animation: none; }
  .process-step::before { transform: none; transition: none; }
}

/* ============================================================
   Ergänzungen „Semagin Website Content 1" (Content-Spezifikation)
   Abschnitte 01 Markenidentität + 02.01–02.10
   ============================================================ */

/* ---------- 01 Markenidentität: Slogan ----------
   „Wir bieten nicht das Beste, sondern das Beste für Sie."
   Erscheint unverändert auf allen Seiten (Footer) und als Aussage
   im Abschnitt „Was ist Semagin?". */
.brand-claim {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.4;
  color: var(--blue-900);
  border-left: 4px solid var(--green);
  padding: 0.35rem 0 0.35rem 1.2rem;
  margin: 1.8rem 0 0;
  text-wrap: balance;
}
.section-dark .brand-claim,
.section-contact .brand-claim { color: #fff; border-left-color: var(--green-soft); }
.brand-claim-footer {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--green-soft);
  margin: 0.9rem 0 0;
}

/* ---------- Zweispaltiger Abschnitt: Text + Bild/Grafik ----------
   Genutzt von 02.03 (Was ist Semagin) und 02.07 (Herstellerunabhängig) */
.split {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: center;
}
.split-copy > :last-child { margin-bottom: 0; }
.split-copy .btn { margin-top: 1.6rem; }

/* Überschrift mit dezentem Icon daneben (02.03: „optional ein Haus-
   oder Energie-Icon neben der Überschrift") */
.head-with-icon { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.7rem; }
.head-with-icon h2 { margin: 0; }
.head-icon {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(135, 188, 20, 0.15);
  color: var(--green-text);
}
.head-icon svg { width: 25px; height: 25px; }

/* ---------- Info-Panel (ersetzt die früheren Bildplätze) ----------
   Inhaltliche Fläche statt Platzhalter: Überschrift + vier konkrete Punkte. */
.info-panel {
  margin-top: clamp(2rem, 4vw, 3rem);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3.4vw, 2.4rem);
}
.info-panel-head { margin-bottom: 1.4rem; }
.info-panel-kicker {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-text);
  margin-bottom: 0.4rem;
}
.info-panel-head h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  margin: 0;
  color: var(--blue-950);
}
.info-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
}
.info-panel-grid li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.3rem;
}
.info-panel-grid svg { width: 26px; height: 26px; color: var(--green-deep); margin-bottom: 0.6rem; }
.info-panel-grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--blue-950);
  margin-bottom: 0.25rem;
}
.info-panel-grid span { display: block; font-size: 0.92rem; line-height: 1.55; color: var(--slate); }
.info-panel-note {
  margin: 1.2rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-text);
}

/* ---------- „Warum Semagin?"-Kurzliste auf der Startseite ----------
   Nur die fünf Überschriften; der Pfeil führt zum ausführlichen Abschnitt
   auf der Seite „Über Semagin". */
.why-teaser {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 1.9rem);
}
.why-teaser-head {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--blue-950);
  margin-bottom: 0.9rem;
}
.why-teaser ul { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.55rem; }
.why-teaser a {
  display: grid;
  /* minmax(0, 1fr) statt 1fr: sonst wird die Spalte vom längsten Titel
     aufgeblasen und die Kacheln stehen auf schmalen Handys über den Rand. */
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  min-height: 56px;
  padding: 0.75rem 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--blue-950);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.why-teaser a:hover {
  border-color: var(--green);
  transform: translateX(3px);
  box-shadow: var(--shadow-card);
}
.why-teaser-num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--green-text);
}
.why-teaser-title { font-weight: 700; font-size: 1.02rem; line-height: 1.3; }
.why-teaser-arrow { color: var(--green-deep); transition: transform 0.18s ease; }
.why-teaser a:hover .why-teaser-arrow { transform: translateX(4px); }

/* ---------- 02.05 Energiesystem-Grafik ---------- */
.energy-diagram {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-card);
}
/* Auf schmalen Displays wäre die Grafik unlesbar klein: sie behält eine
   Mindestbreite und lässt sich seitlich scrollen. Die Legende darunter
   enthält dieselben Informationen als Text. */
.energy-diagram-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* Nur die Diagramm-Grafik selbst — nicht die kleinen Icons in der Legende,
   die ebenfalls innerhalb von .energy-diagram liegen. */
.energy-diagram-scroll > svg { width: 100%; min-width: 560px; height: auto; display: block; }

/* Hinweis, dass die Grafik seitlich weitergeht. Ohne ihn übersieht man auf dem
   Handy die rechte Hälfte des Diagramms komplett — es sieht dort aus, als wäre
   die Grafik einfach abgeschnitten. Der Hinweis wird per JS ausgeblendet,
   sobald einmal gescrollt wurde, und erscheint nur, wenn wirklich zu wenig
   Platz da ist. */
.energy-swipe-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-700);
}
.energy-diagram.is-scrollable .energy-swipe-hint { display: flex; }
.energy-diagram.has-scrolled .energy-swipe-hint { display: none; }
.energy-swipe-hint svg { width: 17px; height: 17px; animation: swipeNudge 1.6s ease-in-out infinite; }
@keyframes swipeNudge {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(5px); }
}

.energy-caption {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  margin-top: 1.1rem;
  font-size: 0.87rem;
  color: var(--slate);
}
.energy-caption span { display: inline-flex; align-items: center; gap: 0.45rem; }
.energy-caption .dot { width: 18px; height: 3px; border-radius: 2px; }
.energy-caption .dot-green { background: var(--green-deep); }
.energy-caption .dot-blue { background: var(--blue-700); }
/* Energiefluss: gestrichelte Linien wandern langsam in Flussrichtung */
.flow-line {
  stroke-dasharray: 7 7;
  animation: flowDash 1.5s linear infinite;
}
.flow-line-rev { animation-direction: reverse; }
@keyframes flowDash { to { stroke-dashoffset: -28; } }

.energy-legend {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem 1.6rem;
  margin: clamp(1.6rem, 3vw, 2.2rem) 0 0;
  padding: 0;
}
.energy-legend li { display: flex; align-items: flex-start; gap: 0.8rem; }
.legend-icon {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(2, 106, 201, 0.09);
  color: var(--blue-700);
}
.legend-icon svg { width: 20px; height: 20px; }
.energy-legend strong { display: block; font-size: 0.97rem; color: var(--ink); }
.energy-legend span { font-size: 0.87rem; line-height: 1.5; color: var(--slate); }

/* ---------- Abschlusstext unter Grafik/Karten ---------- */
.section-outro {
  max-width: 64ch;
  margin: clamp(2rem, 4vw, 2.8rem) auto 0;
  text-align: center;
  font-size: 1.05rem;
  color: var(--slate);
}
.section-dark .section-outro,
.section-contact .section-outro { color: rgba(225, 237, 249, 0.88); }

/* ---------- 02.06 Prozess: Icon statt reiner Ziffer ---------- */
.process-num svg { width: 24px; height: 24px; }
.process-index { color: var(--green-text); font-weight: 800; }

/* ---------- 02.09 Alternative Kontaktmöglichkeiten ----------
   Sitzt laut Spezifikation unterhalb des Formulars, also in der rechten
   Spalte von .contact-wrap. */
.contact-alt-wrap { grid-column: 2 / 3; margin-top: 1.8rem; }
.contact-alt {
  list-style: none;
  display: grid;
  gap: 1rem;
  margin: 1.8rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line-dark);
}
.contact-alt li { display: flex; align-items: flex-start; gap: 0.9rem; }
.alt-icon {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--line-dark);
  color: var(--green-soft);
}
.alt-icon svg { width: 20px; height: 20px; }
.contact-alt strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--green-soft);
  margin-bottom: 0.15rem;
}
.contact-alt a { color: #fff; font-weight: 600; text-decoration: none; }
.contact-alt a:hover { color: var(--green-soft); text-decoration: underline; }
.contact-alt span { color: rgba(225, 237, 249, 0.85); }

/* Datenschutzhinweis unterhalb des Formulars (02.09) */
.form-privacy-note {
  font-size: 0.83rem;
  line-height: 1.55;
  color: var(--slate);
  margin: 1rem 0 0;
}
.form-privacy-note a { color: var(--blue-700); font-weight: 600; }

/* ---------- 02.10 Footer: Kontaktdaten mit Icons ---------- */
.footer-contact {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  margin: 0 0 0.9rem;
  padding: 0;
  font-style: normal;
  line-height: 1.5;
}
.footer-contact li { display: flex; align-items: flex-start; gap: 0.65rem; }
.footer-contact svg {
  width: 17px; height: 17px;
  flex: 0 0 auto;
  margin-top: 0.22rem;
  color: var(--green-soft);
}

/* ---------- Responsive ---------- */
/* Muss nach der Basisregel stehen: .contact-wrap wird ab hier einspaltig,
   der Block unter dem Formular darf dann nicht mehr in Spalte 2 hängen. */
@media (max-width: 1020px) {
  .contact-alt-wrap { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  /* Inhaltsspalte rutscht unter den Text — Lesereihenfolge bleibt erhalten */
  .split .split-media { order: 2; }
  .info-panel-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Sparpotenzial-Band: ab Tablet einspaltig */
@media (max-width: 980px) {
  .potential-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .flow-line { animation: none; }
  .btn-arrow { transition: none; }
  .btn-pulse { animation: none; }
  .why-teaser a,
  .why-teaser-arrow { transition: none; }
}

/* ---------- Kontaktformular: Fehlermeldung und Honeypot ---------- */

/* Gegenstück zu .form-success, gleiche Maße, nur in --alert */
.form-error {
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  background: rgba(179, 38, 30, 0.08);
  border: 1px solid rgba(179, 38, 30, 0.35);
  border-radius: var(--radius-sm);
  color: var(--alert);
  font-weight: 600;
}

/* Spam-Falle: muss für Bots im DOM stehen, darf für Menschen nicht sichtbar
   und nicht per Tab erreichbar sein. display:none würde von manchen Bots
   erkannt, deshalb aus dem sichtbaren Bereich geschoben. */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
