/* rahmen.css · neuer Seiten-Rahmen: Leiste links, schmale Zeile oben
 * ------------------------------------------------------------------------
 * Gehoert zu rahmen.js. ALLES hier gilt nur unter html.vl-rahmen (das Skript setzt die Klasse
 * vor dem ersten Bild). Ohne die Klasse greift keine einzige Regel: die Seiten sehen aus wie vorher.
 * Das <link> steht mit media="not all" im <head> (scripts/kopfleiste.py), rahmen.js schaltet es auf "all".
 * Nur vorhandene Tokens (theme.js): 1 px Kontur statt Schatten, Auswahl ueber --sel-*, Rot nie.
 */

/* ---- Masse ------------------------------------------------------------- */
html.vl-rahmen { --vlr-band: 0px; --vlr-b: 0px; --vlr-zeile: 56px; }
html.vl-rahmen.vl-muster-an { --vlr-band: 30px; }
html.vl-rahmen.vl-kundensicht-an { --vlr-band: 38px; }
html.vl-rahmen.vl-muster-an.vl-kundensicht-an { --vlr-band: 68px; }
/* Musterfirma: gleiche Masse wie das Band in booster-plattform.js, schon bevor es da ist (Platz ab dem ersten Bild). In der Kundensicht liegt das Band unter deren Leiste (38 + 30 px). */
html.vl-rahmen.vl-muster-an body { padding-top: var(--vlr-band) !important; }
html.vl-rahmen.vl-muster-an nav.fixed.top-0 { top: var(--vlr-band) !important; }
/* Der reservierte Streifen zeigt sofort die Farbe des Bands (ohne Text), damit beim Einsetzen des Bands nichts aufblitzt; Farben wie booster-plattform.js */
html.vl-rahmen.vl-muster-an::before { content: ''; position: fixed; top: calc(var(--vlr-band) - 30px); left: 0; right: 0; height: 30px; background: #F5EEE9; z-index: 57; pointer-events: none; }
html[data-theme="light"].vl-rahmen.vl-muster-an::before { background: #0A0708; }
@media (min-width: 768px) {
  html.vl-rahmen { --vlr-b: 248px; }
  html.vl-rahmen.vl-rahmen-schmal { --vlr-b: 72px; }
}

/* ---- Seitenwechsel (Ueberblendung, theme.js) ----------------------------
 * Die Leiste steht beim Seitenwechsel still: eigenes Bild ohne Animation, nur der Inhalt blendet ueber.
 * Ihr nav.vlr-nav traegt keinen Namen (ein Name je Seite nur einmal, sonst bricht Chrome die Ueberblendung ab). */
html.vl-rahmen #vl-rahmen { view-transition-name: vl-leiste; }
html.vl-rahmen #vl-rahmen nav { view-transition-name: none; }
::view-transition-old(vl-leiste), ::view-transition-new(vl-leiste) { animation: none; }
::view-transition-old(vl-leiste), html.vl-rahmen::view-transition-old(nav-bar) { display: none; }   /* nur das neue Bild: kein Doppelbild von Seitentitel und Auswahl */

/* ---- Sprunglink -------------------------------------------------------- */
.vlr-skip { position: fixed; left: 12px; top: -80px; z-index: 2000; padding: 10px 16px; border: 1px solid var(--kontur, #B0ADAC); border-radius: 14px;
  background: var(--bg-body, #F7F4F2); color: var(--text-primary, #0A0708); font: 600 15px/1.2 var(--font-body, "Funnel Display", system-ui, sans-serif); text-decoration: none; }
.vlr-skip:focus { top: calc(var(--vlr-band, 0px) + 8px); outline: 2px solid var(--text-primary, #0A0708); outline-offset: 2px; }
html:not(.vl-rahmen) .vlr-skip, html:not(.vl-rahmen) #vl-rahmen { display: none !important; }

/* ---- Platz links, Zeile oben ------------------------------------------- */
@media (min-width: 768px) {
  html.vl-rahmen body { padding-left: calc(var(--vlr-b) + env(safe-area-inset-left, 0px)) !important; }
  html.vl-rahmen nav.fixed.top-0 { left: var(--vlr-b) !important; right: 0 !important; width: auto !important; }
}
html.vl-rahmen nav.fixed.top-0 > div {
  max-width: none !important; margin: 0 !important; height: var(--vlr-zeile); padding: 0 24px !important; box-sizing: border-box;
  align-items: center; gap: 16px;
}
html.vl-rahmen nav.fixed.top-0 > div > div:first-child { flex: 1 1 auto; min-width: 0; gap: 16px !important; }
html.vl-rahmen nav.fixed.top-0 .vl-logo,
html.vl-rahmen nav.fixed.top-0 .vl-kopf { display: none !important; }
/* rechts: alles bleibt im DOM (Skripte lesen es), sichtbar ist nichts. Ausnahme Katalog: Coins und Warenkorb. */
html.vl-rahmen nav.fixed.top-0 .flex.items-center.gap-3 { display: none !important; }
html.vl-rahmen.vl-rahmen-katalog nav.fixed.top-0 .flex.items-center.gap-3 { display: flex !important; padding-left: 0 !important; }
html.vl-rahmen nav.fixed.top-0 .flex.items-center.gap-3 > :is(#vl-theme-toggle, #vl-lang, .vl-suche-knopf, #profile-btn, a[href="profile.html"]) { display: none !important; }
html.vl-rahmen #vl-lang, html.vl-rahmen #vl-theme-toggle { display: none !important; }
html.vl-rahmen.vl-rahmen-katalog.vlr-ohne-firma nav.fixed.top-0 .vl-kr-coins { display: none !important; }
/* Handy, Katalog: nur der Warenkorb (mit Zaehler) steht rechts in der Zeile, alles andere der Gruppe bleibt weg */
@media (max-width: 767px) {
  html.vl-rahmen.vl-rahmen-katalog nav.fixed.top-0 .flex.items-center.gap-3 > :not(#cart-open-btn) { display: none !important; }
  html.vl-rahmen.vl-rahmen-katalog nav.fixed.top-0 #cart-open-btn { display: flex !important; width: 44px !important; height: 44px !important; margin-right: -4px; }
  html.vl-rahmen.vl-rahmen-katalog nav.fixed.top-0 #cart-open-btn .vlmn-doppelt, html.vl-rahmen.vl-rahmen-katalog nav.fixed.top-0 .vlmn-doppelt { display: flex !important; }
  html.vl-rahmen.vl-rahmen-katalog nav.fixed.top-0 #cart-badge.hidden { display: none !important; }
  html.vl-rahmen.vl-rahmen-katalog nav.fixed.top-0 #cart-badge { top: 2px !important; right: 2px !important; }
}
/* Schwebende Chat-Knoepfe: unter dem Rahmen weg, der Eintrag "Chat" in der Leiste oeffnet denselben Chat */
@media (min-width: 768px) {
  html.vl-rahmen #cchat-fab, html.vl-rahmen:not(.vl-kundensicht-an) #gchat-fab { display: none !important; }   /* Kundensicht: der Team-Chat bleibt als Knopf */
}

/* Linke Inhaltskante: 24 px rechts der Leiste auf jeder Seite (die zentrierten Container der Seiten stehen links). Der Katalog bleibt zentriert. */
@media (min-width: 768px) {
  html.vl-rahmen:not(.vl-rahmen-katalog) main.page-content { margin-left: 0 !important; margin-right: auto !important; }
}

/* Inhalt: 24 px unter der Zeile */
html.vl-rahmen main.page-content { padding-top: calc(var(--vlr-zeile) + 24px) !important; }
html.vl-rahmen html { scroll-padding-top: calc(var(--vlr-band) + var(--vlr-zeile) + 16px); }
html.vl-rahmen { scroll-padding-top: calc(var(--vlr-band) + var(--vlr-zeile) + 16px); }

/* feste Elemente am linken Rand: neben die Leiste, nicht darunter (nur Desktop) */
@media (min-width: 768px) {
  html.vl-rahmen #admin-tree-sidebar { left: var(--vlr-b); top: calc(var(--vlr-band) + var(--vlr-zeile)); }
  html.vl-rahmen #sidebar-toggle-btn { left: calc(var(--vlr-b) + 16px); top: calc(var(--vlr-band) + var(--vlr-zeile) + 12px) !important; }
  html.vl-rahmen #sl-tray { left: calc(var(--vlr-b) + 16px) !important; }
  html.vl-rahmen .ablage { left: var(--vlr-b); }
}

/* Stammbaum rechnet mit --nav-h (Hoehe der alten Zeile) */
html.vl-rahmen { --nav-h: calc(var(--vlr-band) + var(--vlr-zeile)); }
@media (min-width: 768px) {
  html.vl-rahmen body.sb-baum .seite { left: var(--vlr-b); top: calc(var(--nav-h) + 10px); }
  html.vl-rahmen body.sb-sammlung .seite { padding-top: calc(var(--nav-h) + 10px); }
}

/* Seitentitel steht in der Zeile oben: der grosse Titel bleibt fuer Screenreader da */
html.vl-rahmen [data-rahmen-titel] {
  position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; border: 0 !important;
  overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important;
}

/* Projekte: nach dem versteckten Titel nur noch ein kurzer Abstand */
html.vl-rahmen #page-header { margin-bottom: 24px !important; }
html.vl-rahmen #page-header > #share-links-trigger-wrap { margin-top: 0 !important; }

/* klebende Elemente, die auf die alte hohe Zeile abgestimmt waren */
html.vl-rahmen .detail-grid > .dg-panel { top: calc(var(--vlr-band) + var(--vlr-zeile) + 16px); }
html.vl-rahmen .mr-label { top: calc(var(--vlr-band) + var(--vlr-zeile) + 24px); }
html.vl-rahmen .mr-werkzeug { top: calc(var(--vlr-band) + var(--vlr-zeile) + 8px); }
html.vl-rahmen #pool-aside { top: calc(var(--vlr-band) + var(--vlr-zeile) + 16px); max-height: calc(100vh - var(--vlr-band) - var(--vlr-zeile) - 32px); }
html.vl-rahmen .zs-seite { top: calc(var(--vlr-band) + var(--vlr-zeile) + 16px); }
html.vl-rahmen .mb-b-vorschau { top: calc(var(--vlr-band) + var(--vlr-zeile) + 16px); }

/* ---- Zeile oben: Seitenname und Suche ---------------------------------- */
.vlr-kopf { display: none; }
html.vl-rahmen .vlr-kopf { display: flex; align-items: center; gap: 16px; flex: 1 1 auto; min-width: 0; font-family: var(--font-body, "Funnel Display", system-ui, sans-serif); }
.vlr-name { display: flex; align-items: baseline; gap: 8px; min-width: 0; flex: 1 1 auto; white-space: nowrap; overflow: hidden; }
.vlr-krume { color: var(--text-secondary, #5A5A56); font-size: 15px; overflow: hidden; text-overflow: ellipsis; max-width: 40%; }
.vlr-trenn { color: var(--text-secondary, #5A5A56); }
/* Team: Kunde in der Kopfzeile als Knopf, oeffnet den Kunden-Wechsler (Moritz 01.12.) */
button.vlr-krume-k { display: inline-flex; align-items: center; gap: 6px; flex: 0 1 auto; min-width: 0; max-width: 40%; min-height: 36px; margin: 0; padding: 0 6px 0 12px; border: 1px solid var(--kontur, #B0ADAC); border-radius: 999px;
  background: var(--input-bg, #FFFFFF); color: var(--text-primary, #0A0708); font: 500 15px/1.2 var(--font-body, "Funnel Display", system-ui, sans-serif); cursor: pointer; align-self: center; }
button.vlr-krume-k:hover { border-color: var(--text-primary, #0A0708); }
button.vlr-krume-k:focus-visible { outline: 2px solid var(--text-primary, #0A0708); outline-offset: 2px; }
.vlr-krume-k .vlr-krume-l { flex: none; color: var(--text-secondary, #5A5A56); font-weight: 400; }
.vlr-krume-k .vlr-krume-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.vlr-krume-k .vlr-ic { flex: none; width: 20px; height: 20px; overflow: hidden; font-size: 18px; line-height: 20px; color: var(--text-secondary, #5A5A56); }
/* Contentplan: eigenes Kunden-Feld weg, gewaehlt wird oben links oder in der Kopfzeile (ab 768 px, darunter waehlt das Handy-Menue) */
@media (min-width: 768px) { html.vl-rahmen #company-switch { display: none !important; } }
.vlr-seite { font-size: 17px; font-weight: 600; color: var(--text-primary, #0A0708); overflow: hidden; text-overflow: ellipsis; }
.vlr-suche { display: inline-flex; align-items: center; gap: 12px; width: 340px; max-width: 46%; min-height: 40px; height: 40px; padding: 0 8px 0 16px; box-sizing: border-box;
  border: 1px solid var(--kontur, #B0ADAC); border-radius: 999px; background: var(--input-bg, #FFFFFF); color: var(--text-secondary, #5A5A56);
  font: 400 15px/1.2 var(--font-body, "Funnel Display", system-ui, sans-serif); cursor: pointer; text-align: left; transition: border-color .14s ease-out; flex: 0 1 340px; }
.vlr-suche:hover { border-color: var(--text-primary, #0A0708); }
.vlr-suche span.vlr-sucht { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vlr-kbd { flex: none; padding: 2px 10px; border-radius: 999px; background: var(--sel-bg, #EDE8E5); font-size: 13px; color: var(--text-secondary, #5A5A56); white-space: nowrap; }
.vlr-lupe { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: transparent; color: var(--text-primary, #0A0708); cursor: pointer; flex: none; }
.vlr-lupe:hover { background: var(--sel-bg, #EDE8E5); }
@media (max-width: 1100px) { .vlr-suche { max-width: 40%; } .vlr-kbd { display: none; } }
@media (max-width: 767px) {
  html.vl-rahmen nav.fixed.top-0 > div { padding: 0 8px 0 16px !important; }
  .vlr-suche { display: none; }
  .vlr-lupe { display: inline-flex; }
  html.vl-rahmen main.page-content { padding-top: calc(var(--vlr-zeile) + 16px) !important; }
}
html.vl-rahmen .vlr-suche:focus-visible, html.vl-rahmen .vlr-lupe:focus-visible { outline: 2px solid var(--text-primary, #0A0708); outline-offset: 2px; }

/* "Nur intern" aus dem versteckten Titel wandert an den Seitennamen (gleiche Pille wie booster-plattform.js) */
html.vl-nur-intern.vlr-titel-intern .vlr-seite::after { content: "Nur intern"; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; margin-left: 12px; vertical-align: middle;
  border: 1px solid var(--kontur, #B0ADAC); border-radius: 999px; color: var(--text-secondary, #5A5A56); font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; }
html.vl-nur-intern.vlr-titel-betrieb .vlr-seite::after { content: "Nur intern \00b7  noch nicht in Betrieb"; }
@media (max-width: 767px) { html.vl-nur-intern.vlr-titel-intern .vlr-seite::after { display: none; } }

/* ---- Leiste ------------------------------------------------------------ */
#vl-rahmen { display: none; }
@media (min-width: 768px) {
  html.vl-rahmen #vl-rahmen {
    display: flex; flex-direction: column; position: fixed; left: 0; top: var(--vlr-band); bottom: 0; width: var(--vlr-b); z-index: 49; box-sizing: border-box;
    padding: 16px 12px 12px; gap: 12px; background: var(--bg-body, #F7F4F2); border-right: 1px solid var(--line, rgba(10, 7, 8, .12));
    font-family: var(--font-body, "Funnel Display", system-ui, sans-serif); color: var(--text-primary, #0A0708);
  }
}
/* offenes Feld (Kunde wechseln, Einstellungen, Profil): Leiste samt Feld ueber der Kopfzeile (nav z-50) */
html.vl-rahmen #vl-rahmen.vlr-pop-offen { z-index: 60; }
#vl-rahmen * { box-sizing: border-box; }
#vl-rahmen a, #vl-rahmen button { font: inherit; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
#vl-rahmen button { background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: left; }
#vl-rahmen .vlr-kopf-leiste { display: flex; align-items: center; gap: 4px; min-height: 56px; }
#vl-rahmen .vlr-marke { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 7px; min-height: 56px; padding: 7px 0 7px 6px; border: 1px solid transparent; border-radius: 999px; }
/* Kunden-Wechsler (Team): fester Radius statt 999px und Luft rechts, damit ein zweizeiliger Name nicht in die Rundung laeuft. */
#vl-rahmen button.vlr-marke { border-color: var(--kontur, #B0ADAC); background: var(--input-bg, #FFFFFF); border-radius: 28px; padding-right: 12px; }
#vl-rahmen a.vlr-marke:hover, #vl-rahmen button.vlr-marke:hover { background: var(--line, rgba(10, 7, 8, .12)); }
#vl-rahmen .vlr-mono { flex: none; width: 32px; height: 32px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  background: var(--text-primary, #0A0708); color: var(--bg-body, #F7F4F2); font-weight: 600; font-size: 13px; letter-spacing: .02em; overflow: hidden; }
#vl-rahmen .vlr-mono .material-symbols-outlined { font-size: 22px; }
#vl-rahmen .vlr-marke-t { flex: 1 1 auto; min-width: 0; display: block; line-height: 1.3; }
/* Firmenname: passt er nicht in eine Zeile, bricht er auf zwei um; erst danach wird gekuerzt (der ganze Name steht im title). */
#vl-rahmen .vlr-marke-n { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; font-weight: 600; font-size: 14px; line-height: 1.25; overflow: hidden; overflow-wrap: anywhere; }
#vl-rahmen .vlr-marke-s { display: block; font-size: 13px; color: var(--text-secondary, #5A5A56); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#vl-rahmen .vlr-marke .vlr-pfeil { display: none; }

/* Symbol-Kasten: fest 24 px, damit beim Laden der Schrift nichts springt */
#vl-rahmen .vlr-ic { flex: none; display: inline-block; width: 24px; height: 24px; overflow: hidden; font-size: 22px; line-height: 24px; text-align: center; vertical-align: middle;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24; }
#vl-rahmen .vlr-ic.vlr-klein { width: 20px; height: 20px; font-size: 18px; line-height: 20px; }

#vl-rahmen .vlr-nav { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
#vl-rahmen .vlr-mitte { --vlr-mo: 0px; --vlr-mu: 0px; flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; gap: 2px; margin: 0 -4px; padding: 0 4px; scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--vlr-mo), #000 calc(100% - var(--vlr-mu)), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 var(--vlr-mo), #000 calc(100% - var(--vlr-mu)), transparent 100%); }
#vl-rahmen .vlr-mitte.vlr-mask-o { --vlr-mo: 28px; }
#vl-rahmen .vlr-mitte.vlr-mask-u { --vlr-mu: 28px; }
#vl-rahmen .vlr-fuss { flex: none; display: flex; flex-direction: column; gap: 2px; padding-top: 8px; border-top: 1px solid var(--line, rgba(10, 7, 8, .12)); }
#vl-rahmen .vlr-fuss-nav { display: flex; flex-direction: column; gap: 2px; }

#vl-rahmen .vlr-zeile { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 10px; border: 1px solid transparent; border-radius: 14px;
  color: var(--text-secondary, #5A5A56); font-size: 15px; font-weight: 400; line-height: 1.25; transition: border-color .14s ease-out, background-color .14s ease-out; }
#vl-rahmen .vlr-zeile:hover { background: var(--line, rgba(10, 7, 8, .12)); color: var(--text-primary, #0A0708); }
#vl-rahmen .vlr-zeile.vlr-aktiv:hover, #vl-rahmen .vlr-zeile[aria-current="page"]:hover { background: var(--sel-bg, #EDE8E5); }
#vl-rahmen .vlr-zeile:focus-visible, #vl-rahmen .vlr-marke:focus-visible, #vl-rahmen .vlr-umschalt:focus-visible,
.vlr-pop button:focus-visible, .vlr-pop a:focus-visible, .vlr-pop input:focus-visible { outline: 2px solid var(--text-primary, #0A0708); outline-offset: 1px; }
#vl-rahmen .vlr-zeile:active { transform: scale(.985); }
#vl-rahmen .vlr-zeile.vlr-aktiv, #vl-rahmen .vlr-zeile[aria-current="page"] { border-color: var(--sel-line, #B0ADAC); background: var(--sel-bg, #EDE8E5); color: var(--sel-fg, #0A0708); font-weight: 600; }
#vl-rahmen .vlr-zeile.vlr-enthaelt { color: var(--text-primary, #0A0708); font-weight: 600; }
#vl-rahmen .vlr-t { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#vl-rahmen .vlr-chev { flex: none; color: var(--text-secondary, #5A5A56); transition: transform .2s cubic-bezier(.16, 1, .3, 1); }
#vl-rahmen .vlr-zeile[aria-expanded="true"] .vlr-chev { transform: rotate(180deg); }
#vl-rahmen .vlr-wert { flex: none; font-size: 13px; font-weight: 600; color: var(--text-secondary, #5A5A56); font-variant-numeric: tabular-nums; }
#vl-rahmen .vlr-kinder { display: flex; flex-direction: column; gap: 2px; }
#vl-rahmen .vlr-kinder[hidden] { display: none; }
#vl-rahmen .vlr-kind { padding-left: 46px; min-height: 40px; font-size: 15px; }
#vl-rahmen .vlr-zahl { flex: none; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; border: 1px solid var(--sel-line, #B0ADAC); background: var(--sel-bg, #EDE8E5);
  color: var(--sel-fg, #0A0708); font-size: 12px; font-weight: 600; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; }
#vl-rahmen .vlr-zahl[hidden] { display: none; }
#vl-rahmen .vlr-schild { flex: none; display: none; align-items: center; height: 20px; padding: 0 8px; border: 1px solid var(--kontur, #B0ADAC); border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--fg-1, #0A0708); }
html.vl-nur-intern #vl-rahmen .vlr-schild { display: inline-flex; }
html.vl-nur-intern #vl-rahmen .vlr-t [data-nur-intern]::after { margin-left: 6px !important; content: "intern" !important; height: 20px !important; padding: 0 7px !important; font-size: 12px !important; }

/* Markenpunkt (ein roter Moment je Ansicht) und Punkt fuer Ungelesenes */
#vl-rahmen .vlr-logo { display: inline-flex; align-items: center; height: 14px; color: var(--text-secondary, #5A5A56); }
#vl-rahmen .vlr-logo svg { display: block; height: 10px; width: auto; }
#vl-rahmen .vlr-punkt { flex: none; width: 8px; height: 8px; margin-right: 4px; border-radius: 50%; background: var(--text-primary, #0A0708); }
#vl-rahmen .vlr-punkt[hidden] { display: none; }

/* Pille "intern" (CSS-Text, darum je Sprache) */
html[lang="en"].vl-nur-intern #vl-rahmen .vlr-t [data-nur-intern]::after { content: "internal" !important; }
html[lang="en"].vl-nur-intern.vlr-titel-intern .vlr-seite::after { content: "Internal only"; }
html[lang="en"].vl-nur-intern.vlr-titel-betrieb .vlr-seite::after { content: "Internal only \00b7  not live yet"; }

/* Kopf: Ein- und Ausklappen, ein Symbol-Knopf fuer alle */
#vl-rahmen .vlr-umschalt { flex: none; width: 40px; height: 44px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: var(--text-secondary, #5A5A56); }
#vl-rahmen .vlr-umschalt:hover { color: var(--text-primary, #0A0708); background: var(--sel-bg, #EDE8E5); }

/* Profil */
#vl-rahmen .vlr-profil { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; margin-top: 4px; padding: 6px 8px; border: 1px solid transparent; border-radius: 14px; color: var(--text-primary, #0A0708); }
#vl-rahmen .vlr-profil:hover { background: var(--line, rgba(10, 7, 8, .12)); }
#vl-rahmen .vlr-ini { flex: none; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--kontur, #B0ADAC); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
#vl-rahmen .vlr-profil-t { flex: 1 1 auto; min-width: 0; line-height: 1.3; }
#vl-rahmen .vlr-profil-n { display: block; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#vl-rahmen .vlr-profil-s { display: block; font-size: 13px; color: var(--text-secondary, #5A5A56); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* schmal: nur Symbole */
html.vl-rahmen-schmal #vl-rahmen { padding-left: 8px; padding-right: 8px; }
html.vl-rahmen-schmal #vl-rahmen .vlr-kopf-leiste { flex-direction: column; align-items: center; gap: 6px; }
html.vl-rahmen-schmal #vl-rahmen .vlr-marke { flex: none; width: 56px; padding: 7px; justify-content: center; }
html.vl-rahmen-schmal #vl-rahmen .vlr-marke-t, html.vl-rahmen-schmal #vl-rahmen .vlr-marke .vlr-pfeil,
html.vl-rahmen-schmal #vl-rahmen .vlr-t, html.vl-rahmen-schmal #vl-rahmen .vlr-chev, html.vl-rahmen-schmal #vl-rahmen .vlr-wert,
html.vl-rahmen-schmal #vl-rahmen .vlr-kinder, html.vl-rahmen-schmal #vl-rahmen .vlr-schild, html.vl-rahmen-schmal #vl-rahmen .vlr-profil-t { display: none !important; }
html.vl-rahmen-schmal #vl-rahmen .vlr-zeile { justify-content: center; padding: 0; width: 100%; }
html.vl-rahmen-schmal #vl-rahmen .vlr-zahl { position: absolute; top: 7px; right: 5px; min-width: 8px; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--text-primary, #0A0708); font-size: 0; line-height: 0; overflow: hidden; }
html.vl-rahmen-schmal #vl-rahmen .vlr-punkt { position: absolute; top: 7px; right: 5px; margin: 0; }
html.vl-rahmen-schmal #vl-rahmen .vlr-profil { justify-content: center; padding: 6px 0; }
/* schmal: die Gruppe mit der offenen Seite steht wie ein aktiver Eintrag da (Kinder sind zu) */
html.vl-rahmen-schmal #vl-rahmen .vlr-zeile.vlr-enthaelt { border-color: var(--sel-line, #B0ADAC); background: var(--sel-bg, #EDE8E5); color: var(--sel-fg, #0A0708); }

/* ---- Ausklapp-Felder --------------------------------------------------- */
.vlr-pop { position: fixed; z-index: 700; min-width: 220px; max-width: 320px; padding: 8px; border: 1px solid var(--kontur, #B0ADAC); border-radius: 20px; background: var(--input-bg, #FFFFFF);
  color: var(--text-primary, #0A0708); font-family: var(--font-body, "Funnel Display", system-ui, sans-serif); display: flex; flex-direction: column; gap: 2px; }
.vlr-pop[hidden] { display: none; }
.vlr-pop * { box-sizing: border-box; }
.vlr-pop-titel { padding: 6px 12px 8px; font-size: 13px; font-weight: 600; color: var(--text-secondary, #5A5A56); }
.vlr-pop a, .vlr-pop button.vlr-p-zeile { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid transparent; border-radius: 14px; background: none;
  color: var(--text-primary, #0A0708); font: 400 15px/1.25 var(--font-body, "Funnel Display", system-ui, sans-serif); text-decoration: none; text-align: left; cursor: pointer; }
.vlr-pop a:hover, .vlr-pop button.vlr-p-zeile:hover { background: var(--line, rgba(10, 7, 8, .12)); }
.vlr-pop a[aria-current="page"], .vlr-pop button.vlr-p-zeile[aria-pressed="true"] { border-color: var(--sel-line, #B0ADAC); background: var(--sel-bg, #EDE8E5); color: var(--sel-fg, #0A0708); font-weight: 600; }
.vlr-pop .vlr-p-t { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vlr-pop .vlr-p-s { flex: none; font-size: 13px; color: var(--text-secondary, #5A5A56); }
.vlr-pop .vlr-ic { display: inline-block; width: 24px; height: 24px; overflow: hidden; font-size: 22px; line-height: 24px; flex: none; text-align: center; }
.vlr-pop .vlr-reihe { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 4px 0 12px; font-size: 15px; }
.vlr-pop .vlr-seg { display: inline-flex; border: 1px solid var(--kontur, #B0ADAC); border-radius: 999px; padding: 2px; gap: 2px; }
.vlr-pop .vlr-seg button { display: inline-flex !important; align-items: center; justify-content: center; text-align: center !important; min-height: 36px; min-width: 52px; padding: 0 14px !important; border: 0; border-radius: 999px; background: none; color: var(--text-secondary, #5A5A56); font: 600 14px/1 var(--font-body, "Funnel Display", system-ui, sans-serif); cursor: pointer; }
.vlr-pop .vlr-seg button[aria-pressed="true"] { background: var(--text-primary, #0A0708) !important; color: var(--bg-body, #F7F4F2) !important; cursor: default; }
.vlr-pop .vlr-seg button:not([aria-pressed="true"]):hover { color: var(--text-primary, #0A0708); }
.vlr-pop .vlr-trenn-l { height: 1px; margin: 6px 8px; background: var(--line, rgba(10, 7, 8, .12)); }
.vlr-pop input[type="search"] { width: 100%; min-height: 44px; padding: 0 16px; border: 1px solid var(--kontur, #B0ADAC); border-radius: 999px; background: var(--input-bg, #FFFFFF); color: var(--text-primary, #0A0708); font: 400 15px/1.2 var(--font-body, "Funnel Display", system-ui, sans-serif); }
.vlr-pop .vlr-liste { max-height: min(50vh, 360px); overflow-y: auto; display: flex; flex-direction: column; gap: 2px; margin-top: 4px; scrollbar-width: thin; }
.vlr-pop .vlr-leer { padding: 10px 12px; font-size: 14px; color: var(--text-secondary, #5A5A56); }
.vlr-pop.vlr-breit { width: 288px; max-width: calc(100vw - 24px); }
/* #vl-rahmen button { padding: 0 } schlaegt Klassen: Zeilen im Feld hier mit gleicher Staerke, damit beide Symbole gleich eingerueckt stehen */
#vl-rahmen .vlr-pop a, #vl-rahmen .vlr-pop button.vlr-p-zeile { padding: 0 12px; gap: 12px; }
#vl-rahmen .vlr-pop .vlr-seg button { padding: 0 14px !important; }
/* Kunden-Wechsler: Zeilen 44 px, Text 15 px, aktuelle Firma markiert; Seiten-CSS darf die Knoepfe nicht ueberschreiben */
.vlr-pop .vlr-liste > button.vlr-p-zeile { display: flex !important; align-items: center !important; width: 100% !important; min-height: 44px !important; height: auto !important; margin: 0 !important; padding: 0 12px !important;
  border: 1px solid transparent !important; border-radius: 14px !important; background: none; box-shadow: none !important; color: var(--text-primary, #0A0708) !important; font: 400 15px/1.25 var(--font-body, "Funnel Display", system-ui, sans-serif) !important; text-align: left !important; text-transform: none !important; letter-spacing: 0 !important; }
.vlr-pop .vlr-liste > button.vlr-p-zeile:hover { background: var(--line, rgba(10, 7, 8, .12)); }
.vlr-pop .vlr-liste > button.vlr-p-zeile[aria-pressed="true"] { border-color: var(--sel-line, #B0ADAC) !important; background: var(--sel-bg, #EDE8E5); color: var(--sel-fg, #0A0708) !important; font-weight: 600 !important; }
.vlr-pop .vlr-p-s, .vlr-pop .vlr-ic.vlr-klein { flex: none; }
.vlr-pop a .vlr-ic, .vlr-pop button.vlr-p-zeile .vlr-ic { width: 24px; height: 24px; font-size: 22px; line-height: 24px; }

/* ---- Druck ------------------------------------------------------------- */
@media print {
  #vl-rahmen, .vlr-pop, .vlr-skip, html.vl-rahmen nav.fixed.top-0 { display: none !important; }
  html.vl-rahmen body { padding-left: 0 !important; }
  html.vl-rahmen main.page-content { padding-top: 0 !important; }
}
@media (prefers-reduced-motion: reduce) {
  #vl-rahmen *, .vlr-pop * { transition: none !important; }
}

/* Contentplan: reicht der Platz fuer Woche (7 Tage, mindestens 100 px) plus Ideen-Pool nicht, steht der Pool unter dem Raster, damit "So" nie abgeschnitten wird.
   Schmale Leiste: unter 1240 px, breite Leiste: unter 1414 px Fensterbreite. */
@media (min-width: 1024px) and (max-width: 1239px) {
  html.vl-rahmen-schmal #main-grid { grid-template-columns: minmax(0, 1fr); }
  html.vl-rahmen-schmal #pool-aside { position: static; max-height: none; padding-bottom: 0; }
}
@media (min-width: 1024px) and (max-width: 1413px) {
  html.vl-rahmen:not(.vl-rahmen-schmal) #main-grid { grid-template-columns: minmax(0, 1fr); }
  html.vl-rahmen:not(.vl-rahmen-schmal) #pool-aside { position: static; max-height: none; padding-bottom: 0; }
}

/* Start: bei wenig Platz neben der Leiste untereinander statt zwei enger Spalten (Karte "Wartet auf dich" bricht sonst Woerter).
   Schmale Leiste: unter 1120 px, breite Leiste: unter 1296 px Fensterbreite. */
@media (min-width: 1024px) and (max-width: 1119px) {
  html.vl-rahmen-schmal #start-tag, html.vl-rahmen-schmal #mitte { grid-template-columns: minmax(0, 1fr); }
  html.vl-rahmen-schmal #start-tag > *, html.vl-rahmen-schmal #mitte > * { grid-column: 1 / -1; }
}
@media (min-width: 1024px) and (max-width: 1295px) {
  html.vl-rahmen:not(.vl-rahmen-schmal) #start-tag, html.vl-rahmen:not(.vl-rahmen-schmal) #mitte { grid-template-columns: minmax(0, 1fr); }
  html.vl-rahmen:not(.vl-rahmen-schmal) #start-tag > *, html.vl-rahmen:not(.vl-rahmen-schmal) #mitte > * { grid-column: 1 / -1; }
}

/* Geruest: der Rahmen vor den Daten (erster Besuch nach dem Anmelden), ruhig und ohne Bewegung */
#vl-rahmen.vlr-geruest .vlr-g-b { display: block; height: 10px; width: 62%; border-radius: 5px; background: var(--line, rgba(10, 7, 8, .12)); }
#vl-rahmen.vlr-geruest .vlr-g-ic { background: var(--line, rgba(10, 7, 8, .12)); border-radius: 8px; width: 20px; height: 20px; margin: 2px; }
#vl-rahmen.vlr-geruest .vlr-mono, #vl-rahmen.vlr-geruest .vlr-ini { background: var(--line, rgba(10, 7, 8, .12)); border: 0; }
#vl-rahmen.vlr-geruest .vlr-marke, #vl-rahmen.vlr-geruest .vlr-profil { pointer-events: none; }
