/* ANDE Digital 2030 — zentrales Stylesheet
   Design-Tokens: echtes ANDE-Brand (weiß/rot/blau, Logo-Blau #2E3192, Logo-Rot #ED1B24).
   Rebrand 2026-09: überwiegend hell, tiefes Indigo-Blau für Hero/Karte/Final-CTA,
   Rot dosiert als Markenakzent, Flaggen-Dreistreifen als Signatur.
   Sektionsrhythmus §47, Responsive §34. */

:root {
  --ande-primary: #2E3192;
  --ande-primary-bright: #5C63D8;
  --ande-primary-hover: #4046B8;
  --ande-electric: #9AA0F2;

  --ande-red: #ED1B24;
  --ande-red-deep: #D0111B;

  --navy-950: #070930;
  --navy-900: #0B0E44;
  --navy-850: #12164F;
  --navy-800: #1A1F63;

  --surface-dark: #0A0D3E;
  --surface-light: #F5F6FA;
  --surface-white: #FFFFFF;

  --text-dark: #14163F;
  --text-muted: #5A5E74;
  --text-light: #F8F9FF;
  --text-light-muted: #BCC1E4;

  --success: #16835B;
  --warning: #B87413;
  --danger: #C94040;
  --info: #2E3192;

  --border-light: rgba(20,22,63,.12);
  --border-dark: rgba(255,255,255,.14);
  --glow-line: rgba(154,160,242,.85);
  --glow-soft: rgba(92,99,216,.22);

  --flag-h: linear-gradient(90deg, var(--ande-red) 0 33.4%, #FFFFFF 33.4% 66.7%, var(--ande-primary) 66.7% 100%);
  --flag-v: linear-gradient(180deg, var(--ande-red) 0 33.4%, #FFFFFF 33.4% 66.7%, var(--ande-primary) 66.7% 100%);

  --font-body: Inter, "Helvetica Neue", Arial, sans-serif;
  --font-display: Manrope, Inter, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1280px;
  --gutter: 20px;
  --radius-card: 18px;
  --radius-btn: 11px;
  --radius-feature: 26px;
  --header-h: 84px;
  --bottomnav-h: 66px;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --gutter: 56px; } }

/* ---------- Base ---------- */
*, *::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: 17px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--surface-white);
}
img { max-width: 100%; display: block; }
a { color: var(--ande-primary); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
:focus-visible { outline: 3px solid var(--ande-primary-bright); outline-offset: 2px; }
main { display: block; }
@media (max-width: 767px) { body { padding-bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom)); } }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ande-primary); color: #fff;
  padding: 10px 18px; border-radius: 0 0 10px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--radius-btn);
  font-weight: 600; font-size: 16px; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; min-height: 48px;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ande-primary); color: #fff; }
