:root {
    /* Farben: Tokens --cm-* in www/css/clubmix-theme.css (eine Stelle fuer alle Seiten, Lukas 21.11.2026). */
    --cm-mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}

html.dark body {
    background: var(--cm-bg);
    color: var(--cm-fg);
}

html.dark ::selection {
    color: var(--cm-on-acid);
    background: var(--cm-acid);
}

:focus-visible {
    outline-color: var(--cm-focus);
}

html.dark #bp-nav {
    border-color: var(--cm-line);
}

/* Hauptaktionen: gefuellte Akzent-Knoepfe (bg-accent-600 + hover:bg-accent-500) sind die CTA der Shell.
   Dunkel acid-Flaeche mit Tinte (17,2:1), hell Tinte mit acid-Schrift (17,2:1). Alle anderen accent-Flaechen
   (Auswahl, Seitenzahl, Kennzeichen) bleiben Eisblau aus der Tailwind-Palette (Weiss auf accent-600 6,0:1).
   html:not(.light) / html.light schlagen den Hell-Adapter in cfg/header.php (html.light .text-white). */
html:not(.light) .bg-accent-600.hover\:bg-accent-500,
html.light .bg-accent-600.hover\:bg-accent-500 {
    background-color: var(--cm-cta-bg) !important;
    color: var(--cm-cta-fg) !important;
}
html:not(.light) .bg-accent-600.hover\:bg-accent-500:hover:not(:disabled),
html.light .bg-accent-600.hover\:bg-accent-500:hover:not(:disabled) {
    background-color: var(--cm-cta-hover) !important;
}

.cm-home {
    /* --cm-hi: Markenschrift - dunkel acid, hell Eisblau (acid ist auf Hell nur Flaeche). */
    --cm-hi: var(--cm-acid);
    --cm-badge-border: var(--cm-line-strong);
    color: var(--cm-fg);
    background: var(--cm-bg);
}

html.light .cm-home {
    --cm-hi: var(--cm-ice);
    --cm-badge-border: var(--cm-ice-line);
}

.cm-home a:focus-visible {
    outline: 2px solid var(--cm-focus);
    outline-offset: 4px;
}

.cm-shell {
    width: min(100% - 3rem, 77rem);
    margin-inline: auto;
}

.cm-hero {
    display: grid;
    grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
    align-items: center;
    gap: clamp(1.75rem, 4vw, 5rem);
    padding-block: clamp(2.5rem, 5.3vw, 5.3rem);
}

.cm-badge,
.cm-kicker,
.cm-art-top,
.cm-art-bottom {
    font: .75rem/1.45 var(--cm-mono);
    letter-spacing: .105em;
    text-transform: uppercase;
}

.cm-badge {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin: 0 0 1.25rem;
    padding: .42rem .68rem;
    border: 1px solid var(--cm-badge-border);
    border-radius: 99px;
    color: var(--cm-hi);
}

.cm-badge::before {
    content: "";
    width: .47rem;
    height: .47rem;
    border-radius: 50%;
    background: currentColor;
}

.cm-home h1 {
    margin: 0;
    font-size: clamp(3.15rem, 7.5vw, 7.7rem);
    line-height: .93;
    font-weight: 800;
    letter-spacing: -.055em;
    hyphens: none;
}

.cm-home h1 em {
    color: var(--cm-acid);
    font-style: normal;
}

/* Hell: acid als Markerflaeche unter Tinte statt als Schrift. */
html.light .cm-home h1 em {
    color: var(--cm-ink);
    background: linear-gradient(transparent 58%, var(--cm-acid) 58%, var(--cm-acid) 92%, transparent 92%);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.cm-intro {
    max-width: 29rem;
    margin: 1.45rem 0 0;
    color: var(--cm-muted);
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    line-height: 1.55;
}

.cm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1.4rem;
}

.cm-action {
    display: inline-flex;
    gap: .65rem;
    align-items: center;
    justify-content: space-between;
    min-height: 2.75rem;
    padding: .63rem .88rem;
    border: 1px solid var(--cm-line);
    border-radius: .375rem;
    color: var(--cm-fg);
    font-size: .875rem;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
}

.cm-action:hover {
    border-color: var(--cm-hi);
    color: var(--cm-hi);
}

.cm-primary {
    border-color: var(--cm-cta-bg);
    color: var(--cm-cta-fg);
    background: var(--cm-cta-bg);
}

.cm-primary:hover {
    border-color: var(--cm-cta-hover);
    color: var(--cm-cta-fg);
    background: var(--cm-cta-hover);
}

.cm-art {
    position: relative;
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--cm-line-strong);
    border-radius: .5rem;
    background: #18181b; /* die Grafik ist in beiden Themen dunkel */
}

.cm-art img {
    display: block;
    width: 100%;
    height: auto;
}

.cm-art-top,
.cm-art-bottom {
    position: absolute;
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    inset-inline: 1rem;
    color: #4fe3e0; /* Eisblau auf der dunklen Grafik */
}

