/*
 * Ansichten „listen“ (#/listen) und „liste“ (#/listen/:id)
 * Wurzelklassen: .v-listen (Übersicht), .v-liste (einzelne Liste), .v-listen-dlg (Dialoginhalte)
 * Zähler nutzen die Kern-Pille .count (.count--strong, .count--on-sky).
 */

/* =====================================================================
 * Gemeinsame Bausteine
 * ===================================================================== */
.v-listen__inline-icon { width: 1.15em; height: 1.15em; vertical-align: -0.22em; color: var(--of-navy); }
.v-listen__optional { font-weight: var(--fw-regular); color: var(--of-muted); }

/* =====================================================================
 * Übersicht #/listen
 * ===================================================================== */
.v-listen__inhalt { padding-bottom: var(--s8); }

/* ---------- Merkliste: prominente Navy-Fläche mit Bücherregal (Klasse on-dark → gelber Fokusrahmen) ---------- */
.v-listen__merk {
  display: grid; grid-template-columns: minmax(0, 1fr);
  background: var(--of-navy); color: var(--white); overflow: hidden;
}
.v-listen__merk-text { padding: var(--s6) var(--s5) var(--s5); }
.v-listen__merk h2 { color: var(--white); font-size: var(--fs-xxl); margin: 0 0 var(--s4); }
.v-listen__merk-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--of-sky); }
.v-listen__merk-kicker .icon { width: 16px; height: 16px; }
.v-listen__merk-stand { display: flex; align-items: center; gap: var(--s4); margin: 0 0 var(--s4); }
.v-listen__merk-zahl {
  font-size: clamp(48px, 6vw, 68px); font-weight: var(--fw-black); line-height: .9;
  color: var(--of-sky); font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.v-listen__merk-einheit { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-md); font-weight: var(--fw-bold); line-height: 1.25; }
.v-listen__merk-datum { font-size: var(--fs-sm); font-weight: var(--fw-regular); color: var(--of-sky-tint-2); }
.v-listen__merk-lead { color: var(--of-sky-tint); max-width: 56ch; margin: 0 0 var(--s5); }
.v-listen__merk-lead strong { color: var(--white); }
.v-listen__merk .v-listen__inline-icon { color: var(--of-sky); }
.v-listen__merk-aktionen { display: flex; flex-wrap: wrap; gap: var(--s3); }
.v-listen__merk .btn--sky .icon { transition: transform .15s var(--ease); }
.v-listen__merk .btn--sky:hover .icon { transform: translateX(3px); }

.v-listen__regal {
  position: relative; display: flex; align-items: flex-end; justify-content: center;
  min-height: 200px; padding: var(--s5) var(--s5) 0; background: var(--of-navy-soft);
}
.v-listen__regal::after { /* Regalbrett */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: var(--of-sky);
}
.v-listen__regal-reihe { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 14px; }
.v-listen__regal-buch { display: block; flex: 0 0 auto; width: 92px; margin: 0 -12px; box-shadow: var(--shadow-2); transform-origin: bottom center; }
.v-listen__regal-buch svg { display: block; width: 100%; height: auto; }
.v-listen__regal-buch:nth-child(1) { transform: rotate(-7deg) translateY(2px); z-index: 1; }
.v-listen__regal-buch:nth-child(2) { transform: rotate(-2.5deg); z-index: 2; width: 104px; }
.v-listen__regal-buch:nth-child(3) { transform: rotate(2deg); z-index: 3; width: 114px; }
.v-listen__regal-buch:nth-child(4) { transform: rotate(-1.5deg); z-index: 2; width: 102px; }
.v-listen__regal-buch:nth-child(5) { transform: rotate(6deg) translateY(2px); z-index: 1; }
.v-listen__regal-buch--leer { aspect-ratio: 3 / 4; border: 2px dashed var(--of-sky); box-shadow: none; opacity: .55; }
@media (min-width: 860px) {
  .v-listen__merk { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .v-listen__merk-text { padding: var(--s7) var(--s6) var(--s6); }
  .v-listen__regal { min-height: 100%; padding-top: var(--s6); }
  .v-listen__regal-buch { width: 112px; margin: 0 -14px; }
  .v-listen__regal-buch:nth-child(2) { width: 126px; }
  .v-listen__regal-buch:nth-child(3) { width: 140px; }
  .v-listen__regal-buch:nth-child(4) { width: 124px; }
}

/* ---------- Abschnitte ---------- */
.v-listen__abschnitt { margin-top: var(--s8); }
.v-listen__abschnitt-kopf { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s3) var(--s5); margin-bottom: var(--s5); }
.v-listen__abschnitt-kopf h2 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin: 0 0 var(--s2); }
.v-listen__abschnitt-text { margin: 0; color: var(--of-text-2); max-width: 72ch; }
.v-listen__gast { margin-top: var(--s6); max-width: 880px; }