.btn-primary:hover { background: var(--ande-primary-hover); box-shadow: 0 6px 18px var(--glow-soft); }
.btn-red { background: var(--ande-red-deep); color: #fff; }
.btn-red:hover { background: var(--ande-red); box-shadow: 0 6px 18px rgba(237,27,36,.28); }
.btn-electric { background: #fff; color: var(--ande-primary); }
.btn-electric:hover { box-shadow: 0 6px 18px rgba(7,9,48,.35); }
.btn-ghost { background: transparent; color: var(--text-light); border-color: var(--border-dark); }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-ghost-dark { background: transparent; color: var(--ande-primary); border-color: var(--border-light); }
.btn-ghost-dark:hover { border-color: var(--ande-primary); }

/* ---------- Utility Row ---------- */
.utility-row {
  background: var(--navy-950); color: var(--text-light-muted);
  font-size: 13.5px; display: none;
}
.utility-row .wrap { display: flex; justify-content: space-between; align-items: center; height: 32px; }
.utility-row a { color: var(--text-light-muted); text-decoration: none; margin-left: 22px; }
.utility-row a:hover { color: #fff; }
.utility-row strong { color: #fff; }
@media (min-width: 1024px) { .utility-row { display: block; } }

/* ---------- Header (hell, mit Flaggen-Dreistreifen) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface-white);
  transition: box-shadow .25s ease;
}
.site-header::after {
  content: ""; display: block; height: 3px; background: var(--flag-h);
  box-shadow: 0 1px 0 rgba(20,22,63,.10); /* Haarlinie verankert das weisse Mittelsegment auf hellen Seiten */
}
.site-header.shrunk { box-shadow: 0 4px 24px rgba(20,22,63,.14); }
.header-inner { display: flex; align-items: center; gap: 18px; height: 62px; transition: height .25s ease; }
@media (min-width: 1024px) {
  .header-inner { height: var(--header-h); }
  .site-header.shrunk .header-inner { height: 68px; }
}
.logo { display: flex; align-items: center; text-decoration: none; min-width: 92px; }
.logo img { height: 38px; width: auto; }
.logo .wordmark {
  display: none; font-family: var(--font-display); font-weight: 800;
  font-size: 26px; letter-spacing: .06em; color: var(--ande-red-deep);
}
.logo.nologo img { display: none; }
.logo.nologo .wordmark { display: inline; }

.main-nav { display: none; flex: 1; min-width: 0; }
.main-nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 0; justify-content: center; flex-wrap: nowrap; }
.main-nav a, .mega-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--text-dark); text-decoration: none; font-size: 13.5px; font-weight: 500;
  padding: 8px 7px; border-radius: 8px; background: none; border: 0;
  font-family: var(--font-body); cursor: pointer; white-space: nowrap;
}
@media (min-width: 1280px) { .main-nav a, .mega-toggle { font-size: 14.5px; padding: 9px 10px; } }
.main-nav a:hover, .mega-toggle:hover {
  color: var(--ande-primary);
  text-decoration: underline; text-decoration-color: var(--ande-red); text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.main-nav a[aria-current="page"], .main-nav a.active {
  color: var(--ande-red-deep); font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--ande-red-deep); text-decoration-thickness: 2px; text-underline-offset: 6px;
}
@media (min-width: 1024px) { .main-nav { display: block; } }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px; border: 0;
  background: transparent; color: var(--text-dark); cursor: pointer;
}
.icon-btn:hover { color: var(--ande-primary); background: rgba(46,49,146,.08); }
.lang-switch {
  color: var(--text-muted); text-decoration: none; font-size: 13.5px; font-weight: 600;
  padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border-light);
}
.lang-switch:hover { color: var(--ande-primary); border-color: var(--ande-primary); }
.btn-miande { padding: 9px 18px; min-height: 42px; font-size: 15px; }
.menu-toggle { display: inline-flex; }
@media (min-width: 1024px) { .menu-toggle { display: none; } }
@media (max-width: 479px) { .lang-switch { display: none; } .btn-miande { padding: 8px 12px; font-size: 14px; } }

