/* Sencutt Kundenbereich · Stil der Kundenseiten.
   Teil 1: Grundwerte, Schrift, Knöpfe aus dem Theme „Sencutt Kontor“ (seite/styles.css), damit der Bereich ohne Theme gleich aussieht.
   Teil 2: Kundenbereich nach den Entwürfen vom 17.11.2026, Teil 3: Ergänzungen für die echten Seiten. */

/* ---------- Teil 1 */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --weiss: #ffffff;
  --nebel: #f2f5f9;
  --linie: #dce3ec;
  --linie-stark: #9fb0c8;
  --marine: #0e1b33;
  --marine-2: #1b2b4b;
  --schiefer: #44506a;
  --leise: #5f6b85;
  --tint: #e4ecf8;
  --akzent: #ff6600;
  --akzent-hell: #ff7a1f;
  --tinte: #111111;
  --fehler: #b02a06;
  --fehler-grund: #fdf1ed;

  /* Abstände: eine Skala für die ganze Seite */
  --band: clamp(64px, 7.2vw, 104px); /* oben und unten in jedem Band */
  --block: clamp(56px, 6vw, 88px); /* zwischen Blöcken in der Hauptspalte */
  --kopfteil: clamp(32px, 3.4vw, 48px); /* Überschrift bis Inhalt */
  --spalt: clamp(16px, 2vw, 28px); /* zwischen Karten */
  --luft: clamp(32px, 5vw, 80px); /* zwischen zwei Spalten */

  --rund: 16px;
  --rund-klein: 10px;
  --kopf: 72px;
  --anker: 56px;
  --versatz: calc(var(--kopf) + 24px);
  --rand: clamp(20px, 4vw, 48px);
  --schatten: 0 24px 48px -32px rgba(14, 27, 51, 0.32);
  --schatten-leiste: 0 12px 24px -20px rgba(14, 27, 51, 0.5);

  --e: cubic-bezier(0.2, 0.7, 0.2, 1);
  --e-aus: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: clip;
  background: var(--weiss);
  color: var(--schiefer);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  font-stretch: 100%;
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--marine);
  color: var(--weiss);
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
fieldset,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  color: var(--marine);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 4.2vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.875rem, 3.2vw, 2.75rem);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.026em;
}

h3 {
  color: var(--marine);
  text-wrap: balance;
}

b,
strong {
  font-weight: 600;
}

.wrap {
  width: 100%;
  max-width: 1288px;
  margin-inline: auto;
  padding-inline: var(--rand);
}

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

.sprung {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--rund-klein);
  background: var(--marine);
  color: var(--weiss);
  font-weight: 600;
  text-decoration: none;
}

.sprung:focus {
  top: 16px;
}

main:focus {
  outline: none;
}

:focus-visible {
  outline: 2.5px solid var(--akzent);
  outline-offset: 3px;
  border-radius: 6px;
}

.vorzeile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--marine);
  font-size: 0.9375rem;
  font-weight: 600;
}

.vorzeile::before {
  content: "";
  flex: none;
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: var(--akzent);
}

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border: 1.5px solid transparent;
  border-radius: var(--rund-klein);
  font: inherit;
  font-size: 0.9688rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.3s var(--e),
    background-color 0.3s var(--e),
    border-color 0.3s var(--e),
    color 0.3s var(--e),
    box-shadow 0.3s var(--e);
}

.knopf:hover {
  transform: translateY(-1px);
}

.knopf:active {
  transform: translateY(1px);
  transition-duration: 0.08s;
}

.knopf--akzent {
  background: var(--akzent);
  color: var(--tinte);
}

.knopf--akzent:hover {
  background: var(--akzent-hell);
  box-shadow: 0 10px 20px -12px rgba(255, 102, 0, 0.8);
}

.knopf--akzent:active {
  background: #f05f00;
  box-shadow: none;
}

.knopf--akzent:focus-visible {
  outline-color: var(--marine);
}

.knopf--rand {
  border-color: var(--marine);
  background: var(--weiss);
  color: var(--marine);
}

.knopf--rand:hover {
  background: var(--marine);
  color: var(--weiss);
}

.knopf--rand:active {
  background: var(--marine-2);
}

.knopf[disabled],
.knopf[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.knopf--gross {
  height: 54px;
  padding: 0 26px;
  border-radius: 12px;
  font-size: 1.0313rem;
}

.knopf--voll {
  width: 100%;
}

.aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Teil 2 */

body { background: var(--nebel); }

/* Kopfzeile des Kundenbereichs (ab 1.0.12 auf allen Seiten 56 px hoch, Maße aus dem Entwurf „A Arbeitsplatz“) */
.kb-kopf { background: var(--weiss); border-bottom: 1px solid var(--linie); position: sticky; top: 0; z-index: 20; }
.kb-kopf__zeile { display: flex; align-items: center; gap: 16px; height: 56px; }
.kb-kopf__logo img { height: 24px; width: auto; }
.kb-kopf__bereich {
  padding-left: 16px; border-left: 1px solid var(--linie); color: var(--marine);
  font-weight: 600; font-size: 0.9375rem; line-height: 24px; margin-right: auto; white-space: nowrap;
}
.kb-kopf__kunde { display: flex; align-items: center; gap: 8px; color: var(--schiefer); font-size: 0.8125rem; }
.kb-kopf__kunde b { color: var(--marine); }
.kb-kopf__punkt {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--tint); color: var(--marine); font-weight: 600; font-size: 0.6875rem; letter-spacing: 0.02em;
}
.kb-kopf__ab { color: var(--schiefer); font-weight: 500; font-size: 0.8125rem; text-decoration: none; padding: 6px 4px; border-radius: 6px; }
.kb-kopf__ab:hover { color: var(--marine); }

/* Fuß, schlank (ab 1.0.12 wie im Entwurf „A Arbeitsplatz“) */
.kb-fuss { border-top: 1px solid var(--linie); background: var(--weiss); color: var(--leise); font-size: 0.8125rem; }
.kb-fuss__zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; justify-content: space-between; padding-block: 14px; }
.kb-fuss nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.kb-fuss a { color: var(--schiefer); text-decoration: none; }
.kb-fuss__zeile > span a { text-decoration: underline; text-underline-offset: 2px; }
.kb-fuss a:hover { color: var(--marine); text-decoration: underline; }

/* Allgemein */
.kb-haupt { padding-block: clamp(28px, 4vw, 48px) clamp(48px, 6vw, 80px); }
.kb-karte { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--rund); padding: clamp(20px, 2.4vw, 28px); }
.kb-leise { color: var(--leise); font-size: 0.9063rem; }
.kb-marke {
  display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; background: var(--akzent); color: var(--tinte);
}
.kb-zeichen { width: 18px; height: 18px; flex: none; }