/* ---------- Listenkarten (gleicher Aufbau wie die Themenlisten-Karten der Startseite) ---------- */
.v-listen__raster {
  list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s5);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.v-listen__karte-li { margin: 0; display: flex; }
.v-listen__karte {
  position: relative; display: flex; flex-direction: column; width: 100%;
  background: var(--white); box-shadow: var(--shadow-1);
  transition: box-shadow .15s var(--ease), transform .15s var(--ease);
}
.v-listen__karte:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.v-listen__karte:has(a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.v-listen__karte-cover {
  display: flex; align-items: flex-end; justify-content: center; height: 142px; padding: 0 24px; overflow: hidden;
  background: var(--of-sky-tint); border-top: 4px solid var(--of-sky);
}
/* Listentyp nur als feiner Akzent der Oberkante: Themenliste Himmelblau, Team Gelb, persönlich Navy */
.v-listen__karte--team .v-listen__karte-cover { border-top-color: var(--eko-gelb); }
.v-listen__karte--persoenlich .v-listen__karte-cover { border-top-color: var(--of-navy); }
.v-listen__mini {
  display: block; flex: 0 0 76px; width: 76px; margin: 0 -9px; box-shadow: var(--shadow-2);
  transform: translateY(var(--y, 18px)) rotate(var(--r, 0deg)); transition: transform .2s var(--ease);
}
.v-listen__mini svg { display: block; width: 100%; height: auto; }
.v-listen__mini:nth-child(1) { --r: -7deg; --y: 30px; z-index: 1; }
.v-listen__mini:nth-child(2) { --r: -2deg; --y: 16px; z-index: 2; }
.v-listen__mini:nth-child(3) { --r: 3deg; --y: 22px; z-index: 3; }
.v-listen__mini:nth-child(4) { --r: 8deg; --y: 34px; z-index: 2; }
.v-listen__karte:hover .v-listen__mini { --y: 8px; }
.v-listen__cover-leer { align-self: center; color: var(--of-navy); opacity: .5; }
.v-listen__cover-leer .icon { width: 44px; height: 44px; }

.v-listen__karte-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; }
.v-listen__karte-kicker { font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: .12em; text-transform: uppercase; color: var(--of-link); overflow-wrap: anywhere; }
.v-listen__karte-titel { margin: 0; font-size: var(--fs-lg); line-height: 1.22; }
.v-listen__karte-titel a { color: var(--of-text); text-decoration: none; }
.v-listen__karte-titel a::after { content: ''; position: absolute; inset: 0; z-index: 4; } /* ganze Karte klickbar */
.v-listen__karte:hover .v-listen__karte-titel a { text-decoration: underline; text-decoration-thickness: 2px; }
.v-listen__karte-titel a:focus-visible { outline: none; box-shadow: none; text-decoration: underline; }
.v-listen__karte-text {
  margin: 0; font-size: var(--fs-sm); line-height: 1.5; color: var(--of-text-2);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.v-listen__karte-fuss { margin: auto 0 0; padding-top: 6px; font-size: var(--fs-xs); color: var(--of-muted); overflow-wrap: anywhere; }

.v-listen__neu-li { margin: 0; display: flex; }
.v-listen__neu {
  width: 100%; min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s3);
  padding: var(--s5); background: transparent; border: 2px dashed var(--of-border-strong); color: var(--of-navy);
  font-size: var(--fs-sm); font-weight: var(--fw-bold); letter-spacing: .12em; text-transform: uppercase; text-align: center;
  transition: background-color .15s var(--ease), border-color .15s var(--ease);
}
.v-listen__neu:hover { background: var(--of-sky-tint); border-color: var(--of-navy); }
.v-listen__neu-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--of-navy); color: var(--white); }
.v-listen__neu-icon .icon { width: 26px; height: 26px; }
.v-listen__neu-label { display: flex; flex-direction: column; align-items: inherit; gap: 6px; }
.v-listen__neu-text { display: block; max-width: 24ch; font-size: var(--fs-xs); font-weight: var(--fw-regular); letter-spacing: 0; text-transform: none; color: var(--of-text-2); }

/* ---------- Leerzustände je Abschnitt ---------- */
.v-listen__leer {
  display: flex; align-items: flex-start; gap: var(--s4);
  padding: var(--s5); background: var(--white); border: 2px dashed var(--of-border-strong);
}
.v-listen__leer-icon {
  flex: 0 0 52px; width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 50%; background: var(--of-sky-tint); color: var(--of-navy);
}
.v-listen__leer-icon .icon { width: 26px; height: 26px; }
.v-listen__leer-text { color: var(--of-text-2); max-width: 78ch; }
.v-listen__leer-titel { margin: 0 0 4px; font-size: var(--fs-md); font-weight: var(--fw-bold); color: var(--of-text); }

/* ---------- So funktioniert's ---------- */
.v-listen__schritte { margin-top: var(--s8); padding-top: var(--s5); border-top: 1px solid var(--of-border); }
.v-listen__schritte-titel { margin: 0 0 var(--s4); font-size: var(--fs-sm); letter-spacing: .14em; text-transform: uppercase; color: var(--of-text-2); }
.v-listen__schritte-liste {
  list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.v-listen__schritte-liste > li { margin: 0; display: flex; align-items: flex-start; gap: var(--s3); font-size: var(--fs-sm); color: var(--of-text-2); line-height: 1.45; }
.v-listen__schritte-liste strong { display: block; margin-bottom: 2px; font-size: var(--fs-base); color: var(--of-text); }
.v-listen__schritt-icon { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; background: var(--of-sky); color: var(--of-text); }
.v-listen__schritt-icon .icon { width: 22px; height: 22px; }

/* ---------- Themenlisten der Fachberatung ---------- */
.v-listen__themen .v-listen__abschnitt-kopf .kicker { margin-bottom: 4px; }

@media (max-width: 640px) {
  .v-listen__abschnitt { margin-top: var(--s7); }
  .v-listen__karte:hover { transform: none; }
  .v-listen__karte-cover { height: 120px; }
  .v-listen__karte-body { padding: var(--s4) var(--s4) 18px; }
  .v-listen__neu { min-height: 0; flex-direction: row; justify-content: flex-start; text-align: left; padding: var(--s4); }
  .v-listen__neu-icon { flex: 0 0 44px; width: 44px; height: 44px; }
  .v-listen__neu-label { align-items: flex-start; gap: 2px; }
  .v-listen__neu-text { max-width: none; }
  .v-listen__leer { flex-direction: column; padding: var(--s4); }
  .v-listen__merk-text { padding: var(--s5) var(--s4); }
  .v-listen__regal { min-height: 168px; }
  .v-listen__regal-buch { width: 76px; margin: 0 -10px; }
  .v-listen__regal-buch:nth-child(2) { width: 84px; }
  .v-listen__regal-buch:nth-child(3) { width: 92px; }
  .v-listen__regal-buch:nth-child(4) { width: 84px; }
}

/* =====================================================================
 * Einzelne Liste #/listen/:id
 * ===================================================================== */
.v-liste__kopf .lead { margin-bottom: 0; }
.v-liste__ohne-text { color: var(--of-muted); }
.v-liste__meta {
  list-style: none; margin: var(--s4) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s5);
  font-size: var(--fs-sm); color: var(--of-text-2);
}
.v-liste__meta > li { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.v-liste__meta > li > .icon { width: 18px; height: 18px; color: var(--of-navy); }
.v-liste__meta strong { color: var(--of-text); font-weight: var(--fw-bold); }
.v-liste__inhalt { padding-bottom: var(--s8); }
.v-liste__schmal { max-width: 880px; }
.v-liste__werkzeug h2 .count, .v-listen__abschnitt-kopf h2 .count { flex: 0 0 auto; }

/* ---------- Layout: Aktionen links, Inhalt rechts ---------- */
@media (min-width: 960px) {
  .v-liste__seite { align-self: start; }
}
@media (min-width: 960px) and (min-height: 720px) {
  .v-liste__seite { position: sticky; top: var(--s4); }
}

/* ---------- Aktionsleiste ---------- */
.v-liste__panel { background: var(--white); border: 1px solid var(--of-border); border-top: 4px solid var(--of-navy); }
.v-liste__panel-titel { margin: 0; font-size: var(--fs-sm); letter-spacing: .14em; text-transform: uppercase; }
.v-liste__panel-titeltext { display: flex; align-items: center; gap: 10px; padding: var(--s4) var(--s4) var(--s3); }
.v-liste__panel-titel .icon { width: 20px; height: 20px; color: var(--of-navy); }
.v-liste__panel-knopf { display: none; }
.v-liste__aktionsgruppe { padding: 6px 0 8px; border-top: 1px solid var(--of-border); }
.v-liste__aktionsgruppe-titel { margin: 0; padding: 6px var(--s4) 4px; font-size: var(--fs-xxs); font-weight: var(--fw-bold); letter-spacing: .14em; text-transform: uppercase; color: var(--of-muted); }
.v-liste__aktionen { list-style: none; margin: 0; padding: 0; }
.v-liste__aktionen > li { margin: 0; }
.v-liste__aktion {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 8px var(--s4);
  border: 0; background: transparent; color: var(--of-navy); text-align: left;
  font-size: var(--fs-base); font-weight: var(--fw-medium); line-height: 1.25;
}
.v-liste__aktion:hover { background: var(--of-sky-tint); }
.v-liste__aktion:focus-visible { outline-offset: -3px; }
.v-liste__aktion .icon { flex: 0 0 20px; width: 20px; height: 20px; }
.v-liste__aktion-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.v-liste__aktion-zusatz { font-size: var(--fs-xs); font-weight: var(--fw-regular); color: var(--of-muted); }
.v-liste__aktion--gefahr { color: var(--eko-rot); }
.v-liste__aktion--gefahr:hover { background: var(--eko-rot-tint); }
.v-liste__aktion[aria-disabled='true'] { color: var(--of-muted); cursor: not-allowed; }
.v-liste__aktion[aria-disabled='true']:hover { background: transparent; }
.v-liste__panel-hinweis {
  display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: var(--s3) var(--s4);
  border-top: 1px solid var(--of-border); background: var(--of-section); font-size: var(--fs-xs); color: var(--of-text-2);
}
.v-liste__panel-hinweis .icon { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 1px; color: var(--of-navy); }
@media (max-width: 959px) {
  /* Einklappbar: Knopf statt Überschrift */
  .v-liste__panel-titeltext { display: none; }
  .v-liste__panel-knopf {
    display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px var(--s4);
    border: 0; background: transparent; color: var(--of-text); text-align: left;
    font: inherit; letter-spacing: inherit; text-transform: inherit; font-weight: var(--fw-bold);
  }
  .v-liste__panel-knopf:hover { background: var(--of-sky-tint); }
  .v-liste__panel-knopf:focus-visible { outline-offset: -3px; }
  .v-liste__panel-knopf-text { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; }
  .v-liste__panel-kurz { flex-basis: 100%; font-size: var(--fs-xs); font-weight: var(--fw-regular); letter-spacing: 0; text-transform: none; color: var(--of-text-2); }
  .v-liste__panel-chevron { transition: transform .15s var(--ease); }
  .v-liste__panel-knopf[aria-expanded='true'] .v-liste__panel-chevron { transform: rotate(180deg); }
  .v-liste__panel-inhalt { padding-bottom: var(--s2); border-top: 1px solid var(--of-border); }
  .v-liste__panel-inhalt.ist-zu { display: none; }
  .v-liste__aktionsgruppe { border-top: 0; padding: 0 var(--s3) var(--s2); }
  .v-liste__aktionsgruppe-titel { padding: var(--s3) 2px 6px; }
  .v-liste__aktionen { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); }
  .v-liste__aktionen > li { display: flex; }
  .v-liste__aktion { border: 1px solid var(--of-border-cool); padding: 8px 12px; font-size: var(--fs-sm); gap: 10px; }
  .v-liste__aktion--gefahr { border-color: var(--eko-rot-tint); }
  .v-liste__aktion-zusatz { display: none; }
  .v-liste__panel-hinweis { margin-top: var(--s2); }
}