/* ---------- Mega menu (hell) ---------- */
.mega-menu {
  position: absolute; left: 0; right: 0; z-index: 99;
  background: var(--surface-white); border-bottom: 1px solid var(--border-light);
  box-shadow: 0 24px 48px rgba(20,22,63,.16);
}
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding-top: 36px; padding-bottom: 40px; }
.mega-col h2 {
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 14px;
}
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col li { margin-bottom: 9px; }
.mega-col a { color: var(--text-dark); text-decoration: none; font-size: 15.5px; }
.mega-col a:hover {
  color: var(--ande-primary);
  text-decoration: underline; text-decoration-color: var(--ande-red); text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.mega-highlight {
  background: var(--surface-light); border: 1px solid var(--border-light);
  border-radius: var(--radius-card); padding: 22px;
}
.mega-highlight p { color: var(--text-muted); font-size: 14.5px; }
.mega-highlight strong { color: var(--ande-primary); }

/* ---------- Mobile menu (hell) ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 150; overflow-y: auto;
  background: var(--surface-white); padding: 84px var(--gutter) 110px;
}
.mobile-menu-top { display: flex; gap: 10px; margin-bottom: 26px; }
.mobile-menu-top .btn { flex: 1; }
.mobile-menu nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu nav a {
  display: block; color: var(--text-dark); text-decoration: none;
  font-family: var(--font-display); font-size: 21px; font-weight: 600;
  padding: 13px 0; border-bottom: 1px solid var(--border-light);
}
.mobile-menu nav a:hover { color: var(--ande-primary); }
.mobile-menu-bottom {
  display: flex; gap: 22px; align-items: center; margin-top: 26px;
  color: var(--text-muted); font-size: 15px;
}
.mobile-menu-bottom a { color: var(--text-muted); }
.mobile-menu-bottom strong { color: var(--ande-red-deep); }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { background: var(--surface-white); }
body.menu-open .menu-toggle, body.menu-open .site-header .logo { position: relative; z-index: 160; }

/* ---------- Bottom nav (hell, nur Mobil <768) ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 140;
  display: flex; height: calc(var(--bottomnav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 18px rgba(20,22,63,.08);
}
.bottom-nav a, .bottom-nav button {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: var(--text-muted); text-decoration: none;
  font-size: 11.5px; font-weight: 500; background: none; border: 0; cursor: pointer;
  font-family: var(--font-body);
}
.bottom-nav svg { width: 23px; height: 23px; }
.bottom-nav a[aria-current="page"], .bottom-nav .active { color: var(--ande-red-deep); }
@media (min-width: 768px) { .bottom-nav { display: none; } }

/* ---------- Search overlay (dunkel) ---------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 170; overflow-y: auto;
  background: rgba(7,9,48,.97); padding-top: 90px; padding-bottom: 60px;
}
.search-box { display: flex; gap: 10px; align-items: center; }
.search-box input {
  flex: 1; min-height: 56px; font-size: 19px; padding: 10px 18px;
  border-radius: 14px; border: 1.5px solid var(--border-dark);
  background: var(--navy-850); color: var(--text-light);
  font-family: var(--font-body);
}
.search-box input::placeholder { color: var(--text-light-muted); }
.search-box input:focus { border-color: var(--ande-electric); outline: none; }
.search-close { width: 52px; height: 52px; border: 1px solid var(--border-dark); border-radius: 12px; color: var(--text-light); }
.search-close:hover { color: #fff; background: rgba(255,255,255,.08); }
.search-results { margin-top: 26px; }
.search-group h3 {
  font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-light-muted); margin: 22px 0 8px;
}
.search-hit {
  display: block; padding: 12px 14px; border-radius: 12px; text-decoration: none;
  color: var(--text-light); border: 1px solid transparent;
}
.search-hit:hover, .search-hit:focus-visible { background: var(--navy-850); border-color: var(--border-dark); }
.search-hit .hit-title { font-weight: 600; display: block; }
.search-hit .hit-desc { color: var(--text-light-muted); font-size: 14px; display: block; }
.search-empty, .search-hint { color: var(--text-light-muted); }
.search-hint a { color: var(--ande-electric); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { background: var(--surface-light); border-bottom: 1px solid var(--border-light); }
.breadcrumb ol {
  display: flex; flex-wrap: wrap; gap: 4px; list-style: none;
  margin: 0; padding: 10px 0; font-size: 13.5px; color: var(--text-muted);
}
.breadcrumb li + li::before { content: "›"; margin: 0 7px; color: var(--text-muted); }
.breadcrumb a { color: var(--ande-primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Sections & rhythm (§47 — hell dominiert, dunkel = Hero/Karte/Final-CTA) ---------- */
.section { padding: 68px 0; }
@media (min-width: 768px) { .section { padding: 92px 0; } }
@media (min-width: 1024px) { .section { padding: 116px 0; } }
.section-dark { background: var(--navy-900); color: var(--text-light); }
.section-darker { background: var(--navy-950); color: var(--text-light); }
.section-light { background: var(--surface-white); }
.section-data { background: var(--surface-light); }
.section-dark a:not(.btn), .section-darker a:not(.btn) { color: var(--ande-electric); }
.section-dark .muted, .section-darker .muted { color: var(--text-light-muted); }
.section-light .muted, .section-data .muted { color: var(--text-muted); }

.eyebrow {
  display: block; font-size: 13px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ande-red-deep); margin-bottom: 14px;
}
.section-dark .eyebrow, .section-darker .eyebrow, .hero .eyebrow, .feature-banner .eyebrow { color: var(--ande-electric); }
.section-head { max-width: 780px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 4vw, 52px); font-weight: 800; letter-spacing: -.015em; }
.section-head p { font-size: clamp(17px, 1.4vw, 20px); }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--text-light); overflow: hidden;
  background:
    radial-gradient(1200px 600px at 78% 30%, rgba(92,99,216,.20), transparent 65%),
    radial-gradient(800px 500px at 90% 80%, rgba(154,160,242,.08), transparent 60%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-850) 100%);
}
.hero-img {
  position: absolute; inset: 0; background-size: cover; background-position: 62% 50%;
  opacity: .55;
}
/* Mobile: Portrait-Hero-Variante (MANIFEST: HERO-01-M, Fokus 50% 65%, oberes Drittel dunkel) */
@media (max-width: 767px) {
  .hero-home .hero-img {
    background-image: url('/assets/img/HERO-01-M.webp') !important;
    background-position: 50% 65% !important;
  }
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,9,48,.92) 0%, rgba(7,9,48,.62) 45%, rgba(7,9,48,.18) 100%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-home .wrap { padding-top: 84px; padding-bottom: 128px; }
.hero-content { max-width: 640px; }
.hero h1 {
  font-size: clamp(38px, 6vw, 78px); font-weight: 800;
  letter-spacing: -.02em; line-height: 1.06; margin-bottom: 22px;
}
.hero-sub { font-size: clamp(17px, 1.5vw, 21px); color: var(--text-light-muted); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 10px; }
.hero-secondary { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 10px; font-size: 15.5px; }
.hero-secondary a { color: var(--ande-electric); text-decoration: none; font-weight: 600; }
.hero-secondary a:hover { text-decoration: underline; }
.trust-line { margin-top: 34px; font-size: 14px; color: var(--text-light-muted); letter-spacing: .02em; }
@media (min-width: 1024px) {
  .hero-home { min-height: 700px; display: flex; align-items: center; }
  .hero-home .wrap { width: 100%; padding-top: 40px; }
}

