/* ==========================================================================
   1-class.com · Variante B „modern" · Zusatz zu site.css
   Dunkel als einzige Fassung, Lichtfelder im Hintergrund, Glaskarten.
   Abweichungen vom Auftrag (Abschnitt 9), bewusst für diese Variante:
   Verläufe im Hintergrund, feine Kontur an Karten, Liniensymbole, ein
   hellerer Blauton für das Leuchten. Lime bleibt bei den zwei Schaltflächen.
   ========================================================================== */
:root {
  color-scheme: dark;
  --surface: #0B0C2E;
  --surface-raised: rgba(255, 255, 255, .045);
  --surface-sunken: #080922;
  --ink-strong: #FFFFFF;
  --ink-head: #FFFFFF;
  --ink: #FFFFFF;
  --ink-muted: #C6C9E0;
  --inv: #FFFFFF;
  --inv-label: #C6C9E0;
  --navy: transparent;
  --navy-raised: rgba(255, 255, 255, .05);
  --focus: #FFFFFF;

  --b-grund: #0B0C2E;
  --b-linie: rgba(198, 201, 224, .16);
  --b-linie-stark: rgba(198, 201, 224, .34);
  --b-glas: rgba(255, 255, 255, .045);
  --b-glas-hover: rgba(255, 255, 255, .075);
  --b-licht-1: rgba(72, 92, 232, .50);
  --b-licht-2: rgba(30, 42, 120, .75);
  --b-licht-3: rgba(72, 92, 232, .26);
  --b-tiefe: 0 24px 64px rgba(3, 4, 20, .55);
  --b-cta: 0 0 0 1px rgba(201, 221, 3, .45), 0 14px 44px rgba(201, 221, 3, .28);
  --b-cta-hover: 0 0 0 1px rgba(201, 221, 3, .7), 0 18px 56px rgba(201, 221, 3, .40);
  /* Zusatzfarben je Säule: Apricot Blush und Taupe aus der CI,
     das helle Blau ist die aufgehellte Stufe des Leuchtens (Abweichung). */
  --b-energie: #8FA2FF;
  --b-mgmt: #F2D1C9;
  --b-werk: #B6A39E;
  --b-logo: #FFFFFF;
  --b-logo-ink: #474B6D;
  --b-logo-strong: #16184E;

  /* Diagramme laufen in dieser Variante dunkel */
  --d-box: rgba(255, 255, 255, .03);
  --d-tile: rgba(255, 255, 255, .06);
  --d-strong: #FFFFFF;
  --d-head: #FFFFFF;
  --d-ink: #FFFFFF;
  --d-faint: #C6C9E0;
  --emboss: inset 0 0 0 1px var(--b-linie);
}

html { background: var(--b-grund); scroll-padding-top: 88px; }
body { background: transparent; position: relative; }

/* Lichtfelder und Raster, fest hinter dem Inhalt */
body::before, body::after { content: ""; position: fixed; inset: 0; pointer-events: none; }
body::before {
  z-index: -2;
  background:
    radial-gradient(62vw 54vh at 88% -6%, var(--b-licht-1), transparent 62%),
    radial-gradient(52vw 56vh at -12% 38%, var(--b-licht-2), transparent 62%),
    radial-gradient(44vw 44vh at 72% 96%, var(--b-licht-3), transparent 62%),
    var(--b-grund);
  animation: b-drift 26s ease-in-out infinite alternate;
}
body::after {
  z-index: -1;
  background-image:
    linear-gradient(var(--b-linie) 1px, transparent 1px),
    linear-gradient(90deg, var(--b-linie) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: .5;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 18%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 18%, #000 20%, transparent 78%);
}
@keyframes b-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-3%, 2.5%, 0) scale(1.08); }
}

/* Kopf: haftet, Milchglas */
.top {
  position: sticky; top: 0; z-index: 5;
  background: rgba(11, 12, 46, .62);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--b-linie);
}
.nav a { border-radius: 999px; padding: 10px 14px; }
.nav a:hover { background: var(--b-glas-hover); text-decoration: none; }