/* ---------- Hinweise oben ---------- */
.v-liste__hinweis { margin-bottom: var(--s5); }
.v-liste__hinweis .notice p { margin-bottom: var(--s2); }

/* ---------- Verfügbarkeit auf einen Blick ---------- */
.v-liste__bilanz { margin-bottom: var(--s7); padding: var(--s5); background: var(--of-section); }
.v-liste__bilanz-kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px var(--s4); margin-bottom: var(--s3); }
.v-liste__bilanz-titel { margin: 0; font-size: var(--fs-sm); letter-spacing: .14em; text-transform: uppercase; }
.v-liste__bilanz-satz { margin: 0; font-size: var(--fs-md); }
.v-liste__bilanz-satz strong { color: var(--of-navy); }
.v-liste__balken { display: flex; gap: 3px; height: 12px; margin-bottom: var(--s4); background: var(--white); }
.v-liste__balken-teil { display: block; min-width: 8px; }
.v-liste__balken-teil--ok { background: var(--ok); }
.v-liste__balken-teil--sky { background: var(--of-sky); }
.v-liste__balken-teil--gelb { background: var(--eko-gelb); }
.v-liste__balken-teil--navy { background: var(--of-navy); }
.v-liste__balken-teil--grau { background: var(--of-border-strong); }
.v-liste__kennzahlen {
  list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}