/* Sub-page hero */
.hero-page .wrap { padding-top: 64px; padding-bottom: 72px; }
.hero-page h1 { font-size: clamp(34px, 4.6vw, 62px); }
@media (min-width: 1024px) { .hero-page .wrap { padding-top: 88px; padding-bottom: 96px; } }
.hero-compact .wrap { padding-top: 44px; padding-bottom: 44px; }
.hero-compact h1 { font-size: clamp(30px, 3.6vw, 46px); }

/* Energy line under hero (§58.1) */
.energy-line { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; z-index: 3; overflow: hidden; }
.energy-line::before {
  content: ""; position: absolute; top: 0; bottom: 0; width: 34%;
  background: linear-gradient(90deg, transparent, var(--glow-line), transparent);
  animation: energyTravel 7s linear infinite;
}
@keyframes energyTravel { from { left: -35%; } to { left: 100%; } }

/* ---------- Quick Service Dock ---------- */
.dock-section { background: var(--surface-light); padding-bottom: 56px; }
.dock {
  display: grid; gap: 14px;
  grid-auto-flow: column; grid-auto-columns: 78%;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 18px 4px 22px; margin-top: -66px; position: relative; z-index: 5;
  -webkit-overflow-scrolling: touch;
}
.dock::-webkit-scrollbar { height: 6px; }
.dock::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
@media (min-width: 480px) { .dock { grid-auto-columns: 46%; } }
@media (min-width: 768px) { .dock { grid-auto-columns: 31%; } }
@media (min-width: 1024px) {
  .dock { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); grid-auto-columns: unset; overflow: visible; }
}
.dock-card {
  scroll-snap-align: start; position: relative; overflow: hidden;
  background: var(--surface-white); border: 1px solid var(--border-light);
  border-radius: var(--radius-card); padding: 20px 18px 20px 21px;
  text-decoration: none; color: var(--text-dark);
  display: flex; flex-direction: column; gap: 8px; min-height: 148px;
  box-shadow: 0 10px 30px rgba(20,22,63,.08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.dock-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--flag-v);
}
.dock-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(20,22,63,.14); border-color: var(--ande-primary-bright); }
.dock-card svg { width: 30px; height: 30px; color: var(--ande-primary); }
.dock-card h3 { font-size: 16.5px; margin: 0; }
.dock-card p { font-size: 13.8px; color: var(--text-muted); margin: 0; }
.dock-card .ext { font-size: 12px; color: var(--text-muted); margin-top: auto; }

