/* ==========================================================================
   DONAU ENERGIESYSTEME — Design System v2
   Direction: premium German engineering × calm architectural confidence.
   No external fonts, no stock gradients, no AI-website clichés.
   ========================================================================== */

:root {
  /* ---------- Color ---------- */
  --bg:            #F6F5F2;   /* warm off-white, not cream-cliché — cooled slightly */
  --bg-pure:       #FFFFFF;
  --ink:           #12100E;   /* near-black, warm undertone for body text */
  --ink-soft:      #4A4844;
  --line:          #E1DFD9;
  --line-strong:   #C9C6BE;

  --graphite:      #1B1D1F;   /* deep charcoal surfaces */
  --graphite-soft: #26282B;
  --graphite-line: rgba(246,245,242,0.12);
  --graphite-text: #F6F5F2;
  --graphite-text-muted: rgba(246,245,242,0.62);

  --deep-blue:     #041A2F;   /* night-sky / blackout base */
  --donau-blue:    #0A5FB8;   /* primary brand blue */
  --donau-blue-dk: #073F7C;
  --electric:      #2E9CFF;   /* accent — energy, motion, active states */
  --electric-soft: rgba(46,156,255,0.14);
  --amber:         #D98A2B;   /* single warm accent — outage / warning states only */

  /* ---------- Spacing ---------- */
  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2.25rem; --sp-7: 3.5rem; --sp-8: 5.5rem; --sp-9: 8.5rem;

  /* ---------- Radius / Shadow ---------- */
  --r-sm: 4px; --r-md: 10px; --r-lg: 18px; --r-pill: 999px;
  --sh-md: 0 12px 32px rgba(4,26,47,0.08), 0 2px 6px rgba(4,26,47,0.05);
  --sh-lg: 0 32px 80px rgba(4,26,47,0.18), 0 6px 16px rgba(4,26,47,0.08);

  /* ---------- Layout ---------- */
  --container: 1320px;
  --container-narrow: 860px;
  --edge: clamp(1.25rem, 5vw, 4rem);

  /* ---------- Type ----------
     No external font files available in this environment (no network
     access to fetch Inter/Manrope/Geist). Using a refined system-UI
     stack instead — SF Pro / Segoe UI Variable / Roboto are the closest
     native equivalents and guarantee zero external requests. Swap in
     self-hosted Inter/Manrope .woff2 files under /assets/fonts/ later
     if desired — see README.
  ---------- */
  --font-display: -apple-system, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 180ms; --t-med: 420ms; --t-slow: 900ms;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
body {
  font-family: var(--font-body);
  font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.015em; line-height: 1.05; }
:focus-visible { outline: 2.5px solid var(--electric); outline-offset: 3px; border-radius: 3px; }

.skip-link { position: absolute; left: var(--sp-4); top: -60px; background: var(--ink); color: #fff; padding: var(--sp-3) var(--sp-5); border-radius: var(--r-sm); z-index: 999; transition: top var(--t-fast) var(--ease); }
.skip-link:focus { top: var(--sp-4); }

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--edge); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--sp-9); position: relative; }
.section--tight { padding-block: var(--sp-7); }
.section--dark { background: var(--graphite); color: var(--graphite-text); }
.section--dark p { color: var(--graphite-text-muted); }
.section--night { background: var(--deep-blue); color: #fff; }

.eyebrow { display: inline-flex; align-items: center; gap: var(--sp-2); font-family: var(--font-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--donau-blue); font-weight: 600; margin-bottom: var(--sp-5); }
.section--dark .eyebrow, .section--night .eyebrow { color: var(--electric); }
.eyebrow::before { content: ""; width: 20px; height: 1.5px; background: currentColor; }

.giant-heading { font-size: clamp(2.6rem, 6vw, 5.5rem); line-height: 1.02; letter-spacing: -0.02em; }
.section-lede { max-width: 620px; }
.section-lede p { color: var(--ink-soft); font-size: 1.1rem; max-width: 56ch; }
.section--dark .section-lede p, .section--night .section-lede p { color: var(--graphite-text-muted); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); padding: 1rem 1.75rem; border-radius: var(--r-pill); font-weight: 600; font-size: .98rem; white-space: nowrap; transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.btn svg { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--donau-blue); color: #fff; }
.btn--primary:hover { background: var(--donau-blue-dk); box-shadow: var(--sh-md); }
.btn--onDark { background: #fff; color: var(--ink); }
.btn--onDark:hover { background: var(--electric-soft); }
.btn--ghost { background: transparent; color: inherit; border: 1.5px solid var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghost-dark { background: transparent; color: #fff; border: 1.5px solid var(--graphite-line); }
.btn--ghost-dark:hover { border-color: #fff; }
.btn--sm { padding: .68rem 1.25rem; font-size: .88rem; }
.btn--block { width: 100%; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding-block: var(--sp-5); transition: background var(--t-med) var(--ease), backdrop-filter var(--t-med) var(--ease), padding var(--t-med) var(--ease), border-color var(--t-med) var(--ease); border-bottom: 1px solid transparent; }
.site-nav.is-scrolled { background: rgba(18,16,14,0.72); backdrop-filter: blur(16px) saturate(140%); padding-block: var(--sp-3); border-color: var(--graphite-line); }
.site-nav.is-light { color: var(--ink); }
.site-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6); }

.brand { display: flex; align-items: center; gap: var(--sp-3); color: #fff; }
.site-nav.is-light:not(.is-scrolled) .brand { color: var(--ink); }
.brand__mark { width: 30px; height: 30px; flex-shrink: 0; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; }

.nav-links { display: none; align-items: center; gap: var(--sp-6); }
.nav-links > li { position: relative; }
.nav-links a, .nav-links button { font-size: .93rem; font-weight: 500; color: rgba(255,255,255,0.7); padding-block: var(--sp-2); display: inline-flex; align-items: center; gap: 5px; transition: color var(--t-fast) var(--ease); }
.site-nav.is-light:not(.is-scrolled) .nav-links a, .site-nav.is-light:not(.is-scrolled) .nav-links button { color: var(--ink-soft); }
.nav-links a:hover, .nav-links button:hover, .nav-links a.is-active { color: #fff; }
.site-nav.is-light:not(.is-scrolled) .nav-links a:hover { color: var(--ink); }
.nav-links button svg { width: 12px; height: 12px; transition: transform var(--t-fast) var(--ease); }
.nav-links li.is-open button svg { transform: rotate(180deg); }

.mega { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px); width: min(760px, 86vw); padding-top: 20px; opacity: 0; pointer-events: none; transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.nav-links li.is-open .mega { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mega__panel { background: var(--bg-pure); border-radius: var(--r-lg); box-shadow: var(--sh-lg); padding: var(--sp-6); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.mega__panel--single { grid-template-columns: 1fr; }
.mega__col h5 { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: var(--sp-4); }
.mega__col a { display: block; color: var(--ink); font-size: .95rem; font-weight: 500; padding-block: var(--sp-2); }
.mega__col a:hover { color: var(--donau-blue); }
.mega__col a span { display: block; font-weight: 400; font-size: .8rem; color: var(--ink-soft); margin-top: 1px; }

.nav-right { display: flex; align-items: center; gap: var(--sp-4); }
.nav-cta { display: none; }
.nav-toggle { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: #fff; }
.site-nav.is-light:not(.is-scrolled) .nav-toggle { color: var(--ink); }
.nav-toggle svg { width: 20px; height: 20px; }

@media (min-width: 960px) { .nav-links { display: flex; } .nav-cta { display: inline-flex; } .nav-toggle { display: none; } }

.mobile-nav { position: fixed; inset: 0; background: var(--ink); z-index: 200; transform: translateY(-100%); transition: transform var(--t-med) var(--ease); padding: var(--sp-5) var(--edge); overflow-y: auto; }
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-7); }
.mobile-nav__close { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: #fff; }
.mobile-nav__links a { display: block; font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: #fff; padding-block: var(--sp-3); border-bottom: 1px solid var(--graphite-line); }
.mobile-nav__foot { margin-top: var(--sp-7); display: flex; flex-direction: column; gap: var(--sp-4); }
.mobile-nav__foot a.tel { color: #fff; font-weight: 600; font-size: 1.05rem; }

/* ==========================================================================
   Breadcrumb (subpages)
   ========================================================================== */
.breadcrumb { display: flex; flex-wrap: wrap; gap: var(--sp-2); font-size: .82rem; color: var(--ink-soft); padding-top: 120px; }
.breadcrumb a:hover { color: var(--donau-blue); }
.breadcrumb span[aria-hidden] { opacity: .5; }

/* ==========================================================================
   Hero (homepage — cinematic, near full viewport)
   ========================================================================== */
.hero { position: relative; min-height: 92vh; display: flex; align-items: flex-end; background: var(--deep-blue); color: #fff; overflow: hidden; padding-bottom: var(--sp-8); }
.hero__scene { position: absolute; inset: 0; }
.hero__scene svg { width: 100%; height: 100%; }
.hero__scrim { position: absolute; inset: 0; background:
  linear-gradient(78deg, rgba(4,26,47,0.9) 0%, rgba(4,26,47,0.62) 38%, rgba(4,26,47,0.16) 66%, rgba(4,26,47,0.3) 100%),
  linear-gradient(180deg, rgba(4,26,47,0.18) 0%, rgba(4,26,47,0) 45%, rgba(4,26,47,0.55) 100%); }
.hero__content { position: relative; width: 100%; }
.hero h1 { font-size: clamp(3rem, 8vw, 7.5rem); line-height: .98; letter-spacing: -0.03em; margin-bottom: var(--sp-5); }
.hero h1 .line { display: block; }
.hero h1 .line--accent { color: var(--electric); }
.hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: rgba(255,255,255,0.78); max-width: 44ch; margin-bottom: var(--sp-6); }
.hero__region { font-family: var(--font-mono); font-size: .82rem; letter-spacing: .06em; color: rgba(255,255,255,0.55); margin-bottom: var(--sp-6); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.hero__scroll { position: absolute; bottom: var(--sp-6); left: var(--edge); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; color: rgba(255,255,255,0.55); display: flex; align-items: center; gap: var(--sp-2); }
.hero__scroll::after { content: ""; width: 1px; height: 26px; background: linear-gradient(180deg, rgba(255,255,255,0.6), transparent); animation: scrollpulse 2.2s var(--ease) infinite; }
@keyframes scrollpulse { 0%,100% { opacity: .3; } 50% { opacity: 1; } }

/* ==========================================================================
   Statement sections (big text, scroll reveal)
   ========================================================================== */
.statement { padding-block: var(--sp-9); text-align: center; }
.statement__text { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 4.4vw, 3.6rem); line-height: 1.18; letter-spacing: -0.02em; max-width: 22ch; margin-inline: auto; color: var(--ink-soft); }
.statement__text strong { color: var(--ink); font-weight: 600; }
.section--dark .statement__text, .section--night .statement__text { color: var(--graphite-text-muted); }
.section--dark .statement__text strong, .section--night .statement__text strong { color: #fff; }

/* ==========================================================================
   Energy system diagram (isometric-style, signature element)
   ========================================================================== */
.system { background: var(--graphite); color: var(--graphite-text); }
.system__scenarios { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-7); }
.system__scenarios button { padding: .6rem 1.15rem; border-radius: var(--r-pill); font-size: .85rem; font-weight: 600; color: var(--graphite-text-muted); border: 1px solid var(--graphite-line); transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.system__scenarios button.is-active { background: var(--electric); color: #06121F; border-color: var(--electric); }
.system__stage { background: var(--graphite-soft); border: 1px solid var(--graphite-line); border-radius: var(--r-lg); padding: var(--sp-6); }
.system__diagram { width: 100%; height: auto; }
.sys-label { font-family: var(--font-body); font-size: 12.5px; fill: var(--graphite-text); font-weight: 600; }
.sys-sub { font-family: var(--font-mono); font-size: 10px; fill: rgba(246,245,242,0.5); }
.sys-node { fill: var(--graphite); stroke: rgba(246,245,242,0.16); stroke-width: 1.5; transition: stroke var(--t-med) var(--ease), fill var(--t-med) var(--ease); }
.sys-node.is-active { stroke: var(--electric); }
.sys-node.is-warn { stroke: var(--amber); }
.sys-path { stroke: rgba(246,245,242,0.14); stroke-width: 2; fill: none; transition: stroke var(--t-med) var(--ease); }
.sys-path.is-active { stroke: var(--electric); }
.sys-path.is-warn { stroke: var(--amber); }
.sys-dot { fill: var(--electric); opacity: 0; }
.system__caption { margin-top: var(--sp-5); color: var(--graphite-text-muted); max-width: 62ch; }

/* ==========================================================================
   Blackout / Notstrom section (night visual, before/after toggle)
   ========================================================================== */
.blackout { background: var(--deep-blue); color: #fff; }
.blackout__stage { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgba(255,255,255,0.08); }
.blackout__svg { width: 100%; height: auto; display: block; }
.blackout__toggle { display: inline-flex; background: rgba(255,255,255,0.06); border-radius: var(--r-pill); padding: 4px; margin-bottom: var(--sp-6); border: 1px solid rgba(255,255,255,0.1); }
.blackout__toggle button { padding: .6rem 1.2rem; border-radius: var(--r-pill); font-size: .85rem; font-weight: 600; color: rgba(255,255,255,0.6); }
.blackout__toggle button.is-active { background: #fff; color: var(--deep-blue); }
.blackout__caption { margin-top: var(--sp-5); color: rgba(255,255,255,0.65); max-width: 56ch; }
.blk-window { transition: fill var(--t-slow) var(--ease), opacity var(--t-slow) var(--ease); }
.blk-street-window { transition: fill var(--t-slow) var(--ease); }

/* ==========================================================================
   Split screen (Wattschmiede)
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; min-height: 640px; } }
.split__panel { padding: var(--sp-8) var(--edge); display: flex; flex-direction: column; justify-content: center; }
.split__panel--dark { background: var(--ink); color: #fff; }
.split__panel--dark p { color: rgba(255,255,255,0.68); }
.split__panel--visual { background: var(--graphite-soft); display: flex; align-items: center; justify-content: center; padding: var(--sp-7); }
.split__panel--visual svg { width: 100%; max-width: 460px; }

/* ==========================================================================
   Card grids (services / outcomes / knowledge)
   ========================================================================== */
.grid-3 { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); }
@media (min-width: 780px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.tile { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-6); background: var(--bg-pure); transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease); }
.tile:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.tile__icon { width: 42px; height: 42px; border-radius: var(--r-md); background: var(--electric-soft); color: var(--donau-blue); display: flex; align-items: center; justify-content: center; margin-bottom: var(--sp-5); }
.tile__icon svg { width: 22px; height: 22px; }
.tile h3 { font-size: 1.15rem; margin-bottom: var(--sp-3); }
.tile p { color: var(--ink-soft); font-size: .96rem; }
.tile__link { display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: 600; font-size: .9rem; color: var(--donau-blue); margin-top: var(--sp-4); }
.tile__link svg { width: 15px; height: 15px; transition: transform var(--t-fast) var(--ease); }
.tile__link:hover svg { transform: translateX(3px); }

.service-tile { position: relative; border-radius: var(--r-lg); padding: var(--sp-6); background: var(--ink); color: #fff; overflow: hidden; min-height: 300px; display: flex; flex-direction: column; transition: transform var(--t-med) var(--ease); }
.service-tile:hover { transform: translateY(-4px); }
.service-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, var(--electric-soft), transparent 55%); pointer-events: none; }
.service-tile__num { font-family: var(--font-mono); font-size: .72rem; color: var(--electric); margin-bottom: var(--sp-4); position: relative; }
.service-tile h3 { font-size: 1.4rem; margin-bottom: var(--sp-3); position: relative; }
.service-tile p { color: rgba(255,255,255,0.68); font-size: .95rem; margin-bottom: var(--sp-5); flex-grow: 1; position: relative; }
.service-tile a { position: relative; display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: 600; font-size: .92rem; color: #fff; }
.service-tile a svg { width: 15px; height: 15px; transition: transform var(--t-fast) var(--ease); }
.service-tile a:hover svg { transform: translateX(3px); }

/* ==========================================================================
   Region map
   ========================================================================== */
.region-map__wrap { display: grid; grid-template-columns: 1fr; gap: var(--sp-7); align-items: center; }
@media (min-width: 980px) { .region-map__wrap { grid-template-columns: 1fr 1fr; } }
.region-map svg { width: 100%; height: auto; }
.region-ring { fill: none; stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 5; }
.region-city { fill: var(--ink); }
.region-city.is-hub { fill: var(--donau-blue); }
.region-city-label { font-family: var(--font-mono); font-size: 10px; fill: var(--ink-soft); }
.region-list { display: flex; flex-direction: column; gap: 0; }
.region-list li { display: flex; justify-content: space-between; padding-block: var(--sp-4); border-bottom: 1px solid var(--line); font-weight: 500; }
.region-list li span { color: var(--ink-soft); font-family: var(--font-mono); font-size: .8rem; }

/* ==========================================================================
   Process / steps
   ========================================================================== */
.process { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); }
@media (min-width: 780px) { .process { grid-template-columns: repeat(4, 1fr); } }
.process-step__num { font-family: var(--font-mono); font-size: .82rem; color: var(--donau-blue); margin-bottom: var(--sp-4); }
.process-step h4 { font-size: 1.05rem; margin-bottom: var(--sp-2); }
.process-step p { font-size: .92rem; color: var(--ink-soft); }

/* ==========================================================================
   Dashboard mockup (monitoring visual)
   ========================================================================== */
.dashboard { background: var(--graphite-soft); border: 1px solid var(--graphite-line); border-radius: var(--r-lg); padding: var(--sp-6); }
.dashboard__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); margin-bottom: var(--sp-5); }
@media (min-width: 640px) { .dashboard__grid { grid-template-columns: repeat(4, 1fr); } }
.dashboard__metric { background: var(--graphite); border-radius: var(--r-md); padding: var(--sp-5); }
.dashboard__metric .label { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; color: rgba(246,245,242,0.5); margin-bottom: var(--sp-3); }
.dashboard__metric .value { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: #fff; }
.dashboard__metric .value span { font-size: .95rem; color: var(--electric); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding-block: var(--sp-5); text-align: left; font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }
.faq-item__q svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform var(--t-med) var(--ease); color: var(--donau-blue); }
.faq-item[data-open="true"] .faq-item__q svg { transform: rotate(45deg); }
.faq-item__a { max-height: 0; overflow: hidden; transition: max-height var(--t-med) var(--ease); }
.faq-item__a-inner { padding-bottom: var(--sp-5); color: var(--ink-soft); max-width: 68ch; }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-field { margin-bottom: var(--sp-5); }
.form-field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: var(--sp-2); }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: .9rem 1rem; border: 1.5px solid var(--line-strong); border-radius: var(--r-md); background: var(--bg-pure); font-size: .98rem; transition: border-color var(--t-fast) var(--ease); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--donau-blue); }
.form-row { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
@media (min-width: 560px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.form-field--checkbox { display: flex; align-items: flex-start; gap: var(--sp-3); }
.form-field--checkbox input { width: auto; margin-top: 3px; }
.form-field--checkbox label { font-weight: 400; font-size: .88rem; color: var(--ink-soft); }
.form-error { font-size: .82rem; color: #B3261E; margin-top: var(--sp-2); display: none; }
.form-field.has-error input, .form-field.has-error select { border-color: #B3261E; }
.form-field.has-error .form-error { display: block; }
.honeypot-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

/* Finder */
.finder { background: var(--bg-pure); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-lg); overflow: hidden; }
.finder__head { padding: var(--sp-6) var(--sp-6) var(--sp-5); border-bottom: 1px solid var(--line); }
.finder__progress { height: 4px; background: var(--line); border-radius: var(--r-pill); overflow: hidden; margin-top: var(--sp-4); }
.finder__progress-bar { height: 100%; width: 10%; background: var(--donau-blue); border-radius: var(--r-pill); transition: width var(--t-med) var(--ease); }
.finder__meta { display: flex; justify-content: space-between; margin-top: var(--sp-3); font-size: .82rem; color: var(--ink-soft); font-family: var(--font-mono); }
.finder__body { padding: var(--sp-6); min-height: 320px; }
.finder__step { display: none; }
.finder__step.is-active { display: block; animation: fade-in var(--t-med) var(--ease); }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.finder__step h3 { font-size: 1.35rem; margin-bottom: var(--sp-2); }
.finder__step-hint { color: var(--ink-soft); font-size: .94rem; margin-bottom: var(--sp-5); }
.option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--sp-3); }
.option-card { position: relative; border: 1.5px solid var(--line-strong); border-radius: var(--r-md); padding: var(--sp-4); text-align: left; transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease); font-weight: 600; font-size: .95rem; display: flex; align-items: center; gap: var(--sp-3); min-height: 58px; }
.option-card:hover { border-color: var(--donau-blue); }
.option-card input { position: absolute; opacity: 0; pointer-events: none; }
.option-card.is-selected { border-color: var(--donau-blue); background: var(--electric-soft); }
.option-card__check { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-strong); flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease); }
.option-card.is-selected .option-card__check { border-color: var(--donau-blue); background: var(--donau-blue); }
.option-card__check svg { width: 12px; height: 12px; color: #fff; opacity: 0; transition: opacity var(--t-fast) var(--ease); }
.option-card.is-selected .option-card__check svg { opacity: 1; }
.finder__foot { padding: var(--sp-5) var(--sp-6); border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); }
.finder__success { text-align: center; padding: var(--sp-7) var(--sp-5); display: none; }
.finder__success.is-active { display: block; }
.finder__success-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--electric-soft); color: var(--donau-blue); display: flex; align-items: center; justify-content: center; margin: 0 auto var(--sp-5); }
.finder__success-icon svg { width: 28px; height: 28px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.6); }
.footer__cta { padding-block: var(--sp-8); border-bottom: 1px solid var(--graphite-line); text-align: center; }
.footer__cta .giant-heading { color: #fff; margin-bottom: var(--sp-6); }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-7); padding-block: var(--sp-7); }
@media (min-width: 780px) { .footer__grid { grid-template-columns: 1.3fr repeat(4, 1fr); } }
.footer__brand p { max-width: 32ch; font-size: .9rem; margin-top: var(--sp-4); }
.footer__col h5 { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: var(--sp-4); }
.footer__col ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer__col a { font-size: .9rem; transition: color var(--t-fast) var(--ease); }
.footer__col a:hover { color: #fff; }
.footer__bottom { padding-block: var(--sp-5); border-top: 1px solid var(--graphite-line); display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between; font-size: .82rem; }
.footer__legal { display: flex; gap: var(--sp-5); flex-wrap: wrap; }
.footer__legal a:hover { color: #fff; }

/* ==========================================================================
   Sticky mobile CTA
   ========================================================================== */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; gap: 1px; background: var(--line); padding-bottom: env(safe-area-inset-bottom, 0); box-shadow: 0 -6px 24px rgba(4,26,47,0.14); transform: translateY(0); transition: transform var(--t-med) var(--ease); }
.mobile-cta.is-hidden { transform: translateY(100%); }
.mobile-cta a { flex: 1; display: flex; align-items: center; justify-content: center; gap: var(--sp-2); padding-block: var(--sp-4); font-weight: 700; font-size: .93rem; }
.mobile-cta a svg { width: 17px; height: 17px; }
.mobile-cta a.call { background: var(--ink); color: #fff; }
.mobile-cta a.request { background: var(--donau-blue); color: #fff; }
@media (min-width: 960px) { .mobile-cta { display: none; } }

/* ==========================================================================
   Reveal / utility
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

.badge-config { font-family: var(--font-mono); font-size: .66rem; background: var(--electric-soft); color: var(--donau-blue-dk); border: 1px dashed var(--donau-blue); padding: .1rem .4rem; border-radius: 4px; white-space: nowrap; }

/* Standard content page shell (subpages) */
.page-hero { background: var(--ink); color: #fff; padding-top: 180px; padding-bottom: var(--sp-8); }
.page-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); max-width: 16ch; margin-bottom: var(--sp-5); }
.page-hero p { color: rgba(255,255,255,0.72); max-width: 50ch; font-size: 1.1rem; margin-bottom: var(--sp-6); }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.quicknav { display: flex; flex-wrap: wrap; gap: var(--sp-2); padding-block: var(--sp-6); }
.quicknav a { padding: .55rem 1.1rem; border-radius: var(--r-pill); border: 1.5px solid var(--line-strong); font-size: .85rem; font-weight: 600; color: var(--ink-soft); transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.quicknav a:hover { border-color: var(--donau-blue); color: var(--donau-blue); }
.prose h2 { font-size: 1.6rem; margin-top: var(--sp-7); margin-bottom: var(--sp-4); }
.prose h3 { font-size: 1.2rem; margin-top: var(--sp-6); margin-bottom: var(--sp-3); }
.prose p { color: var(--ink-soft); margin-bottom: var(--sp-4); max-width: 72ch; }
.prose ul { list-style: disc; padding-left: 1.3rem; margin-bottom: var(--sp-4); }
.prose li { color: var(--ink-soft); margin-bottom: var(--sp-2); }
.prose a { color: var(--donau-blue); text-decoration: underline; }

.legal-wrap { padding-top: 160px; padding-bottom: var(--sp-8); max-width: 760px; margin-inline: auto; }
.legal-wrap h1 { font-size: 2rem; margin-bottom: var(--sp-6); }
.legal-wrap h2 { font-size: 1.2rem; margin-top: var(--sp-7); margin-bottom: var(--sp-3); }
.legal-wrap p, .legal-wrap li { color: var(--ink-soft); margin-bottom: var(--sp-3); }
.legal-wrap ul { padding-left: 1.2rem; list-style: disc; }
.legal-wrap a { color: var(--donau-blue); text-decoration: underline; }
.legal-note { background: var(--electric-soft); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-4) var(--sp-5); font-size: .92rem; }

@media print {
  .site-nav, .mobile-cta, .site-footer, .mobile-nav { display: none !important; }
  .legal-wrap { padding-top: 0; }
}

/* ==========================================================================
   v3 LAYER — Content depth components + mobile perfection pass
   ========================================================================== */

/* ---------- Fluid section rhythm on small screens ---------- */
@media (max-width: 720px) {
  :root { --sp-8: 4rem; --sp-9: 5.5rem; }
  .section { padding-block: var(--sp-8); }
  .hero { min-height: 88svh; padding-bottom: var(--sp-7); }
  .hero h1 { font-size: clamp(2.7rem, 13vw, 4rem); }
  .hero__scroll { display: none; }
  .page-hero { padding-top: 128px; padding-bottom: var(--sp-7); }
  .breadcrumb { padding-top: 96px; }
  .breadcrumb + .page-hero, .breadcrumb ~ .page-hero { padding-top: var(--sp-6); }
  .giant-heading { font-size: clamp(2rem, 8.5vw, 2.9rem); }
  .statement__text { font-size: clamp(1.45rem, 6.4vw, 2rem); }
  .footer__cta .giant-heading { font-size: clamp(1.7rem, 7.5vw, 2.4rem) !important; }
  .split__panel { padding: var(--sp-7) var(--edge); }
  body { padding-bottom: 64px; } /* room for sticky mobile CTA */
  .site-footer { padding-bottom: var(--sp-5); }
}
@media (max-width: 400px) {
  html { font-size: 15px; }
  .btn { padding: .9rem 1.3rem; font-size: .93rem; }
  .option-grid { grid-template-columns: 1fr; }
}

/* Horizontal scroll guards */
.section, .hero, .page-hero, .site-footer { overflow-x: clip; }

/* Scenario pills: swipeable single row on mobile */
@media (max-width: 720px) {
  .system__scenarios { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-inline: calc(-1 * var(--edge)); padding-inline: var(--edge); padding-bottom: 4px; }
  .system__scenarios::-webkit-scrollbar { display: none; }
  .system__scenarios button { flex: 0 0 auto; }
  .quicknav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-inline: calc(-1 * var(--edge)); padding-inline: var(--edge); }
  .quicknav::-webkit-scrollbar { display: none; }
  .quicknav a { flex: 0 0 auto; }
}

/* Larger touch targets */
@media (max-width: 960px) {
  .faq-item__q { padding-block: 1.15rem; min-height: 56px; }
  .mobile-nav__links a { padding-block: .85rem; }
}

/* ---------- Page hero variants ---------- */
.page-hero--night { background: var(--deep-blue); }
.page-hero__meta { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-top: var(--sp-5); display: flex; flex-wrap: wrap; gap: var(--sp-4); }

/* ---------- Check list ---------- */
.check-list { display: flex; flex-direction: column; gap: var(--sp-3); margin-block: var(--sp-5); }
.check-list li { display: flex; gap: var(--sp-3); align-items: flex-start; color: var(--ink-soft); font-size: .98rem; }
.check-list li::before { content: ""; flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--electric-soft) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"><path d="M6 12.5l4 4 8-9" stroke="%230A5FB8" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/12px no-repeat; }
.section--dark .check-list li, .section--night .check-list li { color: var(--graphite-text-muted); }

/* ---------- Spec / data table ---------- */
.spec-table { width: 100%; border-collapse: collapse; margin-block: var(--sp-5); font-size: .95rem; }
.spec-table th, .spec-table td { text-align: left; padding: .85rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { font-weight: 600; color: var(--ink); white-space: nowrap; padding-right: var(--sp-5); width: 38%; }
.spec-table td { color: var(--ink-soft); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-block: var(--sp-5); }
.table-scroll .spec-table, .table-scroll .cmp-table { margin-block: 0; min-width: 560px; }

/* Comparison table */
.cmp-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.cmp-table th, .cmp-table td { text-align: left; padding: .9rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp-table thead th { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 2px solid var(--line-strong); }
.cmp-table tbody th { font-weight: 600; }
.cmp-table td { color: var(--ink-soft); }

/* ---------- Stat band ---------- */
.stat-band { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-6) var(--sp-5); margin-block: var(--sp-6); }
@media (min-width: 780px) { .stat-band { grid-template-columns: repeat(4, 1fr); } }
.stat-band__item .num { font-family: var(--font-display); font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.stat-band__item .num span { color: var(--donau-blue); }
.section--dark .stat-band__item .num span, .section--night .stat-band__item .num span { color: var(--electric); }
.stat-band__item .lbl { margin-top: var(--sp-2); font-size: .88rem; color: var(--ink-soft); max-width: 22ch; }
.section--dark .stat-band__item .lbl, .section--night .stat-band__item .lbl { color: var(--graphite-text-muted); }

/* ---------- Anlagen / system architecture cards ---------- */
.anlage-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-pure); overflow: hidden; display: flex; flex-direction: column; transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease); }
.anlage-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.anlage-card__visual { background: var(--graphite); padding: var(--sp-5); display: flex; align-items: center; justify-content: center; min-height: 170px; }
.anlage-card__visual svg { width: 100%; max-width: 300px; height: auto; }
.anlage-card__body { padding: var(--sp-6); display: flex; flex-direction: column; flex-grow: 1; }
.anlage-card__tag { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--donau-blue); margin-bottom: var(--sp-3); }
.anlage-card h3 { font-size: 1.2rem; margin-bottom: var(--sp-3); }
.anlage-card p { color: var(--ink-soft); font-size: .93rem; margin-bottom: var(--sp-4); }
.anlage-card__specs { margin-top: auto; border-top: 1px solid var(--line); padding-top: var(--sp-4); display: flex; flex-direction: column; gap: .45rem; }
.anlage-card__specs li { display: flex; justify-content: space-between; gap: var(--sp-4); font-size: .84rem; }
.anlage-card__specs li span:first-child { color: var(--ink-soft); }
.anlage-card__specs li span:last-child { font-weight: 600; text-align: right; }