.v-liste__kennzahl { margin: 0; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; background: var(--white); border-left: 5px solid var(--ok); }
.v-liste__kennzahl--sky { border-left-color: var(--of-sky); }
.v-liste__kennzahl--gelb { border-left-color: var(--eko-gelb); }
.v-liste__kennzahl--navy { border-left-color: var(--of-navy); }
.v-liste__kennzahl--grau { border-left-color: var(--of-border-strong); }
.v-liste__kennzahl-wert { font-size: 30px; font-weight: var(--fw-black); line-height: 1; color: var(--of-navy); font-variant-numeric: tabular-nums; }
.v-liste__kennzahl--null { border-left-color: var(--of-border-cool); }
.v-liste__kennzahl--null .v-liste__kennzahl-wert, .v-liste__kennzahl--null .v-liste__kennzahl-label { color: var(--of-muted); }
.v-liste__kennzahl-label { font-size: var(--fs-sm); font-weight: var(--fw-bold); line-height: 1.3; }
.v-liste__kennzahl-zusatz { font-size: var(--fs-xs); color: var(--of-muted); line-height: 1.35; }
.v-liste__bestellen {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4);
  margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--of-border-cool);
}
.v-liste__bestellen-text { flex: 1 1 220px; margin: 0; font-size: var(--fs-sm); color: var(--of-text-2); }
.v-liste__bilanz-hinweis { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: var(--s4) 0 0; font-size: var(--fs-sm); color: var(--of-text-2); }
.v-liste__bilanz-hinweis .icon { width: 18px; height: 18px; color: var(--of-navy); }

/* ---------- Kopf der Einträge, Gruppieren ---------- */
.v-liste__werkzeug { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s3) var(--s5); margin-bottom: var(--s4); }
.v-liste__werkzeug h2 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin: 0; font-size: var(--fs-xl); }
.v-liste__werkzeug-text { margin: 4px 0 0; font-size: var(--fs-sm); color: var(--of-text-2); }
.v-liste__gruppieren { display: flex; align-items: center; gap: var(--s3); }
.v-liste__gruppieren label { font-size: var(--fs-sm); font-weight: var(--fw-bold); white-space: nowrap; }
.v-liste__gruppieren .select { width: auto; min-width: 232px; min-height: 44px; padding-top: 8px; padding-bottom: 8px; }
@media (max-width: 560px) {
  .v-liste__gruppieren { width: 100%; flex-wrap: wrap; gap: 6px; }
  .v-liste__gruppieren .select { width: 100%; min-width: 0; }
}