/* ---------- KPI band (Dreistreifen als linke Kante) ---------- */
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 34px; }
@media (min-width: 768px) { .kpi-grid { grid-template-columns: repeat(3, 1fr); } }
.kpi {
  border-left: 3px solid var(--ande-primary);
  border-image: var(--flag-v) 1;
  padding: 4px 0 4px 16px;
}
.kpi .kpi-value { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 2.6vw, 34px); display: block; line-height: 1.1; }
.kpi .kpi-label { font-size: 13.5px; color: var(--text-muted); }
.section-dark .kpi .kpi-label, .section-darker .kpi .kpi-label { color: var(--text-light-muted); }

/* ---------- Split layouts ---------- */
.split { display: grid; gap: 44px; align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } }
.split-media {
  border-radius: var(--radius-feature); overflow: hidden; min-height: 320px;
  background:
    radial-gradient(600px 300px at 70% 30%, rgba(92,99,216,.25), transparent 70%),
    linear-gradient(150deg, var(--navy-850), var(--navy-950));
  background-size: cover; background-position: center; position: relative;
}
@media (min-width: 1024px) { .split-media { min-height: 440px; } }

/* ---------- Map (bleibt dunkel) ---------- */
.map-panel {
  background: var(--navy-950); border: 1px solid var(--border-dark);
  border-radius: var(--radius-feature); padding: 22px; position: relative; overflow: hidden;
}
.py-map { width: 100%; height: auto; max-height: 640px; display: block; }
.py-map .dept {
  fill: #171B5E; stroke: rgba(188,193,228,.35); stroke-width: .8;
  transition: fill .2s ease;
}
.py-map .dept:hover { fill: #232A78; }
.plant-dot { fill: var(--ande-electric); }
.plant-pulse { fill: none; stroke: var(--glow-line); stroke-width: 1.4; opacity: .8; }
.city-dot { fill: var(--text-light-muted); }
.map-label { font-family: Inter, Arial, sans-serif; font-size: 13px; fill: var(--text-light); paint-order: stroke; stroke: rgba(7,9,48,.85); stroke-width: 3px; }
.city-label { fill: var(--text-light-muted); font-size: 12px; }
@media (prefers-reduced-motion: no-preference) {
  .plant-pulse { animation: pulse 3.2s ease-out infinite; transform-origin: center; transform-box: fill-box; }
  @keyframes pulse { 0% { opacity: .85; transform: scale(.55); } 70% { opacity: 0; transform: scale(1.25); } 100% { opacity: 0; transform: scale(1.25); } }
}
.map-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.map-chip {
  border: 1px solid var(--border-dark); background: transparent; color: var(--text-light-muted);
  border-radius: 999px; padding: 8px 16px; font-size: 13.5px; font-weight: 600; cursor: pointer;
  font-family: var(--font-body);
}
.map-chip[aria-pressed="true"] { background: var(--ande-primary-bright); border-color: var(--ande-primary-bright); color: #fff; }
.map-chip:hover { border-color: var(--ande-electric); color: var(--ande-electric); }
.map-chip[aria-pressed="true"]:hover { color: #fff; }
.map-note {
  margin: 14px 0 0; padding: 12px 16px; border-radius: 12px;
  background: rgba(214,139,24,.12); border: 1px solid rgba(214,139,24,.4);
  color: #EFC584; font-size: 14px;
}
.map-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; font-size: 13.5px; color: var(--text-light-muted); }
.map-legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.legend-plant { background: var(--ande-electric); box-shadow: 0 0 8px var(--glow-line); }
.legend-city { background: var(--text-light-muted); }

.map-list { margin-top: 26px; }
.map-list table { width: 100%; border-collapse: collapse; font-size: 15px; }
.map-list th, .map-list td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border-dark); }
.map-list th { color: var(--text-light-muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.table-scroll { overflow-x: auto; }

/* ---------- Cards grid ---------- */
.card-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); } .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--surface-white); border: 1px solid var(--border-light);
  border-radius: var(--radius-card); padding: 26px 24px;
  display: flex; flex-direction: column; gap: 10px;
  text-decoration: none; color: var(--text-dark);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