/* ---------- Callout ---------- */
.callout { border-left: 3px solid var(--donau-blue); background: var(--bg-pure); border-radius: 0 var(--r-md) var(--r-md) 0; padding: var(--sp-5) var(--sp-6); margin-block: var(--sp-6); }
.callout p { color: var(--ink-soft); margin: 0; font-size: .97rem; }
.callout strong { color: var(--ink); }
.callout--dark { background: var(--graphite-soft); border-left-color: var(--electric); }
.callout--dark p { color: var(--graphite-text-muted); }
.callout--dark strong { color: #fff; }

/* ---------- Article (Wissen) ---------- */
.article-head { padding-top: 150px; padding-bottom: var(--sp-7); background: var(--bg-pure); border-bottom: 1px solid var(--line); }
.article-head h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); max-width: 20ch; margin-block: var(--sp-4) var(--sp-5); }
.article-head .lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: var(--sp-4); font-family: var(--font-mono); font-size: .76rem; color: var(--ink-soft); letter-spacing: .04em; }
.article-body { padding-block: var(--sp-7); }
.article-body > * { max-width: 720px; }
.article-body h2 { font-size: 1.55rem; margin-top: var(--sp-7); margin-bottom: var(--sp-4); scroll-margin-top: 110px; }
.article-body h3 { font-size: 1.18rem; margin-top: var(--sp-6); margin-bottom: var(--sp-3); }
.article-body p { color: var(--ink-soft); margin-bottom: var(--sp-4); line-height: 1.72; }
.article-body ul, .article-body ol { margin-bottom: var(--sp-4); padding-left: 1.3rem; color: var(--ink-soft); }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: var(--sp-2); line-height: 1.65; }
.article-body a { color: var(--donau-blue); text-decoration: underline; text-underline-offset: 2px; }
.article-body .spec-table, .article-body .table-scroll, .article-body .cmp-table { max-width: 720px; }
.article-toc { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-5) var(--sp-6); margin-block: var(--sp-6); background: var(--bg-pure); }
.article-toc h2 { font-size: .78rem; font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 var(--sp-3); }
.article-toc ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.article-toc a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.article-toc a:hover { color: var(--donau-blue); }
.article-cta { border-radius: var(--r-lg); background: var(--graphite); color: #fff; padding: var(--sp-6); margin-top: var(--sp-7); }
.article-cta h2 { color: #fff; margin: 0 0 var(--sp-3); font-size: 1.35rem; }
.article-cta p { color: var(--graphite-text-muted); margin-bottom: var(--sp-5); }

/* ---------- Contact cards / opening hours ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1.1fr .9fr; align-items: start; } }
.contact-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-pure); padding: var(--sp-6); }
.contact-card h3 { font-size: 1.05rem; margin-bottom: var(--sp-4); }
.contact-card .big-link { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 3vw, 1.7rem); letter-spacing: -0.01em; color: var(--ink); margin-bottom: var(--sp-2); }
.contact-card .big-link:hover { color: var(--donau-blue); }
.contact-card p { color: var(--ink-soft); font-size: .92rem; }
.hours-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours-table td { padding: .6rem 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- Numbered feature rows (deep content sections) ---------- */
.feature-rows { display: flex; flex-direction: column; }
.feature-row { display: grid; grid-template-columns: 1fr; gap: var(--sp-4) var(--sp-7); padding-block: var(--sp-6); border-top: 1px solid var(--line); }
.feature-row:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .feature-row { grid-template-columns: 88px 1fr 1.2fr; } }
.feature-row__num { font-family: var(--font-mono); font-size: .85rem; color: var(--donau-blue); padding-top: .35rem; }
.feature-row h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
.feature-row div p { color: var(--ink-soft); font-size: .97rem; margin-bottom: var(--sp-3); }
.feature-row div p:last-child { margin-bottom: 0; }
.section--dark .feature-row { border-color: var(--graphite-line); }
.section--dark .feature-row__num { color: var(--electric); }
.section--dark .feature-row div p { color: var(--graphite-text-muted); }

/* ---------- Timeline (Ablauf) ---------- */
.timeline { position: relative; display: flex; flex-direction: column; gap: var(--sp-6); padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 8px; bottom: 8px; width: 2px; background: var(--line-strong); }
.timeline-step { position: relative; }
.timeline-step::before { content: ""; position: absolute; left: -30px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--donau-blue); }
.timeline-step h3 { font-size: 1.1rem; margin-bottom: var(--sp-2); }
.timeline-step .when { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--donau-blue); margin-bottom: var(--sp-2); display: block; }
.timeline-step p { color: var(--ink-soft); font-size: .95rem; max-width: 60ch; }

