/* Template nicom – erzeugt von joomla/baue.py aus dem Entwurf index.html. Nicht hier ändern. */
/* latin-ext */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/BricolageGrotesque-latin-ext-500-0.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/BricolageGrotesque-latin-500-1.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/BricolageGrotesque-latin-ext-700-2.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/BricolageGrotesque-latin-700-3.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/BricolageGrotesque-latin-ext-800-4.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/BricolageGrotesque-latin-800-5.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/JetBrainsMono-latin-ext-500-6.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/JetBrainsMono-latin-500-7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/JetBrainsMono-latin-ext-700-8.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/JetBrainsMono-latin-700-9.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/SourceSans3-latin-ext-400-10.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/SourceSans3-latin-400-11.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/SourceSans3-latin-ext-600-12.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/SourceSans3-latin-600-13.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/SourceSans3-latin-ext-700-14.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/SourceSans3-latin-700-15.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* Layout: Energiefluss als roter Faden – Hero mit Fluss-Schema, darunter drei Wege (Mieterstrom / Contracting / Kauf), Rechner, Ablauf, Kontakt. */
:root {
  --paper: #F2F4F6;
  --card: #FFFFFF;
  --ink: #15212C;
  --muted: #55636F;
  --line: #D6DDE3;
  --sun: #E9A21A;
  --sun-text: #8A5800;
  --on-sun: #1B1404;
  --volt: #1E6A86;
  --band: #15212C;
  --band-ink: #EEF2F5;
  --band-muted: #A9B6C1;
  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --f-data: "JetBrains Mono", Consolas, ui-monospace, monospace;
  --max: 1160px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E151B; --card: #142029; --ink: #E7EDF2; --muted: #95A3AF; --line: #25333F;
    --sun: #F2B43C; --sun-text: #F2B43C; --on-sun: #1B1404; --volt: #63B7D3;
    --band: #0A1016; --band-ink: #E7EDF2; --band-muted: #95A3AF; color-scheme: dark;
    --eyebrow-bild: #F2B43C;
  }
}
:root[data-theme="dark"] {
  --eyebrow-bild: #F2B43C;
  --paper: #0E151B; --card: #142029; --ink: #E7EDF2; --muted: #95A3AF; --line: #25333F;
  --sun: #F2B43C; --sun-text: #F2B43C; --on-sun: #1B1404; --volt: #63B7D3;
  --band: #0A1016; --band-ink: #E7EDF2; --band-muted: #95A3AF; color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: var(--max); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  font-family: var(--f-data); font-size: 0.78rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--sun-text);
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }

/* Kopfzeile */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 24px; padding-block: 14px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; letter-spacing: 0.01em; }
.logo svg { flex: none; }
.logo span b { color: var(--sun-text); font-weight: 800; }
.nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.98rem; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 12px 20px; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; font-family: var(--f-body); font-size: 1rem; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sun { background: var(--sun); color: var(--on-sun); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.login { padding: 8px 14px; font-size: 0.92rem; }
.btn.login { background: #2E7D32; border-color: #2E7D32; color: #fff; }
.btn.login:hover { background: #256B29; border-color: #256B29; }
@media (max-width: 860px) { .nav { display: none; } .login { margin-left: auto; } }

/* Titelbild über dem Hero */
.titelbild, .titelbild + .hero { --tb-b: min(100vw - 32px, var(--max) - 32px, calc((100vh - 150px) * 1.99)); }
.titelbild { margin: 0; padding: 24px 16px 0; }
/* ganzes Bild sichtbar: Breite nach Fensterhöhe begrenzt (Seitenverhältnis 1408:706, unten transparent).
   Leicht durchscheinend und nach unten ausgeblendet; der Hero-Text beginnt im letzten Drittel des Bildes. */
.titelbild img { display: block; width: var(--tb-b); height: auto; margin-inline: auto; border-radius: 20px 20px 0 0; opacity: 0.95;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, rgba(0,0,0,.7) 75%, rgba(0,0,0,.42) 100%);
          mask-image: linear-gradient(to bottom, #000 55%, rgba(0,0,0,.7) 75%, rgba(0,0,0,.42) 100%); }
.titelbild { position: relative; z-index: 2; }
.titelbild + .hero { margin-top: calc(var(--tb-b) / -1.99 / 3); }
/* Text über dem Bild, Energiefluss-Kasten dahinter (sein Platz bleibt) */
.titelbild + .hero .hero-text { position: relative; z-index: 3; }
.titelbild + .hero .flow { position: relative; z-index: 1; }
/* Energiefluss-Kasten unten bündig mit der Kennzahlen-Zeile */
@media (min-width: 901px) {
  /* Kasten unten ausgerichtet und um 80px nach oben gesetzt (Wunsch Kunde 27.10.2026);
     bei -8px läge die letzte Zeile der Bildunterschrift auf einer Linie mit „Vollwartung“ */
  .hero .flow { align-self: end; margin-bottom: 72px; }
  .hero .flow svg { width: 86%; margin-inline: auto; }
}
.titelbild + .hero .wrap { padding-top: 0; }
.titelbild + .hero .eyebrow, .titelbild + .hero h1 { text-shadow: 0 0 10px var(--paper), 0 0 3px var(--paper); }
/* Unterzeile über dem Bild dunkler und kräftiger, damit sie lesbar bleibt */
.titelbild + .hero .eyebrow { color: var(--eyebrow-bild, #3D2700); font-weight: 700; }
/* falls das Bild nicht lädt: Ersatztext gut lesbar */
.titelbild img { color: var(--ink); font-size: 0.95rem; }
/* Urheberhinweis beim Rechtsklick auf ein Bild (template.js) */
.titelbild { position: relative; }
.tb-hinweis { position: fixed; z-index: 5; width: 300px; max-width: calc(100vw - 16px); background: var(--band); color: var(--band-ink);
  font-size: 0.85rem; line-height: 1.4; padding: 10px 12px; border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.25);
  opacity: 0; pointer-events: none; transition: opacity .15s; }
.tb-hinweis.zeigen { opacity: 1; }
/* Pfeil „nach oben“ unten rechts (template.js) */
.nach-oben { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px)); z-index: 50;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); color: var(--on-sun);
  box-shadow: 0 6px 18px rgba(0,0,0,.22); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .2s, transform .2s, visibility .2s; }
.nach-oben.sichtbar { opacity: 1; visibility: visible; transform: none; }
.nach-oben:hover { filter: brightness(1.06); }
.nach-oben:focus-visible { outline: 3px solid var(--volt); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .nach-oben { transition: none; } }
@media (max-width: 600px) { .titelbild, .titelbild + .hero { --tb-b: calc(100vw - 24px); } .titelbild { padding: 12px 12px 0; } .titelbild img { border-radius: 12px 12px 0 0; } }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-block: 64px 56px; }
.hero-text { display: grid; gap: 22px; min-width: 0; }
.hero h1 em { font-style: normal; color: var(--sun-text); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 24px; padding-top: 8px; border-top: 1px solid var(--line); margin-top: 6px; }
.fact { display: grid; gap: 2px; padding-top: 14px; }
.fact b { font-family: var(--f-data); font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.fact span { font-size: 0.9rem; color: var(--muted); }
.flow { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px; min-width: 0; }
.flow svg { display: block; width: 100%; height: auto; }
.flow figcaption { font-size: 0.85rem; color: var(--muted); padding: 6px 6px 0; }
.f-line { fill: none; stroke: var(--line); stroke-width: 3; }
.f-run { fill: none; stroke: var(--sun); stroke-width: 3; stroke-dasharray: 6 10; animation: run 1.6s linear infinite; }
.f-run.heat { stroke: var(--volt); }
.f-node { fill: var(--paper); stroke: var(--line); stroke-width: 1.5; }
.f-label { font-family: var(--f-body); font-size: 13px; font-weight: 700; fill: var(--ink); }
.f-sub { font-family: var(--f-data); font-size: 10px; fill: var(--muted); }
.f-icon { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.f-icon.sun { stroke: var(--sun-text); }
@keyframes run { to { stroke-dashoffset: -32; } }
@media (prefers-reduced-motion: reduce) { .f-run { animation: none; } .btn { transition: none; } }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; padding-block: 40px; } }

/* Abschnitte */
section { scroll-margin-top: 80px; }
.sec .wrap { padding-block: 72px; display: grid; gap: 36px; }
.sec-head { display: grid; gap: 12px; }
.sec-head > p:not(.eyebrow) { max-width: 62ch; }
/* Abschnittstitel höchstens zwei Zeilen, gleichmäßig umbrochen */
.sec-head h2:not(.zweizeilig) { max-width: 28em; text-wrap: balance; }
/* Überschrift in genau zwei Zeilen (am Handy darf die erste umbrechen) */
.sec-head:has(.zweizeilig) { max-width: none; }
h2.zweizeilig { font-size: clamp(1.4rem, 2.25vw, 1.65rem); text-wrap: wrap; }
h2.zweizeilig span { display: block; }

/* Drei Wege */
.ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.way { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.way .aktion { margin-top: auto; padding-top: 6px; display: grid; gap: 14px; justify-items: start; }
.way .aktion .btn { width: 100%; }
.way .for { font-size: 0.9rem; color: var(--muted); }
.way ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.way li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.way li::before { content: ""; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--sun); }
.way a:not(.btn) { font-weight: 700; color: var(--sun-text); text-decoration: none; }
.way a:not(.btn):hover { text-decoration: underline; }
@media (max-width: 1100px) { .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ways { grid-template-columns: 1fr; } }

/* Mieterstrom-Band */
.band { background: var(--band); color: var(--band-ink); }
.band .lead { color: var(--band-muted); }
.band .eyebrow { color: var(--sun); }
.eyebrow { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.ms { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.ms-points { display: grid; gap: 22px; }
.ms-point { display: grid; gap: 4px; padding-left: 18px; border-left: 2px solid color-mix(in srgb, var(--band-ink) 18%, transparent); }
.ms-point h3 { font-size: 1.1rem; }
.ms-point p { color: var(--band-muted); }
.calc { background: color-mix(in srgb, var(--band-ink) 6%, var(--band)); border: 1px solid color-mix(in srgb, var(--band-ink) 14%, transparent); border-radius: 20px; padding: 26px; display: grid; gap: 18px; min-width: 0; }
.calc label { font-weight: 700; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.calc output, .calc .num { font-family: var(--f-data); font-variant-numeric: tabular-nums; }
.calc input[type=range] { width: 100%; accent-color: var(--sun); }
.cmp { display: grid; gap: 10px; }
.cmp-row { display: grid; grid-template-columns: 130px 1fr auto; gap: 12px; align-items: center; font-size: 0.95rem; }
.bar { height: 14px; border-radius: 7px; background: color-mix(in srgb, var(--band-ink) 30%, transparent); transition: width .3s ease; }
.bar.ms-bar { background: var(--sun); }
.save { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--band-ink) 14%, transparent); }
.save .num { font-size: 2.2rem; font-weight: 700; color: var(--sun); }
.note { font-size: 0.82rem; color: var(--band-muted); }
@media (max-width: 900px) { .ms { grid-template-columns: 1fr; } .cmp-row { grid-template-columns: 96px 1fr auto; } }

/* Contracting */
.ct { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.ct div { padding: 22px 22px 22px 0; display: grid; gap: 6px; border-bottom: 1px solid var(--line); }
.ct b { font-family: var(--f-display); font-size: 1.15rem; }
.ct p { color: var(--muted); font-size: 0.98rem; }
.ct .big { font-family: var(--f-data); font-size: 2rem; font-weight: 700; color: var(--sun-text); line-height: 1; }
@media (max-width: 900px) { .ct { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ct { grid-template-columns: 1fr; } }

/* Illustrationen */
.intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: center; }
.illu { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px; min-width: 0; }
.illu svg { display: block; width: 100%; height: auto; }
.illu .w { fill: var(--paper); stroke: var(--line); stroke-width: 1.5; }
.illu .d { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.illu .s { fill: var(--sun); }
.illu .st { fill: none; stroke: var(--sun-text); stroke-width: 2; stroke-linecap: round; }
.illu .pv { fill: var(--volt); }
.illu .th { fill: none; stroke: var(--volt); stroke-width: 1.5; }
.illu .g { stroke: var(--line); stroke-width: 2; }
.illu .fl { fill: var(--sun); stroke: var(--sun-text); stroke-width: 1; }
.illu .hub-sub { font-family: var(--f-data); font-size: 9px; fill: var(--on-sun); }
.illu .hub { font-family: var(--f-display); font-size: 15px; font-weight: 700; fill: var(--on-sun); }
.hinweis { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--sun); border-radius: 14px; padding: 20px 24px; display: grid; gap: 10px; }
.hinweis ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; color: var(--muted); }
.illu .coin { fill: var(--sun); stroke: var(--sun-text); stroke-width: 1.2; }
.illu .ar { fill: none; stroke: var(--volt); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.illu .badge { font-family: var(--f-display); font-size: 26px; font-weight: 700; fill: var(--on-sun); }
@media (max-width: 900px) { .intro { grid-template-columns: 1fr; } }

/* Investorenmodell */
.inv { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.inv-points { display: grid; gap: 22px; }
.inv-tab { color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: grid; gap: 14px; min-width: 0; }
.inv-tab table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.inv-tab th, .inv-tab td { padding: 9px 6px; border-bottom: 1px solid var(--line); text-align: right; }
.inv-tab th:first-child, .inv-tab td:first-child { text-align: left; }
.inv-tab td { font-family: var(--f-data); font-variant-numeric: tabular-nums; }
.inv-tab td:not(:first-child) { white-space: nowrap; }
@media (max-width: 480px) { .inv-tab { padding: 18px 14px; } .inv-tab table { font-size: 0.85rem; } }
.inv-tab td:first-child { font-family: inherit; }
.inv-tab tr.summe td { font-weight: 700; border-bottom: 0; }
.inv-tab .plus { color: var(--volt); }
.inv-save { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.inv-save .num { font-family: var(--f-data); font-size: 2.2rem; font-weight: 700; color: var(--sun-text); }
.inv-note { font-size: 0.82rem; color: var(--muted); }
.steps.inv-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) { .steps.inv-steps { grid-template-columns: 1fr; } }
.band .inv-steps p { color: var(--band-muted); }
@media (max-width: 900px) { .inv { grid-template-columns: 1fr; } }

/* Ablauf */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { display: grid; gap: 8px; align-content: start; counter-increment: s; }
.steps li::before { content: counter(s); font-family: var(--f-data); font-weight: 700; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--sun); color: var(--sun-text); }
.steps p { color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Technik + Über uns */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.tech { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-weight: 600; font-size: 0.95rem; }
.about { display: grid; gap: 18px; align-content: start; }
.about p, .about ul { margin: 0; }
.about p:not(.eyebrow) { color: var(--muted); }
.partners { font-size: 0.95rem; color: var(--muted); }
.partners b { color: var(--ink); }
.partners p { margin: 0 0 6px; }
.partners ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.partners .empfehlung { margin: 12px 0 0; }
.partners .empfehlung a { color: var(--sun-text); font-weight: 600; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Produkte (Kauf & Technik) */
.produkte { padding-block: 0 72px; display: grid; gap: 28px; scroll-margin-top: 80px; }
.produkt { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); }
/* Produktfotos sind auf Weiß freigestellt – Fläche bleibt auch im dunklen Modus weiß */
.produkt-bild { background: #FFFFFF; display: grid; place-items: center; padding: 20px; }
.produkt-bild img { display: block; width: 100%; height: auto; max-width: 100%; }
.produkt-text { padding: 28px; display: grid; gap: 14px; align-content: center; min-width: 0; }
.produkt-text .for { font-size: 0.95rem; color: var(--muted); margin-top: -8px; }
.produkt-text p { color: var(--muted); }
.produkt-text ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.produkt-text li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.produkt-text li::before { content: ""; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--sun); }
/* jede zweite Karte: Bild rechts */
.produkt:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); }
.produkt:nth-of-type(even) .produkt-bild { order: 2; }
@media (max-width: 900px) {
  .produkt, .produkt:nth-of-type(even) { grid-template-columns: 1fr; }
  .produkt:nth-of-type(even) .produkt-bild { order: 0; }
  .produkt-text { padding: 22px; }
}

/* Häufige Fragen */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-family: var(--f-display); font-weight: 700; font-size: 1.08rem; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--sun-text); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .antwort { padding-bottom: 20px; display: grid; gap: 12px; color: var(--muted); }
.faq .antwort ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.tab-scroll { overflow-x: auto; }
.faq table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 0.92rem; color: var(--ink); }
.faq th, .faq td { padding: 8px 8px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
.faq th:first-child, .faq td:first-child { text-align: left; }
.faq th:nth-child(2), .faq td:nth-child(2) { background: color-mix(in srgb, var(--sun) 12%, transparent); }
.faq tr.summe td { font-weight: 700; border-bottom: 0; }

.formel { font-family: "Cambria Math", "Times New Roman", serif; font-size: 1.15rem; color: var(--ink); background: var(--paper);
  border-radius: 10px; padding: 14px 16px; display: block; white-space: nowrap; overflow-x: auto; line-height: 1; }
.formel .bruch { display: inline-flex; flex-direction: column; text-align: center; vertical-align: middle; margin: 0 2px; }
.formel .bruch > span:first-child { border-bottom: 1px solid currentColor; padding: 0 4px 2px; }
.formel .bruch > span:last-child { padding: 2px 4px 0; }
.formel .bruch .geteilt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.formel .klammer { font-size: 2.4em; line-height: 1; font-weight: 300; vertical-align: middle; }

/* Kontakt */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; }
.addr { display: grid; gap: 18px; align-content: start; }
.addr dl { margin: 0; display: grid; grid-template-columns: 80px 1fr; gap: 10px 14px; }
.addr dt { color: var(--muted); font-size: 0.92rem; padding-top: 2px; }
.addr dd { margin: 0; font-weight: 600; user-select: all; }
form { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: grid; gap: 16px; min-width: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 13px; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.form-msg { font-size: 0.95rem; font-weight: 600; color: var(--volt); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.note-form { font-size: 0.85rem; color: var(--muted); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--sun, currentColor); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }

footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; padding-block: 26px; font-size: 0.92rem; color: var(--muted); }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }


/* ===== Joomla-Ergänzungen (Template nicom) ===== */
body { margin: 0; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }

/* Hauptmenü (mod_menu: ul.mod-menu) – sieht aus wie .nav im Entwurf */
.hauptmenue { margin-left: auto; }
.hauptmenue ul { display: flex; gap: 22px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.hauptmenue a { text-decoration: none; font-weight: 600; font-size: 0.98rem; color: var(--muted); }
.hauptmenue a:hover, .hauptmenue .active > a, .hauptmenue .current > a { color: var(--ink); }
.top .logo { white-space: nowrap; }
@media (max-width: 1100px) { .hauptmenue ul { gap: 14px; } .hauptmenue a { font-size: 0.92rem; } }
@media (max-width: 1060px) { .hauptmenue { display: none; } }

/* Fuß: fest am unteren Rand, damit Impressum und Datenschutz immer sichtbar sind */
.fussmenue ul { display: flex; gap: 18px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.fussmenue { align-items: center; }
footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--paper); }
footer .wrap { padding-block: 12px; gap: 6px 20px; }
body { padding-bottom: 56px; }
@media (max-width: 600px) {
  footer .wrap { padding-block: 8px; font-size: 0.85rem; justify-content: center; }
  body { padding-bottom: 76px; }
}
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }

/* Startseite: Beitrag ohne Rahmen, Abschnitte bringen ihre Breite selbst mit */
.startseite .com-content-article, .startseite .item-page { margin: 0; }
.startseite .page-header, .startseite .article-info { display: none; }

/* Unterseiten (Impressum, Datenschutz, weitere Beiträge) */
.seite { max-width: 780px; padding-block: 48px 64px; display: grid; gap: 28px; line-height: 1.65; }
.seite h1, .seite .page-header h1, .seite .page-header h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0; }
.seite h2 { font-size: 1.3rem; margin-top: 8px; }
.seite .com-content-article__body, .seite [itemprop="articleBody"] { display: grid; gap: 28px; }
.seite section { display: grid; gap: 10px; }
.seite p, .seite ul { margin: 0; }
.seite ul { padding-left: 1.2em; display: grid; gap: 4px; }
.seite a { color: var(--sun-text); }
.seite dl { margin: 0; display: grid; grid-template-columns: 170px 1fr; gap: 6px 16px; }
.seite dt { color: var(--muted); }
.seite dd { margin: 0; font-weight: 600; }
/* Impressum-Kopf wie auf der alten Seite: Adresse mit Logo links, Öffnungszeiten und Visitenkarte rechts */
.imp-kopf h2 { text-align: center; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.imp-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.imp-adresse { display: grid; gap: 12px; justify-items: start; }
.imp-adresse img { width: 180px; height: auto; border-radius: 8px; }
.imp-rechts { display: grid; gap: 16px; justify-items: center; }
.oeffnung { width: 100%; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card); }
.oeffnung-kopf { background: #3E8A21; color: #fff; text-align: center; padding: 6px 10px; font-size: 0.92rem; }
.seite .oeffnung dl { grid-template-columns: 1fr auto; padding: 14px 16px; gap: 14px 16px; }
.seite .oeffnung dt { color: var(--ink); font-weight: 700; }
.imp-rechts h3 { font-weight: 400; font-size: 1.4rem; color: var(--muted); margin: 6px 0 0; }
.imp-rechts .qr { width: 180px; height: auto; background: #fff; padding: 8px; border-radius: 8px; }
@media (max-width: 700px) { .imp-spalten { grid-template-columns: 1fr; } .seite .oeffnung dl { grid-template-columns: 1fr auto; } }

/* Joomla-Beitragsinfos (Autor, Kategorie, Datum, Zugriffe) nicht anzeigen */
.seite .article-info, .seite dl.article-info { display: none; }
/* lange Adressen (E-Mail, Webseiten) dürfen umbrechen, sonst wird die Seite auf dem Handy zu breit */
.seite { overflow-wrap: anywhere; }
.top .login { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 420px) { .top .logo span { font-size: 0.95rem; } .top .login { padding-inline: 12px; font-size: 0.88rem; } .top .wrap { gap: 10px; } }
@media (max-width: 370px) { .top .logo svg { width: 24px; height: 24px; } .top .logo span { font-size: 0.85rem; } .top .login { padding-inline: 10px; font-size: 0.8rem; } }
.fehlt { background: color-mix(in srgb, var(--sun) 28%, transparent); padding: 1px 6px; border-radius: 4px; font-family: var(--f-data); font-size: 0.9em; font-weight: 500; }
.stand { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 560px) { .seite dl { grid-template-columns: 1fr; } .seite dd { margin-bottom: 8px; } }

/* Joomla-Formulare (Login, Kontaktkomponente, Suche) im Stil des Kontaktformulars */
.seite input[type=text], .seite input[type=email], .seite input[type=password], .seite input[type=tel],
.seite input[type=search], .seite select, .seite textarea {
  font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 13px; width: 100%; max-width: 480px;
}
.seite button, .seite .btn-primary, .seite input[type=submit] {
  display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border-radius: 999px;
  font: inherit; font-weight: 700; background: var(--sun); color: var(--on-sun); border: 0; cursor: pointer;
}
.seite form { background: var(--card); }
.seite .control-group, .seite .mb-3 { display: grid; gap: 6px; margin-bottom: 14px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Systemmeldungen */
#system-message-container { max-width: var(--max); margin: 16px auto 0; padding-inline: 16px; }
joomla-alert, .alert { display: block; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--sun);
  border-radius: 10px; padding: 12px 16px; margin-bottom: 12px; }
joomla-alert[type=danger], .alert-danger, .alert-error { border-left-color: #C0392B; }
joomla-alert[type=success], .alert-success { border-left-color: var(--volt); }
joomla-alert .joomla-alert--close, joomla-alert button { float: right; background: none; border: 0; font-size: 1.2rem; cursor: pointer; color: var(--muted); }

/* Seitenumbruch/Blättern */
.pagination { display: flex; gap: 8px; list-style: none; padding: 0; }

/* Firmenlogo (Zeichen) links vom Firmennamen */
.top .logo-zeichen { width: 44px; height: auto; display: block; background: #fff; border-radius: 6px; flex-shrink: 0; }
@media (max-width: 420px) { .top .logo-zeichen { width: 36px; } }
@media (max-width: 370px) { .top .logo-zeichen { width: 30px; } }