/* Vorschaubild: gezeichneter Platzhalter */
.kb-bild {
  position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
  background: linear-gradient(135deg, var(--marine) 0%, var(--marine-2) 100%);
}
.kb-bild::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.16) 1.2px, transparent 1.4px);
  background-size: 16px 16px;
}
.kb-bild::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px;
  border-radius: 50%; background: rgba(255,255,255,0.94) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7v10l8-5z' fill='%230e1b33'/%3E%3C/svg%3E") center / 26px no-repeat;
  box-shadow: 0 8px 20px -8px rgba(0,0,0,0.5);
}
.kb-bild__oben { position: absolute; left: 10px; top: 10px; z-index: 1; display: flex; gap: 6px; }
.kb-bild__dauer {
  position: absolute; right: 10px; bottom: 10px; z-index: 1; padding: 2px 8px; border-radius: 6px;
  background: rgba(14,27,51,0.82); color: #fff; font-size: 0.75rem; font-weight: 600; font-variant-numeric: tabular-nums;
}

/* Anmeldung */
.kb-anmeldung { min-height: calc(100vh - 56px - 48px - 30px); display: grid; place-items: center; padding-block: clamp(32px, 6vw, 72px); }
.kb-anmeldung__raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: var(--luft); align-items: center; width: 100%; }
.kb-anmeldung h1 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 16px; }
.kb-anmeldung__lead { font-size: 1.125rem; max-width: 34em; }
.kb-schritte { margin-top: 28px; display: grid; gap: 14px; }
.kb-schritte li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.kb-schritte b { color: var(--marine); display: block; }
.kb-nr { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--weiss); border: 1px solid var(--linie); color: var(--marine); font-weight: 700; }
.kb-formkarte { box-shadow: var(--schatten); padding: clamp(24px, 3vw, 36px); }
.kb-formkarte h2 { font-size: 1.5rem; margin-bottom: 8px; }
.kb-feld { display: grid; gap: 8px; margin: 22px 0 16px; }
.kb-feld label { color: var(--marine); font-weight: 600; font-size: 0.9375rem; }
.kb-eingabe {
  width: 100%; height: 50px; padding: 0 14px; border: 1.5px solid var(--linie-stark); border-radius: var(--rund-klein);
  font: inherit; font-size: 1rem; color: var(--marine); background: var(--weiss);
}
.kb-eingabe:focus { outline: 2.5px solid var(--akzent); outline-offset: 1px; border-color: var(--marine); }
.kb-merken { display: flex; gap: 10px; align-items: center; font-size: 0.9375rem; margin-bottom: 20px; }
.kb-merken input { width: 18px; height: 18px; accent-color: var(--marine); }
.kb-gesendet { margin-top: 20px; padding: 14px 16px; border-radius: var(--rund-klein); background: var(--nebel); border: 1px dashed var(--linie-stark); font-size: 0.9063rem; }
.kb-gesendet b { color: var(--marine); }
.kb-klein { margin-top: 18px; font-size: 0.8438rem; color: var(--leise); }
.kb-klein a { color: var(--marine); }

/* Übersicht: ab 1.0.13 in Teil 11 (Entwurf „A Liste“); die Regeln bis 1.0.12 sind entfallen. */