/* ---------- Photo-substitute visual frames ---------- */
.visual-frame { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--graphite); }
.visual-frame svg { display: block; width: 100%; height: auto; }
.visual-frame figcaption { padding: var(--sp-3) var(--sp-5); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .05em; color: var(--ink-soft); background: var(--bg-pure); border-top: 1px solid var(--line); }

/* ---------- Region page intro columns ---------- */
.twocol { display: grid; grid-template-columns: 1fr; gap: var(--sp-6) var(--sp-8); }
@media (min-width: 900px) { .twocol { grid-template-columns: 1fr 1fr; } }
.twocol .prose h2:first-child { margin-top: 0; }

/* ---------- Wissen index cards ---------- */
.knowledge-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-pure); padding: var(--sp-6); display: flex; flex-direction: column; transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease); }
.knowledge-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.knowledge-card .kicker { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--donau-blue); margin-bottom: var(--sp-3); }
.knowledge-card h3 { font-size: 1.12rem; margin-bottom: var(--sp-3); line-height: 1.25; }
.knowledge-card p { color: var(--ink-soft); font-size: .92rem; flex-grow: 1; }
.knowledge-card .tile__link { margin-top: var(--sp-4); }

/* ---------- Trust strip ---------- */
.trust-strip { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6); align-items: center; padding-block: var(--sp-5); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .88rem; color: var(--ink-soft); }
.trust-strip span { display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: 500; }
.trust-strip svg { width: 16px; height: 16px; color: var(--donau-blue); flex-shrink: 0; }

