@import url("./clubmix-flags.css");
/* clubmix.ai - Shell-Kopf, Werkzeugleiste, Seitenleiste und Website-Fusszeile (21.11.2026, Lukas: "Layout
   vereinheitlichen, setz es um"). Ausgabe: cfg/clubmix_layout.php, Regeln: docs/clubmix/LAYOUT.md.

   EINE Datei fuer die Shell (cfg/header.php) und fuer jedes Werkzeugdokument (clubmix_layout_head()): dieselbe
   Kopfleiste und dieselbe Fusszeile ueberall. Deshalb keine Tailwind-Klassen, keine Inline-Stile (style-src 'self'
   der Werkzeuge) und Selektoren ueber die IDs #bp-nav, #cm-tb und #cm-ft: die Werkzeug-Stylesheets setzen globale
   Regeln fuer button, a und Ueberschriften (z. B. button:hover:not(:disabled)), die eine Klasse allein nicht schlaegt.
   Farben nur aus den Markentokens --cm-* (www/css/clubmix-theme.css, je Thema gesetzt: Shell und Werkzeuge laden die
   Datei). Kein Violett, kein Oliv (tests/clubmix_brand_colors.mjs). */

html.cm-shell-child #bp-nav { display: none; }

#bp-nav, #cm-tb, #cm-ft, .cm-pagebar {
    --sh-bg: var(--cm-bg);
    --sh-panel: var(--cm-panel);
    --sh-raised: var(--cm-raised);
    --sh-line: var(--cm-line);
    --sh-line-strong: var(--cm-line-strong);
    --sh-fg: var(--cm-fg);
    --sh-muted: var(--cm-muted);
    --sh-accent: var(--cm-acid);            /* Markenschrift: dunkel acid ... */
    --sh-link: var(--cm-ice);
    --sh-soft: var(--cm-ice-soft);
    --sh-cta-bg: var(--cm-cta-bg);
    --sh-cta-fg: var(--cm-cta-fg);
    --sh-cta-hover: var(--cm-cta-hover);
    --sh-focus: var(--cm-focus);
    --sh-avatar: var(--cm-ice-strong);
    --sh-hover: rgba(255, 255, 255, .06);
    --sh-shadow: 0 18px 40px -14px rgba(0, 0, 0, .65);
    --sh-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
html.light #bp-nav, html.light #cm-tb, html.light #cm-ft, html.light .cm-pagebar {
    --sh-accent: var(--cm-ice);             /* ... hell Eisblau (acid ist auf Hell nur Flaeche) */
    --sh-bg: var(--cm-raised);
    --sh-hover: rgba(17, 17, 19, .06);
    --sh-shadow: 0 18px 40px -14px rgba(17, 17, 19, .18);
}

/* Hoehen fuer Werkzeuge: Arbeitsflaeche = Fenster minus Kopf (nur direkt aufgerufen) minus Werkzeugleiste.
   Werkzeug-CSS rechnet mit calc(100dvh - var(--cm-chrome-h)). */
:root { --cm-sh-h: 0px; --cm-tb-h: 0px; --cm-chrome-h: calc(var(--cm-sh-h) + var(--cm-tb-h)); }
html[data-cm-shell] { --cm-sh-h: 4rem; }
html[data-cm-layout="tool"] { --cm-tb-h: 2.75rem; }