/* Hero */
.hero { background: transparent; }
.hero__in { padding-top: clamp(56px, 11vw, 148px); padding-bottom: clamp(56px, 8vw, 104px); min-height: min(86vh, 860px); display: flex; flex-direction: column; justify-content: center; }
.hero__tex {
  opacity: .95;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 72%, #000 100%), linear-gradient(#000 70%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 30%, #000 72%, #000 100%), linear-gradient(#000 70%, transparent);
  mask-composite: intersect;
}
.hero .eyebrow {
  display: inline-block; align-self: flex-start; margin-bottom: 28px;
  padding: 8px 14px; border: 1px solid var(--b-linie-stark); border-radius: 999px;
  background: var(--b-glas); font-size: 12px; letter-spacing: .14em;
}
.hero h1 { font-size: clamp(46px, 9.4vw, 112px); line-height: .98; letter-spacing: -.03em; font-weight: 500; max-width: 11ch; }
.hero .lede { font-size: clamp(18px, 1.9vw, 22px); max-width: 46ch; margin-top: 28px; }
.hero__cta { margin-top: 40px; }

.hero__stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  margin: clamp(48px, 7vw, 88px) 0 0; padding: 0; list-style: none; max-width: 860px;
  border-top: 1px solid var(--b-linie);
}
.hero__stats li { padding: 20px 24px 0 0; }
.hero__stats li + li { padding-left: 24px; border-left: 1px solid var(--b-linie); }
.hero__stats strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: clamp(32px, 4.4vw, 52px); line-height: 1; letter-spacing: -.02em; color: var(--inv-strong); }
.hero__stats span { display: block; margin-top: 10px; font-size: 14px; line-height: 1.35; color: var(--inv); }
@media (max-width: 620px) {
  .hero__stats { grid-template-columns: 1fr; }
  .hero__stats li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--b-linie); margin-top: 20px; }
}

/* Abschnitte: Zählmarke über jeder Überschrift */
main { counter-reset: abschnitt; }
.sec { padding: clamp(72px, 10vw, 136px) 0; }
main > .sec:not(.legal) { counter-increment: abschnitt; }
main > .sec:not(.legal) .sec__head::before {
  content: "0" counter(abschnitt);
  display: block; margin-bottom: 20px;
  font-size: 13px; font-weight: 600; letter-spacing: .16em; color: var(--inv-label);
  padding-top: 20px; border-top: 1px solid var(--b-linie); max-width: 120px;
}
h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -.02em; max-width: 22ch; }
.sec__head { margin-bottom: 48px; }
.sec__head p { font-size: 18px; max-width: 58ch; margin-top: 20px; }