/* Breiten */
@media (max-width: 900px) {
  .kb-anmeldung__raster { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .kb-kopf__bereich { display: none; }
  .kb-kopf__logo { margin-right: auto; }
  .kb-kopf__kunde > span:first-child { display: none; }
}

/* Nachträge */
.kb-eingabe { font-weight: 400; }

/* ---------- Teil 3: Ergänzungen für die echten Seiten */
[hidden] { display: none !important; }
.kb-koerper { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; background: var(--nebel); }
.kb-koerper > main { flex: 1 0 auto; width: 100%; }
.kb-koerper--anmeldung > main { display: grid; }
.kb-anmeldung { min-height: 0; }

.kb-vorschau { background: var(--akzent); color: var(--tinte); font-size: 0.875rem; font-weight: 600; text-align: center; padding: 8px 16px; }
.kb-vorschau a { color: inherit; margin-left: 8px; }

.kb-kopf__sprache { color: var(--schiefer); font-size: 0.8125rem; font-weight: 500; text-decoration: none; padding: 6px 4px; }
.kb-kopf__sprache:hover { color: var(--marine); text-decoration: underline; text-underline-offset: 3px; }
.kb-kopf__ab-form { margin: 0; }
button.kb-kopf__ab { border: 0; background: none; font: inherit; font-weight: 500; font-size: 0.8125rem; cursor: pointer; }

.kb-fehler { margin: 16px 0 0; padding: 12px 14px; border-radius: var(--rund-klein); background: var(--fehler-grund); color: var(--fehler); border: 1px solid #f3c7b8; font-size: 0.9375rem; }
.kb-gesendet { margin-top: 16px; }
.kb-leerkarte { max-width: 640px; }
.kb-leerkarte p + p { margin-top: 18px; }
.kb-titel-mittel { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 14px; }
.kb-formkarte--schmal { width: 100%; max-width: 520px; justify-self: center; }
.kb-formkarte--schmal p { margin-bottom: 18px; }

.kb-bildlink { display: block; border-radius: 12px; }
.kb-bild { display: block; }
.kb-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kb-bild:not(.kb-bild--leer)::before { display: none; }
.kb-bild::after { z-index: 1; }
.kb-bild--still::after { display: none; }
.kb-bild__text { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: #fff; font-weight: 600; z-index: 1; }

.kb-spieler__bild { background: var(--marine); }
.kb-spieler__bild video { width: 100%; height: auto; max-height: 72vh; object-fit: contain; background: var(--marine); }

@media (max-width: 600px) {
  .kb-kopf__zeile { gap: 10px; }
}
@media (max-width: 380px) {
  .kb-kopf__punkt { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}


/* ---------- Teil 4: nach Entwurf 2 (Paul 17.11.2026: „Alle fünf übernehmen“, Auswahlfenster) */
.kb-kopf__kunde b { font-weight: 600; }
@media (max-width: 600px) {
  .kb-kopf__zeile { gap: 8px; height: 56px; }
  .kb-kopf__sprache, .kb-kopf__ab, button.kb-kopf__ab { padding: 8px 4px; }
}

/* ---------- Teil 6 und 7 (1.0.6/1.0.7: Feedback-Karte, Reiter der Videoseite) sind ab 1.0.12 entfallen; es bleibt das Einblenden. */
@keyframes kb-ein { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Teil 8 und 9 (1.0.8/1.0.9: Freigabe und Listenansicht der Übersicht) sind ab 1.0.13 in Teil 11 aufgegangen;
   es bleibt das weiche Einblenden wieder sichtbarer Videos (kb.js setzt kb-einblenden). */
.kb-einblenden { animation: kb-ein 0.22s var(--e); }
@media (prefers-reduced-motion: reduce) {
  .kb-einblenden { animation: none; }
}
/* ---------- Teil 10 (ab 1.0.12, Paul 21.11.2026, Entwurf „A Arbeitsplatz“): Videoseite als Arbeitsplatz
   Werkzeugleiste unter dem Kopf (Zurück, Brotkrumen, Titel, Marken, Menü „Version“, Stand der Freigabe; rechts Menü
   „Herunterladen“ und „Version freigeben“). Links Abspieler mit Markenleiste und EIN Angaben-Panel, rechts das Panel
   „Anmerkungen“ (380 px, haftet, eigene Höhe, die Liste rollt darin). Maße aus entwurf-software/software.css: Kanten 8 px,
   Linie 1 px, Knöpfe 36 px, Inhalt bis 1360 px. Orange nur am Knopf, der Ungesendetes sendet. Flache Farben, kein Wackeln.
   Die Regeln der Videoseite bis 1.0.11 (Teil 6, Teil 7 und Teil 10 „Variante C“) sind entfallen. */
/* Ab 1.0.13 gelten die Grundregeln dieses Teils auch für die Übersicht (.kb-uebersicht, Teil 11): dieselbe Software */
.kb-koerper--video .wrap, .kb-koerper--uebersicht .wrap { max-width: 1408px; padding-inline: 24px; }
.kb-videoseite, .kb-uebersicht { font-size: 0.9375rem; line-height: 1.45; color: var(--marine); font-variant-numeric: tabular-nums; }
.kb-videoseite :focus-visible, .kb-uebersicht :focus-visible { outline: 2px solid var(--marine); outline-offset: 2px; border-radius: 6px; }
.kb-videoseite h1, .kb-videoseite h2, .kb-uebersicht h1, .kb-uebersicht h2, .kb-uebersicht h3 { letter-spacing: normal; text-wrap: wrap; }
.kb-videoseite .kb-zeichen, .kb-uebersicht .kb-zeichen { width: 16px; height: 16px; }
.kb-videoseite form, .kb-uebersicht form { margin: 0; }
.vs-leise { color: var(--leise); font-size: 0.8125rem; }

/* Knöpfe */
.vs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px;
  border: 1px solid transparent; border-radius: 6px; font: inherit; font-size: 0.9375rem; font-weight: 500; line-height: 1;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color 0.18s var(--e), border-color 0.18s var(--e), color 0.18s var(--e);
}
.vs-btn--primaer { background: var(--marine); color: var(--weiss); }
.vs-btn--primaer:hover { background: var(--marine-2); }
.vs-btn--rand { background: var(--weiss); color: var(--marine); border-color: var(--linie-stark); }
.vs-btn--rand:hover { border-color: var(--marine); }
.vs-btn--leise { background: transparent; color: var(--schiefer); padding: 0 8px; }
.vs-btn--leise:hover { background: var(--nebel); color: var(--marine); }
.vs-btn--senden { background: var(--akzent); color: var(--marine); font-weight: 600; }
.vs-btn--senden:hover { background: var(--akzent-hell); }
.vs-btn--klein { height: 32px; padding: 0 10px; font-size: 0.8125rem; }
.vs-btn[disabled] { opacity: 0.55; cursor: progress; }
.vs-ikon {
  display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; padding: 0; border: 1px solid transparent;
  border-radius: 6px; background: transparent; color: var(--schiefer); text-decoration: none;
}
.vs-ikon:hover { background: var(--nebel); color: var(--marine); }
.vs-ikon--rand { border-color: var(--linie); background: var(--weiss); }
.vs-ikon--rand:hover { border-color: var(--linie-stark); }

/* Panels */
.vs-panel { background: var(--weiss); border: 1px solid var(--linie); border-radius: 8px; box-shadow: 0 1px 2px rgba(14, 27, 51, 0.06); }
.vs-etikett { display: block; margin-bottom: 2px; font-size: 0.8125rem; font-weight: 600; color: var(--leise); }
.vs-avatar {
  display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--tint); color: var(--marine); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.02em; line-height: 1;
}
.vs-avatar--s { background: var(--marine); color: var(--weiss); }

/* Werkzeugleiste */
.vs-leiste { background: var(--weiss); border-bottom: 1px solid var(--linie); }
.vs-leiste__zeile { display: flex; align-items: center; gap: 16px; min-height: 72px; padding-block: 12px; }
.vs-titelblock { display: flex; align-items: center; gap: 12px; min-width: 0; }
.vs-titeltext { min-width: 0; }
.vs-brot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.8125rem; line-height: 18px; color: var(--leise); }
.vs-brot a { color: var(--leise); text-decoration: none; }
.vs-brot a:hover { color: var(--marine); text-decoration: underline; }
.vs-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.vs-titel { font-size: 1.3125rem; font-weight: 600; line-height: 28px; letter-spacing: -0.01em; color: var(--marine); overflow-wrap: anywhere; }
.vs-aktionen { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.vs-marke {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border: 1px solid var(--linie); border-radius: 6px;
  background: var(--nebel); color: var(--schiefer); font-size: 0.75rem; font-weight: 600; white-space: nowrap;
}
.vs-marke--neu { border-color: var(--marine); background: var(--marine); color: var(--weiss); }

/* Menüs (<details>) */
.vs-menue { position: relative; }
.vs-menue > summary { list-style: none; cursor: pointer; user-select: none; }
.vs-menue > summary::-webkit-details-marker { display: none; }
.vs-auf { display: inline-grid; transition: transform 0.18s var(--e); }
.vs-menue[open] > summary .vs-auf, .vs-hilfe[open] > summary .vs-auf { transform: rotate(180deg); }
.vs-menue__panel {
  position: absolute; z-index: 30; top: calc(100% + 6px); min-width: 280px; padding: 6px;
  background: var(--weiss); border: 1px solid var(--linie); border-radius: 8px;
  box-shadow: 0 1px 2px rgba(14, 27, 51, 0.06), 0 8px 24px -12px rgba(14, 27, 51, 0.18); animation: vs-auf 0.18s var(--e);
}
@keyframes vs-auf { from { opacity: 0; transform: translateY(-4px); } }
.vs-menue__panel--rechts { right: 0; }
.vs-menue__panel--links { left: 0; }
.vs-menue__eintrag { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 6px; color: var(--marine); text-decoration: none; }
.vs-menue__eintrag:hover { background: var(--nebel); }
.vs-menue__eintrag[aria-current] { background: var(--tint); }
.vs-menue__eintrag b { font-weight: 600; }
.vs-menue__eintrag small { display: block; font-size: 0.8125rem; color: var(--leise); }
.vs-menue__eintrag .kb-zeichen { margin-left: auto; }
.vs-menue__eintrag:not([aria-current]) .kb-zeichen { visibility: hidden; }
.vs-versionen .vs-menue__panel { width: max-content; max-width: min(440px, calc(100vw - 32px)); }
.vs-version-knopf {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px 0 10px; border: 1px solid var(--linie);
  border-radius: 6px; background: var(--weiss); color: var(--marine); font-size: 0.8125rem; font-weight: 500; white-space: nowrap;
}
.vs-version-knopf--still { padding-right: 10px; }
summary.vs-version-knopf:hover { border-color: var(--linie-stark); }

/* Herunterladen */
.vs-dateien { width: 340px; padding: 8px 6px 10px; }
.vs-dateien__kopf { padding: 2px 10px 6px; font-size: 0.8125rem; color: var(--leise); text-align: right; }
.vs-dateien__liste li { display: flex; align-items: center; gap: 12px; padding: 8px 4px 8px 10px; border-top: 1px solid var(--linie); }
.vs-dateien__liste li:first-child { border-top: 0; }
.vs-dateien__liste li > span { min-width: 0; }
.vs-dateien__liste b { display: block; font-weight: 500; overflow-wrap: anywhere; }
.vs-dateien__liste small { display: block; font-size: 0.8125rem; color: var(--leise); }
.vs-dateien__liste .vs-ikon { margin-left: auto; }
.vs-dateien__zip { width: calc(100% - 20px); margin: 8px 10px 0; white-space: normal; text-align: center; line-height: 1.2; }
.vs-dateien__notiz { padding: 8px 10px 4px; font-size: 0.8125rem; line-height: 1.4; color: var(--leise); }

/* Stand der Freigabe */
.vs-status { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vs-status:focus { outline: 0; }
.vs-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 6px;
  background: var(--tint); color: var(--marine); font-size: 0.8125rem; font-weight: 500; white-space: nowrap;
}
.vs-pill__punkt { width: 8px; height: 8px; border: 1.5px solid var(--marine); border-radius: 50%; }
.vs-pill--frei { background: #e7f4ec; color: #17693f; }
.vs-pill--frei .kb-zeichen { width: 14px; height: 14px; stroke-width: 2.4; }
.vs-status__wer { font-size: 0.8125rem; color: var(--leise); }

/* Hinweiszeile unter der Leiste: Rückfrage ohne JavaScript, Meldungen; Hinweis „ältere Version“ */
.vs-inhalt { padding-top: 24px; padding-bottom: 40px; }
.vs-frei-hinweis { display: grid; gap: 8px; margin-bottom: 16px; }
.vs-frei-hinweis:focus { outline: 0; }
.vs-frei__frage { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 14px; border-radius: 8px; background: var(--tint); }
.vs-frei__frage b { flex: 1 1 320px; font-weight: 600; line-height: 1.45; }
.vs-frei__knoepfe { display: flex; gap: 8px; margin-left: auto; }
.vs-meldung { padding: 10px 12px; border-radius: 6px; background: var(--fehler-grund); color: var(--fehler); font-size: 0.8125rem; line-height: 1.45; }
.vs-alt { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 10px 14px; border-radius: 8px; background: var(--tint); }
.vs-alt a { margin-left: 4px; font-weight: 600; }

/* Raster */
.vs-raster { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.vs-links { display: grid; gap: 16px; min-width: 0; }
.vs-rechts { position: sticky; top: calc(56px + 16px); display: flex; flex-direction: column; gap: 16px; min-height: 0; max-height: calc(100vh - 56px - 32px); }
.vs-rechts > .vs-anm { flex: 0 1 auto; }

/* Abspieler mit Markenleiste */
.vs-spieler { overflow: hidden; }
.vs-spieler .kb-spieler__bild { display: block; }
.vs-spieler > .kb-bild { border-radius: 0; }
.vs-marken { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 4px 16px; border-top: 1px solid var(--linie); font-size: 0.8125rem; color: var(--leise); }
.vs-marken__zeit { flex: none; min-width: 32px; }
.vs-marken__zeit--ende { text-align: right; }
.vs-bahn { position: relative; flex: 1; height: 40px; min-width: 120px; }
.vs-bahn::before { content: ""; position: absolute; left: 0; right: 0; top: 18px; height: 4px; border-radius: 2px; background: var(--linie); }
.vs-bahn__stand { position: absolute; left: 0; top: 18px; width: 0; height: 4px; border-radius: 2px; background: var(--linie-stark); }
.vs-punkt { position: absolute; top: 0; display: grid; place-items: center; width: 32px; height: 40px; margin-left: -16px; padding: 0; border: 0; border-radius: 6px; background: transparent; cursor: pointer; }
.vs-punkt::before { content: ""; width: 12px; height: 12px; border: 2px solid var(--marine); border-radius: 50%; background: var(--weiss); transition: transform 0.18s var(--e); }
.vs-punkt.gesendet::before { background: var(--marine); }
.vs-punkt:hover::before, .vs-punkt.an::before { transform: scale(1.25); }
.vs-legende { display: flex; gap: 16px; flex: none; }
.vs-legende span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.vs-legende span::before { content: ""; width: 8px; height: 8px; border: 1.5px solid var(--marine); border-radius: 50%; }
.vs-legende .g::before { background: var(--marine); }

/* Angaben */
.vs-info > * { padding: 12px 16px; }
.vs-info > * + * { border-top: 1px solid var(--linie); }
.vs-info__kv { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 0.8125rem; }
.vs-info__kv div { display: flex; gap: 6px; }
.vs-info__kv dt { color: var(--leise); }
.vs-info__kv dd { margin: 0; font-weight: 500; }
.vs-info__zeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; font-size: 0.8125rem; }
.vs-segment { display: inline-flex; flex-wrap: wrap; padding: 2px; border: 1px solid var(--linie); border-radius: 6px; background: var(--nebel); }
.vs-segment a { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 4px; color: var(--schiefer); font-size: 0.8125rem; text-decoration: none; }
.vs-segment a:hover { color: var(--marine); }
.vs-segment a[aria-current] { background: var(--weiss); color: var(--marine); font-weight: 600; box-shadow: 0 0 0 1px var(--linie); }
.vs-info__notiz { display: flex; align-items: flex-start; gap: 12px; }
.vs-info__notiz p { color: var(--schiefer); }

/* Panel „Anmerkungen“ */
.vs-anm { display: flex; flex-direction: column; min-height: 0; }
.vs-anm__kopf { display: flex; align-items: baseline; gap: 8px; padding: 14px 16px 12px; border-bottom: 1px solid var(--linie); }
.vs-anm__kopf h2 { font-size: 0.9375rem; font-weight: 600; line-height: 1.45; }
.vs-anm__kopf .vs-leise { margin-left: auto; text-align: right; }
.vs-zahl {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 8px; padding: 0 6px; border-radius: 10px;
  background: var(--tint); font-size: 0.75rem; font-weight: 600; vertical-align: 1px;
}
.vs-anm > .vs-meldung { margin: 12px 16px 0; }
.vs-anm__vorschau { padding: 12px 16px; border-bottom: 1px solid var(--linie); }

/* Eingabe */
.vs-eingabe { padding: 12px 16px; border-bottom: 1px solid var(--linie); scroll-margin-top: 72px; }
.vs-eingabe__box {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 8px; padding: 8px;
  border: 1px solid var(--linie-stark); border-radius: 8px; background: var(--weiss); transition: border-color 0.18s var(--e);
}
.vs-eingabe__box:focus-within { border-color: var(--marine); }
.vs-eingabe textarea {
  width: 100%; min-height: 32px; max-height: 160px; padding: 5px 4px; border: 0; background: transparent; resize: none;
  font: inherit; font-size: 0.9375rem; line-height: 22px; color: var(--marine); outline: none;
}
.vs-eingabe textarea::placeholder { color: var(--leise); opacity: 1; }
.vs-eingabe textarea:focus-visible { outline: none; } /* der Rahmen der Box zeigt den Fokus */
.vs-eingabe__knoepfe { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.vs-eingabe__unter { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 8px; }
.vs-eingabe__unter .vs-leise { width: 100%; }
.vs-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; border: 0; border-radius: 6px;
  background: var(--tint); color: var(--marine); font: inherit; font-size: 0.8125rem; font-weight: 600; line-height: 1; white-space: nowrap;
}
.vs-eingabe .vs-chip { height: 32px; }
button.vs-chip { cursor: pointer; }
button.vs-chip:hover { background: #d4e0f3; }
.vs-chip--ohne { background: var(--nebel); color: var(--schiefer); box-shadow: inset 0 0 0 1px var(--linie); }
.vs-schalter { display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; border: 0; background: none; font: inherit; font-size: 0.8125rem; font-weight: 500; color: var(--marine); cursor: pointer; }
.vs-schalter[disabled] { opacity: 0.55; cursor: default; }
.vs-schalter__bahn { position: relative; flex: none; width: 28px; height: 16px; border-radius: 8px; background: var(--linie-stark); transition: background-color 0.18s var(--e); }
.vs-schalter__bahn::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--weiss); transition: transform 0.18s var(--e); }
.vs-schalter[aria-checked="true"] .vs-schalter__bahn { background: var(--marine); }
.vs-schalter[aria-checked="true"] .vs-schalter__bahn::after { transform: translateX(12px); }

/* Liste */
.vs-anm__liste { flex: 0 1 auto; min-height: 0; overflow-y: auto; }
.vs-notiz {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "stelle von von" "text text text" "stand stand aktionen";
  align-items: center; gap: 8px 10px; padding: 12px 16px; border-bottom: 1px solid var(--linie); transition: background-color 0.18s var(--e);
}
.vs-notiz:last-child { border-bottom: 0; }
.vs-notiz.an { background: #f7f9fc; }
.vs-notiz.wird-geaendert { background: var(--tint); }
.vs-notiz__stelle { grid-area: stelle; }
.vs-notiz__von { grid-area: von; display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 0.8125rem; color: var(--schiefer); }
.vs-notiz__von span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-notiz__text { grid-area: text; overflow-wrap: anywhere; }
.vs-notiz__stand { grid-area: stand; display: flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--leise); }
.vs-notiz__stand::before { content: ""; flex: none; width: 8px; height: 8px; border: 1.5px solid var(--marine); border-radius: 50%; }
.vs-notiz__stand.gesendet::before { background: var(--marine); }
.vs-notiz__aktionen { grid-area: aktionen; display: flex; justify-content: flex-end; gap: 4px; }
.vs-notiz__aktionen form { display: inline-flex; }
.vs-notiz__aktionen .vs-btn { height: 28px; gap: 6px; padding: 0 8px; font-size: 0.8125rem; }
.vs-notiz__aktionen .kb-zeichen { width: 14px; height: 14px; }

/* Senden und Bestätigung */
.vs-senden { padding: 16px; border-top: 1px solid var(--linie); background: var(--weiss); }
.vs-senden.ein { animation: kb-ein 0.18s var(--e); }
.vs-senden__text b { display: block; font-weight: 600; }
.vs-senden__text span { display: block; font-size: 0.8125rem; color: var(--leise); }
.vs-senden .vs-btn--senden { width: 100%; height: 40px; margin-top: 12px; white-space: normal; text-align: center; line-height: 1.2; }
.vs-ok {
  display: flex; align-items: flex-start; gap: 8px; margin: 12px 16px; padding: 10px 12px; border-radius: 6px;
  background: #e7f4ec; color: #17693f; font-size: 0.8125rem; line-height: 1.45;
}
.vs-ok b { display: block; font-weight: 600; }
.vs-ok small { display: block; font-size: 0.8125rem; }
.vs-ok .kb-zeichen { margin-top: 1px; stroke-width: 2.4; }
.vs-ok:focus { outline: 0; }

/* „So geht es“ */
.vs-hilfe { border-top: 1px solid var(--linie); }
.vs-hilfe > summary { display: flex; align-items: center; gap: 8px; padding: 12px 16px; list-style: none; cursor: pointer; font-size: 0.8125rem; font-weight: 600; color: var(--schiefer); }
.vs-hilfe > summary::-webkit-details-marker { display: none; }
.vs-hilfe > summary:hover { color: var(--marine); }
.vs-hilfe > summary .vs-auf { margin-left: auto; }
.vs-hilfe p { padding: 0 16px 10px 40px; font-size: 0.8125rem; line-height: 1.5; color: var(--schiefer); }
.vs-hilfe p:last-child { padding-bottom: 16px; }

/* Rückfrage-Fenster */
.vs-dialog { width: min(440px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--linie); border-radius: 8px; background: var(--weiss); color: var(--marine); box-shadow: 0 16px 48px -16px rgba(14, 27, 51, 0.35); }
.vs-dialog[open] { animation: vs-auf 0.18s var(--e); }
.vs-dialog::backdrop { background: rgba(14, 27, 51, 0.4); }
.vs-dialog__oben { padding: 20px 20px 16px; }
.vs-dialog__video { margin-bottom: 4px; font-size: 0.8125rem; color: var(--leise); }
.vs-dialog h2 { font-size: 1.125rem; font-weight: 600; line-height: 1.35; color: var(--marine); }
.vs-dialog__oben p:last-child { margin-top: 8px; color: var(--schiefer); }
.vs-dialog__fuss { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--linie); background: var(--nebel); }

/* Breiten */
@media (max-width: 1199px) {
  .vs-raster { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 960px) {
  /* Untereinander: Leiste, Video, Anmerkungen, Angaben */
  .vs-raster { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
  .vs-links, .vs-rechts { display: contents; }
  .vs-spieler { order: 1; }
  .vs-anm { order: 2; }
  .vs-andock--seite { order: 3; }
  .vs-info { order: 4; }
  .vs-andock--spieler { order: 5; }
  .vs-anm__liste { overflow: visible; }
}
@media (max-width: 720px) {
  .kb-koerper--video .wrap, .kb-koerper--uebersicht .wrap { padding-inline: 16px; }
  .vs-leiste__zeile { flex-wrap: wrap; gap: 12px; }
  .vs-titelblock { width: 100%; align-items: flex-start; }
  .vs-zurueck { display: none; }
  .vs-titel { font-size: 1.25rem; }
  .vs-aktionen { width: 100%; margin-left: 0; }
  .vs-aktionen > * { flex: 1 1 0; min-width: 0; }
  .vs-aktionen > .vs-menue > summary, .vs-frei__form .vs-btn { width: 100%; }
  .vs-frei__form { display: flex; }
  .vs-aktionen .vs-menue__panel--rechts { right: auto; left: 0; }
  .vs-dateien { width: min(340px, calc(100vw - 32px)); }
  .vs-versionen .vs-menue__panel { max-width: calc(100vw - 32px); }
  .vs-inhalt { padding-top: 16px; }
  .vs-marken { flex-wrap: wrap; gap: 8px; padding: 4px 12px; }
  .vs-legende { width: 100%; padding-bottom: 8px; }
  .vs-frei__knoepfe { width: 100%; margin-left: 0; }
  .vs-frei__knoepfe .vs-btn { flex: 1 1 0; }
  /* Senden bleibt unten am Bildschirm; die Seite hält darunter Platz frei */
  .vs-senden {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--linie-stark); box-shadow: 0 -4px 16px -8px rgba(14, 27, 51, 0.2);
  }
  .vs-senden .vs-btn--senden { margin-top: 10px; }
  /* Platz für die feste Sendeleiste: im weißen Fuß, damit darunter kein grauer Streifen steht */
  .kb-koerper--video.vs-hat-offene .kb-fuss { padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
  /* Tippziele mindestens 40 px */
  .vs-btn, .vs-btn--klein, .vs-version-knopf, .vs-chip, .vs-eingabe .vs-chip, .vs-notiz__aktionen .vs-btn { min-height: 40px; }
  .vs-ikon { width: 40px; height: 40px; }
  .vs-segment a { height: 40px; }
  .vs-menue__eintrag { min-height: 44px; }
  .vs-eingabe textarea { min-height: 40px; padding-block: 9px; }
  .vs-schalter, .vs-brot a, .vs-alt a { display: inline-flex; align-items: center; min-height: 40px; }
  .vs-hilfe > summary { min-height: 44px; }
  .vs-punkt { width: 40px; margin-left: -20px; }
}
@media (prefers-reduced-motion: reduce) {
  .kb-videoseite *, .kb-videoseite *::before, .kb-videoseite *::after,
  .kb-uebersicht *, .kb-uebersicht *::before, .kb-uebersicht *::after { animation: none !important; transition: none !important; }
}

/* ---------- Teil 11 (ab 1.0.13, Paul 21.11.2026, Entwurf „A Liste“): Übersicht als Software
   Weiße Leiste unter dem Kopf wie auf der Videoseite (vs-leiste): kleiner Gruß, h1 „Ihre Videos“, Hinweis „neue Videos“ mit
   orangem Punkt, Zahlen; rechts Suche und „Videos auswählen und laden“. Darunter links das Feld „Reihen“ (256 px, haftet),
   rechts die Steuerzeile (Freigabe, Menü „Filter“, Ansicht) und je Abschnitt ein Panel. Ohne Feld „Reihen“ sind Steuerzeile
   und Liste EINE Fläche (ue-raster--eins). Bausteine der Videoseite (Teil 10): Knöpfe vs-btn, vs-ikon, Panels vs-panel,
   Marken vs-pill, Segmente vs-segment, Menü vs-menue, Fenster vs-dialog. Maße aus entwurf-software-uebersicht/uebersicht.css:
   Kanten 8 px (Bilder 6 px), Linie 1 px, Knöpfe 36 px (in Zeilen 32 px). Orange nur für „Neu“ (Marke am Bild, Marke im
   Fenster, Punkt am Hinweis). Flache Farben, kurze Übergänge, kein Wackeln. */
.ue-leise { color: var(--leise); font-size: 0.8125rem; }
.ue-textknopf {
  padding: 2px 4px; border: 0; border-radius: 4px; background: none; font: inherit; font-weight: 600; color: var(--marine);
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer; transition: background-color 0.18s var(--e);
}
.ue-textknopf:hover { background: var(--nebel); }

/* Leiste */
.ue-leiste { flex-wrap: wrap; row-gap: 12px; }
.ue-leiste__text { flex: 1 1 340px; min-width: 0; }
.ue-gruss { font-size: 0.8125rem; line-height: 18px; color: var(--leise); }
.ue-leiste__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; }
.ue-titel { white-space: nowrap; overflow-wrap: normal; }
.ue-neu-gruppe { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; min-width: 0; }
.ue-neu {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; margin-left: -8px; border-radius: 6px;
  font-size: 0.8125rem; font-weight: 600; color: var(--marine); text-decoration: none; white-space: nowrap;
  transition: background-color 0.18s var(--e);
}
.ue-neu::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--akzent); }
.ue-neu:hover { background: var(--nebel); text-decoration: underline; text-underline-offset: 2px; }
.ue-zahlen { white-space: nowrap; }
.ue-leiste__aktionen { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.ue-suche { position: relative; width: 280px; }
.ue-suche .kb-zeichen { position: absolute; left: 10px; top: 50%; translate: 0 -50%; color: var(--leise); pointer-events: none; }
.ue-suche input {
  width: 100%; height: 36px; padding: 0 10px 0 34px; border: 1px solid var(--linie-stark); border-radius: 6px;
  background: var(--weiss); font: inherit; font-size: 0.9375rem; color: var(--marine); -webkit-appearance: none; appearance: none;
  transition: border-color 0.18s var(--e);
}
.ue-suche input::placeholder { color: var(--leise); opacity: 1; }
.ue-suche input:focus { border-color: var(--marine); }

/* Inhalt: Feld „Reihen“ links, rechts Steuerzeile und Panels */
.ue-inhalt { padding-top: 24px; padding-bottom: 40px; }
.ue-raster { display: grid; grid-template-columns: 256px minmax(0, 1fr); gap: 24px; align-items: start; scroll-margin-top: 72px; }
.ue-raster--eins { grid-template-columns: minmax(0, 1fr); }
.ue-haupt { display: grid; gap: 16px; min-width: 0; }
.ue-raster--eins .ue-haupt { gap: 0; }
.ue-raster--eins .ue-steuer { border-radius: 8px 8px 0 0; box-shadow: none; }
.ue-raster--eins .ue-abschnitt, .ue-raster--eins .ue-leer { border-top: 0; border-radius: 0 0 8px 8px; }

.ue-reihen { position: sticky; top: 72px; padding: 8px; }
.ue-reihen__kopf { padding: 8px 10px; font-size: 0.8125rem; font-weight: 600; line-height: 18px; color: var(--leise); }
.ue-reihen__liste { display: flex; flex-direction: column; gap: 2px; }
.ue-reihen__liste a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; padding: 7px 10px;
  border-radius: 6px; color: var(--marine); font-size: 0.9375rem; line-height: 22px; text-decoration: none;
  transition: background-color 0.18s var(--e), border-color 0.18s var(--e);
}
.ue-reihen__name { min-width: 0; overflow-wrap: anywhere; }
.ue-reihen__liste a:hover { background: var(--nebel); }
.ue-reihen__liste a[aria-current] { background: var(--tint); font-weight: 600; }
.ue-reihen__n { flex: none; font-size: 0.8125rem; font-weight: 500; color: var(--leise); }
.ue-reihen__strich { height: 1px; margin: 6px 10px; border: 0; background: var(--linie); }

/* Steuerzeile */
.ue-steuer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-height: 50px; padding: 6px 8px 6px 16px; }
.ue-steuer__teil { display: flex; align-items: center; gap: 8px; }
.ue-steuer__rechts { margin-left: auto; }
.ue-steuer__name { font-size: 0.8125rem; color: var(--leise); }
.ue-steuer .vs-segment a { gap: 6px; transition: background-color 0.18s var(--e), color 0.18s var(--e), box-shadow 0.18s var(--e); }
.ue-steuer .vs-segment .kb-zeichen { width: 14px; height: 14px; }
.ue-steuer [data-kb-frei-n] { color: var(--leise); font-weight: 500; }
.ue-steuer__hinweis { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 0.8125rem; color: var(--schiefer); animation: kb-ein 0.18s var(--e); }
.ue-filter > summary { gap: 6px; }
.ue-filter[open] > summary { border-color: var(--marine); }
.ue-filter__panel { width: 260px; min-width: 0; }
.ue-filter__eintrag {
  width: 100%; border: 0; background: transparent; font: inherit; font-size: 0.9375rem; text-align: left; cursor: pointer;
  transition: background-color 0.18s var(--e);
}
.ue-filter__eintrag[aria-pressed="true"] { background: var(--tint); }
.ue-filter__eintrag[aria-pressed="true"] .kb-zeichen { visibility: visible; }
.ue-filter__gruppe { margin-top: 6px; padding: 10px 10px 4px; border-top: 1px solid var(--linie); font-size: 0.8125rem; font-weight: 600; color: var(--leise); }
.ue-filter__panel > .ue-filter__gruppe:first-child { margin-top: 0; padding-top: 4px; border-top: 0; }