/* ---------- Einträge ---------- */
.v-liste__eintraege { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--of-border); }
.v-liste__eintrag { margin: 0; }
.v-liste__eintrag .media-card:last-child { border-bottom: 0; }
.v-liste__eintraege--nummeriert { counter-reset: eintrag; }
.v-liste__eintraege--nummeriert > .v-liste__eintrag { counter-increment: eintrag; }
.v-liste__eintraege--nummeriert .media-card__cover { position: relative; }
.v-liste__eintraege--nummeriert .media-card__cover::before {
  content: counter(eintrag); position: absolute; top: -12px; right: -12px; z-index: 2;
  min-width: 27px; height: 27px; padding: 0 5px; display: grid; place-items: center;
  background: var(--of-navy); color: var(--white); font-size: var(--fs-xs); font-weight: var(--fw-black);
  box-shadow: 0 0 0 3px var(--white); font-variant-numeric: tabular-nums;
}

/* Listen-spezifischer Teil eines Eintrags: Notiz, Reihenfolge, Entfernen */
.v-liste__zusatz { position: relative; z-index: 1; margin-top: var(--s3); padding: var(--s3) var(--s4); background: var(--of-section); border-left: 4px solid var(--of-sky); }
.v-liste--team .v-liste__zusatz { border-left-color: var(--eko-gelb); }
.v-liste--redaktionell .v-liste__zusatz { border-left-color: var(--eko-rot); }
.v-liste__notiz-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px var(--s3); margin-bottom: 6px; }
.v-liste__notiz-label { font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: .12em; text-transform: uppercase; color: var(--of-text-2); }
.v-liste__notiz-feld { min-height: 66px; padding: 8px 12px; background: var(--white); font-size: var(--fs-sm); }
.v-liste__notiz-feld:hover { background: var(--white); }
.v-liste__notiz-feld::placeholder { color: var(--of-muted); opacity: 1; }
.v-liste__gespeichert { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--ok); opacity: 0; transition: opacity .25s var(--ease); }
.v-liste__gespeichert.ist-sichtbar { opacity: 1; }
.v-liste__gespeichert .icon { width: 14px; height: 14px; }
.v-liste__werkzeuge { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s3); margin-top: var(--s2); }
.v-liste__status { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.v-liste__status .badge { white-space: normal; text-align: left; }
.v-liste__knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: auto; }
.v-liste__pos { margin-right: 4px; font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--of-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.v-liste__schieben { width: 38px; height: 38px; background: var(--white); }
.v-liste__schieben:hover { background: var(--of-sky-tint); }
.v-liste__schieben .icon { width: 18px; height: 18px; }
.v-liste__schieben[aria-disabled='true'] { opacity: .4; cursor: not-allowed; }
.v-liste__schieben[aria-disabled='true']:hover { background: var(--white); }
.v-liste__entfernen { color: var(--eko-rot); }
.v-liste__entfernen:hover { background: var(--eko-rot-tint); color: var(--eko-rot); }

/* Lesemodus: Notizen als Text */
.v-liste__zusatz--lesen { padding: 0; background: transparent; border-left: 0; }
.v-liste__zusatz--lesen .v-liste__status { margin-top: 2px; }
.v-liste__notiz-text { margin-top: var(--s2); padding: var(--s3) var(--s4); background: var(--eko-gelb-tint); border-left: 4px solid var(--eko-gelb); font-size: var(--fs-sm); }
.v-liste__notiz-text p { margin: 2px 0 0; }
.v-liste__notiz-titel { font-size: var(--fs-xxs); font-weight: var(--fw-bold); letter-spacing: .12em; text-transform: uppercase; color: var(--warn-text); }

/* ---------- Gruppierung ---------- */
.v-liste__gruppen-hinweis { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 var(--s3); font-size: var(--fs-sm); color: var(--of-text-2); }
.v-liste__gruppen-hinweis .icon { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; color: var(--of-navy); }
.v-liste__sprung { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--s2); }
.v-liste__sprung .chip { padding: 4px 6px 4px 12px; text-align: left; }
.v-liste__gruppe { margin-top: var(--s6); }
.v-liste__gruppe-kopf { padding-bottom: var(--s2); border-bottom: 3px solid var(--of-navy); }
.v-liste__gruppe-kicker { display: block; margin-bottom: 2px; font-size: var(--fs-xxs); font-weight: var(--fw-bold); letter-spacing: .14em; text-transform: uppercase; color: var(--of-link); }
.v-liste__gruppe-titel { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--s3); margin: 0; font-size: var(--fs-xl); scroll-margin-top: var(--s4); }
.v-liste__gruppe-zahl { font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--of-muted); }
.v-liste__gruppe-zeile { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px var(--s4); }
.v-liste__gruppe-link { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: var(--fw-medium); white-space: nowrap; }
.v-liste__gruppe-link .icon { width: 16px; height: 16px; transition: transform .15s var(--ease); }
.v-liste__gruppe-link:hover .icon { transform: translateX(3px); }
.v-liste__gruppe .v-liste__eintrag:first-child .media-card { border-top: 0; }