/* Selection */
::selection { background: var(--electric-soft); color: var(--ink); }
.section--dark ::selection, .section--night ::selection { background: rgba(46,156,255,0.35); color: #fff; }

/* Autofill */
input:-webkit-autofill, input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 40px var(--bg-pure) inset; -webkit-text-fill-color: var(--ink); }

/* Long single-word headings must never widen the page */
h1, h2, h3 { overflow-wrap: break-word; }
@media (max-width: 400px) {
  .legal-wrap h1 { font-size: 1.6rem; }
}

/* Hero window glow layer above scrim */
.hero__glow { position: absolute; inset: 0; pointer-events: none; }
.hero__glow svg { width: 100%; height: 100%; }

/* Hero house stays clear of the text column: hidden on small screens,
   right-aligned scene on larger ones */
@media (max-width: 760px) {
  .hero-house, .hero__glow { display: none; }
}

/* ==========================================================================
   Energy flow v2 — high-end animated system diagram
   ========================================================================== */
.system__stage {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 38%, #26292d 0%, #1f2124 55%, #1a1c1f 100%);
  border: 1px solid var(--graphite-line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  overflow: hidden;
}
.system__stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(246,245,242,0.055) 1px, transparent 1.5px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at 50% 45%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 30%, transparent 85%);
}
.system__stage.do-flicker { animation: stageFlicker .9s var(--ease); }
@keyframes stageFlicker {
  0% { filter: brightness(1); } 10% { filter: brightness(.45); } 16% { filter: brightness(.95); }
  24% { filter: brightness(.55); } 34% { filter: brightness(1); } 46% { filter: brightness(.8); } 60% { filter: brightness(1); }
}
.system__live { position: absolute; top: 14px; right: 16px; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .14em; color: rgba(246,245,242,0.45); }
.system__live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--electric); animation: livePulse 2s ease-in-out infinite; }
@keyframes livePulse { 0%,100% { opacity: .35; } 50% { opacity: 1; box-shadow: 0 0 8px rgba(46,156,255,.9); } }