a.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(20,22,63,.12); border-color: var(--ande-primary-bright); }
.card h3 { font-size: 19px; margin: 0; }
.card p { font-size: 14.8px; color: var(--text-muted); margin: 0; }
.card .card-link { margin-top: auto; color: var(--ande-primary); font-weight: 600; font-size: 14.5px; }
a.card:hover .card-link { text-decoration: underline; text-decoration-color: var(--ande-red); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.card svg.card-icon { width: 30px; height: 30px; color: var(--ande-primary); }
.section-dark .card, .section-darker .card {
  background: var(--navy-850); border-color: var(--border-dark); color: var(--text-light);
}
.section-dark .card p, .section-darker .card p { color: var(--text-light-muted); }
.section-dark .card .card-link, .section-darker .card .card-link { color: var(--ande-electric); }

.card-media {
  height: 150px; border-radius: 12px; margin: -10px -8px 8px;
  background:
    radial-gradient(300px 160px at 70% 20%, rgba(92,99,216,.3), transparent 70%),
    linear-gradient(150deg, var(--navy-800), var(--navy-950));
  background-size: cover; background-position: center;
}

/* Tag / status pills */
.tag {
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(46,49,146,.10); color: var(--ande-primary);
  width: fit-content;
}
.section-dark .tag, .section-darker .tag { background: rgba(154,160,242,.16); color: var(--ande-electric); }
.tag-warn { background: rgba(184,116,19,.14); color: var(--warning); }
.tag-success { background: rgba(22,131,91,.14); color: var(--success); }
.tag-danger { background: rgba(208,17,27,.12); color: var(--ande-red-deep); }

/* ---------- Feature banner (Energía para crecer etc.) ---------- */
.feature-banner {
  position: relative; border-radius: var(--radius-feature); overflow: hidden;
  color: var(--text-light); padding: 56px 30px;
  background:
    radial-gradient(700px 400px at 85% 20%, rgba(92,99,216,.28), transparent 65%),
    linear-gradient(150deg, var(--navy-900), var(--navy-950));
  background-size: cover; background-position: center;
}
.feature-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,9,48,.88), rgba(7,9,48,.35)); }
.feature-banner > * { position: relative; }
.feature-banner h2 { font-size: clamp(28px, 3.6vw, 46px); }
.feature-banner p { max-width: 620px; color: var(--text-light-muted); font-size: 17px; }
@media (min-width: 1024px) { .feature-banner { padding: 84px 72px; } }

/* ---------- News ---------- */
.news-grid { display: grid; gap: 18px; }
@media (min-width: 768px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .news-grid { grid-template-columns: repeat(4, 1fr); }
  .news-grid .news-card:first-child { grid-column: span 2; grid-row: span 2; }
}
.news-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface-white); border: 1px solid var(--border-light);
  border-radius: var(--radius-card); padding: 24px; text-decoration: none; color: var(--text-dark);
  transition: transform .18s ease, box-shadow .18s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(20,22,63,.12); }
.news-card h3 { font-size: 17.5px; margin: 0; line-height: 1.35; }
.news-cat { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ande-red-deep); }
.news-excerpt { font-size: 14.5px; color: var(--text-muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--text-muted); }
.news-src { color: var(--ande-primary); font-weight: 600; }
.section-dark .news-card { background: var(--navy-850); border-color: var(--border-dark); color: var(--text-light); }
.section-dark .news-card .news-excerpt, .section-dark .news-card .news-meta { color: var(--text-light-muted); }
/* Grosse Feature-News-Card: fuellt ihr 2x2-Feld statt Leerraum zu lassen */
@media (min-width: 1024px) {
  .news-grid .news-card:first-child {
    padding: 34px 32px;
    background: linear-gradient(155deg, var(--navy-900), var(--navy-950));
    border-color: transparent; color: var(--text-light);
    justify-content: center; gap: 14px;
  }
  .news-grid .news-card:first-child h3 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.25; }
  .news-grid .news-card:first-child .news-cat { color: var(--ande-electric); }
  .news-grid .news-card:first-child .news-excerpt { -webkit-line-clamp: 7; font-size: 16px; color: var(--text-light-muted); }
  .news-grid .news-card:first-child .news-meta { margin-top: 6px; color: var(--text-light-muted); }
  .news-grid .news-card:first-child .news-src { color: var(--ande-electric); }
}