#bp-nav, #bp-nav *, #cm-tb, #cm-tb *, #cm-ft, #cm-ft *, .cm-pagebar, .cm-pagebar * { box-sizing: border-box; }
#bp-nav, #cm-tb, #cm-ft { font-family: var(--sh-font); line-height: 1.5; -webkit-font-smoothing: antialiased; }
#bp-nav p, #bp-nav ul, #bp-nav ol, #cm-tb p, #cm-tb ol, #cm-ft p, #cm-ft ul, .cm-pagebar ol { margin: 0; padding: 0; list-style: none; }
#bp-nav a, #cm-tb a, #cm-ft a, .cm-pagebar a { text-decoration: none; }
#bp-nav button, #cm-tb button {
    margin: 0; font: inherit; color: inherit; background: none; border: 0; border-radius: 0; padding: 0;
    cursor: pointer; transform: none; box-shadow: none; min-height: 0; line-height: inherit;
}
#bp-nav [hidden], #cm-tb [hidden], #cm-ft [hidden] { display: none !important; }
#bp-nav :focus-visible, #cm-tb :focus-visible, #cm-ft :focus-visible, .cm-pagebar :focus-visible {
    outline: 2px solid var(--sh-focus); outline-offset: 2px;
}
#bp-nav svg.cm-sh-ico { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------------------------------------------------------------- Kopfleiste */
#bp-nav.cm-sh {
    position: sticky; top: 0; z-index: 50; width: 100%; flex-shrink: 0;
    color: var(--sh-fg); background: color-mix(in srgb, var(--sh-bg) 88%, transparent);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--sh-line);
}
#bp-nav .cm-sh-bar {
    display: flex; flex-wrap: nowrap; align-items: center; gap: .5rem;
    width: 100%; max-width: 80rem; height: 4rem; margin: 0 auto; padding: 0 1rem;
}
@media (min-width: 640px) { #bp-nav .cm-sh-bar { padding: 0 1.5rem; } }
@media (min-width: 1024px) { #bp-nav .cm-sh-bar { padding: 0 2rem; gap: .75rem; } }

/* Wortmarke: Zeichen + "clubmix.ai", ueberall dieselbe (auch Fusszeile). */
#bp-nav .cm-sh-logo, #cm-ft .cm-sh-logo {
    display: inline-flex; align-items: center; gap: .6rem; flex-shrink: 0; min-width: 0;
    color: var(--sh-fg); font-weight: 800; font-size: 1.125rem; letter-spacing: -.02em; white-space: nowrap;
}
#bp-nav .cm-sh-mark, #cm-ft .cm-sh-mark { width: 2rem; height: 2rem; flex-shrink: 0; color: var(--sh-accent); transition: transform .15s ease; }
#bp-nav .cm-sh-logo:hover .cm-sh-mark, #cm-ft .cm-sh-logo:hover .cm-sh-mark { transform: scale(1.05); }
#bp-nav .cm-sh-word span, #cm-ft .cm-sh-word span { color: var(--sh-accent); }
@media (max-width: 359px) { #bp-nav .cm-sh-word { display: none; } }

/* The measured layout keeps full navigation where the labels fit. */
#bp-nav .cm-sh-nav { display: none; }
@media (min-width: 1024px) {
    #bp-nav .cm-sh-nav { display: flex; flex: 1 0 max-content; align-items: center; justify-content: center; gap: .25rem; min-width: max-content; }
}
#bp-nav .cm-sh-link {
    display: inline-flex; align-items: center; gap: .35rem; height: 2.375rem; padding: 0 .8rem; border-radius: .5rem;
    font-size: .875rem; font-weight: 600; color: var(--sh-muted); white-space: nowrap;
    transition: color .15s ease, background-color .15s ease;
}
#bp-nav .cm-sh-link:hover, #bp-nav .cm-sh-link[aria-expanded="true"] { color: var(--sh-fg); background: var(--sh-hover); }
#bp-nav .cm-sh-link[aria-current="page"], #bp-nav .cm-sh-dd[aria-current="page"] > .cm-sh-link {
    color: var(--sh-fg); background: var(--sh-hover); box-shadow: inset 0 -2px 0 var(--sh-accent);
}
#bp-nav .cm-sh-caret { width: 14px; height: 14px; opacity: .65; flex-shrink: 0; }

/* Rechte Seite */
#bp-nav .cm-sh-right { display: flex; align-items: center; gap: .375rem; margin-left: auto; flex-shrink: 0; }
#bp-nav .cm-sh-icon, #bp-nav .cm-sh-avatar {
    display: inline-flex; align-items: center; justify-content: center; gap: .35rem; flex-shrink: 0;
    width: 2.375rem; height: 2.375rem; border-radius: .5rem; color: var(--sh-fg);
    background: var(--sh-hover); border: 1px solid var(--sh-line);
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
#bp-nav .cm-sh-icon:hover, #bp-nav .cm-sh-avatar:hover,
#bp-nav .cm-sh-icon[aria-expanded="true"], #bp-nav .cm-sh-avatar[aria-expanded="true"] {
    border-color: var(--sh-line-strong); color: var(--sh-accent); background: var(--sh-raised);
}
#bp-nav .cm-sh-display { width: auto; padding: 0 .55rem; }
#bp-nav .cm-sh-display .cm-sh-caret { width: .75rem; height: .75rem; }
#bp-nav .cm-sh-lc { font-size: .75rem; font-weight: 700; letter-spacing: .05em; }
#bp-nav .cm-sh-avatar { width: auto; padding: 0 .45rem 0 .3rem; }
#bp-nav .cm-sh-avatar > span {
    display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; border-radius: .375rem;
    font-size: .75rem; font-weight: 700; color: #fff; background: var(--sh-avatar);
}
#bp-nav .cm-sh-flag, #cm-ft .cm-sh-flag {
    width: 20px; height: 14px; object-fit: cover; border-radius: 2px; flex-shrink: 0; border: 1px solid rgba(0, 0, 0, .1);
}
#bp-nav .cm-sh-btn {
    display: inline-flex; align-items: center; height: 2.375rem; padding: 0 .75rem; border-radius: .5rem;
    font-size: .875rem; font-weight: 600; color: var(--sh-fg); white-space: nowrap;
}
#bp-nav .cm-sh-btn:hover, #bp-nav .cm-sh-btn[aria-current="page"] { background: var(--sh-hover); }
#bp-nav .cm-sh-cta, #bp-nav .cm-sh-mobile .cm-sh-cta {
    display: inline-flex; align-items: center; justify-content: center; height: 2.375rem; padding: 0 .9rem; border-radius: .5rem;
    font-size: .875rem; font-weight: 700; white-space: nowrap; color: var(--sh-cta-fg); background: var(--sh-cta-bg);
    border: 1px solid var(--sh-cta-bg); transition: background-color .15s ease;
}
#bp-nav .cm-sh-cta:hover { background: var(--sh-cta-hover); border-color: var(--sh-cta-hover); }
#bp-nav .cm-sh-cta-block { display: flex; width: 100%; height: 2.75rem; }
/* Admin (nur Superadmin): rot, damit er sich von den grauen Knoepfen unterscheidet. */
#bp-nav .cm-sh-admin { color: #f87171; background: rgba(239, 68, 68, .1); border-color: rgba(239, 68, 68, .3); }
#bp-nav .cm-sh-admin:hover { color: #fca5a5; background: rgba(239, 68, 68, .18); border-color: rgba(239, 68, 68, .45); }
html.light #bp-nav .cm-sh-admin { color: #dc2626; background: #fef2f2; border-color: #fecaca; }
html.light #bp-nav .cm-sh-admin:hover { color: #b91c1c; background: #fee2e2; border-color: #fca5a5; }