/* Flows */
.sys-base { stroke: rgba(246,245,242,0.08); stroke-width: 2; fill: none; }
.sys-glowline { stroke: #1E7FE0; stroke-width: 5; fill: none; opacity: 0; filter: url(#sysSoftGlow); transition: opacity .6s var(--ease); }
.sys-beads { stroke: #8FCBFF; stroke-width: 4.5; stroke-linecap: round; fill: none; stroke-dasharray: 0.1 16; opacity: 0; transition: opacity .5s var(--ease); animation: sysDash 1.5s linear infinite; }
.sys-flow.is-on .sys-glowline { opacity: .45; }
.sys-flow.is-on .sys-beads { opacity: 1; }
.sys-flow.is-strong .sys-beads { animation-duration: .85s; stroke-width: 5.5; }
.sys-flow.is-strong .sys-glowline { opacity: .65; }
@keyframes sysDash { to { stroke-dashoffset: -16.1; } }

/* Nodes */
.sys-g { transition: opacity .6s var(--ease); }
.sys-g.is-dim { opacity: .35; }
.sys-aura { fill: #2E9CFF; opacity: 0; filter: url(#sysAura); transition: opacity .7s var(--ease); }
.sys-g.is-active .sys-aura { opacity: .14; animation: auraPulse 3.2s ease-in-out infinite; }
.sys-g.is-warn .sys-aura { fill: #D98A2B; opacity: .18; animation: auraPulse 1.6s ease-in-out infinite; }
@keyframes auraPulse { 0%,100% { opacity: .1; } 50% { opacity: .22; } }
.sys-node { fill: url(#sysNodeGrad); stroke: rgba(246,245,242,0.15); stroke-width: 1.4; transition: stroke .5s var(--ease); }
.sys-g.is-active .sys-node { stroke: var(--electric); stroke-width: 1.8; }
.sys-g.is-warn .sys-node { stroke: var(--amber); stroke-width: 1.8; }
.sys-icon path { stroke: rgba(246,245,242,0.7); stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: stroke .5s var(--ease); }
.sys-g.is-active .sys-icon path { stroke: #8FCBFF; }
.sys-g.is-warn .sys-icon path { stroke: var(--amber); }
.sys-val { font-family: var(--font-mono); font-size: 12px; font-weight: 600; fill: var(--electric); transition: fill .5s var(--ease); }
.sys-g.is-warn .sys-val { fill: var(--amber); }
.sys-soc-track { fill: rgba(246,245,242,0.14); }
.sys-soc-fill { fill: var(--electric); transition: width 1.2s linear; }

@media (prefers-reduced-motion: reduce) {
  .sys-beads { stroke-dasharray: none; opacity: 0 !important; }
  .sys-flow.is-on .sys-glowline { opacity: .7; }
}
@media (max-width: 720px) {
  .system__stage { padding: var(--sp-4); }
}

/* Mobile: diagram stays legible and swipeable instead of micro-scaled */
@media (max-width: 720px) {
  .system__stage { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .system__stage::-webkit-scrollbar { display: none; }
  .system__diagram { min-width: 660px; }
}

/* ==========================================================================
   Blackout scene v2 — cinematic street with interactive hotspots
   ========================================================================== */
.blackout__stage { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgba(255,255,255,0.08); background: #041A2F; }
.blackout__scene { position: relative; }
.blackout__scene svg { display: block; width: 100%; height: auto; }
.blackout__stage.do-flicker { animation: stageFlicker .9s var(--ease); }
.blackout__hint { position: absolute; top: 12px; left: 14px; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,0.4); pointer-events: none; }

/* staged scene elements */
.blk-star { animation: blkTwinkle 3.4s ease-in-out infinite; animation-delay: var(--sd, 0s); opacity: .5; }
@keyframes blkTwinkle { 0%,100% { opacity: .25; } 50% { opacity: .8; } }

.blk-w { transition: fill .7s var(--ease) var(--wd, 0s), opacity .7s var(--ease) var(--wd, 0s); }
.blackout__stage[data-state="ausfall"] .blk-w.n { fill: #0A2036; opacity: .4; }
.blackout__stage[data-state="ausfall"] .blk-w.h { fill: #FFE2A8; opacity: 1; }

.blk-lampcone, .blk-lamphead { transition: opacity .5s var(--ease) var(--ld, 0s); }
.blackout__stage[data-state="ausfall"] .blk-lampcone { opacity: 0; }
.blackout__stage[data-state="ausfall"] .blk-lamphead { opacity: .18; }

.blk-cable { transition: opacity .8s var(--ease); }
.blackout__stage[data-state="ausfall"] .blk-cable { opacity: .3; }

.blk-dim { opacity: 0; pointer-events: none; transition: opacity 1.4s var(--ease) .25s; }
.blackout__stage[data-state="ausfall"] .blk-dim { opacity: .42; }

.blk-halo { opacity: .18; transition: opacity 1.2s var(--ease) .4s; }
.blackout__stage[data-state="ausfall"] .blk-halo { opacity: .6; animation: blkHalo 3.4s ease-in-out infinite .8s; }
@keyframes blkHalo { 0%,100% { opacity: .45; } 50% { opacity: .68; } }

.blk-batt-led { transition: fill .4s var(--ease); }
.blackout__stage[data-state="ausfall"] .blk-batt-led { animation: blkLed 1.1s ease-in-out infinite; }
@keyframes blkLed { 0%,100% { fill: #2E9CFF; } 50% { fill: #8FCBFF; } }

.blk-warnbadge { opacity: 0; transition: opacity .4s var(--ease) .5s; }
.blackout__stage[data-state="ausfall"] .blk-warnbadge { opacity: 1; animation: blkWarnBlink 1.6s ease-in-out infinite .6s; }
@keyframes blkWarnBlink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.blk-badge { opacity: 0; transform: translateY(8px); transform-box: fill-box; transition: opacity .5s var(--ease) 1s, transform .5s var(--ease) 1s; }
.blackout__stage[data-state="ausfall"] .blk-badge { opacity: 1; transform: translateY(0); }

/* hotspots */
.blk-spot { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; display: grid; place-items: center; z-index: 5; }
.blk-spot__dot { width: 14px; height: 14px; border-radius: 50%; background: rgba(46,156,255,0.95); box-shadow: 0 0 0 4px rgba(46,156,255,0.25); position: relative; transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease); }
.blk-spot__dot::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1.5px solid rgba(46,156,255,0.55); animation: spotPing 2.4s ease-out infinite; }
@keyframes spotPing { 0% { transform: scale(.6); opacity: 1; } 70%,100% { transform: scale(1.5); opacity: 0; } }
.blk-spot:hover .blk-spot__dot, .blk-spot.is-open .blk-spot__dot { transform: scale(1.25); background: #8FCBFF; }
.blk-spot__tip { position: absolute; bottom: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(6px); width: 250px; text-align: left; background: rgba(8,22,38,0.96); border: 1px solid rgba(143,203,255,0.28); border-radius: var(--r-md); padding: .85rem 1rem; font-size: .8rem; line-height: 1.5; color: rgba(255,255,255,0.78); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), visibility var(--t-fast); box-shadow: 0 18px 44px rgba(0,0,0,0.5); backdrop-filter: blur(8px); z-index: 6; }
.blk-spot__tip strong { display: block; color: #fff; font-size: .84rem; margin-bottom: .3rem; }
.blk-spot__tip::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 7px solid transparent; border-top-color: rgba(8,22,38,0.96); }
.blk-spot:hover .blk-spot__tip, .blk-spot:focus-visible .blk-spot__tip, .blk-spot.is-open .blk-spot__tip { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.blk-spot.spot--netz .blk-spot__tip { left: 0; transform: translateX(0) translateY(6px); }
.blk-spot.spot--netz .blk-spot__tip::after { left: 16px; transform: none; }
.blk-spot.spot--netz:hover .blk-spot__tip, .blk-spot.spot--netz:focus-visible .blk-spot__tip, .blk-spot.spot--netz.is-open .blk-spot__tip { transform: translateX(0) translateY(0); }
.blk-spot.spot--nb .blk-spot__tip { left: auto; right: -10px; transform: translateX(0) translateY(6px); }
.blk-spot.spot--nb .blk-spot__tip::after { left: auto; right: 20px; transform: none; }
.blk-spot.spot--nb:hover .blk-spot__tip, .blk-spot.spot--nb:focus-visible .blk-spot__tip, .blk-spot.spot--nb.is-open .blk-spot__tip { transform: translateX(0) translateY(0); }

/* mobile: swipeable scene, hint visible */
@media (max-width: 720px) {
  .blackout__stage { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .blackout__stage::-webkit-scrollbar { display: none; }
  .blackout__scene { min-width: 720px; }
  .blk-spot__tip { width: 210px; }
}
@media (prefers-reduced-motion: reduce) {
  .blk-star, .blk-spot__dot::after { animation: none !important; }
}

/* ==========================================================================
   Region map v2 — interactive service-area map
   ========================================================================== */
.region2__grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-7); align-items: center; }
@media (min-width: 1020px) { .region2__grid { grid-template-columns: 0.95fr 1.05fr; } }
.region2__map { position: relative; }
.rm-map { width: 100%; height: auto; display: block; }

/* rings: draw in on reveal, then breathe slowly */
.rm-ring { fill: none; stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 5; opacity: 0; transition: opacity 1s var(--ease); }
.region2.is-inview .rm-ring { opacity: 1; }
.region2.is-inview .rm-ring--kern { transition-delay: .15s; }
.region2.is-inview .rm-ring--mid { transition-delay: .35s; }
.region2.is-inview .rm-ring--outer { transition-delay: .55s; }
.rm-ring__label { font-family: var(--font-mono); font-size: 10px; fill: var(--ink-soft); opacity: .55; }
.rm-sweep { transform-origin: 320px 310px; animation: rmSweep 18s linear infinite; opacity: 0; transition: opacity 1.2s var(--ease) .8s; }
.region2.is-inview .rm-sweep { opacity: 1; }
@keyframes rmSweep { to { transform: rotate(360deg); } }

/* hub */
.rm-hub__dot { fill: var(--donau-blue); }
.rm-hub__pulse { fill: none; stroke: var(--donau-blue); stroke-width: 1.5; opacity: 0; transform-origin: 320px 310px; animation: rmPulse 3s ease-out infinite 1s; }
@keyframes rmPulse { 0% { transform: scale(.6); opacity: .7; } 80%,100% { transform: scale(2.6); opacity: 0; } }
.rm-hub__label { font-family: var(--font-mono); font-size: 11px; font-weight: 600; fill: var(--ink); }

/* cities: minimized, staggered pop-in, clear hover */
.rm-city { cursor: pointer; opacity: 0; transition: opacity .5s var(--ease); transition-delay: calc(.5s + var(--ci) * 60ms); outline: none; }
.region2.is-inview .rm-city, .rm-static .rm-city { opacity: 1; }
.rm-city__dot { fill: var(--ink-soft); transition: fill var(--t-fast) var(--ease), r var(--t-fast) var(--ease); }
.rm-city--max .rm-city__dot { fill: var(--line-strong); }
.rm-city__halo { fill: var(--electric-soft); opacity: 0; transition: opacity var(--t-fast) var(--ease); }
.rm-city__label { font-family: var(--font-mono); font-size: 10px; fill: var(--ink-soft); opacity: .78; transition: fill var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease); }
.rm-city:hover .rm-city__dot, .rm-city:focus-visible .rm-city__dot, .rm-city.is-active .rm-city__dot { fill: var(--donau-blue); r: 4.6; }
.rm-city:hover .rm-city__halo, .rm-city:focus-visible .rm-city__halo, .rm-city.is-active .rm-city__halo { opacity: 1; }
.rm-city:hover .rm-city__label, .rm-city:focus-visible .rm-city__label, .rm-city.is-active .rm-city__label { fill: var(--donau-blue); opacity: 1; }
.rm-city:focus-visible .rm-city__dot { stroke: var(--electric); stroke-width: 2; }

/* ring-based dimming via legend hover */
.rm-map[data-focus="kern"] .rm-city:not(.rm-city--kern),
.rm-map[data-focus="region"] .rm-city:not(.rm-city--region),
.rm-map[data-focus="max"] .rm-city:not(.rm-city--max) { opacity: .18; }
.rm-map[data-focus] .rm-city { transition-delay: 0s; }

/* info card */
.region-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-pure); padding: var(--sp-5) var(--sp-6); box-shadow: var(--sh-md); transition: opacity .18s var(--ease), transform .18s var(--ease); min-height: 208px; }
.region-card.is-switching { opacity: 0; transform: translateY(6px); }
.region-card__kicker { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--donau-blue); margin-bottom: .35rem; }
.region-card__title { font-size: 1.3rem; letter-spacing: -0.01em; margin-bottom: .25rem; }
.region-card__meta { font-family: var(--font-mono); font-size: .74rem; color: var(--ink-soft); margin-bottom: .6rem; }
.region-card__text { font-size: .92rem; color: var(--ink-soft); margin-bottom: .8rem; max-width: 46ch; }
.region-card__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; }
.region-card__tags span { font-size: .72rem; font-weight: 600; color: var(--ink-soft); border: 1px solid var(--line-strong); border-radius: var(--r-pill); padding: .18rem .6rem; }
.region-card__link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .92rem; color: var(--donau-blue); }
.region-card__link svg { width: 15px; height: 15px; transition: transform var(--t-fast) var(--ease); }
.region-card__link:hover svg { transform: translateX(3px); }

/* legend / Einsatzgebiete */
.rm-legend { margin-top: var(--sp-5); border-top: 1px solid var(--line); }
.rm-legend__row { width: 100%; display: flex; gap: var(--sp-4); align-items: flex-start; text-align: left; padding: .85rem 0; border-bottom: 1px solid var(--line); transition: opacity var(--t-fast) var(--ease); }
.rm-legend__row strong { display: block; font-size: .92rem; color: var(--ink); font-family: var(--font-display); }
.rm-legend__row small { display: block; font-size: .8rem; color: var(--ink-soft); line-height: 1.5; margin-top: .15rem; }
.rm-legend__swatch { flex-shrink: 0; width: 14px; height: 14px; border-radius: 50%; margin-top: 4px; }
.rm-legend__swatch--kern { background: var(--donau-blue); }
.rm-legend__swatch--region { background: var(--electric-soft); border: 2px solid var(--donau-blue); }
.rm-legend__swatch--max { background: transparent; border: 2px dashed var(--line-strong); }
.rm-legend__row:hover strong, .rm-legend__row.is-hot strong { color: var(--donau-blue); }

@media (max-width: 720px) {
  .region-card { min-height: 0; }
  .rm-map { max-width: 560px; margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .rm-sweep, .rm-hub__pulse { animation: none !important; }
  .rm-city, .rm-ring { opacity: 1 !important; transition: none !important; }
}

/* static variant of the interactive map (regionen hub) */
.rm-static .rm-ring { opacity: 1; }
.rm-static .rm-sweep { opacity: 1; }

/* ==========================================================================
   Hero v3 — signature entrance, living scene, parallax
   ========================================================================== */
.hero__scene, .hero__glow { will-change: transform; transition: transform .2s ease-out; }

/* cinematic grain */
.hero__noise { position: absolute; inset: 0; pointer-events: none; opacity: .05; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E"); }

/* staged entrance */
.hline { opacity: 0; transform: translateY(26px); filter: blur(6px); animation: heroIn .8s var(--ease) forwards; }
.hline--1 { animation-delay: .05s; }
.hline--2 { animation-delay: .18s; }
.hline--3 { animation-delay: .38s; }
.hline--4 { animation-delay: .5s; }
.hline--5 { animation-delay: .6s; }
.hline--6 { animation-delay: 1.1s; }
@keyframes heroIn { to { opacity: 1; transform: translateY(0); filter: blur(0); } }

/* claim shimmer: periodic light sweep through the accent line */
.line--accent span { background: linear-gradient(105deg, #2E9CFF 38%, #BFE2FF 50%, #2E9CFF 62%); background-size: 260% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #2E9CFF; animation: claimSweep 7s var(--ease) infinite 1.6s; }
@keyframes claimSweep { 0%, 76%, 100% { background-position: 100% 0; } 88% { background-position: 0% 0; } }

/* living scene */
.hero-star { animation: blkTwinkle 3.8s ease-in-out infinite; animation-delay: var(--hd, 0s); }
.hero-aurora { animation: auroraDrift 26s ease-in-out infinite alternate; }
@keyframes auroraDrift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-140px, 40px) scale(1.15); } }
.hero-shoot { opacity: 0; transform: translate(1500px, 60px); animation: shoot 9s linear infinite 4s; }
@keyframes shoot {
  0%, 92% { opacity: 0; transform: translate(1500px, 60px); }
  93% { opacity: .9; }
  97.5% { opacity: 0; transform: translate(1050px, 180px); }
  100% { opacity: 0; transform: translate(1050px, 180px); }
}
.hero-glint { animation: pvGlintMove 8s var(--ease) infinite 2.2s; }
@keyframes pvGlintMove { 0%, 55%, 100% { transform: translateX(0) skewX(-16deg); opacity: 0; } 60% { opacity: .9; } 72% { transform: translateX(330px) skewX(-16deg); opacity: 0; } }
.hero-batt-led { animation: blkLed 2.2s ease-in-out infinite; }
.hero-batt-halo { animation: battHalo 5s ease-in-out infinite 1s; }
@keyframes battHalo { 0%, 100% { opacity: 0; } 50% { opacity: .3; } }

/* energy wire from PV to battery */
.hero-wire__glow { stroke: #1E7FE0; stroke-width: 4; fill: none; opacity: .35; }
.hero-wire__beads { stroke: #A9D6FF; stroke-width: 3.4; stroke-linecap: round; fill: none; stroke-dasharray: 0.1 15; animation: sysDash 1.9s linear infinite; opacity: .95; }

@media (prefers-reduced-motion: reduce) {
  .hline { animation: none; opacity: 1; transform: none; filter: none; }
  .line--accent span { animation: none; background: none; -webkit-text-fill-color: currentColor; color: var(--electric); }
  .hero-aurora, .hero-shoot, .hero-glint, .hero-wire__beads, .hero-batt-halo, .hero-star { animation: none !important; }
  .hero-shoot { opacity: 0; }
}

/* ==========================================================================
   Battery stage v3 — interactive product showcase
   ========================================================================== */
.battery2__grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-7); align-items: center; margin-top: var(--sp-7); }
@media (min-width: 960px) { .battery2__grid { grid-template-columns: 1fr 1.1fr; } }
.battery2__stage { position: relative; display: flex; flex-direction: column; align-items: center; }
.batt-svg { width: 100%; max-width: 420px; height: auto; }
.battery2__state { margin-top: .4rem; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--electric); transition: opacity .3s var(--ease); }
.batt-brandline { font-family: var(--font-mono); font-size: 10px; fill: rgba(246,245,242,0.4); letter-spacing: .08em; }
.batt-led { animation: blkLed 2s ease-in-out infinite; }
.batt-aura { opacity: .6; transition: opacity .8s var(--ease); }
.batt-soc__num { font-family: var(--font-mono); font-size: 30px; font-weight: 700; fill: #fff; letter-spacing: -0.02em; }

/* modules: SOC fill bottom-up via data-soc levels set by JS class .is-full/.is-half */
.batt-mod { fill: #26292E; stroke: rgba(246,245,242,0.1); stroke-width: 1; transition: fill .8s var(--ease), opacity .8s var(--ease); }
.batt-mod.is-on { fill: url(#battCell); }
.batt-mod.is-half { fill: url(#battCell); opacity: .45; }

/* wires: hidden by default, per-mode visibility */
.batt-wire { opacity: 0; transition: opacity .5s var(--ease); }
.batt-wire__glow { stroke: #1E7FE0; stroke-width: 4.5; fill: none; opacity: .4; }
.batt-wire__beads { stroke: #A9D6FF; stroke-width: 4; stroke-linecap: round; fill: none; stroke-dasharray: 0.1 14; animation: sysDash 1.4s linear infinite; }
.batt-wire--out .batt-wire__beads { stroke: #FFD98F; }
.batt-wire--out .batt-wire__glow { stroke: #B98A3B; }
[data-mode="eigen"] .batt-wire--in, [data-mode="tarif"] .batt-wire--in { opacity: 1; }
[data-mode="notstrom"] .batt-wire--out { opacity: 1; }
[data-mode="tarif"] .batt-wire--in .batt-wire__beads { animation-duration: .8s; }

/* mode overlays */
.batt-reserve, .batt-ghost, .batt-price, .batt-shield { opacity: 0; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.batt-reserve__txt, .batt-ghost__txt, .batt-price__txt { font-family: var(--font-mono); font-size: 10.5px; }
.batt-reserve__txt { fill: #D98A2B; }
.batt-ghost__txt { fill: #8FCBFF; }
.batt-price__txt { fill: #8FCBFF; font-weight: 600; font-size: 12px; }
[data-mode="notstrom"] .batt-reserve { opacity: 1; }
[data-mode="notstrom"] .batt-shield { opacity: 1; animation: battShieldPulse 2.4s ease-in-out infinite; }
@keyframes battShieldPulse { 0%,100% { opacity: .75; } 50% { opacity: 1; } }
[data-mode="erweiterung"] .batt-ghost { opacity: 1; animation: ghostFloat 3.4s ease-in-out infinite; }
@keyframes ghostFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
[data-mode="tarif"] .batt-price { opacity: 1; }

/* feature tabs */
.battery2__feats { display: flex; flex-direction: column; }
.batt-feat { display: flex; gap: var(--sp-4); text-align: left; padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--graphite-line); position: relative; transition: opacity .3s var(--ease); }
.batt-feat__bar { flex-shrink: 0; width: 3px; border-radius: 2px; background: var(--graphite-line); transition: background .4s var(--ease); align-self: stretch; }
.batt-feat.is-active .batt-feat__bar { background: var(--electric); }
.batt-feat__body strong { display: block; font-family: var(--font-display); font-size: 1.05rem; color: rgba(246,245,242,0.75); transition: color .3s var(--ease); }
.batt-feat.is-active .batt-feat__body strong { color: #fff; }
.batt-feat__body span { display: block; font-size: .9rem; color: var(--graphite-text-muted); margin-top: .25rem; line-height: 1.55; }
.batt-feat:hover .batt-feat__body strong { color: #fff; }

/* ==========================================================================
   Victron rail v3
   ========================================================================== */
.victron2__rail { position: relative; display: grid; grid-template-columns: 1fr; gap: var(--sp-5); margin-top: var(--sp-7); }
@media (min-width: 900px) { .victron2__rail { grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); } }
.victron2__link { position: absolute; top: 74px; left: 12%; width: 76%; height: 10px; display: none; }
@media (min-width: 900px) { .victron2__link { display: block; } }
.v-linkline { stroke: var(--line-strong); stroke-width: 1.2; stroke-dasharray: 3 5; }
.v-linkbeads { stroke: var(--donau-blue); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0.1 20; animation: sysDash 2.4s linear infinite; opacity: .5; }
.victron2__card { position: relative; background: var(--bg-pure); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-6); transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease); opacity: 0; transform: translateY(24px); }
.victron2__rail.is-visible .victron2__card { opacity: 1; transform: translateY(0); transition: opacity .7s var(--ease) calc(var(--vi) * 140ms), transform .7s var(--ease) calc(var(--vi) * 140ms), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease); }
.victron2__card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: rgba(10,95,184,0.35); }
.victron2__visual { height: 130px; display: flex; align-items: center; justify-content: center; margin-bottom: var(--sp-4); background: var(--bg); border-radius: var(--r-md); }
.victron2__visual svg { width: 120px; height: 120px; transition: transform var(--t-med) var(--ease); }
.victron2__card:hover .victron2__visual svg { transform: scale(1.08) rotate(-1.5deg); }
.victron2__card h3 { font-size: 1.15rem; margin-bottom: var(--sp-2); }
.victron2__card p { color: var(--ink-soft); font-size: .94rem; }
.v-led { animation: blkLed 2.2s ease-in-out infinite; }
.v-chart { stroke-dasharray: 60; stroke-dashoffset: 60; }
.victron2__rail.is-visible .v-chart { animation: vChartDraw 1.4s var(--ease) .6s forwards; }
@keyframes vChartDraw { to { stroke-dashoffset: 0; } }
.v-ring { transform-origin: 65px 34px; animation: vRingSpin 6s linear infinite; }
@keyframes vRingSpin { to { transform: rotate(360deg); } }
.v-bars rect { transform-origin: center 78px; }
.victron2__card:hover .v-bars rect { animation: vBarPulse 1.2s var(--ease) infinite alternate; }
.victron2__card:hover .v-bars rect:nth-child(2) { animation-delay: .15s; }
.victron2__card:hover .v-bars rect:nth-child(3) { animation-delay: .3s; }
@keyframes vBarPulse { to { transform: scaleY(1.25); } }

/* ==========================================================================
   Wattschmiede workshop v3
   ========================================================================== */
.ws-visual { position: relative; }
.ws-visual svg { width: 100%; max-width: 560px; }
.ws-item { opacity: 0; transform: translateY(14px); }
.split.is-ws-visible .ws-item { opacity: 1; transform: translateY(0); transition: opacity .6s var(--ease) calc(var(--wi) * 90ms), transform .6s var(--ease) calc(var(--wi) * 90ms); }
.ws-led { animation: blkLed 2s ease-in-out infinite; }
.ws-led--test { animation: wsTestBlink 1.1s steps(2, jump-none) infinite; }
@keyframes wsTestBlink { 0% { opacity: 1; } 50% { opacity: .25; } 100% { opacity: 1; } }
.ws-label { font-family: var(--font-mono); font-size: 11px; fill: rgba(246,245,242,0.55); }
.ws-meter { font-family: var(--font-mono); font-size: 13px; font-weight: 600; fill: #8FCBFF; }
.ws-probe { stroke-dasharray: 120; stroke-dashoffset: 120; }
.split.is-ws-visible .ws-probe { animation: wsProbeDraw 1s var(--ease) .9s forwards; }
@keyframes wsProbeDraw { to { stroke-dashoffset: 0; } }
.ws-chips { position: absolute; top: 18px; left: 0; right: 0; display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; pointer-events: none; }
.ws-chip { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; color: #8FCBFF; background: rgba(8,22,38,0.85); border: 1px solid rgba(143,203,255,0.3); border-radius: var(--r-pill); padding: .3rem .8rem; opacity: 0; transform: translateY(8px); }
.split.is-ws-visible .ws-chip { opacity: 1; transform: translateY(0); transition: opacity .6s var(--ease) calc(.9s + var(--wc) * 150ms), transform .6s var(--ease) calc(.9s + var(--wc) * 150ms); animation: chipFloat 4.5s ease-in-out calc(var(--wc) * .8s) infinite; }
@keyframes chipFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* ==========================================================================
   Region v3 refinements — compact card, progress, link line
   ========================================================================== */
.region-card { min-height: 0; padding: var(--sp-5) var(--sp-6); overflow: hidden; }
.region-card__progress { position: absolute; top: 0; left: 0; height: 3px; width: 0; background: var(--electric); border-radius: 0 2px 2px 0; }
.region-card { position: relative; }
.region-card.is-cycling .region-card__progress { animation: rcProgress 3.8s linear forwards; }
@keyframes rcProgress { from { width: 0; } to { width: 100%; } }
.rm-legend__row { padding: .7rem 0; }
.rm-link { stroke: var(--electric); stroke-width: 1.4; stroke-dasharray: 4 5; opacity: 0; transition: opacity .4s var(--ease); }
.rm-link.is-on { opacity: .55; }
@media (prefers-reduced-motion: reduce) {
  .victron2__card, .ws-item, .ws-chip { opacity: 1 !important; transform: none !important; animation: none !important; }
  .batt-wire__beads, .v-linkbeads, .v-ring { animation: none !important; }
  .region-card.is-cycling .region-card__progress { animation: none; }
}

/* ==========================================================================
   PV-Rechner
   ========================================================================== */
.is-hidden { display: none !important; }
.pv-status { font-size: .86rem; margin-top: .75rem; min-height: 1.2em; }
.pv-status--err { color: #B3261E; font-weight: 600; }
.pv-linkbtn { text-decoration: underline; text-underline-offset: 2px; color: inherit; font-size: inherit; }

/* Wahl-Screen */
.pv-choice { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); max-width: 880px; margin-inline: auto; }
@media (min-width: 780px) { .pv-choice { grid-template-columns: 1fr 1fr; } }
.pv-choice__card { text-align: left; background: var(--bg-pure); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-6); display: flex; flex-direction: column; gap: .5rem; transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease); }
.pv-choice__card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: rgba(10,95,184,0.4); }
.pv-choice__card--primary { border-color: var(--donau-blue); background: linear-gradient(160deg, rgba(46,156,255,0.07), transparent 55%), var(--bg-pure); }
.pv-choice__icon { width: 52px; height: 52px; border-radius: var(--r-md); background: var(--electric-soft); color: var(--donau-blue); display: grid; place-items: center; margin-bottom: .4rem; }
.pv-choice__icon svg { width: 30px; height: 30px; }
.pv-choice__card strong { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: -0.01em; }
.pv-choice__sub { color: var(--ink-soft); font-size: .93rem; line-height: 1.55; }
.pv-choice__go { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .95rem; color: var(--donau-blue); margin-top: .5rem; }
.pv-choice__go svg { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease); }
.pv-choice__card:hover .pv-choice__go svg { transform: translateX(4px); }

/* Live-Panel */
.pv-live { position: sticky; top: 76px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.4rem; background: rgba(18,16,14,0.92); backdrop-filter: blur(12px); color: #fff; border-radius: var(--r-pill); padding: .65rem 1.3rem; max-width: 880px; margin: 0 auto var(--sp-5); box-shadow: var(--sh-md); }
.pv-live__item { display: flex; align-items: baseline; gap: .45rem; }
.pv-live__item .lbl { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.pv-live__item .val { font-family: var(--font-mono); font-weight: 700; font-size: .95rem; color: #8FCBFF; font-variant-numeric: tabular-nums; }
.pv-live__autarkie { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.pv-live__autarkie .lbl { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,0.55); white-space: nowrap; }
.pv-live__bar { width: 74px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.15); overflow: hidden; }
.pv-live__bar span { display: block; height: 100%; width: 0; background: var(--electric); border-radius: 3px; transition: width .6s var(--ease); }
@media (max-width: 720px) { .pv-live { border-radius: var(--r-md); gap: .3rem 1rem; padding: .6rem 1rem; } .pv-live__autarkie { margin-left: 0; } }

/* Wizard-Karte */
.pv-wizard__card { background: var(--bg-pure); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-lg); max-width: 880px; margin-inline: auto; overflow: hidden; }
.pvw-head { padding: var(--sp-5) var(--sp-6) 0; }
.pvw-dots { display: flex; gap: 6px; margin-bottom: .6rem; }
.pvw-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.pvw-dot.is-on { background: var(--donau-blue); transform: scale(1.15); }
.pvw-progress { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.pvw-progress span { display: block; height: 100%; width: 20%; background: var(--donau-blue); border-radius: 2px; transition: width .5s var(--ease); }
.pvw-body { padding: var(--sp-6); position: relative; min-height: 300px; }
.pvw-step { display: none; }
.pvw-step.is-active { display: block; animation: pvwIn .45s var(--ease); }
@keyframes pvwIn { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: translateX(0); } }
.pvw-step h3 { font-size: 1.45rem; letter-spacing: -0.015em; margin-bottom: .4rem; }
.pvw-hint { color: var(--ink-soft); font-size: .94rem; margin-bottom: 1.4rem; max-width: 54ch; }
.pvw-label { font-weight: 700; font-size: .9rem; margin: 1.2rem 0 .6rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.pvw-foot { display: flex; justify-content: space-between; gap: 1rem; padding: var(--sp-5) var(--sp-6); border-top: 1px solid var(--line); }
.pv-disclaimer { max-width: 880px; margin: 1rem auto 0; font-size: .8rem; color: var(--ink-soft); text-align: center; }

/* Chips */
.pv-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.pv-chip { border: 1.5px solid var(--line-strong); border-radius: var(--r-md); padding: .7rem 1.1rem; text-align: left; transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.pv-chip:hover { border-color: var(--donau-blue); }
.pv-chip:active { transform: scale(.97); }
.pv-chip span { display: block; font-weight: 700; font-size: .95rem; }
.pv-chip small { display: block; color: var(--ink-soft); font-size: .74rem; margin-top: 1px; }
.pv-chip.is-on { border-color: var(--donau-blue); background: var(--electric-soft); box-shadow: inset 0 0 0 1px var(--donau-blue); }
.pv-chips--compact .pv-chip { padding: .55rem 1rem; min-width: 52px; text-align: center; }

/* Toggles */
.pv-toggles { display: flex; flex-wrap: wrap; gap: .6rem; }
.pv-toggle { display: inline-flex; align-items: center; gap: .6rem; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); padding: .55rem 1rem .55rem .6rem; font-weight: 600; font-size: .92rem; transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease); }
.pv-toggle small { color: var(--ink-soft); font-weight: 400; font-size: .78rem; }
.pv-toggle__dot { width: 30px; height: 18px; border-radius: 9px; background: var(--line-strong); position: relative; transition: background var(--t-fast) var(--ease); flex-shrink: 0; }
.pv-toggle__dot::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform var(--t-fast) var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,0.25); }
.pv-toggle.is-on { border-color: var(--donau-blue); background: var(--electric-soft); }
.pv-toggle.is-on .pv-toggle__dot { background: var(--donau-blue); }
.pv-toggle.is-on .pv-toggle__dot::after { transform: translateX(12px); }

/* Slider */
#pvRechner input[type=range] { width: 100%; max-width: 460px; appearance: none; -webkit-appearance: none; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--donau-blue) var(--p, 50%), var(--line) var(--p, 50%)); outline-offset: 4px; }
#pvRechner input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2.5px solid var(--donau-blue); box-shadow: 0 2px 8px rgba(4,26,47,0.25); cursor: grab; transition: transform var(--t-fast) var(--ease); }
#pvRechner input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.12); }
#pvRechner input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2.5px solid var(--donau-blue); box-shadow: 0 2px 8px rgba(4,26,47,0.25); cursor: grab; }
.pv-out { font-family: var(--font-mono); font-weight: 700; color: var(--donau-blue); font-size: 1rem; font-variant-numeric: tabular-nums; }
.pv-input { padding: .8rem 1rem; border: 1.5px solid var(--line-strong); border-radius: var(--r-md); background: var(--bg-pure); font-size: .98rem; }
.pv-input:focus { border-color: var(--donau-blue); outline: none; }
.pv-taxnote { font-weight: 400; font-size: .68rem; color: var(--ink-soft); }

/* Ergebnis */
.pv-result__head h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1.2rem; }
.pv-result__hero { display: grid; grid-template-columns: 1fr; gap: .9rem; margin-bottom: 1.4rem; }
@media (min-width: 820px) { .pv-result__hero { grid-template-columns: 1fr 1.2fr 1fr; } }
.pv-result__big { background: var(--bg); border-radius: var(--r-md); padding: 1rem 1.2rem; }
.pv-result__big--accent { background: var(--graphite); }
.pv-result__big--accent .lbl { color: rgba(246,245,242,0.55); }
.pv-result__big--accent .val { color: #fff; }
.pv-result__big .lbl { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .3rem; display: flex; gap: .5rem; align-items: baseline; }
.pv-result__big .val { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 1.8rem); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pv-result__big .val em { font-style: normal; font-size: .9rem; color: var(--donau-blue); }
.pv-result__big .val--range { font-size: clamp(1.05rem, 2vw, 1.35rem); }
.pv-result__big .val--range i { font-style: normal; font-weight: 400; color: var(--ink-soft); font-size: .85rem; }
.pv-result__grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1.4rem; align-items: start; }
@media (min-width: 900px) { .pv-result__grid { grid-template-columns: 1.35fr 1fr; } }
.pv-result__panel { border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.1rem 1.2rem; }
.pv-result__panel h4 { font-size: .95rem; margin-bottom: .8rem; }
.pv-result__panel svg#resChart { width: 100%; height: auto; }
.ch-lbl { font-family: var(--font-mono); font-size: 10.5px; fill: var(--ink-soft); }
.ch-lbl--amber { fill: #B8722A; font-weight: 600; }
.ch-lbl--blue { fill: var(--donau-blue); font-weight: 700; }
.pv-kpis { display: flex; flex-direction: column; }
.pv-kpis li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; color: var(--ink-soft); }
.pv-kpis li b { color: var(--ink); font-variant-numeric: tabular-nums; }
.pv-kpis--breakdown li span:last-child { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.pv-donutrow { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }
.pv-donut { width: 76px !important; height: 76px !important; flex-shrink: 0; }
.pv-donutrow b { font-size: 1.3rem; font-family: var(--font-display); display: block; }
.pv-donutrow small { color: var(--ink-soft); font-size: .8rem; line-height: 1.4; display: block; max-width: 26ch; }

/* Report & Done */
.pv-report { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: 1.4rem; display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
@media (min-width: 860px) { .pv-report { grid-template-columns: 1fr 1.3fr; } }
.pv-report__intro h4 { font-size: 1.15rem; margin-bottom: .5rem; }
.pv-report__intro p { color: var(--ink-soft); font-size: .92rem; max-width: 36ch; }
.pv-done { text-align: center; padding: 1.5rem 1rem; }
.pv-done__icon { width: 58px; height: 58px; border-radius: 50%; background: var(--electric-soft); color: var(--donau-blue); display: grid; place-items: center; margin: 0 auto 1rem; }
.pv-done__icon svg { width: 30px; height: 30px; }
.pv-done h4 { font-size: 1.25rem; margin-bottom: .5rem; }
.pv-done p { color: var(--ink-soft); max-width: 44ch; margin-inline: auto; }
@media (prefers-reduced-motion: reduce) { .pvw-step.is-active { animation: none; } }

/* ============ Online-Terminbuchung (/termin/) ============ */
.tb { max-width: 780px; margin-inline: auto; }
.tb__card { background: var(--bg-pure); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.4rem, 3.5vw, 2.4rem); box-shadow: 0 24px 60px rgba(4, 26, 47, .08); position: relative; overflow: hidden; }
.tb__progress { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--line); }
.tb__progress span { display: block; height: 100%; width: 33%; background: linear-gradient(90deg, var(--donau-blue), var(--electric)); border-radius: 0 99px 99px 0; transition: width .6s var(--ease); }
.tb__card h3 { font-size: 1.05rem; margin-bottom: .7rem; }
.tb__days { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .55rem; }
.tb__day, .tb__slot { border: 1.5px solid var(--line-strong); border-radius: var(--r-md); background: var(--bg-pure); padding: .6rem .5rem; text-align: center; transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); animation: tbIn .45s var(--ease) backwards; animation-delay: calc(var(--tbi, 0) * 28ms); }
@keyframes tbIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tb__day small { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.tb__day b { display: block; font-size: .92rem; margin: .1rem 0; }
.tb__day span, .tb__slot span { display: block; font-size: .7rem; color: var(--donau-blue); font-weight: 600; }
.tb__day:hover:not(:disabled), .tb__slot:hover:not(:disabled) { border-color: var(--donau-blue); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(4, 26, 47, .08); }
.tb__day.is-on, .tb__slot.is-on { border-color: var(--donau-blue); background: var(--electric-soft); box-shadow: inset 0 0 0 1px var(--donau-blue); }
.tb__day.is-full, .tb__slot.is-full { opacity: .45; cursor: not-allowed; }
.tb__day.is-full span, .tb__slot.is-full span { color: var(--ink-soft); }
.tb__slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: .55rem; }
.tb__slot b { display: block; font-size: 1.02rem; }
.tb__loading { color: var(--ink-soft); font-size: .9rem; padding: .4rem 0; display: inline-block; }
.tb__summary { display: flex; align-items: center; gap: .9rem; background: var(--electric-soft); border: 1px solid var(--donau-blue); border-radius: var(--r-md); padding: .85rem 1.1rem; margin: 1rem 0 1.2rem; font-size: .95rem; }
.tb__sumIcon { width: 34px; height: 34px; color: var(--donau-blue); flex-shrink: 0; }
.tb__sumIcon svg { width: 100%; height: 100%; }
@media (prefers-reduced-motion: reduce) {
  .tb__day, .tb__slot { animation: none; }
  .tb__day:hover, .tb__slot:hover { transform: none; }
}

/* ============ Projekt-Finder v2 (adaptiv) ============ */
.finder__chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .8rem; }
.finder__chips:empty { display: none; }
.finder__chip { display: inline-flex; align-items: center; gap: .5rem; border: 1.5px solid var(--line-strong); background: var(--bg-pure); border-radius: 999px; padding: .3rem .8rem .3rem .9rem; font-size: .8rem; transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); animation: chipIn .35s var(--ease) backwards; }
@keyframes chipIn { from { opacity: 0; transform: translateY(-4px) scale(.94); } to { opacity: 1; transform: none; } }
.finder__chip small { color: var(--ink-soft); font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; }
.finder__chip span { font-weight: 700; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.finder__chip svg { width: 13px; height: 13px; color: var(--ink-soft); opacity: .55; transition: opacity var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.finder__chip:hover { border-color: var(--donau-blue); background: var(--electric-soft); transform: translateY(-1px); }
.finder__chip:hover svg { opacity: 1; color: var(--donau-blue); }

.option-grid--rich .option-card { min-height: 68px; }
.option-card__ico { width: 34px; height: 34px; flex-shrink: 0; color: var(--donau-blue); display: grid; place-items: center; }
.option-card__ico svg { width: 100%; height: 100%; }
.option-card__txt { display: block; line-height: 1.25; }
.option-card__txt small { display: block; font-weight: 500; color: var(--ink-soft); font-size: .76rem; margin-top: 2px; }
.option-card { cursor: pointer; }
.option-card:active { transform: scale(.985); }
.option-card.is-pulse { animation: cardPulse .34s var(--ease); }
@keyframes cardPulse { 0% { box-shadow: 0 0 0 0 rgba(46,156,255,.45); } 100% { box-shadow: 0 0 0 14px rgba(46,156,255,0); } }
.option-card:focus-within { outline: 2px solid var(--electric); outline-offset: 2px; }

.finder__step.anim-fwd { animation: stepFwd .4s var(--ease); }
.finder__step.anim-back { animation: stepBack .4s var(--ease); }
@keyframes stepFwd { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }

.finder__summary { border: 1px solid var(--line); border-radius: var(--r-md); padding: .35rem 1rem; margin-bottom: 1.4rem; background: var(--bg); }
.finder__summary:empty { display: none; }
.finder__sumrow { display: flex; align-items: baseline; gap: .8rem; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.finder__sumrow:last-child { border-bottom: none; }
.finder__sumrow > span { color: var(--ink-soft); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; flex: 0 0 108px; }
.finder__sumrow > b { flex: 1; }
.finder__sumedit { color: var(--donau-blue); font-weight: 700; font-size: .8rem; border-bottom: 1px solid transparent; transition: border-color var(--t-fast) var(--ease); }
.finder__sumedit:hover { border-color: var(--donau-blue); }

.finder__keyhint { font-size: .74rem; color: var(--ink-soft); text-align: center; flex: 1; }
.finder__keyhint kbd { display: inline-block; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; padding: 0 .35em; font-family: var(--font-mono); font-size: .72rem; background: var(--bg-pure); }
#finderNext.is-quiet { opacity: .55; }
@media (max-width: 700px) { .finder__keyhint { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .finder__step.anim-fwd, .finder__step.anim-back, .finder__chip, .option-card.is-pulse { animation: none; }
}