.cm-art-top { top: .9rem; }
.cm-art-bottom { bottom: .9rem; }

.cm-catalog {
    padding-block: clamp(1.65rem, 4vw, 3.1rem);
    border-top: 1px solid var(--cm-line);
}

.cm-section-heading {
    max-width: 40rem;
    margin-bottom: 1.35rem;
}

.cm-section-heading p:last-child {
    margin: .65rem 0 0;
    color: var(--cm-muted);
}

.cm-tool-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
}

.cm-tool {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    min-width: 0;
    padding: clamp(1rem, 2.4vw, 1.7rem);
    border: 1px solid var(--cm-line);
    border-radius: .5rem;
    background: var(--cm-panel);
}

.cm-tool-wide {
    grid-column: 1 / -1;
    border-left: 3px solid var(--cm-ice);
}

.cm-tool-wide p {
    max-width: 52rem;
}

.cm-tool-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem;
    align-items: center;
}

.cm-status {
    border: 1px solid var(--cm-line);
    border-radius: 99px;
    padding: .25rem .55rem;
    color: var(--cm-muted);
    font: .75rem/1.4 var(--cm-mono);
    letter-spacing: .05em;
}

.cm-status-ready {
    border-color: var(--cm-badge-border);
    color: var(--cm-hi);
}

.cm-status-local,
.cm-status-research {
    color: var(--cm-ice);
}