/* Platz fuer den kuenftigen AI-Assistenten (Konzept 21.11.2026, 5.1): fest 40 px, auf dem Telefon 44 px. */
#bp-nav .cm-sh-ai { flex: 0 0 2.5rem; width: 2.5rem; height: 2.375rem; }
@media (max-width: 639px) { #bp-nav .cm-sh-ai { flex-basis: 2.75rem; width: 2.75rem; height: 2.75rem; } }

/* Credit-Pille (Grundform in clubmix-header.css) */
#bp-nav .cm-sh-credits { height: 2.375rem; }

/* Suche: Feld ab 1024 px (clubmix-header.css), darunter die Lupe; im Werkzeugdokument immer die Lupe (oeffnet die Shell). */
@media (min-width: 1024px) { #bp-nav .cm-sh-search-btn { display: none; } }
#bp-nav .cm-hdr-search input { height: 2.375rem; transition-property: border-color; }

#bp-nav .cm-sh-bar:is([data-cm-sh-fit="short"], [data-cm-sh-fit="compact"], [data-cm-sh-fit="minimal"]) .cm-hdr-search {
    display: none;
}

#bp-nav .cm-sh-bar:is([data-cm-sh-fit="short"], [data-cm-sh-fit="compact"], [data-cm-sh-fit="minimal"]) .cm-sh-search-btn,
#bp-nav .cm-sh-bar:is([data-cm-sh-fit="compact"], [data-cm-sh-fit="minimal"]) .cm-sh-burger {
    display: inline-flex;
}

#bp-nav .cm-sh-bar:is([data-cm-sh-fit="compact"], [data-cm-sh-fit="minimal"]) .cm-sh-nav,
#bp-nav .cm-sh-bar[data-cm-sh-fit="minimal"] :is([data-cm-sh-wide-only], .cm-sh-word, .cm-hdr-credits-long) {
    display: none !important;
}

#bp-nav .cm-sh-bar[data-cm-sh-fit="minimal"] .cm-hdr-credits-n {
    display: inline;
}

#bp-nav .cm-sh-bar[data-cm-sh-measure] {
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    visibility: hidden;
    pointer-events: none;
}


/* Telefon: einzeilig, nur Logo, Lupe, (Anmelden bzw. AI-Platz und Credits) und das EINE Menue. */
#bp-nav .cm-sh-burger { display: inline-flex; }
@media (min-width: 1024px) { #bp-nav .cm-sh-burger { display: none; } }
@media (max-width: 639px) {
    #bp-nav [data-cm-sh-wide-only] { display: none !important; }
    #bp-nav .cm-sh-right { gap: .3rem; }
    #bp-nav .cm-sh-credits { padding: 0 .5rem; }
}

/* ------------------------------------------------------------------- Menues */
#bp-nav .cm-sh-dd { position: relative; display: flex; align-items: center; }
#bp-nav .cm-sh-menu {
    position: absolute; top: calc(100% + .45rem); left: 0; z-index: 60; min-width: 15rem; max-width: calc(100vw - 1rem);
    max-height: calc(100dvh - 5.5rem); overflow-y: auto; overscroll-behavior: contain;
    padding: .375rem; border-radius: .75rem; color: var(--sh-fg); background: var(--sh-panel);
    border: 1px solid var(--sh-line); box-shadow: var(--sh-shadow);
}
#bp-nav .cm-sh-menu-right { left: auto; right: 0; }
#bp-nav .cm-sh-menu-wide { width: min(46rem, calc(100vw - 2rem)); left: 50%; transform: translateX(-50%); }
#bp-nav .cm-sh-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .25rem .5rem; }
#bp-nav .cm-sh-item {
    display: flex; align-items: center; gap: .6rem; width: 100%; padding: .5rem .75rem; border-radius: .5rem;
    font-size: .875rem; line-height: 1.35; text-align: left; color: var(--sh-fg); background: none;
    transition: background-color .12s ease, color .12s ease;
}
#bp-nav .cm-sh-item:hover { background: var(--sh-hover); color: var(--sh-fg); }
#bp-nav .cm-sh-item[aria-current="page"] { color: var(--sh-accent); font-weight: 700; }
#bp-nav .cm-sh-item-all { justify-content: space-between; font-weight: 700; }
#bp-nav .cm-sh-item-all svg { width: 16px; height: 16px; opacity: .7; }
#bp-nav .cm-sh-item-admin { color: #f87171; }
html.light #bp-nav .cm-sh-item-admin { color: #b91c1c; }
#bp-nav .cm-sh-sec-h {
    padding: .55rem .75rem .25rem; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--sh-muted);
}
#bp-nav .cm-sh-hr { height: 0; margin: .375rem .25rem; border: 0; border-top: 1px solid var(--sh-line); }
#bp-nav .cm-sh-who { display: flex; flex-direction: column; min-width: 0; padding: .5rem .75rem .6rem; }
#bp-nav .cm-sh-who strong { font-size: .875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#bp-nav .cm-sh-who span { font-size: .75rem; color: var(--sh-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