/* ---------- Final CTA ---------- */
.cta-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .cta-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cta-grid { grid-template-columns: repeat(4, 1fr); } }
.cta-tile {
  display: flex; flex-direction: column; gap: 8px; padding: 28px 24px; min-height: 130px;
  background: var(--navy-850); border: 1px solid var(--border-dark);
  border-radius: var(--radius-card); color: var(--text-light); text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.cta-tile:hover { transform: translateY(-4px); border-color: var(--ande-electric); background: var(--navy-800); }
.cta-tile svg { width: 28px; height: 28px; color: var(--ande-electric); }
.cta-tile h3 { margin: 0; font-size: 18px; }
.cta-tile p { margin: 0; font-size: 13.5px; color: var(--text-light-muted); }

/* ---------- Filters ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filter-chip {
  border: 1px solid var(--border-light); background: var(--surface-white); color: var(--text-muted);
  border-radius: 999px; padding: 9px 18px; font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: var(--font-body); min-height: 42px;
}
.filter-chip[aria-pressed="true"] { background: var(--ande-primary); border-color: var(--ande-primary); color: #fff; }
.filter-chip:hover { border-color: var(--ande-primary); color: var(--ande-primary); }
.filter-chip[aria-pressed="true"]:hover { color: #fff; }
.filter-empty { padding: 26px; border: 1.5px dashed var(--border-light); border-radius: var(--radius-card); color: var(--text-muted); }
[data-filter-hidden] { display: none !important; }

select.select {
  min-height: 48px; border-radius: var(--radius-btn); border: 1.5px solid var(--border-light);
  padding: 8px 14px; font-size: 15.5px; font-family: var(--font-body); background: var(--surface-white);
  color: var(--text-dark);
}

/* ---------- Documents ---------- */
.doc-row {
  display: flex; gap: 14px; align-items: center; padding: 16px 18px;
  background: var(--surface-white); border: 1px solid var(--border-light);
  border-radius: 14px; text-decoration: none; color: var(--text-dark); margin-bottom: 10px;
}
.doc-row:hover { border-color: var(--ande-primary-bright); }
.doc-row svg { width: 26px; height: 26px; color: var(--ande-primary); flex-shrink: 0; }
.doc-row .doc-title { font-weight: 600; font-size: 15.5px; }
.doc-row .doc-meta { font-size: 13px; color: var(--text-muted); }

/* ---------- Timeline (Plan Maestro §18) ---------- */
.timeline { position: relative; margin-top: 40px; }
.timeline-track { display: grid; gap: 16px; }
.timeline-item {
  position: relative; padding: 22px 22px 22px 54px;
  background: var(--surface-white); border: 1px solid var(--border-light); border-radius: var(--radius-card);
}
.timeline-item::before {
  content: ""; position: absolute; left: 24px; top: 28px; width: 13px; height: 13px;
  border-radius: 50%; background: var(--ande-primary-bright); box-shadow: 0 0 0 4px rgba(92,99,216,.18);
}
.timeline-item::after {
  content: ""; position: absolute; left: 30px; top: 46px; bottom: -16px; width: 2px;
  background: var(--border-light);
}
.timeline-item:last-child::after { display: none; }
.timeline-item h3 { font-size: 19px; }
.timeline-item .tl-horizon { font-family: var(--font-display); font-weight: 800; color: var(--ande-primary); font-size: 15px; }
@media (min-width: 1024px) {
  .timeline-track { grid-template-columns: repeat(5, 1fr); gap: 18px; }
  .timeline-track::before {
    content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px;
    background: linear-gradient(90deg, var(--ande-red), var(--ande-primary-bright));
  }
  .timeline-item { padding: 26px 22px; margin-top: 26px; }
  .timeline-item::before { left: 50%; top: -26px; transform: translateX(-50%); }
  .timeline-item::after { display: none; }
}

/* ---------- Prose / editorial ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(24px, 2.6vw, 34px); margin-top: 1.6em; }
.prose h3 { font-size: clamp(19px, 2vw, 24px); margin-top: 1.4em; }

/* ---------- Info blocks ---------- */
.notice {
  padding: 16px 20px; border-radius: 14px; font-size: 15px;
  background: rgba(46,49,146,.07); border: 1px solid rgba(46,49,146,.28);
  color: var(--text-dark); margin: 22px 0;
}
.section-dark .notice, .section-darker .notice { color: var(--text-light); background: rgba(154,160,242,.08); border-color: rgba(154,160,242,.3); }
.notice-warn { background: rgba(214,139,24,.1); border-color: rgba(214,139,24,.4); }
.legacy-hint { font-size: 13.5px; color: var(--text-muted); font-style: italic; }

/* ---------- Reveal (nur mit JS aktiv — ohne JS bleibt alles sichtbar) ---------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .energy-line::before, .plant-pulse { animation: none !important; }
  html { scroll-behavior: auto; }
  .btn:hover, .card:hover, .dock-card:hover, .news-card:hover, .cta-tile:hover { transform: none; }
}

/* ---------- Footer (Dreistreifen am Beginn) ---------- */
.site-footer { background: var(--navy-950); color: var(--text-light-muted); margin-top: 0; }
.site-footer::before { content: ""; display: block; height: 3px; background: var(--flag-h); }
.site-footer .wordmark { color: #fff; }
.footer-grid {
  display: grid; gap: 36px; grid-template-columns: 1fr;
  padding-top: 64px; padding-bottom: 44px;
}
@media (min-width: 600px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr repeat(4, 1fr); } }
.footer-brand p { font-size: 14.5px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo img { height: 34px; }
.footer-phone strong { color: #fff; font-size: 18px; }
.footer-col h2 {
  font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-light); margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-light-muted); text-decoration: none; font-size: 14.5px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--border-dark); padding: 22px 0; font-size: 13.5px; }