/* ---------- Leere Liste ---------- */
.v-liste__leer-aktionen { justify-content: center; margin-top: var(--s4); }
/* app.css vergrößert das Symbol in .empty – Icons in Buttons und im Fließtext normal halten */
.v-liste .empty .btn .icon { width: 20px; height: 20px; margin: 0; color: currentColor; }
.v-liste .empty .v-listen__inline-icon { width: 1.15em; height: 1.15em; margin: 0; }

/* ---------- Passende Ergänzungen ---------- */
.v-liste__vorschlaege { margin-top: var(--s7); padding-top: var(--s5); border-top: 4px solid var(--of-sky); }
.v-liste__vorschlaege .kicker { margin-bottom: 4px; }
.v-liste__vorschlaege h2 { margin: 0; font-size: var(--fs-xl); }
.v-liste__vorschlag-raster {
  list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
}
.v-liste__vorschlag { margin: 0; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--s3) var(--s4); padding: var(--s4); background: var(--white); border: 1px solid var(--of-border); }
.v-liste__vorschlag-cover svg { display: block; width: 100%; height: auto; box-shadow: var(--shadow-1); }
.v-liste__vorschlag-body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.v-liste__vorschlag-meta { font-size: var(--fs-xxs); font-weight: var(--fw-bold); letter-spacing: .12em; text-transform: uppercase; color: var(--of-link); overflow-wrap: anywhere; }
.v-liste__vorschlag-titel { margin: 0; font-size: var(--fs-base); line-height: 1.3; }
.v-liste__vorschlag-titel a { color: var(--of-text); text-decoration: none; }
.v-liste__vorschlag-titel a:hover { color: var(--of-navy); text-decoration: underline; }
.v-liste__vorschlag .status { font-size: var(--fs-xs); }
.v-liste__vorschlag-knopf { margin-top: 6px; }