.cm-tool h3,
.cm-step h3 {
    margin: 0;
    font-size: clamp(1.13rem, 2vw, 1.55rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.025em;
}

.cm-tool p,
.cm-step p,
.cm-next p:last-child {
    margin: 0;
    color: var(--cm-muted);
    font-size: .9375rem;
    line-height: 1.6;
}

.cm-tool-link {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    margin-top: auto;
    padding: .2rem 0;
    color: var(--cm-ice);
    font-size: .875rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: .25em;
}

.cm-workflow {
    padding-block: clamp(1.5rem, 3.3vw, 2.45rem);
    border-block: 1px solid var(--cm-line);
}

.cm-workflow-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .8rem clamp(.9rem, 2.5vw, 2rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.cm-step {
    padding-top: .75rem;
    border-top: 1px solid var(--cm-line);
}

.cm-step h3 {
    margin: .4rem 0 .35rem;
    font-size: 1.125rem;
}

.cm-home h2 {
    margin: .35rem 0 0;
    font-size: clamp(1.85rem, 3.7vw, 3.1rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.053em;
}

.cm-kicker {
    margin: 0;
    color: var(--cm-ice);
}

.cm-next {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.1rem 2.5rem;
    align-items: center;
    padding-block: clamp(1.8rem, 4vw, 3.5rem);
}

.cm-next h2 {
    margin-bottom: .55rem;
    font-size: clamp(1.5rem, 3vw, 2.45rem);
}

.cm-next p:last-child {
    max-width: 47rem;
}

.cm-next .cm-actions {
    margin: 0;
}

@media (max-width: 54rem) {
    .cm-hero { grid-template-columns: 1fr; }
    .cm-art { width: min(100%, 34rem); }
    .cm-workflow-steps { grid-template-columns: 1fr 1fr; }
    .cm-next { grid-template-columns: 1fr; }
}

@media (max-width: 33rem) {
    .cm-shell { width: calc(100% - 2rem); }
    .cm-tool-grid, .cm-workflow-steps { grid-template-columns: 1fr; }
    .cm-art-top, .cm-art-bottom { inset-inline: .65rem; font-size: .6rem; }
    .cm-art-top { top: .6rem; }
    .cm-art-bottom { bottom: .6rem; }
}

@media (max-width: 23rem) {
    #bp-nav > .max-w-7xl { padding-inline: .65rem; }
    #bp-nav a[data-nav="index"] { gap: .4rem; }
    #bp-nav a[data-nav="index"] svg { width: 1.7rem; height: 1.7rem; }
    #bp-nav a[data-nav="index"] > span:last-child { font-size: 1rem; }
}

/* Support dialog in clubmix colours (Lukas 20.11.2026: "Support Dialog hat die falschen Farben"; tokens 21.11.2026).
   The send button is the main action (acid with ink on dark, ink with acid on light); accent text and focus are ice.
   Scoped to #bp-support so nothing else changes. */
#bp-support .text-accent-400 { color: var(--cm-ice) !important; }
#bp-support .bg-accent-600 {
    background-color: var(--cm-cta-bg) !important;
    color: var(--cm-cta-fg) !important;
}
#bp-support .bg-accent-600:hover:not(:disabled) { background-color: var(--cm-cta-hover) !important; }
#bp-support .bp-input:focus {
    border-color: var(--cm-ice) !important;
    box-shadow: 0 0 0 3px var(--cm-ice-soft);
}
#bp-support .bp-select-btn[aria-expanded="true"] { border-color: var(--cm-ice) !important; }

/* clubmix-cbd BEGIN - package prices box on /pricing (21.11.2026, cfg/clubmix_pricing_view.php, docs/clubmix/BUNDLES.md).
   Ice blue from the theme tokens (www/css/clubmix-theme.css): the same rule serves dark and light. */
.cbd-box { background: var(--cm-ice-soft); border-color: var(--cm-ice-line); }
.cbd-box .cbd-title { color: var(--cm-ice); }
/* clubmix-cbd END */

/* Feinschliff 01.12.2026 (Lesbarkeit): Tailwind-Grau 500 erreicht auf den dunklen Flaechen nur 3,1-3,7:1. #9096a0 hat auf
   #0f0f11 6,4:1, auf #18181b 6,0:1, auf #26262b 5,1:1 und bleibt etwas dunkler als Grau 400 (Rangfolge bleibt). Das helle
   Thema behaelt Grau 500 (auf Weiss 4,8:1). 11-px-Schrift (Blog-Kategorie, Datum, Preis-Abzeichen) auf 12 px. */
html:not(.light) .text-gray-500 { color: #9096a0; }
.text-\[11px\] { font-size: .75rem; }

/* Feinschliff 01.12.2026 (Zeilenlaenge): Redaktionstexte (Produkt, Rechtliches, DJ-Wissen, Praxistest) liefen mit
   ueber 100 Zeichen je Zeile; Absaetze und Listen auf 65ch (rund 75 Zeichen Fliesstext), Ueberschriften und Tabellen nutzen die Spalte. */
.prose-bp :is(p, ul, ol) { max-width: 65ch; }
/* Feinschliff 01.12.2026: lange Einzelwoerter im Seitentitel (z. B. "Datenschutzerklaerung") passen auf sehr schmalen
   Telefonen mit 30 px nicht in die Zeile; dort 28 px, damit kein Umbruch mitten im Wort noetig ist. */
@media (max-width: 26rem) { main h1.text-3xl { font-size: 1.875rem; } }

/* Feinschliff 01.12.2026: Inhalts- und Weiterlesen-Navigation von DJ-Wissen (cfg/clubmix_reference_view.php) als Chips. */
[data-dj-reference] .prose-bp > nav ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 2rem; padding: 0; list-style: none; max-width: none; }
[data-dj-reference] .prose-bp > nav li { margin: 0; padding: 0; }
[data-dj-reference] .prose-bp > nav li::before, [data-dj-reference] .prose-bp > nav li::marker { content: none; }
[data-dj-reference] .prose-bp > nav a { display: inline-flex; align-items: center; min-height: 2.5rem; padding: .4rem .9rem; border: 1px solid var(--cm-line-strong);
    border-radius: 999px; background: var(--cm-panel); color: var(--cm-fg); font-size: .875rem; font-weight: 600; text-decoration: none; }
[data-dj-reference] .prose-bp > nav a:hover { border-color: var(--cm-ice-line); color: var(--cm-ice); }

/* Feinschliff 01.12.2026: Tabellen in Redaktionstexten am Telefon seitlich scrollbar statt abgeschnitten; ein
   Schatten am Rand zeigt, dass es weitergeht (verschwindet am Ende, background-attachment: local). */
@media (max-width: 40rem) {
    .prose-bp table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
        background: linear-gradient(to right, var(--cm-bg) 30%, transparent), linear-gradient(to left, var(--cm-bg) 30%, transparent) 100% 0,
            radial-gradient(farthest-side at 0 50%, rgba(238, 255, 112, .28), transparent), radial-gradient(farthest-side at 100% 50%, rgba(238, 255, 112, .28), transparent) 100% 0;
        background-repeat: no-repeat; background-size: 2.5rem 100%, 2.5rem 100%, .9rem 100%, .9rem 100%;
        background-attachment: local, local, scroll, scroll; }
    html.light .prose-bp table { background-image: linear-gradient(to right, var(--cm-bg) 30%, transparent), linear-gradient(to left, var(--cm-bg) 30%, transparent),
            radial-gradient(farthest-side at 0 50%, rgba(11, 110, 117, .25), transparent), radial-gradient(farthest-side at 100% 50%, rgba(11, 110, 117, .25), transparent); }
    .prose-bp table th, .prose-bp table td { min-width: 8rem; }
}

/* App-Seiten (Messung eingeloggt, 01.12.2026): 10-px-Abzeichen (Preise, Jahresrabatt) auf 12 px; Tailwind-Grau 500 im
   hellen Thema auf den getoenten Flaechen nur 3,9:1 - dort #575c66 (5,0-6,1:1). */
.text-\[10px\] { font-size: .75rem; }
html.light .text-gray-500 { color: #575c66; }

/* 02.12.2026: Ablauf-Kaesten im Blog (cfg/blog_lib.php, z. B. Aufbau eines Club-Tracks): lange Woerter (PL "wymiksowania")
   liefen aus den fuenf schmalen Kaesten - Silbentrennung, Umbruch im Wort nur als letzte Moeglichkeit, etwas weniger Innenabstand. */
.blog-body .flex-1.min-w-0.rounded-xl { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; padding: .75rem; }