/* Panel je Abschnitt */
.ue-abschnitt { overflow: hidden; scroll-margin-top: 72px; }
.ue-abschnitt__kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; min-height: 44px; padding: 11px 16px 10px; border-bottom: 1px solid var(--linie); }
.ue-abschnitt__kopf h2 { font-size: 0.9375rem; font-weight: 600; line-height: 22px; }
.ue-abschnitt__frei { margin-left: auto; }
.ue-liste { overflow: hidden; } /* schneidet die Trennlinie über der ersten sichtbaren Zeile ab */
.ue-leer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; padding: 32px 16px; color: var(--schiefer); text-align: center; animation: kb-ein 0.18s var(--e); }
.ue-nochnichts { max-width: 640px; padding: 20px; }
.ue-nochnichts h2 { font-size: 1.125rem; font-weight: 600; line-height: 1.35; }
.ue-nochnichts p { margin-top: 8px; color: var(--schiefer); }

/* Vorschaubild: flach, Kanten 6 px, „Neu“ oben links, Dauer unten rechts, kein Abspielzeichen */
.kb-uebersicht .kb-bildlink { border-radius: 6px; }
.kb-uebersicht .kb-bild { border-radius: 6px; background: var(--marine); }
.kb-uebersicht .kb-bild::after { display: none; }
.kb-uebersicht .kb-bild__oben { left: 4px; top: 4px; }
.kb-uebersicht .kb-marke { height: auto; padding: 0 5px; border-radius: 4px; color: var(--marine); font-size: 0.6875rem; font-weight: 700; line-height: 16px; letter-spacing: 0.01em; }
.kb-uebersicht .kb-bild__dauer { right: 4px; bottom: 4px; padding: 0 4px; border-radius: 4px; font-size: 0.6875rem; line-height: 16px; }