#bp-nav .cm-sh-language-menu {
    inset-inline: auto 0;
    inline-size: min(34rem, calc(100vw - 1rem));
    min-inline-size: 0;
}
#bp-nav .cm-sh-language {
    display: grid; gap: .35rem; min-inline-size: 0; padding: .25rem;
}
#bp-nav .cm-sh-lang-filter {
    display: flex; align-items: center; gap: .5rem; min-inline-size: 0; padding: 0 .625rem;
    background: var(--sh-bg); border: 1px solid var(--sh-line); border-radius: .5rem; color: var(--sh-muted);
}
#bp-nav .cm-sh-lang-filter:focus-within { border-color: var(--sh-accent); }
#bp-nav .cm-sh-lang-filter svg { inline-size: 1rem; block-size: 1rem; flex: none; }
#bp-nav .cm-sh-lang-filter input {
    flex: 1; min-inline-size: 0; inline-size: 100%; min-block-size: 2.75rem;
    border: 0; padding: 0; background: transparent; color: var(--sh-fg); font-size: 1rem;
}
#bp-nav .cm-sh-lang-filter input:focus { outline: none; }
#bp-nav .cm-sh-langs {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .125rem .25rem;
    max-block-size: min(48dvh, 22rem); overflow: auto; overscroll-behavior: contain;
    scrollbar-gutter: stable;
}
#bp-nav .cm-sh-lang {
    display: flex; align-items: center; gap: .55rem; min-block-size: 2.75rem;
    padding: .35rem .5rem; border-radius: .5rem; font-size: .875rem; color: var(--sh-fg);
}
#bp-nav .cm-sh-lang bdi { min-inline-size: 0; overflow-wrap: anywhere; }
#bp-nav .cm-sh-lang:hover { background: var(--sh-hover); }
#bp-nav .cm-sh-lang[aria-current="true"] { color: var(--sh-accent); font-weight: 700; background: var(--sh-soft); }
#bp-nav .cm-sh-mobile-language { margin-block-end: .5rem; }
#bp-nav .cm-sh-mobile-language > summary {
    min-block-size: 2.75rem; gap: .65rem; border: 1px solid var(--sh-line); background: var(--sh-panel);
}
#bp-nav .cm-sh-mobile-language > summary > span:first-child { flex: 1; }
#bp-nav .cm-sh-mobile-language > summary bdi { font-size: .8125rem; color: var(--sh-muted); }
#bp-nav .cm-sh-mobile-language > .cm-sh-language { margin-block-start: .25rem; }
#bp-nav .cm-sh-mobile-language .cm-sh-langs { grid-template-columns: repeat(2, minmax(0, 1fr)); max-block-size: min(44dvh, 19rem); overscroll-behavior: auto; }
@media (max-width: 440px) {
    #bp-nav .cm-sh-mobile-language .cm-sh-lang { font-size: .8125rem; }
}
@media (min-width: 640px) {
    #bp-nav:not([data-cm-sh-fit="minimal"]) .cm-sh-mobile-language { display: none; }
}
#bp-nav .cm-sh-themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .25rem; padding: 0 .25rem .25rem; }
#bp-nav .cm-sh-theme {
    display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .45rem .25rem; border-radius: .5rem;
    font-size: .75rem; font-weight: 600; color: var(--sh-muted); border: 1px solid var(--sh-line);
}
#bp-nav .cm-sh-theme svg { width: 16px; height: 16px; }
#bp-nav .cm-sh-theme:hover { color: var(--sh-fg); background: var(--sh-hover); }
#bp-nav .cm-sh-theme[aria-pressed="true"] { color: var(--sh-fg); border-color: var(--sh-accent); background: var(--sh-soft); }

