/* ============================================================
   3E-Welt — Design-System
   Einzige Quelle für Farben, Schrift und Komponenten.
   Ursprung: Komponentenlogik des BEG-Förderrechners, Farben und
   Schrift nach dem 3E-Markenkonzept. Nicht aus ks-energy.de übernommen.
   ============================================================ */

:root {
  --ink: #0D1420; --ink-2: #3A4453; --ink-3: #737C8A;
  --paper: #F2F4F7; --card: #FFFFFF; --line: #DCE1E8; --line-2: #EDF0F4;
  --ks-green: #6CC24A; --ks-teal: #00B8C6; --ks-blue: #0077E6; --ks-deep: #046C77;
  --amber: #B87514; --amber-bg: #FDF4E4; --red: #B03A2E; --red-bg: #FBEDEB;
  --radius: 10px;
  --gradient-brand: linear-gradient(90deg, var(--ks-green), var(--ks-teal), var(--ks-blue));
  --gradient-accent: linear-gradient(90deg, var(--ks-green), var(--ks-teal));
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.mono { font-family: 'IBM Plex Mono', monospace; font-variant-numeric: tabular-nums; }

a { color: var(--ks-deep); }
img { max-width: 100%; display: block; }

/* ============================================================
   Sitewide Header / Navigation — Variante für header.php
   Positionierung (fixed/top-0/w-full/z-50) bleibt bewusst bei den
   bestehenden Tailwind-Klassen in header.php, damit layout.php's
   pt-16 / pt-24 Kompensation für den fixierten Header weiter passt.
   Diese Klasse liefert nur Farben/Optik, keine Position.
   ============================================================ */
.site-header-bar {
  background: var(--ink) !important;
  border-bottom: 3px solid transparent;
  border-image: var(--gradient-brand) 1;
  box-shadow: none !important;
  color: #fff;
}
.site-header-bar .brand-mark { display: flex; align-items: center; gap: 10px; color: #fff; }
.site-header-bar .brand-mark img { height: 30px; width: auto; }
.site-header-bar .brand-mark span { color: #fff !important; font-size: 19px; }
.site-header-bar .brand-mark:hover span { color: var(--ks-green) !important; }

/* ============================================================
   Sitewide Header / Navigation
   ============================================================ */
.site-header {
  background: var(--ink);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid transparent;
  border-image: var(--gradient-brand) 1;
}
.site-header .hwrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.site-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}
.site-header .brand img { height: 34px; width: auto; }
.site-header .brand span {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.site-nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.site-nav a {
  color: #A9BEC0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .15s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; }
.site-nav .cta {
  background: var(--gradient-accent);
  color: var(--ink);
  padding: 9px 18px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 13.5px;
}
.site-nav .cta:hover { color: var(--ink); opacity: .92; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #33474B;
  color: #fff;
  border-radius: 6px;
  padding: 7px 10px;
  font: inherit;
  cursor: pointer;
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 14px;
    border-top: 1px solid #223438;
  }
  .site-nav.open { display: flex; }
  .site-nav .cta { margin-top: 4px; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background: var(--ink);
  color: #fff;
}
.hero .hwrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 46px 24px 64px;
}
.hero .eyebrow {
  font-size: 12px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #8FA7A8;
  font-weight: 600;
}
.hero h1 {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.15;
  max-width: 22ch;
  margin: 14px 0 16px;
}
.hero h1 em {
  font-style: normal;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .sub {
  font-size: 16px;
  color: #A9BEC0;
  max-width: 62ch;
  line-height: 1.6;
  margin-bottom: 28px;
}
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero zweispaltig (Text + Vorschau-Panel), wie main{1fr 400px} im Rechner */
.hero .hwrap.hero-split { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
@media (max-width: 980px) { .hero .hwrap.hero-split { grid-template-columns: 1fr; } }
.hero .stand {
  font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: #8FA7A8;
  text-align: right; line-height: 1.7; white-space: nowrap;
}
.hero .stand b { color: #fff; font-weight: 500; }
@media (max-width: 980px) { .hero .stand { text-align: left; margin-top: 10px; } }

/* Vorschau-Panel — Signatur-Element, an .result im Rechner angelehnt */
.hero-preview { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.28); }
.hero-preview h3 {
  font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-2); padding: 12px 16px; border-bottom: 1px solid var(--line-2);
  background: #FAFCFB; margin: 0; display: flex; align-items: center; gap: 8px;
}
.hero-preview h3 .num {
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: #fff;
  background: var(--gradient-accent); width: 17px; height: 17px; border-radius: 4px;
  display: grid; place-items: center;
}
.hero-preview .pbody { padding: 16px; }
.hero-preview .prow { display: flex; justify-content: space-between; font-size: 12.5px; padding: 6px 0; border-bottom: 1px solid var(--line-2); color: var(--ink-2); }
.hero-preview .prow b { font-family: 'IBM Plex Mono', monospace; color: var(--ink); font-weight: 500; }
.hero-preview .ptotal { padding: 16px; background: var(--ink); color: #fff; }
.hero-preview .ptotal .lbl { font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: #8FA7A8; }
.hero-preview .ptotal .big {
  font-family: 'IBM Plex Mono', monospace; font-size: 30px; font-weight: 600; letter-spacing: -.02em;
  background: var(--gradient-accent); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 2px 0;
}
.hero-preview .ptotal .of { font-size: 11.5px; color: #A9BEC0; }
.hero-preview a.btn { display: block; text-align: center; margin: 14px 16px 16px; }

/* Kompakte Mono-Statuszeile */
.stat-strip { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-strip .hwrap { max-width: 1240px; margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; }
.stat-strip .item { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--ink-2); }
.stat-strip .item b { color: var(--ks-deep); font-weight: 600; }

/* Card-Header-Tag (Zusatz zu .card > h3 .num aus dem Grundsystem) */
.card > h3 .tag {
  margin-left: auto; font-size: 10px; letter-spacing: .05em; color: var(--ink-3);
  background: var(--line-2); padding: 2px 7px; border-radius: 20px; font-weight: 500; text-transform: none;
}

/* Bordered Choice-Kacheln, wie .weg button im Rechner */
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 640px; }
@media (max-width: 640px) { .choice-row { grid-template-columns: 1fr; } }
.choice-btn { text-align: left; padding: 15px 16px; border: 1px solid var(--line); background: #fff; border-radius: 9px; text-decoration: none; display: block; position: relative; transition: .15s; }
.choice-btn:hover { border-color: var(--ink-3); }
.choice-btn .amt { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-family: 'IBM Plex Mono', monospace; }
.choice-btn .nm { display: block; font-size: 15.5px; font-weight: 600; color: var(--ink); margin: 3px 0 4px; }
.choice-btn .ds { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.45; }
.choice-btn.primary { border-color: var(--ks-teal); box-shadow: 0 0 0 1px var(--ks-teal); background: #F5FBFA; }
.choice-btn.primary::after { content: ''; position: absolute; top: 0; left: 16px; right: 16px; height: 3px; border-radius: 0 0 3px 3px; background: var(--gradient-accent); }
.choice-btn.primary .amt { color: var(--ks-deep); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: .15s;
}
.btn-primary {
  background: var(--gradient-accent);
  color: var(--ink);
}
.btn-primary:hover { opacity: .92; }
.btn-ghost {
  background: transparent;
  border-color: #33474B;
  color: #fff;
}
.btn-ghost:hover { border-color: var(--ks-teal); color: var(--ks-teal); }
.btn-outline {
  background: #fff;
  border-color: var(--line);
  color: var(--ink-2);
}
.btn-outline:hover { border-color: var(--ks-teal); color: var(--ks-deep); }

/* ============================================================
   Sections / Cards (Layout-Container wie im Rechner)
   ============================================================ */
.section { max-width: 1240px; margin: 0 auto; padding: 64px 24px; }
.section-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.section h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
  max-width: 40ch;
  margin: 0 0 36px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.card > h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-2);
  background: #FAFCFB;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
}
.card > h3 .num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: #fff;
  background: var(--gradient-accent);
  width: 19px; height: 19px;
  border-radius: 4px;
  display: grid; place-items: center;
}
.card .body { padding: 18px; }
.card .body p { margin: 0; color: var(--ink-2); line-height: 1.6; font-size: 14px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }

/* Herausforderungen-Liste (Warn-Ton wie .warn im Rechner) */
.issue-list { display: flex; flex-direction: column; gap: 12px; }
.issue {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--red-bg);
  border: 1px solid #EFCFCA;
  border-left: 3px solid var(--red);
  border-radius: 6px;
  padding: 13px 16px;
  font-size: 14px;
  color: #7A2A20;
}
.issue svg { flex: 0 0 18px; margin-top: 2px; }

/* Blog-Teaser-Karten */
.post-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color .15s;
}
.post-card:hover { border-color: var(--ks-teal); }
.post-card .body { padding: 16px 18px; }
.post-card .meta {
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.post-card h4 { font-size: 16px; margin: 0 0 8px; color: var(--ink); }
.post-card p { font-size: 13.5px; color: var(--ink-2); margin: 0; line-height: 1.55; }

/* Benefits (Häkchen-Liste) */
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--ink-2);
}
.check-list svg { flex: 0 0 18px; margin-top: 2px; color: var(--ks-teal); }

/* CTA-Band */
.cta-band {
  background: var(--ink);
  color: #fff;
}
.cta-band .hwrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 24px;
  text-align: center;
}
.cta-band h2 { font-size: 26px; margin: 0 0 10px; }
.cta-band p { color: #A9BEC0; margin: 0 0 24px; }

/* ============================================================
   Footer
   ============================================================ */
/* ============================================================
   Footer — Variante für footer.php (PHP-Projekt)
   ============================================================ */
.site-footer-bar {
  background: var(--ink);
  color: #A9BEC0;
  text-align: center;
  padding: 28px 0;
  font-size: 13px;
  border-top: 1px solid #223438;
}
.site-footer-bar .footer-nav a { color: #A9BEC0; text-decoration: none; font-size: 13.5px; }
.site-footer-bar .footer-nav a:hover { color: #fff; }
.site-footer-bar .footer-copy { color: #8FA7A8; }
.site-footer-bar .footer-legal { font-size: 12.5px; color: #8FA7A8; }
.site-footer-bar .footer-legal a { color: var(--ks-green); text-decoration: none; }
.site-footer-bar .footer-legal a:hover { text-decoration: underline; }
.site-footer-bar .footer-sep { color: #33474B; }
.site-footer-bar .footer-social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; color: #8FA7A8; transition: color .15s;
}
.site-footer-bar .footer-social-icon:hover { color: var(--ks-green); }

.site-footer { background: var(--ink); color: #A9BEC0; border-top: 1px solid #223438; }
.site-footer .hwrap { max-width: 1240px; margin: 0 auto; padding: 32px 24px; }
.site-footer .cities {
  display: flex; flex-wrap: wrap; gap: 6px 0;
  font-size: 12.5px; margin-bottom: 18px; padding-bottom: 18px;
  border-bottom: 1px solid #223438;
}
.site-footer .cities a { color: #A9BEC0; text-decoration: none; padding: 0 10px; border-right: 1px solid #33474B; }
.site-footer .cities a:last-child { border-right: 0; }
.site-footer .cities a:hover { color: #fff; }
.site-footer .bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px; font-size: 12px; color: #6C8286;
}
.site-footer .bottom a { color: #8FA7A8; text-decoration: none; margin-left: 14px; }
.site-footer .bottom a:hover { color: #fff; }

/* ============================================================
   Dropdown-Hauptmenü (header.php / menu.js)
   Zielt bewusst auf die IDs #menuButton / #dropdownMenu sowie das
   Attribut [data-submenu-button], die menu.js unverändert erwartet.
   Sichtbarkeits-Logik (Klasse .hidden) bleibt Tailwind-gesteuert.
   ============================================================ */
.site-header-bar #menuButton {
  color: #A9BEC0;
  font-size: 14px;
  font-weight: 500;
}
.site-header-bar #menuButton:hover,
.site-header-bar #menuButton[aria-expanded="true"] { color: #fff; }

#dropdownMenu {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(13,27,30,.16);
  overflow: hidden;
}
#dropdownMenu nav[role="none"] { padding: 6px; }
#dropdownMenu [role="none"] > a,
#dropdownMenu [data-submenu-button] {
  color: var(--ink-2);
  font-weight: 500;
}
#dropdownMenu [role="none"].border-t { border-color: var(--line-2) !important; }
#dropdownMenu a[role="menuitem"] { color: var(--ink-2); }
#dropdownMenu a[role="menuitem"]:hover,
#dropdownMenu [data-submenu-button]:hover { background: var(--line-2) !important; color: var(--ink); }
#dropdownMenu a[role="menuitem"][aria-current="page"] { color: var(--ks-deep); font-weight: 600; }
#dropdownMenu [data-submenu-button] svg { color: var(--ink-3); }

/* Sprachumschalter im Header */
.site-header-bar .lang-switch { font-size: 12.5px; color: #8FA7A8; white-space: nowrap; }
.site-header-bar .lang-switch a { color: #A9BEC0; text-decoration: none; }
.site-header-bar .lang-switch a:hover { color: #fff; }
.site-header-bar .lang-switch a.font-semibold { color: #fff; }

/* ============================================================
   Formularfelder (Kontaktformular u.a.)
   ============================================================ */
.field { display: block; margin-bottom: 16px; }
.field > span, .field label {
  display: block; font-size: 12.5px; font-weight: 500;
  color: var(--ink-2); margin-bottom: 5px;
}
.field input, .field select, .field textarea,
input.form-control, select.form-control, textarea.form-control {
  width: 100%; padding: 10px 12px; font: inherit; font-size: 14px;
  border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus,
.form-control:focus {
  outline: 2px solid var(--ks-teal); outline-offset: 1px; border-color: var(--ks-teal);
}
.field textarea { min-height: 140px; resize: vertical; }

/* ============================================================
   Info-/Warnbox (Ersatz für .border-left-accent)
   ============================================================ */
.notebox {
  border-left: 3px solid var(--ks-teal);
  background: #EAF6F4;
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 13.5px;
  color: #0A4B46;
  line-height: 1.6;
}
.notebox.warn { border-left-color: var(--red); background: var(--red-bg); color: #7A2A20; }
.notebox.amber { border-left-color: var(--amber); background: var(--amber-bg); color: var(--amber); }
.notebox h3, .notebox h2 { color: inherit; font-size: 15px; margin: 0 0 6px; }

/* ============================================================
   Bildergalerie
   ============================================================ */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 700px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-grid figure {
  margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--paper); aspect-ratio: 4/3;
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   FAQ-Accordion (faq-accordion.js)
   ============================================================ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px 4px; background: none; border: 0; font: inherit; font-size: 15px; font-weight: 600;
  color: var(--ink); text-align: left; cursor: pointer;
}
.faq-item button svg { flex: 0 0 18px; color: var(--ink-3); transition: transform .15s; }
.faq-item button[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-item .faq-panel { padding: 0 4px 16px; color: var(--ink-2); font-size: 14px; line-height: 1.65; }
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  max-width: 640px; margin: 0 auto;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: 0 8px 30px rgba(0,0,0,.18);
  font-size: 13px; color: var(--ink-2); display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}
.cookie-bar .actions { display: flex; gap: 8px; margin-left: auto; }
.cookie-bar button { font: inherit; font-size: 12.5px; font-weight: 600; padding: 8px 14px; border-radius: 6px; cursor: pointer; }
.cookie-bar .accept { background: var(--gradient-accent); border: 0; color: var(--ink); }
.cookie-bar .decline { background: #fff; border: 1px solid var(--line); color: var(--ink-2); }

/* ============================================================
   3E-Welt — Zusatzbausteine (Modul-Kacheln, Navigator-Linkliste)
   ============================================================ */
.module-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) { .module-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .module-grid { grid-template-columns: 1fr; } }
.module-card {
  display: block; text-decoration: none; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: border-color .15s, transform .15s;
}
.module-card:hover { border-color: var(--ks-teal); transform: translateY(-2px); }
.module-card .mh { padding: 14px 16px; border-bottom: 1px solid var(--line-2); background: #FAFCFB; display: flex; align-items: center; gap: 9px; }
.module-card .mh .mnum {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #fff;
  background: var(--gradient-accent); width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
}
.module-card .mh .mname { font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: -.005em; }
.module-card .mb { padding: 16px; }
.module-card .mb p { margin: 0 0 12px; font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.module-card .mb .go { font-size: 12.5px; font-weight: 600; color: var(--ks-deep); }

/* Navigator: kategorisierte externe Linkliste */
.navi-cat { margin-bottom: 28px; }
.navi-cat h3 {
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.navi-list { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.navi-item { background: var(--card); padding: 13px 16px; display: flex; justify-content: space-between; align-items: center; gap: 14px; text-decoration: none; }
.navi-item:hover { background: #FAFCFB; }
.navi-item .ni-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.navi-item .ni-desc { font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.navi-item .ni-arrow { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--ink-3); flex-shrink: 0; }
.navi-item:hover .ni-arrow { color: var(--ks-deep); }
.navi-item .ni-ext { font-size: 9.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); background: var(--line-2); padding: 1px 6px; border-radius: 10px; margin-left: 6px; }

/* Footer-Transparenzhinweis (Betreiberkommunikation) */
.footer-op-note { font-size: 12px; color: #8FA7A8; text-align: center; max-width: 640px; margin: 0 auto 18px; line-height: 1.6; padding-bottom: 18px; border-bottom: 1px solid #223438; }
.footer-op-note a { color: #A9BEC0; }

/* ============================================================
   Rev01 (25.09.2026) – Ergänzungen für die PHP-Struktur
   Rechnerseiten, Partnerseite, Kontaktformular, Rechtstexte.
   Nur 3E-Tokens, keine Übernahmen aus ks-energy.de.
   ============================================================ */

/* Skip-Link für Tastaturnutzer */
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 6px; font-weight: 600; }
.skip-link:focus { left: 12px; }

/* Textblöcke (Fließtext-Seiten, Rechtstexte) */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 20px; margin: 34px 0 10px; color: var(--ink); letter-spacing: -.01em; }
.prose h3 { font-size: 16px; margin: 22px 0 6px; color: var(--ink); }
.prose p, .prose li { color: var(--ink-2); font-size: 15px; line-height: 1.75; }
.prose p { margin: 0 0 14px; }
.prose ul { padding-left: 20px; margin: 0 0 14px; }
.prose .meta-note { font-size: 12.5px; color: var(--ink-3); }

/* Brotkrumen */
.crumbs { font-size: 12px; color: #8FA7A8; margin-bottom: 10px; }
.crumbs a { color: #A9BEC0; text-decoration: none; }
.crumbs a:hover { color: #fff; }

/* Werkzeug-Übersicht */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tool-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.tool-card:hover { border-color: var(--ks-teal); transform: translateY(-2px); }
.tool-card .th { padding: 14px 16px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tool-card .th b { font-size: 15px; color: var(--ink); }
.tool-card .tb { padding: 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.tool-card .tb p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.tool-card .go { margin-top: auto; font-size: 12.5px; font-weight: 600; color: var(--ks-deep); }
.badge { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 20px; white-space: nowrap; background: #EAF6F4; color: var(--ks-deep); font-weight: 600; }
.badge.ext { background: var(--line-2); color: var(--ink-3); }
.badge.b2b { background: var(--amber-bg); color: var(--amber); }

/* Eingebetteter Rechner */
.tool-frame-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tool-frame { display: block; width: 100%; min-height: 900px; border: 0; background: #fff; }
.tool-privacy { font-size: 12.5px; color: var(--ink-3); margin: 12px 2px 0; line-height: 1.6; }
.tool-source { font-size: 12.5px; color: var(--ink-3); border-top: 1px solid var(--line); margin-top: 18px; padding-top: 12px; }

/* Partnerseite */
.partner-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.partner-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.partner-card .ph { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.partner-card h3 { margin: 0; font-size: 17px; color: var(--ink); }
.partner-card .field-of { font-size: 12px; color: var(--ks-deep); font-weight: 600; letter-spacing: .02em; }
.partner-card p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.partner-card .rel { font-size: 12.5px; color: var(--ink-3); font-style: italic; }
.partner-card .pl { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--ks-deep); text-decoration: none; }
.partner-card .pl:hover { text-decoration: underline; }

/* Formular */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; max-width: 680px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; margin: 6px 0 18px; }
.check-row input { margin-top: 4px; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { border-radius: 8px; padding: 12px 14px; font-size: 14px; margin-bottom: 16px; }
.form-msg.err { background: var(--red-bg); color: #7A2A20; }

@media (max-width: 900px) {
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .partner-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .tool-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .tool-frame { min-height: 700px; }
}

/* Partnerseite: „Bald dabei“ */
.partner-soon { margin-top: 22px; border: 1px dashed var(--line); border-radius: var(--radius); padding: 18px 20px; background: #FAFCFB; }
.partner-soon p { margin: 0 0 12px; font-size: 14px; color: var(--ink-2); }
.soon-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.soon-tag { font-size: 13px; font-weight: 600; color: var(--ks-deep); background: #EAF6F4; border-radius: 20px; padding: 5px 12px; }

/* Rev02: Bild auf „Über 3E-Welt“ */
.about-visual { margin: 0 auto; max-width: 960px; }
.about-visual img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(13,20,32,.12); }
.about-visual figcaption { font-size: 12.5px; color: var(--ink-3); text-align: center; margin-top: 10px; }
/* Rev02: Wortmarke nach Markenkonzept (3E im Verlauf, -Welt in Schriftfarbe) */
.site-header .brand .wordmark span { font-size: inherit; }

/* Rev03: Bild auf „Über 3E-Welt“ sitzt im dunklen Kopfbereich unter dem Einleitungssatz. */
.hero--about .hwrap { padding-bottom: 48px; }
.about-visual--hero { margin: 30px 0 0; max-width: 880px; }
.about-visual--hero img { border-color: rgba(255,255,255,.08); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.about-visual--hero figcaption { text-align: left; color: #8FA7A8; }

/* Rev04: 3E-Wissen – Übersicht und Artikel */
.hero--wissen .hwrap { padding-bottom: 48px; }
.wissen-overview { scroll-margin-top: 100px; }
.wissen-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.wissen-heading-row h2 { margin: 0; }
.wissen-count { flex-shrink: 0; font-size: 12px; color: var(--ink-3); margin: 0 0 4px; }
.wissen-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.wissen-card { display: flex; flex-direction: column; }
.wissen-card-visual { height: 238px; display: flex; align-items: center; justify-content: center; padding: 14px; background: #EAF1F2; border-bottom: 1px solid var(--line); }
.wissen-card-visual img { width: 100%; height: 100%; object-fit: contain; }
.wissen-card .body { flex: 1; display: flex; flex-direction: column; padding: 22px; }
.wissen-card .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 10px; }
.wissen-card .meta span:first-child { color: var(--ks-deep); font-weight: 600; }
.wissen-card h3 { font-size: 19px; line-height: 1.4; letter-spacing: -.02em; margin: 2px 0 12px; color: var(--ink); }
.wissen-card p { font-size: 14px; line-height: 1.65; margin-bottom: 24px; }
.wissen-card-go { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--ks-deep); }
.wissen-card:focus-visible, .article-copy a:focus-visible, .article-sidebar a:focus-visible { outline: 3px solid var(--ks-teal); outline-offset: 4px; }
.hero--article .hwrap { padding-top: 30px; padding-bottom: 44px; }
.hero--article .crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 25px; }
.hero--article h1 { max-width: 32ch; font-size: clamp(28px, 3.7vw, 44px); line-height: 1.22; overflow-wrap: break-word; hyphens: manual; text-wrap: balance; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; color: #A9BEC0; font-size: 12px; margin: 20px 0 0; }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 280px); justify-content: space-between; gap: 56px; padding-top: 42px; align-items: start; }
.article-copy { width: 100%; min-width: 0; }
.article-copy p, .article-copy li { font-size: 16px; line-height: 1.85; overflow-wrap: break-word; }
.article-copy p { margin-bottom: 22px; }
.article-copy .article-lead { color: var(--ink); font-size: 18px; line-height: 1.8; }
.article-copy li { padding-left: 6px; margin-bottom: 16px; }
.article-copy li::marker { color: var(--ks-deep); }
.article-copy strong { color: var(--ink); font-weight: 700; }
.article-media { margin: 28px 0 34px; }
.article-media figure { margin: 0; }
.article-media img { width: auto; max-width: 100%; height: auto; margin: 0 auto; border: 1px solid var(--line); border-radius: 8px; }
.article-media figcaption { font-size: 12px; color: var(--ink-3); line-height: 1.6; margin-top: 10px; }
.article-media figcaption a { display: inline-block; margin-left: 4px; }
.article-media--pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.article-copy .article-source-note, .article-copy .article-original { font-size: 13px; color: var(--ink-3); }
.article-back { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.article-sidebar { position: sticky; top: 106px; }
.article-sidebar-inner { border-top: 3px solid var(--ks-teal); padding-top: 20px; }
.article-sidebar h2 { font-size: 19px; line-height: 1.45; margin: 8px 0 12px; }
.article-sidebar p { color: var(--ink-2); font-size: 13.5px; line-height: 1.7; margin: 0 0 18px; }
.article-sidebar .btn { font-size: 13px; padding: 10px 14px; }
.article-sidebar .article-related-heading { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 16px; }
.article-related-list { list-style: none; padding: 0; margin: 0; }
.article-related-list li { border-bottom: 1px solid var(--line); }
.article-related-list a { display: block; padding: 12px 0; font-size: 13.5px; line-height: 1.6; text-decoration: none; }
.article-related-list a:hover { text-decoration: underline; }
@media (max-width: 1040px) {
  .wissen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 32px; }
}
@media (max-width: 760px) {
  .article-layout { display: block; }
  .article-sidebar { position: static; margin-top: 44px; }
  .article-sidebar-inner { max-width: 760px; }
  .wissen-heading-row { align-items: flex-start; flex-direction: column; gap: 10px; }
  .wissen-heading-row h2 { font-size: 25px; }
}
@media (max-width: 600px) {
  .wissen-grid { grid-template-columns: minmax(0, 1fr); }
  .wissen-card-visual { height: 260px; }
  .hero--wissen h1 { font-size: 34px; }
  .hero--article .hwrap { padding-bottom: 32px; }
  .article-layout { padding-top: 28px; }
  .article-copy p, .article-copy li { font-size: 15px; }
  .article-copy .article-lead { font-size: 17px; }
  .article-media--pair { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