/* Listenzeile: Spalten in allen Zeilen bündig */
.ue-zeile {
  display: grid; grid-template-columns: 112px minmax(0, 1fr) 248px 152px 32px; grid-template-areas: "bild text stand knopf laden";
  gap: 0 20px; align-items: center; min-height: 80px; padding: 8px 16px;
  box-shadow: 0 -1px 0 var(--linie); transition: background-color 0.18s var(--e);
}
.ue-zeile:hover { background: #f7f9fc; }
.ue-zeile__bild { grid-area: bild; }
.ue-zeile__text { grid-area: text; min-width: 0; }
.ue-zeile h3, .ue-karte h3 { font-size: 0.9375rem; font-weight: 600; line-height: 21px; overflow-wrap: anywhere; }
.ue-zeile h3 a, .ue-karte h3 a { text-decoration: none; }
.ue-zeile h3 a:hover, .ue-karte h3 a:hover { text-decoration: underline; text-underline-offset: 2px; }
.ue-zeile__fassungen { margin-top: 2px; line-height: 18px; }
.ue-frei { display: contents; }
.ue-stand { grid-area: stand; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.ue-stand__zeile { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.8125rem; line-height: 18px; color: var(--leise); }
.ue-stand__zeile:empty { display: none; }
.ue-stand__zeile b { color: var(--marine); font-weight: 600; }
.vs-pill--aus { background: var(--nebel); color: var(--schiefer); box-shadow: inset 0 0 0 1px var(--linie); }
.ue-knopf { grid-area: knopf; display: flex; min-width: 0; }
.ue-frei__form { display: flex; }
.ue-zeile > .ue-laden { grid-area: laden; }
.ue-zeile > .ue-anfrage { grid-area: knopf; justify-self: start; }
.ue-laden-breit { display: none; }
.ue-zeile--aus .kb-bild, .ue-karte--aus .kb-bild { opacity: 0.55; }
.ue-zeile--aus .kb-bild img, .ue-karte--aus .kb-bild img { filter: grayscale(1); }
.ue-zeile--aus h3 a, .ue-karte--aus h3 a { color: var(--schiefer); font-weight: 500; }
.ue-zeile > .ue-meldung { grid-column: 1 / -1; margin-top: 8px; }

/* Karten */
.ue-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 16px; padding: 16px; }
.ue-karte {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--linie); border-radius: 8px;
  background: var(--weiss); transition: border-color 0.18s var(--e);
}
.ue-karte:hover { border-color: var(--linie-stark); }
.ue-karte .kb-bildlink, .ue-karte .kb-bild { border-radius: 0; }
.ue-karte .kb-bild__oben { left: 8px; top: 8px; }
.ue-karte .kb-bild__dauer { right: 8px; bottom: 8px; }
.ue-karte__text { padding: 12px 14px 0; }
.ue-karte__merkmale { margin-top: 2px; line-height: 18px; }
.ue-karte .ue-stand { padding: 10px 14px 12px; min-height: 64px; }
.ue-karte__fuss { display: flex; align-items: center; gap: 8px; min-height: 49px; margin-top: auto; padding: 8px 14px; border-top: 1px solid var(--linie); }
.ue-karte__fuss .ue-laden { margin-left: auto; }
.ue-karte > .ue-meldung { margin: 0 14px 12px; }