/* Das eine Telefon-/Tabletmenue */
#bp-nav .cm-sh-mobile {
    max-height: calc(100dvh - 4rem); overflow-y: auto; overscroll-behavior: contain;
    padding: .75rem 1rem 1.25rem; border-top: 1px solid var(--sh-line); background: var(--sh-bg);
}
@media (min-width: 1024px) {
    #bp-nav:not([data-cm-sh-fit="compact"], [data-cm-sh-fit="minimal"]) .cm-sh-mobile { display: none !important; }
}
#bp-nav .cm-sh-mnav { display: flex; flex-direction: column; gap: .125rem; }
#bp-nav .cm-sh-mlink {
    display: block; padding: .6rem .75rem; border-radius: .5rem; font-size: .9375rem; font-weight: 700; color: var(--sh-fg);
}
#bp-nav .cm-sh-mlink:hover { background: var(--sh-hover); }
#bp-nav .cm-sh-mlink[aria-current="page"] { color: var(--sh-accent); background: var(--sh-soft); }
#bp-nav .cm-sh-msub { display: block; padding: .4rem .75rem .4rem 1.5rem; border-radius: .5rem; font-size: .875rem; color: var(--sh-muted); }
#bp-nav .cm-sh-msub:hover { color: var(--sh-fg); background: var(--sh-hover); }
#bp-nav .cm-sh-msub-h { padding-left: 1.5rem; }
/* Ab 640 px stehen Konto, Hilfe und Anzeige in der Leiste - im Menue dann nur die Navigation (keine Doppelung). */
@media (min-width: 640px) { #bp-nav:not([data-cm-sh-fit="minimal"]) .cm-sh-mextra { display: none; } }

/* Ansicht als Kunde: das Band bleibt auf jeder Seite stehen. */
#bp-nav .cm-sh-imp {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem;
    padding: .5rem 1rem; font-size: .875rem; font-weight: 600; color: #111113; background: #fbbf24;
}
#bp-nav .cm-sh-imp form { margin: 0; }
#bp-nav .cm-sh-imp button { padding: .25rem .75rem; border-radius: .375rem; font-size: .75rem; font-weight: 700; color: #fff; background: #111113; }

/* ---------------------------------------------- Werkzeugleiste (Typ tool) */
#cm-tb.cm-tb {
    display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 2.75rem; height: 2.75rem;
    padding: 0 1rem; color: var(--sh-fg); background: var(--sh-panel); border-bottom: 1px solid var(--sh-line);
    font-size: .875rem; position: relative; z-index: 20;
}
@media (min-width: 640px) { #cm-tb.cm-tb { padding: 0 1.5rem; } }
@media (min-width: 1024px) { #cm-tb.cm-tb { padding: 0 max(2rem, calc((100vw - 80rem) / 2 + 2rem)); } }
#cm-tb .cm-tb-crumbs { flex: 1 1 auto; min-width: 0; }
#cm-tb .cm-tb-switch { flex: 0 1 auto; min-width: 0; display: flex; align-items: center; }
#cm-tb .cm-tb-switchnav { display: flex; align-items: center; gap: .25rem; min-width: 0; }
#cm-tb .cm-tb-actions, .cm-pagebar .cm-tb-actions { flex: 0 0 auto; display: flex; align-items: center; gap: .5rem; }
#cm-tb .cm-tb-switch a {
    display: inline-flex; align-items: center; gap: .35rem; height: 2rem; padding: 0 .6rem; border-radius: .5rem;
    font-weight: 600; font-size: .8125rem; color: var(--sh-muted); white-space: nowrap;
}
#cm-tb .cm-tb-switch a:hover { color: var(--sh-fg); background: var(--sh-hover); }
#cm-tb .cm-tb-switch a[aria-current="page"] { color: var(--sh-fg); background: var(--sh-soft); box-shadow: inset 0 -2px 0 var(--sh-accent); }
#cm-tb .cm-tb-switch svg { width: 16px; height: 16px; flex-shrink: 0; }
/* Werkzeugwahl auf dem Telefon als Auswahlmenue (clubmix-shell.js), die Linkreihe dann aus. */
#cm-tb .cm-tb-pick { display: none; }
@media (max-width: 767px) {
    #cm-tb .cm-tb-switchnav > a { display: none; }
    #cm-tb .cm-tb-pick { display: block; min-width: 0; max-width: 100%; }
    #cm-tb .cm-tb-pick select { min-width: 0; text-overflow: ellipsis; }
}
@media (min-width: 768px) and (max-width: 1279px) { #cm-tb .cm-tb-switchnav > a > svg + span { display: none; } }
#cm-tb .cm-tb-pick select {
    height: 2rem; max-width: min(11rem, 100%); padding: 0 1.6rem 0 .6rem; border-radius: .5rem; font: inherit; font-size: .8125rem; font-weight: 600;
    color: var(--sh-fg); background: var(--sh-hover); border: 1px solid var(--sh-line);
}
#cm-tb .cm-tb-btn, .cm-pagebar .cm-tb-btn {
    display: inline-flex; align-items: center; gap: .35rem; height: 2rem; padding: 0 .7rem; border-radius: .5rem;
    font-size: .8125rem; font-weight: 600; white-space: nowrap; color: var(--sh-fg);
    background: var(--sh-hover); border: 1px solid var(--sh-line);
}
#cm-tb .cm-tb-btn:hover, .cm-pagebar .cm-tb-btn:hover { border-color: var(--sh-line-strong); background: var(--sh-raised); }
#cm-tb .cm-tb-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
#cm-tb .cm-tb-badge {
    display: inline-flex; align-items: center; height: 1.375rem; padding: 0 .5rem; border-radius: 999px;
    font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    color: var(--sh-link); border: 1px solid currentColor; white-space: nowrap;
}
@media (max-width: 639px) {
    #cm-tb .cm-tb-btn span, #cm-tb .cm-tb-hide-sm { display: none; }
    #cm-tb .cm-tb-btn { padding: 0 .5rem; }
}