.footer-bottom a { color: var(--text-light-muted); }
.footer-bottom a:hover { color: #fff; }
.footer-note { margin-top: 6px; font-size: 12.5px; opacity: .8; }

/* ---------- Page-specific helpers ---------- */
.stat-note { font-size: 13px; color: var(--text-muted); margin-top: 18px; }
.section-dark .stat-note { color: var(--text-light-muted); }
.two-col-list { columns: 1; gap: 40px; }
@media (min-width: 768px) { .two-col-list { columns: 2; } }
.anchor-offset { scroll-margin-top: 110px; }

/* Cortes-Seite: Rot als semantischer Akzent */
.page-cortes .card svg.card-icon { color: var(--ande-red-deep); }
.page-cortes a.card:hover { border-color: var(--ande-red); }
.page-cortes .card .card-link { color: var(--ande-red-deep); }

/* Suchtreffer auf hellen Sektionen (/buscar) */
.section-data .search-group h3 { color: var(--text-muted); }
.section-data .search-hit { color: var(--text-dark); }
.section-data .search-hit:hover, .section-data .search-hit:focus-visible { background: var(--surface-white); border-color: var(--border-light); }
.section-data .search-hit .hit-desc { color: var(--text-muted); }
.section-data .search-empty, .section-data .search-hint { color: var(--text-muted); }
.section-data .search-hint a { color: var(--ande-primary); }

/* Big search page */
.search-page-box input {
  width: 100%; min-height: 60px; font-size: 20px; padding: 12px 20px;
  border-radius: 16px; border: 2px solid var(--border-light); font-family: var(--font-body);
  background: var(--surface-white); color: var(--text-dark);
}
.search-page-box input:focus { border-color: var(--ande-primary); outline: none; }

/* 404 */
.page-404 { text-align: center; padding: 90px 0 40px; }
.page-404 .code { font-family: var(--font-display); font-weight: 800; font-size: clamp(70px, 12vw, 130px); color: var(--ande-primary-bright); line-height: 1; }