/* Fenster „Videos herunterladen“ (vs-dialog) */
.ue-auswahl { width: min(600px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: hidden; }
.ue-auswahl[open] { display: flex; flex-direction: column; }
.ue-auswahl__form { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
.ue-auswahl__oben { border-bottom: 1px solid var(--linie); }
.ue-auswahl__kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -4px -8px 4px 0; }
.ue-auswahl__satz { color: var(--schiefer); }
.ue-schnell { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; margin-top: 12px; font-size: 0.8125rem; color: var(--leise); }
.ue-schnell > span { color: var(--linie-stark); }
.ue-fassungen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; font-size: 0.8125rem; color: var(--leise); }
.ue-fassungen > span:first-child { margin-right: 4px; }
.ue-chip { position: relative; display: inline-flex; }
.ue-chip input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.ue-chip span {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--linie-stark); border-radius: 6px;
  background: var(--weiss); color: var(--schiefer); font-size: 0.8125rem; font-weight: 500; cursor: pointer;
  transition: background-color 0.18s var(--e), border-color 0.18s var(--e), color 0.18s var(--e);
}
.ue-chip .kb-zeichen { display: none; width: 14px; height: 14px; }
.ue-chip input:checked + span { background: var(--tint); border-color: var(--tint); color: var(--marine); font-weight: 600; }
.ue-chip input:checked + span .kb-zeichen { display: block; }
.ue-chip input:focus-visible + span { outline: 2px solid var(--marine); outline-offset: 2px; }
.ue-auswahl__liste { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-bottom: 8px; }
.ue-auswahl__gruppe { padding: 12px 20px 4px; font-size: 0.8125rem; font-weight: 600; color: var(--leise); }
.ue-auswahl__zeile {
  display: grid; grid-template-columns: 18px 64px minmax(0, 1fr); gap: 12px; align-items: center; padding: 6px 20px; cursor: pointer;
  transition: background-color 0.18s var(--e);
}
.ue-auswahl__zeile:hover { background: #f7f9fc; }
.ue-auswahl__zeile input { width: 16px; height: 16px; margin: 0; accent-color: var(--marine); }
.ue-auswahl__zeile img, .ue-auswahl__bild { display: block; width: 64px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; background: var(--marine); }
.ue-auswahl__zeile b { display: block; font-size: 0.9375rem; font-weight: 500; line-height: 20px; overflow-wrap: anywhere; }
.ue-auswahl__zeile small { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: 0.8125rem; line-height: 18px; color: var(--leise); }
.ue-auswahl__zeile:has(input:disabled) { opacity: 0.55; cursor: not-allowed; }
.ue-auswahl__fuss { flex-wrap: wrap; align-items: center; }
.ue-summe { margin-right: auto; font-size: 0.8125rem; font-weight: 600; color: var(--marine); }
.ue-zu-gross { order: 5; width: 100%; font-size: 0.8125rem; color: var(--fehler); }
.ue-auswahl .vs-btn[disabled] { cursor: not-allowed; }

/* Breiten */
@media (max-width: 1199px) {
  .ue-zeile { grid-template-columns: 112px minmax(0, 1fr) 200px 152px 32px; gap: 0 16px; }
}
/* Mittlere Breiten: Stand, Knopf und Zeichen unter dem Titel, das Bild links daneben */
@media (max-width: 1100px) and (min-width: 721px) {
  .ue-zeile { grid-template-columns: 112px minmax(0, 1fr) auto 32px; grid-template-areas: "bild text text text" "bild stand knopf laden"; gap: 6px 16px; }
}
@media (max-width: 960px) {
  .ue-raster { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ue-leiste__aktionen { width: 100%; margin-left: 0; }
  .ue-suche { flex: 1 1 auto; width: auto; }
  /* Reihen als waagerecht wischbare Chips */
  .ue-reihen { position: static; overflow: hidden; }
  .ue-reihen__kopf { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ue-reihen__liste { flex-direction: row; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .ue-reihen__liste::-webkit-scrollbar { display: none; }
  .ue-reihen__liste a { flex: none; border: 1px solid var(--linie); white-space: nowrap; }
  .ue-reihen__liste a[aria-current] { border-color: var(--tint); }
  .ue-reihen__name { overflow-wrap: normal; }
  .ue-reihen__strich { flex: none; width: 1px; height: auto; margin: 6px 2px; }
}
@media (max-width: 720px) {
  .ue-inhalt { padding-top: 16px; }
  .ue-leiste__text { flex-basis: 100%; }
  .ue-titel { font-size: 1.25rem; }
  .ue-leiste__meta { gap: 2px 12px; }
  .ue-leiste__aktionen { flex-wrap: wrap; }
  .ue-leiste__aktionen > * { flex: 1 1 100%; width: 100%; }
  .ue-suche input { height: 40px; }
  .ue-neu { min-height: 36px; }
  .ue-reihen__liste a { min-height: 40px; }
  /* Steuerzeile in zwei Reihen: Freigabe über die volle Breite, darunter Filter und Ansicht */
  .ue-steuer { gap: 8px; padding: 8px 12px; }
  .ue-steuer__teil--frei { width: 100%; }
  .ue-steuer__teil--frei .ue-steuer__name, .ue-steuer__rechts .ue-steuer__name { display: none; }
  .ue-steuer__teil--frei .vs-segment { flex: 1 1 auto; flex-wrap: nowrap; }
  .ue-steuer__teil--frei .vs-segment a { flex: 1 1 0; justify-content: center; padding: 0 6px; }
  /* Zeile als kleiner Block; am Ende genau eine Knopfzeile */
  .ue-zeile {
    grid-template-columns: 112px minmax(0, 1fr) 40px; grid-template-areas: "bild text text" "bild stand stand" "knopf knopf laden";
    gap: 8px 12px; align-items: start; padding: 12px;
  }
  .ue-knopf .ue-frei__form, .ue-knopf .vs-btn { width: 100%; }
  .ue-laden-breit { display: inline-flex; }
  .ue-frei:not([data-knopf]) > .ue-knopf, .ue-zeile > .ue-knopf { grid-column: 1 / -1; }
  .ue-zeile > .ue-laden { display: none; }
  .ue-frei[data-knopf] ~ .ue-laden { display: inline-grid; }
  .ue-zeile > .ue-anfrage { grid-column: 1 / -1; justify-self: stretch; }
  .ue-abschnitt__kopf { row-gap: 0; padding: 10px 12px; }
  .ue-karten { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .ue-auswahl { max-height: calc(100vh - 32px); }
  .ue-auswahl__oben, .ue-auswahl__fuss { padding-left: 16px; padding-right: 16px; }
  .ue-auswahl__zeile { grid-template-columns: 18px 56px minmax(0, 1fr); padding: 6px 16px; }
  .ue-auswahl__zeile img, .ue-auswahl__bild { width: 56px; }
  .ue-summe { width: 100%; }
  .ue-auswahl__fuss .vs-btn { flex: 1 1 0; }
  .ue-chip span { height: 36px; }
}