/* Brotkrume (Werkzeugleiste und Seitenleiste der App-Seiten) */
.cm-crumbs { min-width: 0; font-size: .875rem; }
.cm-crumbs ol { display: flex; align-items: center; gap: .4rem; min-width: 0; margin: 0; padding: 0; list-style: none; white-space: nowrap; }
.cm-crumbs li { display: flex; align-items: center; gap: .4rem; min-width: 0; }
.cm-crumbs li + li::before { content: "\203A"; color: var(--sh-muted); opacity: .8; }
.cm-crumbs a { color: var(--sh-muted); font-weight: 500; }
.cm-crumbs a:hover { color: var(--sh-fg); text-decoration: underline; text-underline-offset: 3px; }
.cm-crumbs [aria-current="page"] { color: var(--sh-fg); font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.cm-crumbs li:last-child { flex: 0 1 auto; overflow: hidden; }
@media (max-width: 639px) { .cm-crumbs li:not(:nth-last-child(-n+2)) { display: none; } .cm-crumbs li:nth-last-child(2)::before { content: none; } }

/* Seitenleiste der App-Seiten (Typ app) */
.cm-pagebar { width: 100%; color: var(--sh-fg); }
.cm-pagebar-in {
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    max-width: 80rem; margin: 0 auto; padding: 1rem 1rem 0;
}
@media (min-width: 640px) { .cm-pagebar-in { padding: 1.1rem 1.5rem 0; } }
@media (min-width: 1024px) { .cm-pagebar-in { padding: 1.25rem 2rem 0; } }

/* --------------------------------------------------------- Website-Fusszeile */
#cm-ft.cm-ft {
    width: 100%; margin-top: auto; flex-shrink: 0; padding: 3.5rem 0 2rem;
    color: var(--sh-muted); background: var(--sh-bg); border-top: 1px solid var(--sh-line); font-size: .875rem;
}
#cm-ft .cm-ft-in { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { #cm-ft .cm-ft-in { padding: 0 1.5rem; } }
@media (min-width: 1024px) { #cm-ft .cm-ft-in { padding: 0 2rem; } }
#cm-ft .cm-ft-top {
    display: flex; flex-direction: column; gap: 2.5rem; padding-bottom: 3rem; margin-bottom: 2rem; border-bottom: 1px solid var(--sh-line);
}
#cm-ft .cm-ft-brand { max-width: 22rem; min-width: 0; }
#cm-ft .cm-ft-brand p { margin-top: 1rem; line-height: 1.6; overflow-wrap: anywhere; }
#cm-ft .cm-ft-logo { font-size: 1.25rem; }
#cm-ft .cm-ft-cols { display: flex; flex-wrap: wrap; min-width: 0; gap: 2.5rem 2rem; }
@media (min-width: 1024px) {
    #cm-ft .cm-ft-top { flex-direction: row; gap: 2rem; }
    #cm-ft .cm-ft-brand { flex: 0 1 14rem; }
    #cm-ft .cm-ft-cols { flex: 1 1 0; }
}
#cm-ft .cm-ft-col { flex: 0 0 calc(50% - 1rem); min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
@media (min-width: 640px) { #cm-ft .cm-ft-col { flex: 0 0 auto; } }
#cm-ft .cm-ft-h { display: block; margin-bottom: 1.1rem; font-size: .9375rem; font-weight: 700; color: var(--sh-fg); }
#cm-ft a.cm-ft-h:hover { color: var(--sh-link); }
#cm-ft .cm-ft-col ul { display: flex; flex-direction: column; gap: .8rem; }
#cm-ft .cm-ft-col a { color: var(--sh-muted); }
#cm-ft .cm-ft-col li a:hover { color: var(--sh-fg); }
#cm-ft .cm-ft-bottom {
    display: flex; flex-direction: column; align-items: center; gap: 1rem; font-size: .75rem; color: var(--sh-muted);
}
@media (min-width: 640px) { #cm-ft .cm-ft-bottom { flex-direction: row; justify-content: space-between; } }
#cm-ft .cm-ft-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem 1rem; }
#cm-ft .cm-ft-meta a { color: var(--sh-muted); white-space: nowrap; }
#cm-ft .cm-ft-meta a:hover { color: var(--sh-fg); }
#cm-ft .cm-ft-status { display: inline-flex; align-items: center; gap: .5rem; }
#cm-ft .cm-ft-dot { width: .5rem; height: .5rem; border-radius: 999px; box-shadow: 0 0 8px currentColor; }
#cm-ft .cm-ft-dot-ok { background: #10b981; color: #10b981; }
#cm-ft .cm-ft-dot-warn { background: #f59e0b; color: #f59e0b; }
#cm-ft .cm-ft-dot-info { background: #3b82f6; color: #3b82f6; }
#cm-ft .cm-ft-dot-err { background: #ef4444; color: #ef4444; }
/* Claude, 30.11.2026: no recent status run - grey, no glow. */
#cm-ft .cm-ft-dot-none { background: #6b7280; color: #6b7280; box-shadow: none; }
#cm-ft .cm-ft-langs { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; max-width: 100%; gap: .5rem .75rem; }
#cm-ft .cm-ft-langs a { display: inline-flex; align-items: center; gap: .375rem; }
#cm-ft .cm-ft-langs .cm-sh-flag { width: 16px; height: 12px; }
#cm-ft .cm-ft-langs a[aria-current="true"] { color: var(--sh-accent); font-weight: 700; }
#cm-ft .cm-ft-language { max-width: 100%; }
#cm-ft .cm-ft-language summary { cursor: pointer; }
#cm-ft .cm-ft-language .cm-ft-langs { display: flex; margin-block-start: .55rem; padding: .2rem; max-height: 14rem; overflow-y: auto; justify-content: flex-start; overscroll-behavior: contain; }
#cm-ft .cm-ft-language .cm-ft-langs a { white-space: normal; overflow-wrap: anywhere; }
html[dir="rtl"] .cmxCanvas, html[dir="rtl"] canvas.tl-wave { direction: ltr; }
#cm-ft .cm-ft-projects { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--sh-line); font-size: .75rem; }
/* "Weitere Projekte" (/var/www/html/links.php, ohne dessen <style>) */
#cm-ft .lwit-projekte__titel { margin: 0 0 .6em; opacity: .75; }
#cm-ft .lwit-projekte__logos { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 .75em; }
#cm-ft .lwit-projekte__logo { display: block; line-height: 0; border-radius: 22%; transition: transform .15s ease, opacity .15s ease; }
#cm-ft .lwit-projekte__logo svg { display: block; }
#cm-ft .lwit-projekte__logo:hover { transform: translateY(-2px); }
#cm-ft .lwit-projekte__logo--bald { opacity: .8; }
#cm-ft .lwit-projekte__namen { display: flex; flex-wrap: wrap; gap: .35em 1.1em; align-items: baseline; }
#cm-ft .lwit-projekte__namen a { color: var(--sh-muted); }
#cm-ft .lwit-projekte__namen a:hover { color: var(--sh-fg); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
    #bp-nav *, #cm-ft * { transition: none !important; }
    #bp-nav .cm-sh-logo:hover .cm-sh-mark, #cm-ft .lwit-projekte__logo:hover { transform: none; }
}

/* Shell-Sprung (www/shell.php): Platzhalter, bis das Werkzeug im Rahmen steht - die Fusszeile blitzt nicht auf. */
.cm-shell-jump { min-height: calc(100vh - 4rem); min-height: calc(100dvh - 4rem); }

/* Arbeitsflaeche eines Werkzeugs: mindestens bildschirmhoch unter Kopf und Werkzeugleiste - die Website-Fusszeile steht
   darunter und ist per Bildlauf erreichbar (docs/clubmix/LAYOUT.md). */
html[data-cm-layout="tool"] [data-cm-workspace] {
    min-height: calc(100vh - var(--cm-chrome-h));
    min-height: calc(100dvh - var(--cm-chrome-h));
}

/* Werkzeuge ohne eigene Ueberschrift: das letzte Glied der Brotkrume ist die <h1> (clubmix_layout_start 'heading'). */
#cm-tb .cm-crumbs-h1 {
    margin: 0; padding: 0; font: inherit; font-size: .875rem; font-weight: 700; line-height: 1.5; letter-spacing: 0;
    color: var(--sh-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#cm-tb .cm-tb-slot:empty { display: none; }
#bp-nav .cm-sh-flag-txt, #cm-ft .cm-sh-flag-txt {
    display: inline-flex; align-items: center; justify-content: center; font-size: .5625rem; font-weight: 800; color: var(--sh-fg); background: var(--sh-raised);
}

/* Telefon: Logo · AI-Platz · Credits · Suche · Menue (abgemeldet: Logo · Suche · Anmelden · Menue). */
@media (max-width: 639px) {
    #bp-nav .cm-sh-ai { order: 1; }
    #bp-nav .cm-sh-credits { order: 2; }
    #bp-nav .cm-sh-search-btn { order: 3; }
    #bp-nav .cm-sh-signin { order: 4; }
    #bp-nav .cm-sh-burger { order: 5; }
}
/* Werkzeuge im Telefonmenue: zugeklappt, damit Konto, Hilfe und Anzeige ohne langen Bildlauf erreichbar bleiben. */
#bp-nav .cm-sh-mdet > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
#bp-nav .cm-sh-mdet > summary::-webkit-details-marker { display: none; }
#bp-nav .cm-sh-mdet > summary svg { width: 16px; height: 16px; transition: transform .15s ease; }
#bp-nav .cm-sh-mdet[open] > summary svg { transform: rotate(180deg); }

/* Samsung Internet im Nachtmodus (www/css/clubmix-samsung.css, html.cm-samsung): der Browser faerbt jede
   background-color um, ein einfarbiges SVG-Bild bleibt. Nur die vollen Farbflaechen des Kopfs. */
html.cm-samsung #bp-nav .cm-sh-cta { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Crect width='8' height='8' fill='%23EEFF70'/%3E%3C/svg%3E"); }
html.cm-samsung.light #bp-nav .cm-sh-cta { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Crect width='8' height='8' fill='%23111113'/%3E%3C/svg%3E"); }
html.cm-samsung #bp-nav .cm-sh-avatar > span { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Crect width='8' height='8' fill='%230B6E75'/%3E%3C/svg%3E"); }

/* Halter fuer die SPA-Fortschrittsleiste unter der Kopfzeile (Ladeanzeige aus feat/loaders-20261121): ohne eigene Hoehe,
   die Leiste darin legt sich auf die Unterkante des Kopfs und verschiebt nichts. */
#bp-nav .cm-sh-busy { position: absolute; left: 0; right: 0; bottom: -1px; height: 0; pointer-events: none; z-index: 61; }

/* Home-Symbol (01.12.2026): fuer Abgemeldete erst ab 1100px - darunter fuehrt das Logo zur Startseite, und die
   deutsche Leiste wuerde sonst schon bei 1024px ins Burger-Menue kippen. */
@media (max-width: 1099.98px) {
    #bp-nav[data-cm-sh-auth="0"] .cm-sh-nav .cm-sh-link-home { display: none; }
}
/* Mit Home-Symbol sechs Punkte: Symbol schmaler und Punkte enger, damit das Suchfeld auf DE/PL daneben bleibt. */
@media (min-width: 1024px) {
    #bp-nav .cm-sh-nav:has(> .cm-sh-link-home) { gap: .125rem; }
}
#bp-nav .cm-sh-link-home { padding: 0 .55rem; }
/* Haus-Symbol in der Telefon-/Tabletleiste (01.12.2026): nur in der Stufe "compact" und nur, wenn es laut Messung
   (www/js/clubmix-shell.js, data-cm-sh-home) neben dem Schriftzug Platz hat; sonst steht "Start" im Menue. */
#bp-nav .cm-sh-home-m { display: none; }
#bp-nav .cm-sh-bar[data-cm-sh-fit="compact"][data-cm-sh-home] .cm-sh-home-m { display: inline-flex; }

/* Feinschliff 01.12.2026 (Klickflaechen): Fusszeilen-Links waren 16-18 px hoch. Hoehere Trefferflaeche ueber Innenabstand,
   Abstand der Liste entsprechend kleiner, damit die Fusszeile kaum waechst; auf Touch-Geraeten 36 px. */
#cm-ft .cm-ft-col ul { gap: .2rem; }
#cm-ft .cm-ft-col li a, #cm-ft .lwit-projekte__namen a, #cm-ft .cm-ft-meta a, #cm-ft .cm-ft-language .cm-ft-langs a { display: inline-flex; align-items: center; min-height: 1.75rem; }
@media (pointer: coarse) {
    #cm-ft .cm-ft-col ul { gap: 0; }
    #cm-ft .cm-ft-col li a, #cm-ft .lwit-projekte__namen a, #cm-ft .cm-ft-meta a, #cm-ft .cm-ft-language .cm-ft-langs a { min-height: 2.25rem; }
}

/* Feinschliff 01.12.2026: .sr-only fuer Seiten ohne Tailwind (Werkzeuge). Ohne die Regel stand neben dem Haus-Symbol
   sichtbar "Start" und die Suche fiel auf das Symbol zurueck. Werkzeugleiste am Telefon: die Auswahl nennt das aktuelle
   Werkzeug schon - das letzte Glied der Brotkrume nur noch fuer Screenreader (bleibt <h1>), die Auswahl fuellt die Zeile. */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 767px) {
    #cm-tb:has(.cm-tb-pick) .cm-crumbs li:last-child { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    #cm-tb:has(.cm-tb-pick) .cm-tb-crumbs { flex: 0 0 auto; }
    #cm-tb:has(.cm-tb-pick) .cm-crumbs li:nth-last-child(2)::after { content: "\203A"; margin-inline-start: .4rem; color: var(--sh-muted); opacity: .8; }
    #cm-tb .cm-tb-switch, #cm-tb .cm-tb-switchnav, #cm-tb .cm-tb-pick { flex: 1 1 auto; }
    #cm-tb .cm-tb-pick select { width: 100%; max-width: none; }
}

/* Feinschliff 01.12.2026: Sprunglink "Zum Inhalt springen" (cfg/clubmix_layout.php), erst bei Tastaturfokus sichtbar. */
.cm-skip { position: absolute; left: .75rem; top: -4rem; z-index: 2147482001; padding: .55rem .95rem; border-radius: .5rem;
    background: var(--cm-acid, #eeff70); color: var(--cm-on-acid, #111113); font-weight: 700; font-size: .875rem; text-decoration: none; }
.cm-skip:focus, .cm-skip:focus-visible { top: .75rem; outline: 2px solid var(--cm-on-acid, #111113); outline-offset: 2px; }
#bp-content:focus { outline: none; }
/* Werkzeugseiten haben schon "Zum Werkzeug springen" (.tl-skip, www/tools.php): dort kein zweiter Sprunglink. */
body:has(.tl-skip) .cm-skip { display: none; }

/* P4 (01.12.2026): Trennzeichen der Brotkrume schrumpft bei Platzmangel nicht weg (Audio-Editor am Telefon: "WerkzeugeAudio-..."). */
.cm-crumbs li + li::before { flex-shrink: 0; }