/* ---------- Mobil ---------- */
@media (max-width: 560px) {
  .v-liste__kennzahlen { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .v-liste__kennzahl { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 0 10px; padding: 8px 12px; }
  .v-liste__kennzahl-wert { grid-row: span 2; font-size: 26px; text-align: center; }
  .v-liste__kennzahl-label { align-self: end; }
  .v-liste__kennzahl-zusatz { align-self: start; }
  .v-liste__kennzahl--null .v-liste__kennzahl-label { grid-row: span 2; align-self: center; }
}
@media (max-width: 639px) {
  .v-liste .media-card__desc { display: none; }
  /* Listen-Teil unter dem Cover auf volle Kartenbreite ziehen */
  .v-liste__zusatz { margin-left: calc(-92px - var(--s5)); }
  .v-liste__zusatz--lesen { margin-left: 0; }
  .v-liste__bilanz { padding: var(--s4); }
  .v-liste__bestellen .btn { width: 100%; }
  .v-liste__meta { gap: var(--s2) var(--s4); }
}

/* ---------- Druck (Browser-Druck der Seite; „Drucken mit Notizen“ nutzt die Druckansicht des Kerns) ---------- */
@media print {
  .v-liste__seite, .v-liste__vorschlaege, .v-liste__gruppieren, .v-liste__sprung, .v-liste__knoepfe,
  .v-liste__bestellen, .v-liste__hinweis, .v-liste__balken, .v-liste__gespeichert { display: none !important; }
  .v-liste__layout { display: block !important; }
  .v-liste__zusatz { background: none; border-left: 2px solid; padding: 4pt 8pt; margin-left: 0; }
  .v-liste__notiz-feld { border: 0; background: none; min-height: 0; resize: none; padding: 0; }
  .v-liste__bilanz { background: none; padding: 0; }
  .v-listen__regal, .v-listen__schritte { display: none !important; }
  .v-listen__merk { background: none; color: inherit; }
  .v-listen__karte { box-shadow: none; border: 1px solid var(--of-border-strong); transform: none; }
}

/* =====================================================================
 * Dialoginhalte (liegen im globalen Dialog außerhalb von <main>)
 * ===================================================================== */
.v-listen-dlg .v-listen__freigabe legend { font-size: var(--fs-sm); margin-bottom: var(--s2); }
.v-listen-dlg .v-listen__option {
  display: grid; grid-template-columns: 22px 26px minmax(0, 1fr); align-items: start; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--of-border-cool); background: var(--white); cursor: pointer;
}
.v-listen-dlg .v-listen__option + .v-listen__option { margin-top: 8px; }
.v-listen-dlg .v-listen__option:hover { border-color: var(--of-navy); background: var(--of-sky-tint); }
.v-listen-dlg .v-listen__option:has(input:checked) { border-color: var(--of-navy); box-shadow: inset 0 0 0 1px var(--of-navy); background: var(--of-sky-tint); }
.v-listen-dlg .v-listen__option input {
  appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 1px 0 0;
  border: 2px solid var(--of-navy); border-radius: 50%; background: var(--white); display: grid; place-items: center; cursor: pointer;
}
.v-listen-dlg .v-listen__option input:checked { background: var(--of-navy); }
.v-listen-dlg .v-listen__option input:checked::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--white); }
.v-listen-dlg .v-listen__option input:focus-visible { outline: 3px solid var(--of-navy); outline-offset: 2px; }
.v-listen-dlg .v-listen__option-icon .icon { width: 24px; height: 24px; color: var(--of-navy); }
.v-listen-dlg .v-listen__option-text { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-sm); line-height: 1.4; color: var(--of-text-2); }
.v-listen-dlg .v-listen__option-text strong { font-size: var(--fs-base); color: var(--of-text); }
.v-listen-dlg .v-listen__freigabe-hinweis { display: flex; align-items: flex-start; gap: 6px; margin: var(--s3) 0 0; }
.v-listen-dlg .v-listen__freigabe-hinweis .icon { flex: 0 0 14px; width: 14px; height: 14px; margin-top: 1px; }
.v-listen-dlg .v-liste__bestellung-kopf { margin: var(--s5) 0 var(--s2); font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: .12em; text-transform: uppercase; color: var(--of-text-2); }
.v-listen-dlg .v-liste__bestellung { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--of-border); }
.v-listen-dlg .v-liste__bestellung > li { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px var(--s3); padding: 10px 0; border-bottom: 1px solid var(--of-border); }
.v-listen-dlg .v-liste__bestellung-titel { font-weight: var(--fw-bold); min-width: 0; overflow-wrap: anywhere; }
.v-listen-dlg .v-liste__bestellung-ort { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 6px; font-size: var(--fs-sm); color: var(--of-text-2); }
.v-listen-dlg .v-liste__bestellung-ort strong { color: var(--of-text); }
.v-listen-dlg .v-liste__bestellung-ort .icon { width: 16px; height: 16px; color: var(--of-navy); }
/* Kopf und Fuß der Dialoge regelt der Kern (nur der Inhalt scrollt, auch mobil) – hier keine eigenen Regeln. */