/* Glaskarten */
.card, .panel-dark, .diag, .portrait {
  background: var(--b-glas);
  border: 1px solid var(--b-linie);
  box-shadow: var(--b-tiefe);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.card::after, .btn::after, .portrait::after { content: none; }
.card { transition: transform .2s ease-out, border-color .2s ease-out, background-color .2s ease-out; }
.card:hover { transform: translateY(-3px); border-color: var(--b-linie-stark); background: var(--b-glas-hover); }
.card .beleg { padding-top: 16px; border-top: 1px solid var(--b-linie); font-size: 14px; }
.diag { padding: clamp(16px, 3vw, 40px); }
.panel-dark { padding: clamp(8px, 2vw, 24px); }
.f-cell { fill: rgba(255, 255, 255, .05); stroke: rgba(198, 201, 224, .16); stroke-width: 1; }
.f-tile { stroke: rgba(198, 201, 224, .14); stroke-width: 1; }
.f-navy { fill: #2B3BB8; }
.f-cobalt { fill: #FFFFFF; }
.svg-todo { fill: var(--warn); }

/* Liniensymbole der Leistungsfelder */
.ico { display: block; width: 44px; height: 44px; margin-bottom: 24px; fill: none; stroke: var(--inv-strong); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.ico .ico-2 { stroke: var(--inv-label); }

/* Schaltflächen */
.btn { background: var(--b-glas); color: var(--inv-strong); border: 1px solid var(--b-linie-stark); box-shadow: none; border-radius: 999px; }
.btn:hover { background: var(--b-glas-hover); box-shadow: none; }
.btn--cta, .hero .btn--cta, .panel-dark .btn--cta { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: var(--b-cta); }
.btn--cta:hover, .hero .btn--cta:hover, .panel-dark .btn--cta:hover { background: var(--accent); box-shadow: var(--b-cta-hover); transform: translateY(-1px); }

/* Listen, Kontakt, Fuß */
.list li { border-bottom: 1px solid var(--b-linie); padding: 16px 0 16px 24px; }
.list li::before { background: var(--inv-label); top: 27px; width: 10px; height: 1px; }
.kontakt dd { font-size: 20px; }
.foot { background: transparent; border-top: 1px solid var(--b-linie); }
a { color: var(--inv-strong); }
.skip { color: #16184E; }

/* Mandatsseite: Logos bleiben auf Weiß */
.mandat__logo, .legal .logos li { background: var(--b-logo); border: 0; }
.logos span { color: var(--b-logo-ink); }
.logos .logos__text { color: var(--b-logo-strong); }
.legal h1 { font-size: clamp(38px, 6vw, 72px); letter-spacing: -.02em; max-width: 18ch; }
.legal h2 { font-size: clamp(32px, 3.4vw, 40px); max-width: 26ch; }

@media (max-width: 480px) {
  .panel-dark { padding: 4px; }
  .diag { padding: 12px; }
}
@media print { body::before, body::after { display: none; } }

/* Bewegung: nur wenn der Besucher sie nicht abgestellt hat */
@keyframes b-auf { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
@keyframes b-zeichnen { from { stroke-dashoffset: 70; } to { stroke-dashoffset: 0; } }
@keyframes b-raster { from { background-position: 0 0, 0 0; } to { background-position: 0 72px, 72px 0; } }
@media (prefers-reduced-motion: no-preference) {
  body::after { animation: b-raster 18s linear infinite; }
  .hero .eyebrow, .hero h1, .hero .lede, .hero__cta, .hero__stats { animation: b-auf .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero h1 { animation-delay: .08s; }
  .hero .lede { animation-delay: .2s; }
  .hero__cta { animation-delay: .32s; }
  .hero__stats { animation-delay: .46s; }
  .ico > * { stroke-dasharray: 70; }
  .card:hover .ico > * { animation: b-zeichnen 1s ease-out both; }
  @supports (animation-timeline: view()) {
    .sec__head, .saeule, .card, .fig, .list li, .legal .logos li, .logos--band li, .kontakt > * {
      animation: b-auf linear both; animation-timeline: view(); animation-range: entry 0% entry 42%;
    }
    .card:hover .ico > * { animation: b-zeichnen 1s ease-out both; animation-timeline: auto; }
  }
}

/* Telefon: Grafik tritt hinter den Text zurück */
@media (max-width: 760px) { .hero__tex { opacity: .4; } }

/* Schrift: Fließtext rein weiß, Labels in Nebeltext */
body { color: var(--ink); }
.card .beleg { color: var(--ink-muted); }
.card .beleg strong { color: var(--ink-strong); }
.hero__note, .fig figcaption, .hero__stats span { color: var(--ink-muted); }
.card h4 { font-family: var(--font); font-size: 19px; line-height: 1.3; font-weight: 600; color: var(--ink-strong); margin: 0 0 8px; }

/* Leistungen in zwei Säulen plus Werkzeuge */
.saeule { --s: var(--b-energie); display: grid; gap: 8px 32px; align-items: baseline; margin: 72px 0 28px; padding-top: 24px; border-top: 1px solid var(--b-linie); }
.sec__head + .saeule { margin-top: 0; }
.saeule--mgmt { --s: var(--b-mgmt); }
.saeule--werk { --s: var(--b-werk); }
.saeule__titel { font-family: var(--font-display); font-weight: 500; font-size: clamp(32px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -.015em; color: var(--ink-strong); margin: 0; display: flex; align-items: center; gap: 16px; }
.saeule__titel::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--s); box-shadow: 0 0 24px var(--s); }
.saeule__satz { margin: 0; max-width: 62ch; color: var(--ink-muted); font-size: 17px; }
@media (min-width: 960px) { .saeule { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.saeule-karten--energie .ico .ico-2 { stroke: var(--b-energie); }
.saeule-karten--mgmt .ico .ico-2 { stroke: var(--b-mgmt); }
.saeule-karten--werk .ico .ico-2 { stroke: var(--b-werk); }

/* Mandate: Logoband auf der Startseite */
.logoband { display: block; text-decoration: none; }
.logos--band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.logos--band li { background: var(--b-logo); border-radius: 14px; height: 88px; padding: 14px 16px; display: flex; align-items: center; justify-content: center; max-width: none; transition: transform .2s ease-out; }
.logos--band img { max-height: 44px; margin: 0; }
.logoband:hover li { transform: translateY(-2px); }
@media (min-width: 1041px) { .logos--band { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (max-width: 520px) { .logos--band { grid-template-columns: repeat(2, minmax(0, 1fr)); } .logos--band li { height: 72px; } }
.logoband__mehr { margin: 24px 0 0; }
.treue { margin: 56px 0; }
@media (max-width: 480px) {
  .nav { gap: 0; flex-wrap: nowrap; }
  .nav a { padding: 10px 8px; font-size: 14px; }
}

/* Bildmarke im Kopf */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__logo { height: 40px; width: auto; flex: none; }
@media (max-width: 480px) { .brand__logo { height: 32px; } .brand { gap: 8px; } }

/* Diagramm Vertrag gegen Spot */
.hedge { margin: 40px 0 0; }
.hedge__titel { font-family: var(--font); font-size: clamp(19px, 2vw, 24px); line-height: 1.3; font-weight: 600; color: var(--ink-strong); margin: 0 0 20px; max-width: 44ch; }
.l-raster { fill: none; stroke: rgba(198, 201, 224, .16); stroke-width: 1; }
.l-vertrag { fill: none; stroke: #FFFFFF; stroke-width: 3; stroke-linejoin: round; }
.l-spot { fill: none; stroke: var(--b-energie); stroke-width: 2.5; stroke-dasharray: 7 6; }
.p-spot { fill: var(--b-energie); }
.a-vorteil { fill: rgba(143, 162, 255, .22); }
.fs-56 { font-size: 56px; } .fs-60 { font-size: 60px; }

/* Stimmen von Auftraggebern */
.stimme { margin: 0; display: flex; flex-direction: column; gap: 24px; }
.stimme blockquote { margin: 0; }
.stimme blockquote p { margin: 0; font-size: 20px; line-height: 1.45; color: var(--ink-strong); }
.stimme figcaption { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--b-linie); font-size: 14px; color: var(--ink-muted); }
.stimme figcaption strong { color: var(--ink-strong); }
@media (max-width: 480px) { .brand { font-size: 0; gap: 0; } .brand__logo { height: 36px; } }
@media (max-width: 860px) { .nav { flex-wrap: nowrap; gap: 0 4px; } }

/* Mandatskarte mit zwei Logos nebeneinander */
.mandat__logo--paar { display: flex; gap: 16px; align-items: center; justify-content: center; }
.mandat__logo--paar img { width: auto; max-width: 45%; height: auto; max-height: 96px; margin: 0; }
.mandat__logo img { max-height: 110px; width: auto; max-width: 100%; height: auto; }
