/* ERZEUGT von konzepte/news-v2/werkzeuge/in_hauptseite.py aus konzepte/news-v2/assets/news.css – nicht von Hand bearbeiten.
   Alle Regeln gelten nur innerhalb von .nv-root (News-Bereich der Hauptseite). */
:root { --hdr: 76px; }
.nv-root { --line: #e6e7eb; --chip: #ffffff; --chip-line: #d5d8de; --soft: #ebecef; }
html[data-theme="dark"] .nv-root { --line: #2a2c31; --chip: #16171a; --chip-line: #2a2c31; --soft: #16171a; }
/* ---------- Drei Spalten ---------- */
.nv-root .nv-cols { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr) minmax(0, .86fr); gap: 20px; align-items: start; padding-top: 36px; }
.nv-root .nv-col { padding: 0; display: flex; flex-direction: column; gap: 16px; min-width: 0; scroll-margin-top: calc(var(--hdr) + 12px); }
.nv-root .nv-col-head { display: flex; align-items: center; gap: 10px; padding: 0 4px; }
.nv-root .nv-col-head .nv-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.nv-root .nv-col-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.nv-root .nv-count { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--soft); border-radius: 999px; padding: 3px 9px; font-variant-numeric: tabular-nums; }
.nv-root .nv-col-sub { font-size: 14px; color: var(--muted); padding: 0 4px; margin-top: -8px; }
.nv-root .nv-list { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (max-width: 1080px) {
  .nv-root .nv-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .nv-root .nv-col--gesetze { grid-column: 1 / -1; }
  .nv-root .nv-col--gesetze .nv-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (max-width: 720px) {
  .nv-root .nv-cols { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-top: 24px; }
  .nv-root .nv-col--gesetze .nv-list { display: flex; }
}

/* ---------- Spalten enden auf gleicher Hoehe: weicher Auslauf + „Mehr anzeigen“ ---------- */
.nv-root .nv-col.is-clamped { position: relative; overflow: hidden; }
/* Abgeschnittene Kaesten unten ebenfalls rund – die Spalte schneidet mit runden Ecken ab */
.nv-root .nv-col.is-clamped:not(.is-open) { border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); }
.nv-root .nv-col.is-anim { transition: max-height .6s cubic-bezier(.2,.8,.2,1); }
/* Radius des klaren „Fensters“ um den Mauszeiger – weich ueber @property animiert */
@property --nv-loch { syntax: "<length>"; inherits: false; initial-value: 0px; }
.nv-root .nv-clamp { display: flex; justify-content: center; }
.nv-root .nv-col.is-clamped:not(.is-open) > .nv-clamp {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; height: 200px; align-items: flex-end; padding-bottom: 4px; pointer-events: none;
  --nv-loch: 0px; --mx: 50%; --my: 50%;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--paper) 0%, transparent) 0%, color-mix(in srgb, var(--paper) 55%, transparent) 50%, var(--paper) 90%);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  /* Verlauf von oben nach unten, dazu ein runder klarer Bereich um die Maus (Masken werden verschnitten) */
  -webkit-mask-image: radial-gradient(circle var(--nv-loch) at var(--mx) var(--my), transparent 0%, transparent 45%, #000 100%), linear-gradient(to bottom, transparent 0%, #000 60%);
  -webkit-mask-composite: source-in;
  mask-image: radial-gradient(circle var(--nv-loch) at var(--mx) var(--my), transparent 0%, transparent 45%, #000 100%), linear-gradient(to bottom, transparent 0%, #000 60%);
  mask-composite: intersect;
  transition: --nv-loch .45s cubic-bezier(.2,.8,.2,1);
}
.nv-root .nv-col.is-clamped:not(.is-open) > .nv-clamp.loch-an { --nv-loch: 110px; }
@media (prefers-reduced-motion: reduce) { .nv-root .nv-col.is-clamped:not(.is-open) > .nv-clamp { transition: none; } }
.nv-root .nv-col.is-open > .nv-clamp { padding-top: 6px; }
.nv-root .nv-clamp-btn {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer;
  font: 600 15px/1 var(--font); padding: 13px 22px; border-radius: 999px; background: var(--black); color: #fff;
  box-shadow: 0 8px 24px rgba(20,20,30,.16); transition: transform .25s ease, background .25s ease;
}
.nv-root .nv-clamp-btn:hover { transform: translateY(-1px); background: #2a2b30; }
.nv-root .nv-clamp-btn svg { transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.nv-root .nv-col.is-open .nv-clamp-btn svg { transform: rotate(180deg); }
html[data-theme="dark"] .nv-root .nv-clamp-btn { background: #f2f2f4; color: #0b0b0c; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
html[data-theme="dark"] .nv-root .nv-clamp-btn:hover { background: #d9dce2; }
@media (prefers-reduced-motion: reduce) { .nv-root .nv-col.is-anim { transition: none; } }
/* Desktop: Verlauf je Spalte, aber nur ein Knopf mittig darunter */
.nv-root .nv-cols.ein-knopf .nv-clamp-btn { display: none; }
.nv-root .nv-cols.ein-knopf .nv-col.is-open > .nv-clamp { display: none; }
.nv-root .nv-cols.ein-knopf .nv-col.is-clamped:not(.is-open) > .nv-clamp { height: 220px; }
.nv-root .nv-more-all { position: relative; z-index: 7; display: flex; justify-content: center; margin-top: 18px; }
.nv-root .nv-more-all.is-open { margin-top: 36px; }
/* Aufgeklappt: „Weniger anzeigen“ schwebt unten im Bild, solange man durch die Spalten scrollt */
.nv-root .nv-more-all.is-open { position: sticky; bottom: 18px; pointer-events: none; }
.nv-root .nv-more-all.is-open .nv-clamp-btn { pointer-events: auto; box-shadow: 0 10px 34px rgba(20,20,30,.28); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.nv-root .nv-more-all .nv-clamp-btn { display: inline-flex; padding: 14px 26px; }
.nv-root .nv-more-all.is-open .nv-clamp-btn svg { transform: rotate(180deg); }

/* ---------- Filter: Chips + Segmente (Apple-Segmented-Control) ---------- */
.nv-root .nv-filter { display: flex; flex-direction: column; gap: 10px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
html[data-theme="dark"] .nv-root .nv-filter { background: #16171a; }
.nv-root .nv-filter-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.nv-root .nv-filter-label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); width: 62px; flex: none; }
.nv-root .nv-chips { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; flex: 1; }
.nv-root .nv-chip {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--chip-line); background: var(--chip);
  border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; line-height: 1.2;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .2s ease;
}
.nv-root .nv-chip:hover { border-color: var(--ink); }
.nv-root .nv-chip:active { transform: scale(.96); }
.nv-root .nv-chip[aria-pressed="true"] { background: var(--black); color: #fff; border-color: var(--black); }
html[data-theme="dark"] .nv-root .nv-chip[aria-pressed="true"] { background: #f2f2f4; color: #0b0b0c; border-color: #f2f2f4; }
.nv-root .nv-chip .n { font-size: 11px; font-weight: 700; opacity: .55; font-variant-numeric: tabular-nums; }
.nv-root .nv-chip .code, .nv-root .nv-code { display: inline-grid; place-items: center; min-width: 24px; height: 18px; padding: 0 5px; border-radius: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; background: var(--soft); color: var(--ink); }
.nv-root .nv-chip[aria-pressed="true"] .code { background: rgba(255,255,255,.18); color: inherit; }
html[data-theme="dark"] .nv-root .nv-chip[aria-pressed="true"] .code { background: rgba(0,0,0,.12); }
.nv-root .nv-seg { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 3px; gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.nv-root .nv-seg::-webkit-scrollbar { display: none; }
html[data-theme="dark"] .nv-root .nv-seg { background: #0b0b0c; border: 1px solid #2a2c31; }
.nv-root .nv-seg button { border: 0; background: transparent; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--muted); white-space: nowrap; transition: background .25s ease, color .25s ease, box-shadow .25s ease; }
.nv-root .nv-seg button:hover { color: var(--ink); }
.nv-root .nv-seg button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(20,20,30,.12), 0 0 0 .5px rgba(20,20,30,.06); }
html[data-theme="dark"] .nv-root .nv-seg button[aria-pressed="true"] { background: #2a2c31; color: #f2f2f4; box-shadow: none; }
.nv-root .nv-sort { margin-left: auto; }
/* Gleitpille (assets/gleitpille.js): die Markierung gleitet wie bei Apple zur gewaehlten Option */
.nv-root .nv-seg.gp-an > .gp-pille { background: var(--white); box-shadow: 0 1px 3px rgba(20,20,30,.12), 0 0 0 .5px rgba(20,20,30,.06); }
html[data-theme="dark"] .nv-root .nv-seg.gp-an > .gp-pille { background: #2a2c31; box-shadow: none; }
.nv-root .nv-seg.gp-an button[aria-pressed="true"] { background: transparent; box-shadow: none; }
html[data-theme="dark"] .nv-root .nv-seg.gp-an button[aria-pressed="true"] { background: transparent; }
.nv-root .nv-chips.gp-an > .gp-pille { background: var(--black); }
html[data-theme="dark"] .nv-root .nv-chips.gp-an > .gp-pille { background: #f2f2f4; }
.nv-root .nv-chips.gp-an .nv-chip { background: transparent; }
.nv-root .nv-chips.gp-an .nv-chip[aria-pressed="true"] { background: transparent; border-color: transparent; }
html[data-theme="dark"] .nv-root .nv-chips.gp-an .nv-chip[aria-pressed="true"] { background: transparent; border-color: transparent; }
.nv-root .nv-result { font-size: 12.5px; color: var(--muted); padding: 2px 4px 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.nv-root .nv-reset { border: 0; background: none; padding: 0; color: var(--elektro); font-weight: 600; font-size: 12.5px; cursor: pointer; }
.nv-root .nv-reset:hover { text-decoration: underline; }
.nv-root .nv-filter { container-type: inline-size; }
/* Schmale Filterbox (Desktop-Spalte, Handy): Beschriftung ueber die Auswahl */
@container (max-width: 560px) {
  .nv-root .nv-filter-label { width: 100%; }
  .nv-root .nv-sort { margin-left: 0; }
}
@media (max-width: 520px) { .nv-root .nv-filter { padding: 12px; } }

/* ---------- Karten (wie .card der Hauptseite) ---------- */
.nv-root .card {
  background: var(--white); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px; min-width: 0; position: relative;
}
html[data-theme="dark"] .nv-root .card { background: #16171a; border-color: #2a2c31; color: var(--ink); }
.nv-root .card .bar { width: 44px; height: 6px; border-radius: 3px; }
.nv-root .card h3 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; overflow-wrap: break-word; hyphens: auto; }
.nv-root .card p { color: var(--muted); overflow-wrap: break-word; }
.nv-root .card p strong { color: var(--ink); }
.nv-root .news-meta { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.nv-root .news-meta .sep { margin: 0; color: #b9bdc6; }
html[data-theme="dark"] .nv-root .news-meta .sep { color: #3a3c42; }
.nv-root .news-link { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--elektro); }
.nv-root .news-link:hover { text-decoration: underline; }
html[data-theme="dark"] .nv-root .news-link { color: #4c9bff; }
.nv-root .card-foot { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 4px; }
.nv-root .card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nv-root .nv-card-enter { animation: nv-in .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes nv-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .nv-root .nv-card-enter { animation: none; } }
@media (max-width: 520px) { .nv-root .card { padding: 22px 20px; } .nv-root .card h3 { font-size: 19px; } }

/* Platzhalter klar erkennbar */
.nv-root .card.is-beispiel { border-style: dashed; border-color: #d8c27a; }
html[data-theme="dark"] .nv-root .card.is-beispiel { border-color: rgba(255,196,0,.32); }
.nv-root .nv-flag { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: #8a5a00; background: #fff3d1; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
html[data-theme="dark"] .nv-root .nv-flag { color: #ffd479; background: rgba(255,196,0,.12); }

/* Gesetzes-Infoblock: Gesetz, Land, gilt fuer, Stand */
.nv-root .law-scope { margin: 2px 0 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(10,108,255,.28); background: rgba(10,108,255,.07); font-size: 13.5px; line-height: 1.45; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; }
.nv-root .law-scope dt { font-weight: 700; color: var(--ink); white-space: nowrap; }
.nv-root .law-scope dd { margin: 0; color: var(--ink); opacity: .86; overflow-wrap: break-word; min-width: 0; }
.nv-root .law-scope .codes { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-right: 6px; vertical-align: 1px; }
.nv-root .law-scope .nv-code { background: rgba(10,108,255,.14); }
html[data-theme="dark"] .nv-root .law-scope { background: rgba(10,108,255,.10); border-color: rgba(76,155,255,.30); }
@media (max-width: 360px) { .nv-root .law-scope { grid-template-columns: minmax(0, 1fr); gap: 0; } .nv-root .law-scope dd { margin-bottom: 6px; } }

/* Status einer Regel: gilt bereits / kommt */
.nv-root .card-top .tags { margin: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.nv-root .nv-status { font-size: 11px; font-weight: 700; letter-spacing: .03em; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.nv-root .nv-status.gilt { color: #1b7f3b; background: rgba(48,209,88,.14); }
.nv-root .nv-status.kommt { color: #0a5ad6; background: rgba(10,108,255,.12); }
html[data-theme="dark"] .nv-root .nv-status.gilt { color: #30d158; background: rgba(48,209,88,.12); }
html[data-theme="dark"] .nv-root .nv-status.kommt { color: #6aaeff; background: rgba(10,108,255,.18); }

/* Fristen in der Karte: kleine Zeitleiste */
.nv-root .nv-fristen { list-style: none; margin: 2px 0 0; padding: 0; display: grid; position: relative; }
.nv-root .nv-fristen li { display: grid; grid-template-columns: 14px 86px minmax(0, 1fr); gap: 0 10px; align-items: start; padding: 5px 0; font-size: 13px; line-height: 1.4; position: relative; }
.nv-root .nv-fristen li::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.nv-root .nv-fristen li:first-child::before { top: 11px; }
.nv-root .nv-fristen li:last-child::before { bottom: calc(100% - 11px); }
.nv-root .nv-fristen .nv-dot { position: relative; z-index: 1; width: 10px; height: 10px; margin: 4px 0 0 2px; border-radius: 50%; background: var(--chip-line); box-shadow: 0 0 0 3px var(--white); }
html[data-theme="dark"] .nv-root .nv-fristen .nv-dot { box-shadow: 0 0 0 3px #16171a; }
.nv-root .nv-fristen time { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nv-root .nv-fristen li > span:last-child { color: var(--muted); overflow-wrap: break-word; }
.nv-root .nv-fristen li.past time, .nv-root .nv-fristen li.past > span:last-child { opacity: .6; }
.nv-root .nv-fristen li.next .nv-dot { background: var(--elektro); box-shadow: 0 0 0 3px var(--white), 0 0 0 6px rgba(10,108,255,.2); }
html[data-theme="dark"] .nv-root .nv-fristen li.next .nv-dot { box-shadow: 0 0 0 3px #16171a, 0 0 0 6px rgba(10,108,255,.3); }
.nv-root .nv-fristen li.next time { color: var(--elektro); }
html[data-theme="dark"] .nv-root .nv-fristen li.next time { color: #6aaeff; }
.nv-root .nv-fristen li.future .nv-dot { background: var(--white); border: 2px solid var(--elektro); }
html[data-theme="dark"] .nv-root .nv-fristen li.future .nv-dot { background: #16171a; }
@media (max-width: 400px) {
  .nv-root .nv-fristen li { grid-template-columns: 14px minmax(0, 1fr); }
  .nv-root .nv-fristen li > span:last-child { grid-column: 2; }
}

/* „Was kommt wann“: schwarzer Block wie der Hero der Startseite */
.nv-root .card.nv-timeline {
  color: #fff; border-color: #16171a; gap: 10px; padding: 24px;
  background:
    radial-gradient(360px circle at 0% 0%, rgba(10,108,255,.30) 0%, transparent 70%),
    radial-gradient(320px circle at 100% 100%, rgba(48,209,88,.20) 0%, transparent 70%),
    radial-gradient(280px circle at 100% 0%, rgba(255,106,0,.16) 0%, transparent 70%),
    #000;
}
html[data-theme="dark"] .nv-root .card.nv-timeline { background: radial-gradient(360px circle at 0% 0%, rgba(10,108,255,.30) 0%, transparent 70%), radial-gradient(320px circle at 100% 100%, rgba(48,209,88,.20) 0%, transparent 70%), radial-gradient(280px circle at 100% 0%, rgba(255,106,0,.16) 0%, transparent 70%), #000; border-color: #22242a; color: #fff; }
.nv-root .nv-timeline:empty { display: none; }
/* Helles Design: weisse Karte mit zarten Logo-Farben statt schwarzem Block */
html:not([data-theme="dark"]) .nv-root .card.nv-timeline {
  color: var(--ink); border-color: var(--line);
  background:
    radial-gradient(360px circle at 0% 0%, rgba(10,108,255,.10) 0%, transparent 70%),
    radial-gradient(320px circle at 100% 100%, rgba(48,209,88,.10) 0%, transparent 70%),
    radial-gradient(280px circle at 100% 0%, rgba(255,106,0,.08) 0%, transparent 70%),
    #fff;
  box-shadow: 0 1px 2px rgba(20,20,30,.04), 0 12px 32px rgba(20,20,30,.06);
}
html:not([data-theme="dark"]) .nv-root .nv-timeline .tl-head h3 { color: var(--ink); }
html:not([data-theme="dark"]) .nv-root .nv-timeline .tl-head p { color: var(--muted); }
html:not([data-theme="dark"]) .nv-root .tl-item:hover, html:not([data-theme="dark"]) .nv-root .tl-item:focus-visible { background: rgba(20,20,30,.045); }
html:not([data-theme="dark"]) .nv-root .tl-when time { color: var(--ink); }
html:not([data-theme="dark"]) .nv-root .tl-when small { color: var(--elektro); }
html:not([data-theme="dark"]) .nv-root .tl-what b { color: var(--ink); }
html:not([data-theme="dark"]) .nv-root .tl-meta { color: var(--muted); }
html:not([data-theme="dark"]) .nv-root .tl-meta .nv-code { background: var(--soft); color: var(--ink); }
html:not([data-theme="dark"]) .nv-root .tl-more { border-color: var(--chip-line); background: var(--white); color: var(--ink); }
html:not([data-theme="dark"]) .nv-root .tl-more:hover { background: var(--soft); }
html:not([data-theme="dark"]) .nv-root .tl-empty { color: var(--muted); }
.nv-root .nv-timeline .tl-head h3 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.nv-root .nv-timeline .tl-head p { color: #9aa0aa; font-size: 13px; margin-top: 2px; }
.nv-root .tl-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 2px; }
.nv-root .tl-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 10px; margin: 0 -10px; border-radius: 12px; text-decoration: none; color: inherit; transition: background .25s ease; }
.nv-root .tl-item:hover, .nv-root .tl-item:focus-visible { background: rgba(255,255,255,.08); }
.nv-root .tl-when { display: flex; flex-direction: column; }
.nv-root .tl-when time { font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; color: #fff; }
.nv-root .tl-when small { font-size: 11.5px; color: #6aaeff; font-weight: 600; }
.nv-root .tl-what { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nv-root .tl-what b { font-size: 13.5px; font-weight: 600; line-height: 1.35; color: #e6e7eb; overflow-wrap: break-word; }
.nv-root .tl-meta { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: #9aa0aa; min-width: 0; }
.nv-root .tl-meta .nv-code { background: rgba(255,255,255,.14); color: #fff; flex: none; }
.nv-root .tl-more { align-self: flex-start; margin-top: 2px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08); color: #fff; font: 600 13px var(--font); padding: 8px 14px; border-radius: 999px; cursor: pointer; transition: background .2s ease; }
.nv-root .tl-more:hover { background: rgba(255,255,255,.16); }
.nv-root .tl-empty { color: #9aa0aa; font-size: 14px; }
@media (max-width: 400px) { .nv-root .tl-item { grid-template-columns: minmax(0, 1fr); gap: 4px; } .nv-root .tl-when { flex-direction: row; gap: 8px; align-items: baseline; } }
/* Karte kurz hervorheben, wenn man aus der Zeitleiste hinspringt */
.nv-root .card.is-hit { animation: nv-hit 1.6s ease; }
@keyframes nv-hit { 0%, 30% { box-shadow: 0 0 0 4px rgba(10,108,255,.35); border-color: var(--elektro); } 100% { box-shadow: 0 0 0 0 rgba(10,108,255,0); } }

/* Aufklappen „Details“ mit weicher Hoehen-Animation (wo unterstuetzt) */
.nv-root .nv-more { border-top: 1px solid var(--line); padding-top: 10px; interpolate-size: allow-keywords; }
.nv-root .nv-more summary { list-style: none; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; border-radius: 8px; }
.nv-root .nv-more summary::-webkit-details-marker { display: none; }
.nv-root .nv-more summary .chev { width: 18px; height: 18px; border-radius: 50%; background: var(--soft); display: inline-grid; place-items: center; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.nv-root .nv-more[open] summary .chev { transform: rotate(180deg); }
.nv-root .nv-more::details-content { block-size: 0; overflow: hidden; transition: block-size .4s cubic-bezier(.2,.8,.2,1), content-visibility .4s allow-discrete; }
.nv-root .nv-more[open]::details-content { block-size: auto; }
.nv-root .nv-more .inner { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
@media (prefers-reduced-motion: reduce) { .nv-root .nv-more::details-content { transition: none; } }

/* Video-Teaser in einer News-Karte */
.nv-root .nv-teaser { position: relative; display: block; width: 100%; border: 0; padding: 0; cursor: pointer; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.nv-root .nv-teaser img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.nv-root .nv-teaser:hover img { transform: scale(1.03); }
.nv-root .nv-teaser .ilkp-big { width: 56px; height: 56px; }
.nv-root .nv-teaser .ilkp-big svg { width: 20px; height: 20px; }
.nv-root .nv-teaser .dur { position: absolute; right: 10px; bottom: 10px; }

/* Schaubilder in Tipp-Karten (assets/diagrams.js) */
.nv-root .nv-diagram { margin: 2px 0 0; padding: 14px 12px 8px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
html[data-theme="dark"] .nv-root .nv-diagram { background: #0f1012; }
.nv-root .nv-diagram svg { display: block; width: 100%; height: auto; overflow: visible; }
/* Handy: Schaubild bis an den Kartenrand, damit die Schrift groesser bleibt */
@media (max-width: 520px) { .nv-root .nv-diagram { margin: 2px -14px 0; padding: 12px 6px 6px; } }
.nv-root .nv-diagram figcaption { font-size: 11px; color: var(--muted); text-align: right; margin-top: 6px; letter-spacing: .02em; }
.nv-root .dg-box { fill: var(--white); stroke: var(--line); stroke-width: 1; }
html[data-theme="dark"] .nv-root .dg-box { fill: #1c1d20; stroke: #2e3036; }
.nv-root .dg-t { fill: var(--ink); font: 700 11px var(--font); }
.nv-root .dg-m { fill: var(--muted); font: 600 9.5px var(--font); }
.nv-root .dg-strong { fill: var(--ink); }
.nv-root .dg-inv { fill: #fff; }
.nv-root .dg-num { fill: #fff; font: 800 11px var(--font); }
.nv-root .dg-core { fill: var(--black); }
html[data-theme="dark"] .nv-root .dg-core { fill: #f2f2f4; }
html[data-theme="dark"] .nv-root .dg-core ~ .dg-inv { fill: #0b0b0c; }
.nv-root .dg-line { stroke: var(--muted); stroke-width: 1.5; fill: none; stroke-linecap: round; }
.nv-root .dg-head { fill: var(--muted); }
.nv-root .dg-axis { stroke: var(--chip-line); stroke-width: 1; }
.nv-root .dg-limit { stroke: #ff453a; stroke-width: 1.5; stroke-dasharray: 5 4; }
.nv-root .dg-soll { stroke: var(--ink); opacity: .5; }
.nv-root .dg-curve { stroke: var(--hkls); stroke-width: 3; fill: none; stroke-linecap: round; }
.nv-root .dg-spike { stroke: var(--hkls); stroke-width: 2.2; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.nv-root .dg-bus { stroke: var(--ga); stroke-width: 5; stroke-linecap: round; }
/* Einblenden beim Scrollen: Balken wachsen, Linien zeichnen sich, Kaesten erscheinen */
.nv-root .nv-diagram .dg-grow { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.nv-root .nv-diagram .dg-draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s cubic-bezier(.4,0,.2,1); }
.nv-root .nv-diagram .dg-fade { opacity: 0; transform: translateY(4px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.nv-root .nv-diagram.is-in .dg-grow { transform: none; }
.nv-root .nv-diagram.is-in .dg-draw { stroke-dashoffset: 0; }
.nv-root .nv-diagram.is-in .dg-fade { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .nv-root .nv-diagram .dg-grow, .nv-root .nv-diagram .dg-fade { transform: none; opacity: 1; transition: none; }
  .nv-root .nv-diagram .dg-draw { stroke-dashoffset: 0; transition: none; }
}
.nv-root .nv-partner-tag { color: var(--ga); }

/* Sprungziel (z. B. „Zum Partner Loxone“) kurz hervorheben */
.nv-root .card { scroll-margin-top: calc(var(--hdr) + 16px); }
.nv-root .card:target { border-color: var(--elektro); box-shadow: 0 0 0 4px rgba(10,108,255,.16); transition: box-shadow .6s ease, border-color .6s ease; }

/* Partner */
.nv-root .partner { flex-direction: row; align-items: flex-start; gap: 14px; padding: 20px; }
.nv-root .partner .mono { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 13px; font-weight: 800; letter-spacing: .02em; color: #fff; background: #1c1d20; position: relative; }
.nv-root .partner .mono::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: var(--ring, linear-gradient(135deg, #ff6a00, #0a6cff 55%, #2fd158)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
html[data-theme="dark"] .nv-root .partner .mono { background: #0b0b0c; }
/* Partner mit echtem Logo: Kopfzeile mit Logo-Kachel und Plakette, Text darunter */
.nv-root .partner.has-logo { flex-direction: column; gap: 14px; }
.nv-root .partner .nv-p-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; width: 100%; }
.nv-root .partner .nv-p-kopf .zert, .nv-root .partner .nv-p-kopf .silver { align-self: center; white-space: nowrap; }
/* App-Icon-Kachel (Apple-Rundung ~22,5 %), Flaeche in der Markenfarbe */
.nv-root .partner .nv-icon { flex: none; position: relative; width: 66px; height: 66px; border-radius: 23%; display: grid; place-items: center; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 6px 16px -8px rgba(0,0,0,.28); }
.nv-root .partner .nv-icon::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.10), inset 0 1px 0 rgba(255,255,255,.28); }
html[data-theme="dark"] .nv-root .partner .nv-icon { box-shadow: 0 6px 18px -8px rgba(0,0,0,.7); }
html[data-theme="dark"] .nv-root .partner .nv-icon::after { box-shadow: inset 0 0 0 .5px rgba(255,255,255,.12), inset 0 1px 0 rgba(255,255,255,.22); }
.nv-root .partner .nv-logo { display: block; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.nv-root .partner .nv-logo-bild { display: block; object-fit: contain; }
.nv-root .partner .body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.nv-root .partner h3 { font-size: 17px; }
.nv-root .partner .art { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.nv-root .partner p { font-size: 14px; }
.nv-root .partner.is-top { padding: 24px 22px; }
.nv-root .silver { display: inline-block; align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #3a3c42; padding: 4px 10px; border-radius: 999px; background: linear-gradient(135deg, #f4f5f7, #c9ccd3 45%, #eef0f3 60%, #b4b8c0); box-shadow: inset 0 0 0 .5px rgba(0,0,0,.12); }
.nv-root .partner.is-beispiel { border-style: solid; }
/* Plakette fuer abgeschlossene Zertifizierungen */
.nv-root .zert { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #1b7f3b; padding: 4px 10px 4px 8px; border-radius: 999px; background: rgba(48,209,88,.14); box-shadow: inset 0 0 0 .5px rgba(48,209,88,.45); }
/* Plakette fuer direkte Projektpartner (blau, Elektro-Farbe) */
.nv-root .nv-projekt { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #0a5fd6; padding: 4px 10px 4px 8px; border-radius: 999px; background: rgba(10,108,255,.10); box-shadow: inset 0 0 0 .5px rgba(10,108,255,.40); white-space: nowrap; }
html[data-theme="dark"] .nv-root .nv-projekt { color: #5aa2ff; background: rgba(10,108,255,.14); }
.nv-root .partner .nv-p-kopf .nv-projekt { align-self: center; }
html[data-theme="dark"] .nv-root .zert { color: #30d158; background: rgba(48,209,88,.12); }
.nv-root .partner .nv-flag { align-self: flex-start; }

/* Leerer Zustand / Fehler */
.nv-root .nv-empty { text-align: center; padding: 34px 20px; color: var(--muted); border: 1px dashed var(--chip-line); border-radius: var(--radius); font-size: 14px; }
.nv-root .nv-empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.nv-root .nv-error { border-color: #ff3b30; color: var(--ink); text-align: left; }
.nv-root .nv-error code { font-size: 12.5px; background: var(--soft); padding: 2px 6px; border-radius: 6px; }

/* ---------- Videos ---------- */
.nv-root .nv-videos { padding: 96px 0 0; }
.nv-root .sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.nv-root .sec-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.02em; }
.nv-root .sec-head p { color: var(--muted); }
.nv-root .nv-video-layout { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.nv-root .nv-stage-info { padding: 16px 6px 0; display: flex; flex-direction: column; gap: 6px; }
.nv-root .nv-stage-info h3 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.nv-root .nv-stage-info p { color: var(--muted); font-size: 15px; }
.nv-root .nv-playlist { display: flex; flex-direction: column; gap: 10px; list-style: none; margin: 0; padding: 0; }
.nv-root .nv-pl-item { width: 100%; display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 14px; align-items: center; text-align: left; border: 1px solid var(--line); background: var(--white); border-radius: 16px; padding: 8px; cursor: pointer; transition: border-color .25s ease, background .25s ease, transform .25s ease; }
html[data-theme="dark"] .nv-root .nv-pl-item { background: #16171a; }
.nv-root .nv-pl-item:hover { border-color: var(--chip-line); transform: translateY(-1px); }
.nv-root .nv-pl-item[aria-current="true"] { border-color: var(--ink); }
.nv-root .nv-pl-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #0b0b0c; }
.nv-root .nv-pl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nv-root .nv-pl-thumb .dur { position: absolute; right: 6px; bottom: 6px; }
.nv-root .nv-pl-thumb .now { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.35); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: 0; transition: opacity .25s ease; }
.nv-root .nv-pl-item[aria-current="true"] .now { opacity: 1; }
.nv-root .nv-pl-item[aria-current="true"] .nv-ext-thumb { color: transparent; }
.nv-root .nv-pl-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nv-root .nv-pl-text b { font-size: 15px; line-height: 1.25; overflow-wrap: break-word; }
.nv-root .nv-pl-text span { font-size: 12.5px; color: var(--muted); }
.nv-root .nv-pl-text .nv-flag { align-self: flex-start; margin-top: 3px; }
.nv-root .nv-ext-thumb { width: 100%; height: 100%; display: grid; place-items: start; padding: 8px 9px; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  background: radial-gradient(120px circle at 20% 0%, rgba(255,106,0,.45), transparent 70%), radial-gradient(140px circle at 100% 100%, rgba(10,108,255,.5), transparent 70%), #111214; }
.nv-root .dur { font-size: 11.5px; font-weight: 700; color: #fff; background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 2px 7px; border-radius: 6px; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .nv-root .nv-video-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .nv-root .nv-pl-item { grid-template-columns: 104px minmax(0, 1fr); gap: 10px; } .nv-root .nv-pl-text b { font-size: 14px; } }

/* ---------- Reels (Hochformat 9:16) ---------- */
.nv-root .nv-reels { margin-top: 44px; }
.nv-root .nv-reels-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.nv-root .nv-reels-head h3 { font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.nv-root .nv-reels-head p { color: var(--muted); font-size: 15px; }
.nv-root .nv-reel-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.nv-root .nv-reel { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; border: 0; padding: 0; border-radius: 22px; overflow: hidden; cursor: pointer; background: #0b0b0c; color: #fff; text-align: left; isolation: isolate; box-shadow: 0 1px 0 rgba(0,0,0,.04); transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s ease; }
.nv-root .nv-reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.nv-root .nv-reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0) 45%); pointer-events: none; }
.nv-root .nv-reel:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20,20,30,.18); }
.nv-root .nv-reel:hover img { transform: scale(1.04); }
/* Abspielknopf unten rechts, damit die Schrift im Vorschaubild frei bleibt */
.nv-root .nv-reel .ilkp-big { width: 44px; height: 44px; z-index: 2; left: auto; top: auto; right: 14px; bottom: 14px; translate: none; }
.nv-root .nv-reel .ilkp-big svg { width: 16px; height: 16px; margin-left: 3px; fill: #fff; }
.nv-root .nv-reel:hover .ilkp-big { transform: scale(1.08); background: rgba(255,255,255,.26); }
.nv-root .nv-reel .cap { position: absolute; left: 16px; right: 68px; bottom: 16px; z-index: 2; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.nv-root .nv-reel .cap b { font-size: 16px; line-height: 1.25; font-weight: 700; text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.nv-root .nv-reel:focus-visible { outline: 3px solid var(--elektro); outline-offset: 3px; }
@media (max-width: 900px) {
  /* Handy/Tablet: wischbar, rastet je Karte ein */
  .nv-root .nv-reel-list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -24px; padding: 4px 24px 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nv-root .nv-reel-list::-webkit-scrollbar { display: none; }
  .nv-root .nv-reel-list li { flex: 0 0 min(46%, 260px); scroll-snap-align: start; scroll-margin-left: 24px; }
}
@media (max-width: 520px) {
  .nv-root .nv-reel-list { margin: 0 -16px; padding: 4px 16px 12px; }
  .nv-root .nv-reel-list li { flex-basis: 64%; scroll-margin-left: 16px; }
}

/* KI-Kennzeichnung: kleines Glas-Zeichen in der Ecke, Erklaerung beim Ueberfahren (title) */
.nv-root .nv-ki { position: absolute; top: 10px; left: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 4px; font: 700 10.5px/1 var(--font); letter-spacing: .06em; color: rgba(255,255,255,.88); padding: 4px 7px; border-radius: 999px; background: rgba(0,0,0,.38); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.22); cursor: help; }
.nv-root .nv-pl-thumb .nv-ki { top: 6px; left: 6px; padding: 3px 6px; font-size: 9.5px; }
.nv-root .nv-reel .nv-ki { top: 14px; left: 14px; }
.nv-root .nv-ki.inline { position: static; vertical-align: 3px; margin-left: 10px; background: rgba(255,255,255,.14); }

/* Reel-Verweis in einer Gesetzes-Karte */
.nv-root .nv-reel-link { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--paper); border-radius: 14px; padding: 8px; cursor: pointer; color: var(--ink); transition: border-color .25s ease, transform .25s ease; }
html[data-theme="dark"] .nv-root .nv-reel-link { background: #0f1012; }
.nv-root .nv-reel-link:hover { border-color: var(--chip-line); transform: translateY(-1px); }
.nv-root .nv-reel-link .thumb { position: relative; flex: none; width: 46px; aspect-ratio: 9 / 16; border-radius: 9px; overflow: hidden; background: #0b0b0c; }
.nv-root .nv-reel-link .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nv-root .nv-reel-link .pl { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.25); }
.nv-root .nv-reel-link .pl svg { width: 14px; height: 14px; fill: #fff; }
.nv-root .nv-reel-link .txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nv-root .nv-reel-link small { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.nv-root .nv-reel-link b { font-size: 14px; line-height: 1.3; }

/* ---------- Lightbox fuer Videos aus News-Karten ---------- */
.nv-root dialog.nv-lightbox { border: 0; padding: 0; background: transparent; width: min(1100px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); overflow: visible; color: #fff; }
.nv-root dialog.nv-lightbox::backdrop { background: rgba(0,0,0,.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.nv-root dialog.nv-lightbox[open] { animation: nv-pop .35s cubic-bezier(.2,.8,.2,1); }
.nv-root dialog.nv-lightbox[open]::backdrop { animation: nv-fade .35s ease; }
@keyframes nv-pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes nv-fade { from { opacity: 0; } to { opacity: 1; } }
.nv-root .nv-lb-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.nv-root .nv-lb-head h2 { font-size: 18px; font-weight: 700; }
.nv-root .nv-close { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.12); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s ease; }
.nv-root .nv-close:hover { background: rgba(255,255,255,.22); }
.nv-root .nv-lb-stage { max-height: calc(100dvh - 120px); }
.nv-root .nv-lb-stage .ilkp { max-height: calc(100dvh - 120px); }
/* Hochformat: schmale Lightbox, Hoehe passt in den Bildschirm */
.nv-root dialog.nv-lightbox.is-hoch { width: min(440px, calc((100dvh - 110px) * 9 / 16), calc(100vw - 32px)); }

/* ---------- Fuss ---------- */
.nv-root .nv-foot { margin: 96px auto 0; padding: 32px 0 48px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 13px; }
.nv-root .nv-foot a { color: inherit; }

/* View Transitions beim Filtern (Chrome/Edge/Safari 18) */
::view-transition-group(*) { animation-duration: .38s; animation-timing-function: cubic-bezier(.2,.8,.2,1); }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }
