:root {
  --bg: #f5f6f8; --karte: #fff; --text: #1d2330; --leise: #5f6b7a; --rand: #d9dde3;
  --akzent: #1d4ed8; --akzent-text: #fff; --ok: #e7f6ec; --ok-rand: #2f9e55; --warn: #fff6e0; --warn-rand: #d99a00;
  --fehler: #fdecec; --fehler-rand: #d33; --info: #eaf2fd; --info-rand: #3b7dd8;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-thema="hell"]) {
    --bg: #14171c; --karte: #1d2229; --text: #e6e9ee; --leise: #9aa4b1; --rand: #343b45;
    --akzent: #60a5fa; --akzent-text: #14171c; --ok: #15301f; --warn: #33290f; --fehler: #3a1818; --info: #16253a;
  }
}
/* Hell/Dunkel aus den Einstellungen: gilt statt der Systemeinstellung (z. B. im Web MIDI Browser, der immer hell ist) */
:root[data-thema="dunkel"] {
  --bg: #14171c; --karte: #1d2229; --text: #e6e9ee; --leise: #9aa4b1; --rand: #343b45;
  --akzent: #60a5fa; --akzent-text: #14171c; --ok: #15301f; --warn: #33290f; --fehler: #3a1818; --info: #16253a; color-scheme: dark;
}
:root[data-thema="hell"] { color-scheme: light; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
/* Eigene Symbole statt Emoji (tools/symbole.py, Material Symbols, Apache-2.0): gilt nur für diese Zeichen */
@font-face { font-family: "Leadsheet Symbole"; src: url(symbole.woff?v=dfbf0e1c) format("woff"); font-display: block; unicode-range: U+23F1, U+23F3, U+23F8, U+25B6, U+25D0, U+2605, U+2630, U+2665, U+2699, U+26A0, U+26F6, U+270F, U+2713, U+2714, U+2715, U+2718, U+271A, U+2795, U+2B07, U+FF0B, U+1F3A4, U+1F3A7, U+1F3B9, U+1F44D, U+1F44E, U+1F464, U+1F4BE, U+1F4C4, U+1F4CB, U+1F4DD, U+1F4F6, U+1F511, U+1F514, U+1F517, U+1F5A8, U+1F5D1, U+1F9EA; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 "Leadsheet Symbole", system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--text); text-decoration-color: color-mix(in srgb, var(--akzent) 75%, transparent); text-underline-offset: 3px; } /* dezent: Text in Schriftfarbe, nur die Unterstreichung in der Rubrikfarbe */
a:hover { text-decoration-color: var(--akzent); text-decoration-thickness: 2px; } /* Hover: Schrift bleibt in Textfarbe (lesbar), nur die Unterstreichung wird kräftiger */
h1 { font-size: 1.5rem; margin: .2rem 0 1rem; }
h2 { font-size: 1.1rem; margin: 1.4rem 0 .5rem; }
small { color: var(--leise); display: block; margin-top: .3rem; }

.leiste { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .6rem 1rem; background: var(--karte); border-bottom: 1px solid var(--rand); position: sticky; top: 0; z-index: 5; }
.marke { font-weight: 700; text-decoration: none; color: var(--text); }
.leiste nav { display: flex; flex-wrap: wrap; gap: .2rem; flex: 1; }
.leiste nav a { padding: .35rem .6rem; border-radius: 6px; text-decoration: none; color: var(--text); }
.leiste nav a.aktiv, .leiste nav a:hover { background: var(--bg); color: var(--akzent); }
.abmelden { display: flex; align-items: center; gap: .5rem; color: var(--leise); }
.menue-knopf { display: none; }
.zahnrad { font-size: 1.35rem; line-height: 1; padding: .3rem .4rem; border-radius: 6px; text-decoration: none; color: var(--text); }
.abmelden .zahnrad { margin-left: auto; }
.zahnrad:hover, .zahnrad.aktiv { background: color-mix(in srgb, var(--c-band, var(--akzent)) 22%, transparent); }
@media (min-width: 701px) and (max-width: 1000px) { /* Tablet: Menü bleibt einzeilig */
  .leiste { gap: .4rem .6rem; }
  .leiste .bereich-wahl select { max-width: 7.5rem; } /* .leiste: schlägt die allgemeine Regel weiter unten */
  .leiste .offline-stand { max-width: 1.9em; overflow: hidden; } /* nur das Zeichen ✓/⚠/⟳, Stand steht im title */
  .leiste nav a { padding: .35rem .35rem; }
  .abmelden span, .marke-name { display: none; } /* Logo nur 🎹: sonst bricht das Menü bei 810 px um */
}
@media (max-width: 700px) { /* Handy: Menü hinter ☰, aufgeklappt untereinander mit großen Tippflächen */
  .leiste { padding: .5rem .8rem; }
  .menue-knopf { display: inline-block; margin-left: auto; padding: .45rem .8rem; color: var(--text); }
  .menue-name { display: none; } /* nur ☰: gleich breit auf jeder Seite, die Seite steht als Überschrift darunter */
  .leiste:not(.offen) nav, .leiste:not(.offen) .abmelden, .leiste:not(.offen) .offline-stand { display: none; }
  .leiste .offline-stand { flex-basis: 100%; text-align: left; padding: .6rem; } /* Offline-Stand steht im aufgeklappten Menü */
  .leiste nav { flex-basis: 100%; flex-direction: row; }
  .leiste nav a { flex: 1 1 100%; }
  .leiste nav a[href="?p=anleitung"], .leiste nav a[href="?p=melden"] { flex-basis: 40%; padding-block: .45rem; font-size: .9rem; } /* weniger wichtig: halb so groß, teilen sich eine Zeile */
  .leiste nav a { padding: .75rem .6rem; border-bottom: 1px solid var(--rand); border-radius: 0; }
  .abmelden { flex-basis: 100%; justify-content: space-between; padding: .2rem .6rem .3rem; }
}
.inhalt { max-width: 1280px; margin: 0 auto; padding: 1rem 1.25rem; }
body.seite-bearbeiten .inhalt, body.seite-einstellungen .inhalt { max-width: 1560px; } /* Editor und Einstellungen nutzen am PC die Breite */
/* Seitenkopf: Überschrift links, Hauptaktionen rechts (auf dem Handy darunter) */
.seitenkopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin: .2rem 0 1rem; }
.seitenkopf h1 { margin: 0; }
.seitenkopf .werkzeug { margin: 0; }
/* Bereich-Umschalter in der Kopfleiste: immer sichtbar, auch auf dem Handy */
html { scrollbar-gutter: stable; } /* Platz für die Scrollleiste immer frei: die Seite springt nicht zwischen kurzen und langen Seiten */
.bereich-wahl { margin: 0; }
@media (max-width: 1000px), (hover: none) and (pointer: coarse) { .bereich-wahl.nebensache { display: none; } } /* Einstellungen, Raster, Anleitung, Melden: dort wirkt der Bereich nicht; auf Handy und Tablet den Platz sparen, am Laptop bleibt sie */
.bereich-wahl select { width: auto; max-width: min(15rem, 42vw); text-overflow: ellipsis; padding: .3rem .6rem; border-radius: 999px; background: var(--bg); font-weight: 600; cursor: pointer; }
.bereich-hinweis { margin: -.4rem 0 .8rem; }
small.inline { display: inline; margin: 0 0 0 .4rem; font-size: .8rem; font-weight: 400; }
.schmal-feld { max-width: 26rem; }
.hinweisleiste { padding: .6rem 1rem; background: var(--warn); border-bottom: 2px solid var(--warn-rand); display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

.karte { background: var(--karte); border: 1px solid var(--rand); border-radius: 8px; padding: .8rem .9rem; margin: 0 0 .8rem; }
.karte.schmal { max-width: 32rem; }
details.karte summary, details summary { cursor: pointer; font-weight: 600; }
.tabelle-rahmen { overflow-x: auto; }

label { display: flex; flex-direction: column; gap: .2rem; font-size: .9rem; color: var(--leise); margin-bottom: .5rem; }
label.haken { flex-direction: row; align-items: center; gap: .5rem; color: var(--text); }
input, select, textarea, button, .knopf { font: inherit; color: var(--text); }
input, select, textarea { width: 100%; padding: .35rem .5rem; border: 1px solid var(--rand); border-radius: 6px; background: var(--karte); }
input[type=checkbox], input[type=radio] { width: auto; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--akzent); outline-offset: -1px; }
button, .knopf { display: inline-block; padding: .35rem .7rem; line-height: 1.35; border: 1px solid var(--rand); border-radius: 6px; background: var(--karte); cursor: pointer; text-decoration: none; }
button:hover, .knopf:hover { border-color: var(--akzent); }
.nur-zeichen { min-width: 2.4em; text-align: center; } /* Knopf nur mit Zeichen: Bedeutung steht in title und aria-label */
body.livemodus dialog :is(button, .knopf) { padding: .5rem .9rem; } /* Live: Dialoge wie bisher */
.haupt { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); font-weight: 600; }
.haupt:hover { background: color-mix(in srgb, var(--akzent) 80%, var(--text)); border-color: color-mix(in srgb, var(--akzent) 80%, var(--text)); color: var(--akzent-text); } /* Hauptknopf: beim Überfahren hell dunkler, dunkel heller (Richtung Schriftfarbe), so steigt der Kontrast zur Knopfschrift */
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 1rem; }
.raster .breit { grid-column: 1 / -1; }
/* Song-Editor: Reiter unter der Werkzeugleiste; alle Felder bleiben in einem Formular */
.reiter { display: flex; gap: .2rem; margin: 0 0 1rem; border-bottom: 1px solid var(--rand); overflow-x: auto; scrollbar-width: thin; }
.reiter button { border: 0; border-bottom: 3px solid transparent; border-radius: 6px 6px 0 0; background: none; padding: .55rem .9rem; white-space: nowrap; color: var(--leise); font-weight: 600; }
.reiter button:hover { color: var(--text); background: var(--karte); }
.reiter button[aria-pressed="true"] { color: var(--akzent); border-bottom-color: var(--akzent); background: var(--karte); }
.kopf-kurz { align-self: center; color: var(--leise); max-width: 22rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0 .3rem; }
.nur-sheet { display: contents; }
form[data-reiter]:not([data-reiter="sheet"]) .nur-sheet { display: none; } /* + Teil, + Notiz … gehören zum Sheet */
section[data-reiter-inhalt] > h2:first-child { margin-top: 0; }
@media (max-width: 600px) { .kopf-kurz { display: none; } }
[data-reiter-inhalt="band"] select { max-width: 26rem; }
.kopie-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.kopie-zeile label { display: flex; flex-direction: row; align-items: center; gap: .4rem; margin: 0; }
.kopie-zeile select { width: auto; }

.meldung { padding: .7rem .9rem; border-radius: 8px; border-left: 4px solid; margin: 0 0 1rem; }
.meldung.ok { background: var(--ok); border-color: var(--ok-rand); }
.meldung.warnung { background: var(--warn); border-color: var(--warn-rand); }
.meldung.fehler { background: var(--fehler); border-color: var(--fehler-rand); }
.meldung.info { background: var(--info); border-color: var(--info-rand); }

table.liste { width: 100%; border-collapse: collapse; }
table.liste th, table.liste td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--rand); vertical-align: top; }
table.liste th { color: var(--leise); font-weight: 600; font-size: .85rem; }
table.liste form { margin: 0 0 .3rem; }
table.liste th, table.liste td.kurz { white-space: nowrap; } /* „G-Dur“, „3:45“ nie umbrechen */
table.liste tr:hover > td { background: var(--bg); }
#songliste .nur-handy, #song-info .nur-handy { display: none; }
@media (max-width: 600px) { /* Handy: enger, Songliste nur mit dem Wichtigsten */
  #song-info .nur-handy { display: block; } /* ausgeblendete Spalten stehen im „i“ */
  table.liste th, table.liste td { padding: .4rem .35rem; }
  #songliste :is(th, td):is(:nth-child(2), :nth-child(4), :nth-child(5), :nth-child(n+6):not(:last-child)) { display: none; } /* Handy: Titel (Interpret darunter), Tonart, „i“ */
  #songliste .nur-handy { display: block; color: var(--leise); }
}

/* ---------- Song-Formular ---------- */
textarea.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; line-height: 1.5; }
.hilfe { margin: 0 0 1rem; color: var(--leise); }
.hilfe code, .hilfe li { color: var(--text); }
.gefahr { border-color: var(--fehler-rand); color: var(--fehler-rand); }
.gefahr-voll { background: var(--fehler-rand); border-color: var(--fehler-rand); color: #fff; font-weight: 600; } /* „Ja“ im Rückfrage-Pop-up */
dialog.app-frage { max-width: 24rem; } dialog.app-frage p { white-space: pre-line; margin: 0 0 1rem; } dialog.app-frage .werkzeug { display: flex; gap: .5rem; justify-content: flex-end; }
.werkzeug { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 .8rem; }
.werkzeug.angeheftet { position: sticky; top: var(--leiste-h, 0); z-index: 4; background: var(--bg); padding: .4rem 0; } /* Editor: immer erreichbar */
.werkzeug:has(> label) { align-items: flex-end; } /* Felder und Knöpfe in einer Zeile: Knöpfe auf Höhe der Felder statt gestreckt */
.werkzeug:has(> label) > label { margin-bottom: 0; }
/* Speichern schwebt unten (Handy, Tablet, PC), solange das Formular zu sehen ist */
.schwebend { position: sticky; bottom: .6rem; z-index: 5; }
button.schwebend, .schwebend button.haupt { box-shadow: 0 3px 12px rgba(0, 0, 0, .45); }
@media (max-width: 1000px) { /* Handy/Tablet: runder 💾-Knopf unten rechts statt Leiste, die Felder und Kalendertage verdeckt */
  .schwebend:not(button) { position: static; }
  button.schwebend, .schwebend button.haupt { position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 20;
    width: 3.6rem; height: 3.6rem; padding: 0; border-radius: 50%; font-size: 0; }
  button.schwebend::before, .schwebend button.haupt::before { content: '💾'; font-size: 1.5rem; }
  body:has(.schwebend) main { padding-bottom: 5rem; }
}
.blaettern { margin-left: auto; display: flex; gap: .25rem; } /* ‹ › zum Nachbar-Song, dezent am Ende der Leiste */
.blaettern .knopf { padding: .35rem .7rem; }
.blaettern .aus { opacity: .3; cursor: default; }

/* ---------- Editor: Teil-Karten links, Vorschau rechts (schmal: untereinander) ---------- */
.editor { display: grid; grid-template-columns: minmax(330px, 1fr) minmax(0, 1.15fr); gap: 1rem; align-items: start; }
.editor .vorschau { position: sticky; top: calc(var(--leiste-h, 3.5rem) + var(--werkzeug-h, 0px) + .5rem); }
@media (max-width: 900px) { .editor { grid-template-columns: minmax(0, 1fr); } .editor .vorschau { position: static; } }
.teilkarte, table.teiltypen { --blau: #0062cc; --hellblau: #0284c7; --tuerkis: #0f766e; --gruen: #008a2e; --oliv: #5f7a0a; --gelb: #a16207; --orange: #e05a00; --rot: #cc0000; --pink: #db2777; --lila: #7c3aed; --braun: #8b5a2b; --schwarz: var(--text); --grau: #888; }
.teilkarte { --farbe: var(--grau);
  background: var(--karte); border: 1px solid var(--rand); border-left: 6px solid var(--farbe); border-radius: 8px; padding: .6rem; margin: 0 0 .7rem; }
.kartenkopf { display: grid; grid-template-columns: 8.5em 3.2em 2.8em minmax(0, 1fr) minmax(0, 1fr); gap: .4rem; margin-bottom: .4rem; }
.kartenkopf select { color: var(--farbe); font-weight: 700; }
@media (max-width: 600px) { .kartenkopf { grid-template-columns: minmax(0, 1fr) 3.2em 2.8em; } .kartenkopf > :nth-child(n+4) { grid-column: 1 / -1; } } /* Handy: Tonart, Sound eigene Zeilen */
.teilkarte textarea { resize: vertical; }
.kartenknoepfe { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.kartenknoepfe button { padding: .3rem .7rem; }
.sonderkopf { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.sonderkopf select { width: auto; } .sonderkopf .haken { margin: 0; }
.vorschaubild { display: block; max-width: 100%; max-height: 14rem; margin-top: .4rem; border: 1px solid var(--rand); }
/* Einstellungen: Seitenleiste links, rechts genau ein Abschnitt; auf dem Handy die Leiste oben zum Wischen.
   Teiltypen auf dem Handy untereinander statt seitlich scrollen */
.einstellungen-raster { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.seitenleiste { position: sticky; top: 4.5rem; display: flex; flex-direction: column; gap: .15rem; background: var(--karte); border: 1px solid var(--rand); border-radius: 8px; padding: .4rem; }
.seitenleiste a { padding: .55rem .7rem; border-radius: 6px; text-decoration: none; color: var(--text); }
.seitenleiste a:hover { background: var(--bg); }
.seitenleiste a.aktiv { background: var(--info); color: var(--akzent); font-weight: 600; }
.abschnitt > h2:first-child { margin-top: 0; }
.rechtslinks { display: flex; justify-content: center; gap: 1.5rem; margin: 2rem 0 1rem; font-size: .8rem; } /* Anmeldeseite: ganz unten, nebeneinander */
.rechtslinks a { color: var(--leise); }
.seite-einstellungen #app-code { max-width: 46rem; } /* so breit wie „Mein Konto“ und „Meine Bands“ darüber und darunter */
.seite-einstellungen form.karte.schmal { max-width: 46rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0 1rem; }
.seite-einstellungen form.karte.schmal > :is(small, h3, p, .haken, button) { grid-column: 1 / -1; }
.seite-einstellungen form.karte.schmal > button { justify-self: start; margin-top: .3rem; }
@media (max-width: 800px) {
  .einstellungen-raster { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
  .seitenleiste { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; padding-right: 2.5rem;
    mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent); } /* weicher Rand rechts: es gibt noch mehr Reiter zum Wischen */
  .seitenleiste a { white-space: nowrap; }
}
.karte h3:first-of-type { margin-top: 0; }
@media (max-width: 600px) {
  table.teiltypen tr:first-child { display: none; }
  table.teiltypen tr { display: grid; grid-template-columns: 2rem 1fr 1fr; gap: .3rem .5rem; padding: .5rem 0; border-bottom: 1px solid var(--rand); }
  table.teiltypen td { display: block; padding: 0; border: 0; }
  table.teiltypen td:nth-child(2) { grid-column: 2 / 4; }
  table.teiltypen td:nth-child(3) { grid-column: 2; }
  form.teiltypen-form table.teiltypen select { width: 100%; }
}
table.teiltypen .typname { color: var(--farbe); } table.teiltypen select { width: auto; } form.teiltypen-form { max-width: 34rem; } table.teiltypen small { display: inline; margin: 0; }
.formzeichen { display: flex; flex-wrap: wrap; gap: .25rem; margin-bottom: .3rem; }
.formzeichen button { padding: .15rem .5rem; font-size: .85rem; min-width: 2.2em; }
.pruefung .hinweis { margin: .35rem 0 0; padding: .3rem .5rem; border-radius: 6px; background: var(--fehler); font-size: .9rem; }
.pruefung .hinweis button { padding: .15rem .6rem; margin-left: .3rem; }

/* ---------- A4-Blatt (Darstellung aus notation.js) ---------- */
.blatt-rahmen { overflow: hidden; }
.blatt {
  --papier: #fff; --tinte: #111; --leise-blatt: #555; --strich: #b8c0cc; --kopf: #eef2f6; --punkt: #e0007a;
  --blau: #0062cc; --hellblau: #0284c7; --tuerkis: #0f766e; --gruen: #008a2e; --oliv: #5f7a0a; --gelb: #a16207; --orange: #e05a00; --rot: #cc0000; --pink: #db2777; --lila: #7c3aed; --braun: #8b5a2b; --schwarz: #111; --grau: #555; --falsch: #ffe1e1; --wdh: #b45309;
  width: 210mm; height: 297mm; padding: 8mm 9mm; margin: 0 auto; background: var(--papier); color: var(--tinte);
  box-shadow: 0 3px 20px #0003; font: 800 var(--gr, 18px)/1.15 "Leadsheet Symbole", Arial, Helvetica, sans-serif;
}
.blatt.dunkel {
  --papier: #121316; --tinte: #f4f6f8; --leise-blatt: #a6adb8; --strich: #454b55; --kopf: #23262c; --punkt: #ff4fb0;
  --blau: #4db8ff; --hellblau: #7dd3fc; --tuerkis: #2dd4bf; --gruen: #4ade80; --oliv: #bef264; --gelb: #facc15; --orange: #fb923c; --rot: #ff5c5c; --pink: #f472b6; --lila: #b9a2ff; --braun: #d6a777; --schwarz: #f4f6f8; --grau: #b0b6bf; --falsch: #4a1d1d; --wdh: #ffa53d;
}
.blatt-inhalt.textansicht { overflow-y: auto; } /* Sänger mit größerer Textgröße scrollen */
.blatt-inhalt { height: 100%; overflow: hidden; display: flex; flex-direction: column; gap: .45em; }
.songkopf { background: var(--kopf); border-radius: .3em; padding: .3em .6em; text-align: center; font-size: min(1em, 26px); } /* kurze Songs: Schrift wächst beim Einpassen, der Titel nicht mit */
.songtitel { font-size: 1.45em; line-height: 1.1; }
.songinfo { font-size: .62em; font-weight: 600; color: var(--leise-blatt); margin-top: .15em; }
.teil { display: grid; grid-template-columns: 4.6em minmax(0, 1fr); gap: .5em; break-inside: avoid; --farbe: var(--grau); }
.farbe-blau { --farbe: var(--blau); }
.farbe-hellblau { --farbe: var(--hellblau); }
.farbe-tuerkis { --farbe: var(--tuerkis); }
.farbe-gruen { --farbe: var(--gruen); }
.farbe-oliv { --farbe: var(--oliv); }
.farbe-gelb { --farbe: var(--gelb); }
.farbe-orange { --farbe: var(--orange); }
.farbe-rot { --farbe: var(--rot); }
.farbe-pink { --farbe: var(--pink); }
.farbe-lila { --farbe: var(--lila); }
.farbe-braun { --farbe: var(--braun); }
.farbe-schwarz { --farbe: var(--schwarz); }
.farbe-grau { --farbe: var(--grau); }
.namen-de .teil { grid-template-columns: 5.2em minmax(0, 1fr); } /* BRIDGE, ABSCHL */
.teilname { color: var(--farbe); border-right: .22em solid var(--farbe); font-size: .85em; font-weight: 900; padding-right: .3em; overflow-wrap: anywhere; cursor: default; }
.teilsound, .teilplatz { display: block; font-size: .6em; font-weight: 700; color: var(--leise-blatt); line-height: 1.15; }
.zeilen { display: flex; flex-direction: column; gap: .1em; min-width: 0; }
.reihe { display: grid; grid-template-columns: repeat(var(--spalten, 4), minmax(0, 1fr)) 2.2em; align-items: stretch; }
.takt { display: flex; align-items: flex-end; min-width: 0; border-left: 1px solid var(--strich); padding: 0 .3em; }
.reihe > .takt:nth-last-child(2) { border-right: 1px solid var(--strich); }
.takt.falsch { background: var(--falsch); outline: 2px solid var(--rot); outline-offset: -2px; cursor: help; }
.schlag { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.punkte { display: flex; gap: .18em; height: .42em; align-items: center; }
.punkte i { width: .26em; height: .26em; border-radius: 50%; background: var(--punkt); }
.akkord { align-self: flex-start; color: var(--farbe); font-size: 1.2em; white-space: nowrap; letter-spacing: -.01em; }
.akkord .zusatz { font-size: .6em; vertical-align: .55em; margin-left: .03em; }
.akkord .bass { font-size: .8em; }
.schlag.unbekannt .akkord { text-decoration: underline wavy var(--rot); }
.prozent { color: var(--leise-blatt); font-size: 1.2em; font-weight: 400; }
.wdh { color: var(--wdh); font-size: .95em; text-align: right; align-self: center; }
/* Etappe 3: Form-Zeichen */
.takt { position: relative; }
.reihe.mit-oben > .takt { padding-top: .75em; }
.oben-links, .oben-rechts { position: absolute; top: 0; font-size: .5em; font-weight: 700; line-height: 1.1; white-space: nowrap; display: flex; gap: .35em; color: var(--tinte); }
.oben-links { left: .35em; } .oben-rechts { right: .35em; }
.symbol { font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Music", serif; font-size: 2.3em; font-weight: 400; line-height: .55; }
.oben-links .sound, .oben-rechts .sound { border: 1px solid currentColor; border-radius: .25em; padding: 0 .25em; }
.ansage { font-style: italic; }
.takt.volta { border-top: 1px solid var(--tinte); }
.takt.wa { border-left: .26em double var(--tinte); }
.reihe > .takt.we { border-right: .26em double var(--tinte); }
.takt.wa::before, .takt.we::after { content: ':'; position: absolute; top: 50%; transform: translateY(-50%); font-weight: 900; color: var(--tinte); }
.takt.wa::before { left: .05em; } .takt.we::after { right: .05em; }
.takt.wa { padding-left: .55em; } .takt.we { padding-right: .55em; }
.formzeichen button.an { background: #d32f2f; border-color: #d32f2f; color: #fff; } /* Keyboard hört zu */
.ist-original { color: var(--ok-rand); font-weight: 700; }
.halbton { display: inline-flex; gap: .25rem; margin-left: .3rem; vertical-align: middle; }
.halbton button { padding: .15em .55em; min-width: 2.2em; font-size: 1rem; line-height: 1.2; }
svg.noten { display: block; max-width: 100%; height: auto; overflow: visible; margin: .1em 0 .2em; }
svg.noten line { stroke: currentColor; stroke-width: .8; }
svg.noten .linie { stroke-width: .6; opacity: .7; }
svg.noten ellipse { fill: currentColor; }
svg.noten .vz path { fill: none; stroke: currentColor; }
svg.noten text { fill: currentColor; font-size: 12px; }
svg.noten .schluessel { font-size: 40px; }
svg.noten .oktave { font-size: 8px; font-weight: 700; fill: var(--leise-blatt); }
svg.noten .falsch { fill: #d32f2f; font-size: 10px; }
.stuetze { font-size: .62em; color: var(--leise-blatt); font-style: italic; }
.reihe.stuetzen > .stuetze { padding: 0 .48em; min-width: 0; }
div.ansage { font-size: .7em; font-weight: 700; text-align: right; padding-right: 2.6em; }
.teilwdh { color: var(--wdh); margin-left: .25em; white-space: nowrap; display: inline-block; }
.ablauf-teil .teilwdh { margin: 0 .25em 0 0; } /* „2× VERS“: Zahl vorn */
.teilwechsel { margin-left: .4em; white-space: nowrap; display: inline-block; font-weight: 600; }
.teil.sonder { display: block; }
.teil.sonder.ablauf { display: flex; } /* sonst gewinnt block: keine Umbruchstellen, ein langer Ablauf verkleinert das ganze Blatt */
/* Schlagzeuger-Ansicht: ein großer roter Punkt blinkt auf jedem Schlag; im 3/4 je Schlag eine Farbe, darunter 1 2 3 */
.taktblinker { display: flex; flex-direction: column; align-items: center; gap: .4em; margin: 1em 0; font-size: 1.2em; color: var(--leise-blatt); }
.taktblinker .schlag { flex: none; width: var(--takt-groesse, 25%); aspect-ratio: 1; border-radius: 50%; background: var(--takt-farbe, #c62828); opacity: .15;
  box-shadow: 0 0 0 2px var(--strich); /* weiße Eins bleibt auf hellem Blatt sichtbar */
  animation: taktblink var(--schlag) steps(1, end) infinite, var(--takteins, none) calc(var(--schlag) * var(--n, 4)) steps(1, end) infinite; }
.taktblinker .schlag.drei { animation: taktblink var(--schlag) steps(1, end) infinite, taktfarbe3 calc(var(--schlag) * 3) steps(1, end) infinite; }
.taktzahlen { display: flex; gap: 1em; font-size: 1.4em; font-weight: 700; }
.taktzahlen span { opacity: .25; animation: taktzahl calc(var(--schlag) * 3) steps(1, end) calc(var(--schlag) * var(--k)) infinite; }
/* Eins in eigener Farbe (Einstellungen, --takt-eins): je Schlagzahl eigene Keyframes, Prozente können keine Variable sein */
@keyframes takteins2 { 0% { background: var(--takt-eins, var(--takt-farbe, #c62828)); } 50% { background: var(--takt-farbe, #c62828); } }
@keyframes takteins3 { 0% { background: var(--takt-eins, var(--takt-farbe, #c62828)); } 33.333% { background: var(--takt-farbe, #c62828); } }
@keyframes takteins4 { 0% { background: var(--takt-eins, var(--takt-farbe, #c62828)); } 25% { background: var(--takt-farbe, #c62828); } }
@keyframes takteins5 { 0% { background: var(--takt-eins, var(--takt-farbe, #c62828)); } 20% { background: var(--takt-farbe, #c62828); } }
@keyframes takteins6 { 0% { background: var(--takt-eins, var(--takt-farbe, #c62828)); } 16.667% { background: var(--takt-farbe, #c62828); } }
@keyframes takteins7 { 0% { background: var(--takt-eins, var(--takt-farbe, #c62828)); } 14.286% { background: var(--takt-farbe, #c62828); } }
@keyframes takteins8 { 0% { background: var(--takt-eins, var(--takt-farbe, #c62828)); } 12.5% { background: var(--takt-farbe, #c62828); } }
@keyframes takteins9 { 0% { background: var(--takt-eins, var(--takt-farbe, #c62828)); } 11.111% { background: var(--takt-farbe, #c62828); } }
@keyframes takteins12 { 0% { background: var(--takt-eins, var(--takt-farbe, #c62828)); } 8.333% { background: var(--takt-farbe, #c62828); } }
@keyframes taktblink { 0% { opacity: 1; } 25% { opacity: .15; } }
@keyframes taktfarbe3 { 0% { background: var(--takt-eins, var(--takt-farbe, #c62828)); } 33.333% { background: #1565c0; } 66.667% { background: #2e7d32; } }
@keyframes taktzahl { 0% { opacity: 1; } 33.333% { opacity: .25; } }
.notiz { color: var(--farbe); font-size: .85em; font-weight: 500; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.25; }
.notiz.n-klein { font-size: .65em; } .notiz.n-gross { font-size: 1.15em; } .notiz.n-fett { font-weight: 800; }
.notiz.n-mitte { text-align: center; } .notiz.n-rechts { text-align: right; }
.bildteil { text-align: center; }
.ablauf { display: flex; flex-wrap: wrap; gap: .25em; align-items: baseline; font-size: .7em; font-weight: 800; }
.ablauf-name { color: var(--leise-blatt); margin-right: .2em; }
.ablauf-teil { color: var(--farbe); border: .12em solid var(--farbe); border-radius: .3em; padding: 0 .3em; white-space: nowrap; }
.bildteil img { width: 21em; max-width: 100%; height: auto; vertical-align: top; background: #fff; }
.blatt.dunkel .bildteil img { filter: invert(1) hue-rotate(180deg); } /* Noten-Screenshots: weißes Papier wird dunkel */
.fusszeile { margin-top: auto; font-size: .62em; color: var(--leise-blatt); border-top: 1px solid var(--strich); padding-top: .25em; }

@media print {
  @page { size: A4; margin: 0; }
  body { background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .leiste, .hinweisleiste, .werkzeug, .meldung, h1, .nicht-drucken { display: none !important; }
  .editor { display: block; }
  .inhalt { padding: 0; max-width: none; }
  .blatt { box-shadow: none; margin: 0; zoom: 1 !important; break-after: page; }
  body:has(.blatt.dunkel) { background: #121316; } /* Dunkel wird auch dunkel gedruckt, ohne weißen Rand */
  .blatt, .blatt * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Technik-Blatt (FOH/Licht): am Bildschirm eine Karte, gedruckt ein schlichtes A4 in Schwarz auf Weiß ---------- */
.technik-blatt { background: var(--karte); border: 1px solid var(--rand); border-radius: 8px; padding: 1rem 1.2rem; overflow-x: auto; }
.technik-blatt header h2 { margin: 0 0 .2rem; }
.export-wahl { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); margin-bottom: 1rem; } .export-wahl label { display: block; margin: .3rem 0; }
.export-blatt { background: var(--karte); border: 1px solid var(--rand); border-radius: 8px; padding: 1rem 1.2rem; }
.export-blatt header h2 { margin: 0 0 .2rem; } .export-blatt h3 { margin: .8rem 0 .2rem; } .export-blatt ol { margin: 0; padding-left: 2.2em; } .export-blatt li { margin: .15em 0; }
.export-blatt small { color: var(--leise); } .export-set { break-inside: avoid; }
.export-blatt.gr-klein { font-size: .85rem; } .export-blatt.gr-mittel { font-size: 1rem; } .export-blatt.gr-gross { font-size: 1.3rem; } .export-blatt.gr-riesig { font-size: 1.9rem; }
.export-blatt.spalten-2 { column-count: 2; column-gap: 2rem; } .export-blatt.spalten-2 header { column-span: all; }
.technik-blatt header p { margin: 0 0 .5rem; }
.technik-allgemein { border-left: 4px solid var(--akzent); padding: .3rem .6rem; background: var(--bg); }
.technik-blatt h3 { margin: 1rem 0 .3rem; }
.technik-blatt table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.technik-blatt th, .technik-blatt td { border: 1px solid var(--rand); padding: .3rem .45rem; text-align: left; vertical-align: top; }
.technik-blatt th:first-child, .technik-blatt td:first-child { width: 2em; }
.technik-blatt td:nth-child(5), .technik-blatt td:nth-child(6) { width: 26%; }
.technik-gig { margin-top: .2rem; font-weight: 700; color: var(--warn-rand); }
textarea { resize: vertical; max-width: 100%; } /* nur in der Höhe ziehbar, nie breiter als der Bildschirm */
.schalter { display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; }
.schalter input { appearance: none; width: 2.8rem; height: 1.6rem; padding: 0; flex: none; border-radius: 1rem; background: var(--rand); position: relative; cursor: pointer; transition: background .15s; }
.schalter input::before { content: ''; position: absolute; top: .2rem; left: .2rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px #0004; transition: left .15s; }
.schalter input:checked { background: var(--akzent); } .schalter input:checked::before { left: 1.4rem; }
.schalter input:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
li .technik-feld { flex: 1 1 14rem; min-width: 10rem; padding: .2rem .45rem; font-size: .85rem; }
select.nur-handy-wahl { display: none; width: auto; }
@media (max-width: 600px) { /* Editor am Handy: Menüs statt Knopfreihen, Speichern nur 💾 */
  select.nur-handy-wahl:not([hidden]) { display: inline-block; max-width: 100%; }
  .fassungen > a, .fassungen > .leise, .nur-sheet > button, .werkzeug.angeheftet .knopf-wort { display: none; }
}
.technik-hinweis { display: none; margin: .2rem 0; font-size: .85rem; }
@media (max-width: 600px) { .setlist-reihe .technik-feld { display: none; } .technik-hinweis { display: block; } } /* Handy: zu eng, die Werte bleiben beim Speichern erhalten */
@media print {
  .technik-blatt { border: 0; padding: 12mm; background: #fff; color: #000; font-size: 10pt; overflow: visible; }
  .technik-blatt *, .technik-blatt .leise { color: #000 !important; background: #fff !important; }
  .technik-blatt th, .technik-blatt td { border-color: #888; }
  .technik-blatt tr { break-inside: avoid; }
  .export-blatt { border: 0; padding: 10mm; background: #fff; color: #000; } .export-blatt small { color: #333; }
  .export-blatt.seite-je-set .export-set + .export-set { break-before: page; }
  .technik-allgemein { border-left-color: #000; }
}

/* ---------- Bands ---------- */
fieldset.bands { border: 1px solid var(--rand); border-radius: 8px; margin: 0 0 .8rem; padding: .4rem .8rem; display: flex; flex-wrap: wrap; gap: 0 1.2rem; }
fieldset.bands legend { color: var(--leise); font-size: .9rem; padding: 0 .3rem; }
fieldset.bands label.haken { margin: .3rem 0; }
.leise { color: var(--leise); }
form.rechts { margin-top: .6rem; text-align: right; }
td.rechts { text-align: right; white-space: nowrap; }

/* Songliste: Suche und Filter */
.filterleiste { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0 0 1rem; }
.filterleiste input[type=search] { flex: 1 1 14rem; width: auto; }
.filterleiste select { width: auto; }

/* Import und Setlists */
.import-text { white-space: pre-wrap; font-size: .85em; max-height: 16rem; overflow: auto; background: var(--bg); border: 1px solid var(--rand); padding: .4rem; margin: .3rem 0 0; }
.setlist-reihe { list-style: none; margin: 0 0 1rem; padding: 0; }
.setlist-reihe li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .35rem .5rem; border: 1px solid var(--rand); border-top: 0; background: var(--karte); cursor: grab; }
.setlist-reihe li:first-child { border-top: 1px solid var(--rand); }
.setlist-reihe li > span:first-child:not(.griff), .setlist-reihe li > .griff + span, .setlist-reihe li > input { flex: 1; }
.griff { cursor: grab; touch-action: none; user-select: none; padding: .2rem .4rem; color: var(--leise); font-size: 1.2rem; line-height: 1; }
#reihe { min-height: 2.6rem; }
#vorrat li, .pause-baustein { display: flex; align-items: center; }
.pause-baustein { margin: 0 0 .4rem; }
.pause-baustein button { flex: 1; text-align: left; font-weight: 700; border-style: dashed; background: color-mix(in srgb, var(--c) 18%, var(--bg)); }
.setlist-reihe li.set-trenner { font-weight: 700; border-top: 2px solid var(--text); }
.setlist-reihe li.zieht { opacity: .4; }
.setlist-reihe li button { padding: .1rem .5rem; }
.blattfolge .blatt-rahmen { margin-bottom: 1.5rem; }

/* Songliste: Filter hinter dem Filter-Knopf */
.filterwahl { position: relative; }
.filterwahl > summary { list-style: none; display: inline-flex; align-items: center; gap: .3rem; }
.filterwahl > summary::-webkit-details-marker { display: none; }
.filterfelder { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; margin-top: .5rem; padding: .6rem; border: 1px solid var(--rand); background: var(--karte); }
.filterfelder label { display: flex; flex-direction: column; gap: .2rem; margin: 0; }
.filterwahl[open] { flex-basis: 100%; }

dialog { border: 1px solid var(--rand); border-radius: 10px; background: var(--karte); color: var(--text); max-width: min(32rem, 92vw); }
dialog::backdrop { background: rgba(0, 0, 0, .45); }
.live-notiztext { white-space: normal; }

/* Live-Modus: nur das aktuelle Blatt, so groß wie der Bildschirm erlaubt. Eigene Farben, die dem Hell/Dunkel-Knopf folgen
   (nicht dem System), ruhige Knöpfe ohne Rahmen, Bernstein als Akzent: Fortschritt, Live-Notiz, aktueller Song. */
body.livemodus { --l-bg: #fff; --l-leiste: #f4f5f7; --l-text: #1d2330; --l-leise: #6b7685; --l-rand: rgba(0, 0, 0, .08);
  --l-hover: rgba(0, 0, 0, .06); --l-akzent: #b45309; --l-akzent-weich: rgba(180, 83, 9, .12); background: var(--l-bg); }
body.livemodus.dunkel-live { --l-bg: #111317; --l-leiste: #181b21; --l-text: #e8eaee; --l-leise: #8b95a3; --l-rand: rgba(255, 255, 255, .07);
  --l-hover: rgba(255, 255, 255, .08); --l-akzent: #fbbf24; --l-akzent-weich: rgba(251, 191, 36, .14); }
body.livemodus .leiste, body.livemodus .hinweisleiste, body.livemodus h1 { display: none; }
body.livemodus .inhalt { padding: 0; max-width: none; }
#blaetter.live .blatt-rahmen { display: none; }
#blaetter.live .blatt-rahmen.aktiv { display: block; }
#blaetter.live .blatt { box-shadow: none; }
/* iPad: schnelles Doppeltippen (zweimal weiter) zoomt nicht und markiert keinen Text; Zwei-Finger-Zoom bleibt */
html { touch-action: manipulation; }
body.livemodus { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.setpause { text-align: center; padding: 3rem 1rem; }
.setpause h2 { font-size: 3em; letter-spacing: .1em; margin: 0 0 .5em; }
.setpause p { font-size: 1.2em; margin: .3em 0; }
.setpause .tafel { display: grid; grid-template-columns: auto auto; justify-content: center; gap: .3em 1.2em; margin: 1em auto; font-size: 1.05em; text-align: left; }
.setpause .tafel dt { opacity: .65; }
.setpause .tafel dd { margin: 0; font-weight: 600; white-space: nowrap; }
.deckblatt h2 { letter-spacing: 0; }
.setpause .hinweis { font-size: 1em; font-style: italic; }
.setpause .unten { margin-top: 3em; font-size: 1em; }
.verlauf summary { cursor: pointer; font-weight: 600; }
tr:target td { background: var(--markiert, #fde68a55); } /* zurück aus Song oder Editor: hier war ich */
tr[id] { scroll-margin-top: 30vh; }
.livebar, .livefuss, .live-liste { background: var(--l-leiste); color: var(--l-text); }
.livebar { position: relative; display: flex; align-items: center; gap: .15rem .3rem; flex-wrap: wrap; padding: .3rem .5rem; }
.livebar::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: var(--fortschritt, 0%); background: var(--l-akzent); border-radius: 0 3px 3px 0; transition: width .3s; }
.livebar button, .livebar .knopf, .livefuss button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-width: 2.6rem; height: 2.6rem;
  padding: 0 .55rem; border: 0; border-radius: 999px; background: transparent; color: var(--l-text); }
.livebar button:hover, .livebar .knopf:hover, .livefuss button:hover:not(:disabled) { background: var(--l-hover); }
.livebar button:disabled, .livefuss button:disabled { opacity: .3; cursor: default; }
@media (max-width: 560px) { /* Handy: Live-Leiste bleibt einzeilig */
  .livebar { flex-wrap: nowrap; padding: .3rem .25rem; }
  .livebar button, .livebar .knopf { min-width: 2.1rem; padding-left: .25rem; padding-right: .25rem; font-size: .9rem; }
  .livebar #live-rest { display: none; }
}
#live-mehr { display: none; }
@media (max-width: 600px) and (pointer: coarse) { /* nur echtes Handy (Touch, schmal), nicht ein schmales Fenster am Laptop: abgespeckte Live-Kopfzeile, Rest hinter ⚙ */
  #live-mehr { display: inline-flex; }
  .livebar:not(.mehr) :is(#live-notizenknopf, #live-bearbeiten, #live-dokknopf, #live-referenz, #live-instrument, #live-ansicht, #live-textgroesse, .akkorde-wahl, #live-midiknopf, #thema, #vollbild) { display: none !important; }
  .livebar.mehr { flex-wrap: wrap; }
  .livebar.mehr #live-mehr { color: var(--l-akzent); }
}
.livebar #live-titel { flex: 1 1 8rem; min-width: 0; font-weight: 700; font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-zahl { display: inline-block; margin-right: .45rem; padding: .05rem .5rem; border-radius: 999px; background: var(--l-akzent-weich); color: var(--l-akzent);
  font-size: .8rem; font-variant-numeric: tabular-nums; vertical-align: .1em; }
.live-zeit { display: flex; flex-direction: column; line-height: 1.15; padding: 0 .4rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
#live-uhr { font-weight: 700; font-size: 1.1rem; }
#live-rest { font-size: .72rem; color: var(--l-leise); }
.livefuss { position: fixed; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: .5rem; padding: .35rem .5rem; border-top: 1px solid var(--l-rand); z-index: 10; }
.livefuss button { height: 3.2rem; max-width: 30%; padding: 0 1rem; font-size: 1.7rem; line-height: 1; background: var(--l-hover); }
.livefuss button small { display: block; margin: 0; font-size: .8rem; color: var(--l-leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#live-notiz { flex: 1; text-align: center; font-size: 1.1rem; font-weight: 600; color: var(--l-akzent); max-height: 2.9em; overflow: hidden; }
.live-liste { position: fixed; left: 0; width: min(24rem, 92vw); overflow: auto; border-radius: 0 14px 14px 0; box-shadow: 8px 0 30px rgba(0, 0, 0, .3); z-index: 20; }
.live-liste table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.live-liste th, .live-liste td { padding: .55rem .5rem; text-align: left; border-bottom: 1px solid var(--l-rand); }
.live-liste thead th { color: var(--l-leise); font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.live-liste td:nth-child(n+3), .live-liste td:first-child { color: var(--l-leise); white-space: nowrap; font-variant-numeric: tabular-nums; }
.live-liste tbody tr { cursor: pointer; }
.live-liste tbody tr:hover { background: var(--l-hover); }
.live-liste tr.aktiv { background: var(--l-akzent-weich); font-weight: 700; box-shadow: inset 3px 0 var(--l-akzent); }
.live-liste tr.set th { color: var(--l-akzent); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; padding-top: .9rem; }
#live-midiknopf { font-size: .8rem; font-weight: 700; letter-spacing: .04em; }
#live-midiknopf.midi-an { color: var(--l-akzent); }
.midi-lernen { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.midi-lernen span { flex: 1; }
.offline-stand { font-size: .8rem; color: var(--ok-rand); white-space: nowrap; background: none; border: 0; padding: .3rem .4rem; }
#live-sync.an { background: var(--ok-rand); border-color: var(--ok-rand); color: #fff; } /* Mitfolgen an */
#live-instrument, #instrument { max-width: 6em; }
#live-instrument:not(.getauscht), #instrument:not(.getauscht) { width: 3.4em; } /* eigene Rolle (👤): schmal */
.fassungen { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin: 0 0 .6rem; }
.fassungen .knopf, .zusage-wahl .knopf { padding: .2rem .55rem; font-size: .9em; }
.fassungen .knopf.aktiv, .zusage-wahl .knopf.aktiv { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); }
.meldungen .stimmen { display: flex; gap: .3rem; margin: 0; } .meldungen .stimmen button { white-space: nowrap; } .meldungen .stimmen button.gewaehlt { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); } /* eigene Stimme */
.datenschutz { font-size: .85rem; }
/* Setlists: Wer kommt? */
.zusagen span { white-space: nowrap; margin-right: .5em; }
.zusage-ja { color: var(--ok-rand); } .zusage-nein { color: var(--fehler-rand); } .zusage-wenn { color: var(--warn-rand); } .zusage-offen { color: var(--leise); }
.zusage-wahl { display: flex; flex-wrap: wrap; gap: .2rem; margin-top: .25rem; min-width: 12em; }
.zusage-wahl .knopf { white-space: nowrap; }
@media (pointer: coarse) { .zusage-wahl .knopf { min-height: 2.5rem; min-width: 2.75rem; } } /* Finger: mindestens 40 px, am PC bleibt es klein */
details.archiv { margin-top: 1rem; }
#live-instrument.getauscht, #instrument.getauscht { border-color: #c62828; } /* getauscht: man sieht nicht seine eigene Rolle */
#live-sync.an.weg { background: #c62828; border-color: #c62828; } /* Leader nicht erreichbar */
.mitglied { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .6rem; }
.mitglied select { width: auto; }
.hilfe.liedtext textarea { width: 100%; }
.privatnotiz { white-space: pre-line; font-size: .7em; border-left: .3em solid var(--punkt); padding: .2em .6em; }
.liedteil .teilname { font-size: .55em; } /* Text-Ansicht: der Text zählt, der Teil nur als Hinweis */
.laeuft { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; padding: .5rem 1rem; background: var(--ok-rand); color: #fff; font-weight: 600; }
.laeuft .knopf { padding: .3rem .8rem; }
.liedzeilen { display: block; white-space: pre-line; font-size: .8em; line-height: 1.35; padding: .1em .3em; } /* Fließtext aus Stücken, nicht .zeilen-Spalte */
.liedzeilen.eigenfarbe { color: var(--farbe); font-weight: 600; }
/* Akkorde im Liedtext („[Am]Wort“): nur mit dem Häkchen „Akkorde“ über dem Wort, sonst unsichtbar */
.ueber-akk { display: none; }
.akkorde-im-text .ueber { display: inline-flex; flex-direction: column; vertical-align: bottom; white-space: pre; }
.akkorde-im-text .ueber-akk { display: block; padding-right: .35em; color: var(--farbe, currentColor); font-weight: 700; line-height: 1.15; }
.akkorde-wahl { display: none; align-items: center; gap: .3rem; white-space: nowrap; cursor: pointer; }
/* shortcut: Ansicht „Akkorde im Liedtext“ ist vorbereitet, aber aus (Paul 06.12.2026, PLANUNG.md); zum Einschalten diese Regel wieder aktivieren:
   body:has(.textansicht .ueber) .akkorde-wahl { display: inline-flex; flex-direction: row; } */
.livebar .akkorde-wahl { padding: 0 .45rem; color: var(--l-text); }
/* Editor: Instrument-Fassung ohne Liedtext; Sänger-Fassung nur der Liedtext (ohne Teile und Struktur-Bauteile) */
#editor[data-modus="fassung"] details.liedtext, #editor[data-modus="lied"] :is(#teile, #text-feld, .nur-sheet) { display: none !important; }
option.drin { color: var(--leise); }

/* MIDI-Raster: 4×4 Felder in Fantom-Farben */
.midi-raster { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; max-width: 48rem; }
.midi-raster .pad { min-height: 5.5rem; margin: 0; border: 2px solid var(--pad); border-radius: 10px; background: color-mix(in srgb, var(--pad) 85%, #000);
  color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .25rem; padding: .4rem; text-align: center; overflow-wrap: anywhere; }
.pad-rot { --pad: #e53935; } .pad-orange { --pad: #fb8c00; } .pad-gelb { --pad: #fdd835; } .pad-gruen { --pad: #43a047; } .pad-tuerkis { --pad: #00acc1; }
.pad-blau { --pad: #1e88e5; } .pad-lila { --pad: #8e24aa; } .pad-pink { --pad: #d81b60; } .pad-weiss { --pad: #e0e0e0; }
.midi-raster button.pad-gelb, .midi-raster button.pad-weiss { color: #111; }
.midi-raster button.pad:disabled { opacity: .35; }
.midi-raster button.pad:active { filter: brightness(1.3); }
.midi-raster fieldset.pad { align-items: stretch; background: color-mix(in srgb, var(--pad) 30%, var(--karte)); color: var(--text); }
.midi-raster fieldset.pad legend { font-size: .8rem; font-weight: 700; padding: 0 .3rem; }
.midi-raster fieldset.pad select { width: 100%; min-width: 0; }
.pad-keine { --pad: #4b5563; }
.midi-raster .pad small { color: inherit; opacity: .8; margin: 0; }
table.befehle input, table.befehle select { width: 100%; min-width: 7rem; }
.midi-raster + .werkzeug { margin-top: .6rem; }
td.umbruch { overflow-wrap: anywhere; min-width: 12rem; }

/* ===== Farbdesign angelehnt an Bandzone (04.12.2026): fast schwarz, jede Rubrik eine Farbe. Gilt nicht in der Live-Ansicht (body.livemodus) ===== */
body:not(.livemodus) { --c-song: #3f8a00; --c-setlist: #0b74c4; --c-band: #5f6b7a; --c-termin: #c46f00; --c-extra: #9c009a; --c-melden: #8a6d00; --c-raster: #00796b; --c: var(--c-song); }
@media (prefers-color-scheme: dark) {
  :root:not([data-thema="hell"]) body:not(.livemodus) {
    --bg: #141414; --karte: #1f1f1f; --text: #ececec; --leise: #9d9d9d; --rand: #303030; --akzent: #37adff; --akzent-text: #0b0b0b; --leiste: #080808;
    --c-song: #91d500; --c-setlist: #37adff; --c-band: #a3a3a3; --c-termin: #ff9800; --c-extra: #d33bd1; --c-melden: #e8c547; --c-raster: #4dc9b6;
  }
}
:root[data-thema="dunkel"] body:not(.livemodus) {
  --bg: #141414; --karte: #1f1f1f; --text: #ececec; --leise: #9d9d9d; --rand: #303030; --akzent: #37adff; --akzent-text: #0b0b0b; --leiste: #080808;
  --c-song: #91d500; --c-setlist: #37adff; --c-band: #a3a3a3; --c-termin: #ff9800; --c-extra: #d33bd1; --c-melden: #e8c547; --c-raster: #4dc9b6;
}
/* Rubrik der Seite: Songs grün, Setlists blau, Termine orange, MIDI-Raster türkis, Melden gelb, Einstellungen grau */
body.seite-setlists, body.seite-setlist, body.seite-technik, body.seite-export, body.seite-listen { --c: var(--c-setlist); }
body.seite-einstellungen, body.seite-import, body.seite-rueckblick { --c: var(--c-band); }
body.seite-raster { --c: var(--c-raster); }
body.seite-melden { --c: var(--c-melden); }
body.seite-anleitung, body.seite-tour { --c: var(--c-extra); } /* Anleitung und Tour in Lila/Pink */
body:not(.livemodus) .leiste nav a[href="?p=anleitung"] { --n: var(--c-extra); }
.tour { position: fixed; z-index: 50; left: 50%; bottom: .8rem; transform: translateX(-50%); width: min(34rem, calc(100% - 1.6rem)); padding: .8rem 1rem; border-radius: .8rem;
  background: var(--karte); border: 2px solid var(--c-extra); box-shadow: 0 .4rem 1.6rem rgba(0, 0, 0, .35); }
.tour p { margin: 0 0 .5rem; } .tour-feld { padding: .5rem .6rem; border-radius: .5rem; background: color-mix(in srgb, var(--c-extra) 14%, transparent); } .tour-fertig { color: var(--c-song); font-weight: 700; } .tour .werkzeug { display: flex; flex-wrap: wrap; gap: .4rem; } .tour form { margin: 0; }
body:has(.tour) .inhalt { padding-bottom: 14rem; }
body.livemodus .tour { bottom: 4.6rem; padding: .5rem .8rem; font-size: .9rem; background: var(--l-leiste); color: var(--l-text); border-color: #9c009a; } /* über den Blätter-Knöpfen */
.tour { --akzent: var(--c-extra); } /* Tour-Kasten auf jeder Seite in Pink, nicht in der Rubrikfarbe */
body.livemodus { --c-extra: #d33bd1; } /* die Rubrikfarben gelten in der Live-Ansicht nicht; ohne die Variable wäre der Tour-Rahmen ungültig und unsichtbar */
.tour-ziel { outline: 3px solid var(--c-extra); outline-offset: 3px; border-radius: .4rem; animation: tour-puls 1.4s ease-in-out 3; }
@keyframes tour-puls { 50% { outline-offset: 7px; } }
@media (prefers-reduced-motion: reduce) { .tour-ziel { animation: none; } }
body.seite-termine, body.seite-termin, body.seite-abwesenheiten { --c: var(--c-termin); }
body:not(.livemodus) .leiste { background: var(--leiste, var(--karte)); }
body:not(.livemodus) .leiste nav a { --n: var(--c-song); color: var(--n); background: color-mix(in srgb, var(--n) 10%, transparent); font-weight: 600; }
body:not(.livemodus) .leiste nav a[href="?p=einstellungen"] { --n: var(--c-band); }
body:not(.livemodus) .leiste nav a[href="?p=raster"] { --n: var(--c-raster); }
body:not(.livemodus) .leiste nav a[href="?p=melden"] { --n: var(--c-melden); }
body:not(.livemodus) .leiste nav a[href="?p=setlists"] { --n: var(--c-setlist); }
body:not(.livemodus) .leiste nav a[href="?p=termine"] { --n: var(--c-termin); }
body:not(.livemodus) .leiste nav a[href="?p=home"] { --n: var(--text); }
body:not(.livemodus) .leiste nav a:hover { background: color-mix(in srgb, var(--n) 22%, transparent); color: var(--text); }
body:not(.livemodus) .leiste nav a.aktiv { background: color-mix(in srgb, var(--n) 80%, transparent); color: #fff; }
body:not(.livemodus) .inhalt h1 { border-left: 4px solid var(--c); padding-left: .6rem; }
body:not(.livemodus) .karte { border-radius: 4px; }
body:not(.livemodus) table.liste tr:hover > td { background: color-mix(in srgb, var(--c) 7%, var(--karte)); }
:root body:not(.livemodus):not(.seite-home) { --akzent: var(--c); } /* Akzent (Links, Hauptknöpfe, Fokus) in der Farbe der Rubrik; Startseite bleibt blau, dort ist --c der Akzent */
.info-knopf { width: 1.6rem; height: 1.6rem; padding: 0; border-radius: 50%; font: italic 700 .9rem Georgia, serif; }
#song-info dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 0 0 1rem; } #song-info dt { color: var(--leise); } #song-info dd { margin: 0; }
details.benoetigt { margin: .3rem 0 .8rem; } details.benoetigt summary { cursor: pointer; } details.benoetigt .haken { display: inline-flex; margin: .3rem .8rem 0 0; } /* Songtitel in der Songliste grün wie die Rubrik */

/* Setlist-Editor wie zwei Spalten: links der Song-Vorrat, rechts die Setlist */
.setlist-editor { display: grid; grid-template-columns: minmax(16rem, 2fr) 3fr; gap: 1rem; align-items: start; margin: 1rem 0; }
@media (max-width: 900px) { .setlist-editor { grid-template-columns: 1fr; } }
.setlist-editor h3 { margin: 0 0 .5rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; }
.setlist-editor .spielzeit { margin-left: auto; color: var(--c); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.song-vorrat { position: sticky; top: 4.2rem; }
.song-vorrat input[type=search] { width: 100%; margin-bottom: .4rem; }
#vorrat { list-style: none; margin: .4rem 0 0; padding: 0; max-height: 65vh; overflow-y: auto; display: grid; gap: 3px; }
#vorrat button { width: 100%; display: flex; align-items: center; gap: .6rem; text-align: left; border-radius: 3px; background: var(--bg); border-color: transparent; padding: .4rem .6rem; }
#vorrat button:hover { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, var(--bg)); }
#vorrat button.drin { opacity: .55; }
#vorrat .vorrat-titel { flex: 1; min-width: 0; }
#vorrat .vorrat-titel small { display: inline; margin: 0 0 0 .3rem; }
#vorrat .wert { min-width: 2.6rem; text-align: right; color: var(--leise); font-size: .85rem; font-variant-numeric: tabular-nums; }
#vorrat .wert.dauer { color: var(--akzent); }
#vorrat .plus { color: var(--c); }
body:not(.livemodus) .setlist-reihe { display: grid; gap: 3px; }
body:not(.livemodus) .setlist-reihe li, body:not(.livemodus) .setlist-reihe li:first-child { border: 1px solid transparent; border-radius: 3px; background: var(--bg); }
body:not(.livemodus) .setlist-reihe li.set-trenner { border: 0; background: color-mix(in srgb, var(--c) 18%, var(--bg)); margin-top: .5rem; }

/* Termine (Rubrik orange): Filter, Art-Schildchen, Monatsblätter, Verfügbarkeits-Tabelle, Abwesenheiten */
.termin-filter { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; }
.knopfgruppe { display: flex; flex-wrap: wrap; gap: 2px; }
.knopfgruppe .knopf { border-radius: 0; }
.knopfgruppe .knopf:first-child { border-radius: 4px 0 0 4px; } .knopfgruppe .knopf:last-child { border-radius: 0 4px 4px 0; }
.knopfgruppe .knopf.aktiv { background: var(--c, var(--akzent)); border-color: var(--c, var(--akzent)); color: #fff; }
.art { display: inline-block; font-size: .75rem; font-weight: 600; padding: 0 .4rem; border-radius: 3px; color: #fff; background: var(--art); vertical-align: .1em; }
.art-probe { --art: var(--c-song, #3f8a00); } .art-gig { --art: var(--c-termin, #c46f00); } .art-andere { --art: var(--c-band, #5f6b7a); } .art-aufbau { --art: var(--c-setlist, #0b74c4); }
.status { margin-left: .4rem; font-size: .8rem; color: var(--warn-rand); }
tr.abgesagt > td:not(.zusagen), li.abgesagt > a, .termin-kopf.abgesagt b { text-decoration: line-through; opacity: .7; }
.monate { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; margin: 1rem 0; }
table.monat { width: 100%; border-collapse: collapse; background: var(--karte); border: 1px solid var(--rand); border-radius: 4px; table-layout: fixed; }
table.monat caption { text-align: left; font-weight: 600; padding: .3rem .2rem; color: var(--c); }
table.monat th { font-size: .75rem; color: var(--leise); font-weight: normal; padding: .2rem 0; }
table.monat td { text-align: center; padding: .15rem 0; font-variant-numeric: tabular-nums; height: 2rem; vertical-align: top; }
table.monat td.heute { outline: 2px solid var(--c); outline-offset: -2px; }
table.monat td.termin-tag a { display: block; color: #fff; background: var(--art); border-radius: 3px; font-weight: 600; text-decoration: none; }
table.monat td.termin-tag.abgesagt a { opacity: .45; text-decoration: line-through; }
.abwesenheiten table.monat td label { display: block; cursor: pointer; border-radius: 3px; }
.abwesenheiten table.monat td label input { position: absolute; opacity: 0; pointer-events: none; }
.abwesenheiten table.monat td label:has(input:checked) { background: var(--fehler-rand); color: #fff; font-weight: 600; }
.abwesenheiten table.monat td label:has(input:focus-visible) { outline: 2px solid var(--c); }
.abwesenheiten table.monat td .andere { display: block; font-size: .7rem; line-height: 1; color: var(--fehler-rand); white-space: nowrap; }
.abwesenheiten .andere-liste { font-size: .85rem; margin: .4rem 0 0; color: var(--leise); }
.abwesenheiten .andere-liste abbr { text-decoration: none; color: var(--fehler-rand); font-weight: 600; }
table.verfuegbarkeit td:not(:first-child), table.verfuegbarkeit th:not(:first-child) { text-align: center; }
table.verfuegbarkeit td.zusage-ja { background: color-mix(in srgb, var(--ok-rand) 22%, transparent); }
table.verfuegbarkeit td.zusage-nein { background: color-mix(in srgb, var(--fehler-rand) 22%, transparent); }
table.verfuegbarkeit td.zusage-wenn { background: color-mix(in srgb, var(--warn-rand) 22%, transparent); }
.meine-zusage { align-items: center; gap: .4rem; }
.meine-zusage .kommentar { order: 2; flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.meine-zusage .kommentar label { flex: 1 1 14rem; display: flex; flex-direction: row; gap: .4rem; align-items: center; }
.meine-zusage .kommentar input { flex: 1; }
.meine-zusage p { order: 3; }
.meine-zusage p { flex-basis: 100%; margin: 0; }
.termin-form summary { cursor: pointer; font-weight: 600; }
.termin-form form.formular { display: grid; gap: .6rem; margin-top: .8rem; }
.termin-form .zeile { display: flex; flex-wrap: wrap; gap: .6rem; }
.termin-form .zeile label:first-child { flex: 1 1 16rem; }
.termin-form label { display: flex; flex-direction: column; gap: .2rem; }
.termin-form .loeschen { margin-top: 1rem; }
/* Setlist-Editor einspaltig (Tablet hochkant, Handy): Vorrat nicht über der Liste kleben lassen */
@media (max-width: 900px) { .song-vorrat { position: static; } #vorrat { max-height: 40vh; } }

/* Startseite: Begrüßung mit Farbverlauf aus den Rubrikfarben, Zahlen-Kacheln, Blöcke in Rubrikfarbe */
body.seite-home { --c: var(--akzent); }
.seite-home .inhalt > h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } /* Überschrift nur für Vorleseprogramme */
.willkommen { position: relative; overflow: hidden; border-radius: 10px; padding: 1.6rem 1.6rem 1.3rem; margin: 0 0 1rem; border: 1px solid var(--rand);
  background: radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--c-song, #3f8a00) 28%, transparent), transparent 55%),
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--c-setlist, #0b74c4) 28%, transparent), transparent 55%),
    radial-gradient(circle at 60% 120%, color-mix(in srgb, var(--c-termin, #c46f00) 30%, transparent), transparent 60%), var(--karte); }
.willkommen h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: .1rem 0 .4rem; letter-spacing: -.02em; }
.willkommen p { margin: .2rem 0; }
.willkommen .offen { display: inline-block; margin-left: .3rem; padding: .05rem .55rem; border-radius: 99px; background: var(--c-termin, #c46f00); color: #fff; font-weight: 600; text-decoration: none; }
.willkommen .schnell { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.willkommen .schnell .knopf { background: color-mix(in srgb, var(--karte) 70%, transparent); backdrop-filter: blur(4px); }
.kacheln { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-bottom: 1rem; }
.kachel { display: block; padding: .9rem 1rem; border-radius: 8px; background: var(--karte); border: 1px solid var(--rand); border-top: 3px solid var(--k); color: var(--text); text-decoration: none; transition: transform .15s; }
.kachel:hover { transform: translateY(-2px); border-color: var(--k); }
.kachel b { display: block; font-size: 1.9rem; line-height: 1.1; color: var(--k); font-variant-numeric: tabular-nums; }
.k-song { --k: var(--c-song, #3f8a00); } .k-setlist { --k: var(--c-setlist, #0b74c4); } .k-termin { --k: var(--c-termin, #c46f00); }
.start-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; }
.start-block { border-top: 3px solid var(--k); margin: 0; }
.start-block h3 { margin: 0 0 .6rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.start-block h3 .leise { text-transform: none; letter-spacing: 0; font-weight: 400; }
.start-block h3, .start-block h3 a { color: var(--k); text-decoration: none; }
.start-block ul { list-style: none; margin: 0; padding: 0; }
.start-block li { padding: .45rem 0; border-top: 1px solid var(--rand); }
.start-block li:first-child { border-top: 0; }
.start-block li small { display: block; color: var(--leise); margin-top: .1rem; }
@media (max-width: 600px) { .kacheln { gap: .4rem; } .kachel { padding: .6rem; font-size: .85rem; } .kachel b { font-size: 1.4rem; } .willkommen { padding: 1.1rem; } }
.start-block li a { color: var(--text); text-decoration: none; font-weight: 600; }
.start-block li a:hover { text-decoration: underline 2px var(--k); text-underline-offset: 3px; }
.start-block li small.status { display: inline; margin-left: .3em; }
.termin-karten .zusagen { font-size: .85rem; margin-top: .25rem; }
.termin-karten small a { font-weight: 400; }
.willkommen p a:not(.offen) { color: inherit; font-weight: 600; text-decoration-color: var(--c-termin, #c46f00); text-underline-offset: 3px; }

/* Setlist-Editor: Pause trennt Sets; Übersicht je Set (Anzahl, Spielzeit) */
.setlist-reihe li.set-trenner .pause-zeichen { font-weight: 400; color: var(--leise, inherit); }
.setlist-reihe li.set-trenner:first-child .pause-zeichen { display: none; }
.setlist-reihe li.set-trenner .set-info { font-weight: 400; white-space: nowrap; }
.set-uebersicht { display: flex; flex-wrap: wrap; gap: .3rem .5rem; margin: .3rem 0 .5rem; }
.set-uebersicht span { padding: .1rem .5rem; border-radius: 999px; background: color-mix(in srgb, var(--c, currentColor) 15%, transparent); font-size: .9em; white-space: nowrap; }
.kurzinfo { display: inline-block; padding: 0 .4rem; border-radius: 4px; border: 1px solid var(--akzent); color: var(--akzent); font-size: .8em; white-space: nowrap; } /* meine Kurzinfo (Capo, Patch) */
.rollen-dialog { max-width: 40rem; } .rolle-karte { margin: 0 0 .8rem; } .rechte-zeile { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: center; margin: .3rem 0; } .rechte-zeile b { min-width: 5rem; } /* Rollen-Pop-up */
.rechte-raster { display: grid; grid-template-columns: minmax(4.5rem, auto) repeat(3, 1fr); gap: .35rem .5rem; align-items: center; justify-items: center; margin: .5rem 0; }
.rechte-raster b { justify-self: start; } .rechte-raster small { color: var(--leise, inherit); } .rechte-raster input { width: 1.4rem; height: 1.4rem; margin: 0; }
.benutzer-dialog { max-width: min(28rem, 92vw); } .benutzer-dialog label { display: block; margin: .4rem 0; } .benutzer-dialog label input { width: 100%; box-sizing: border-box; } .benutzer-dialog .werkzeug { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0; } /* Benutzer-Pop-up (✏) */
.rollen-haken { position: relative; } .rollen-haken summary { cursor: pointer; padding: .3rem .5rem; border: 1px solid var(--rand); border-radius: 6px; } .rollen-haken[open] { padding-bottom: .3rem; } .rollen-haken label.haken { display: block; margin: .2rem .5rem; } /* Mehrfachauswahl Instrumente */
.werkzeug form.inline { display: inline-flex; margin: 0; } /* Versionswahl in der Song-Kopfzeile */
.fremd-zusage { display: inline-flex; gap: .2rem; margin-left: .4rem; } .fremd-zusage .knopf { padding: 0 .45rem; min-height: 0; } /* Antwort für andere */
.hauptadmin-hinweis { font-size: .85em; color: inherit; } /* dezent: Hauptadmin ist eingeschaltet */
/* Mitglieder einer Band als Tabelle; auf dem Handy je Mitglied eine Karte */
.mitglieder-tabelle { width: 100%; border-collapse: collapse; margin: .4rem 0; }
.mitglieder-tabelle th { text-align: left; font-size: .85rem; color: var(--leise); padding: .3rem .4rem; border-bottom: 1px solid var(--rand); }
.mitglieder-tabelle td { padding: .35rem .4rem; border-bottom: 1px solid var(--rand); vertical-align: middle; }
.mitglieder-tabelle td select, .mitglieder-tabelle td input:not([type=checkbox]) { width: 100%; margin: 0; }
.mitglieder-tabelle th:last-child, .mitglieder-tabelle td:last-child { width: 1%; white-space: nowrap; text-align: center; }
@media (max-width: 700px) {
  .mitglieder-tabelle thead { display: none; }
  .mitglieder-tabelle tr { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem .5rem; padding: .5rem 0; border-bottom: 1px solid var(--rand); }
  .mitglieder-tabelle td { border: 0; padding: 0; }
  .mitglieder-tabelle td[data-titel="Name"] { grid-column: 1 / -1; }
  .mitglieder-tabelle td:last-child { width: auto; text-align: left; }
}
/* Aufgaben je Termin */
.aufgaben-liste { list-style: none; margin: 0 0 .6rem; padding: 0; }
.aufgaben-liste li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .35rem 0; border-bottom: 1px solid var(--rand); }
.aufgaben-liste form { margin: 0; }
.aufgaben-liste .aufgabe-text { flex: 1; min-width: 10rem; }
.aufgaben-liste li.erledigt .aufgabe-text { text-decoration: line-through; color: var(--leise); }
.meine-aufgabe { font-weight: 700; }
.aufgaben:not(.bearbeiten) .aufgabe-wer, .aufgaben:not(.bearbeiten) .loeschen, .aufgaben.bearbeiten .wer-text { display: none; }
h2 .knopf.nur-zeichen { font-size: .75rem; line-height: 1; padding: .2rem .35rem; min-height: 0; min-width: 0; vertical-align: middle; margin-left: .4rem; } h2 .knopf[aria-pressed="true"] { background: var(--c-termin, #f39c12); color: #000; }
.anleitung { scroll-margin-top: 4rem; } .anleitung-inhalt { display: flex; flex-wrap: wrap; gap: .3rem 1rem; } .anleitung p, .anleitung li { max-width: 46rem; line-height: 1.5; }
.song-status { display: inline-block; padding: .05rem .45rem; border-radius: .6rem; font-size: .8rem; white-space: nowrap; }
.status-vorschlag { background: rgba(156, 39, 176, .18); } .status-vorbereitung { background: rgba(255, 193, 7, .22); }
.status-aktiv { background: rgba(76, 175, 80, .2); } .status-archiviert { background: rgba(128, 128, 128, .2); color: var(--leise); }
.aufgabe-neu { display: flex; flex-wrap: wrap; gap: .4rem; }
.aufgabe-neu input { flex: 1; min-width: 12rem; }
/* Geburtstagsgruß: Noten steigen auf, Überschrift wippt */
dialog.geburtstag { text-align: center; max-width: 26rem; overflow: hidden; }
dialog.geburtstag h2 { animation: gb-wippen 1s ease-in-out infinite alternate; }
.gb-noten { position: relative; height: 3.5rem; }
.gb-noten span { position: absolute; bottom: 0; font-size: 1.8rem; color: var(--c, #0b74c4); animation: gb-steigen 2.4s ease-in infinite; opacity: 0; }
.gb-noten span:nth-child(1) { left: 10%; } .gb-noten span:nth-child(2) { left: 26%; animation-delay: .4s; } .gb-noten span:nth-child(3) { left: 42%; animation-delay: .8s; }
.gb-noten span:nth-child(4) { left: 58%; animation-delay: 1.2s; } .gb-noten span:nth-child(5) { left: 74%; animation-delay: 1.6s; } .gb-noten span:nth-child(6) { left: 88%; animation-delay: 2s; }
@keyframes gb-steigen { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-3rem) rotate(15deg); opacity: 0; } }
@keyframes gb-wippen { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { dialog.geburtstag h2, .gb-noten span { animation: none; opacity: 1; } }
/* Willkommen (Herz mit Konfetti / Band auf der Bühne) und Lob (Abzeichen mit Sternen, Herzen oder Konfetti) */
dialog.wk-dialog, dialog.lob { text-align: center; max-width: 26rem; overflow: hidden; }
.wk-buehne { position: relative; height: 11rem; margin-bottom: 1rem; border-radius: 8px; overflow: hidden; background: linear-gradient(#141826 55%, #3a2f4a); color: #fff; }
.wk-buehne::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5rem; background: #2a2236; border-top: 2px solid #5a4a6e; }
.wk-spot { position: absolute; left: 50%; top: 0; bottom: 0; width: 10rem; margin-left: -5rem; clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  background: linear-gradient(rgba(255, 236, 160, .75), rgba(255, 236, 160, .15)); opacity: 0; animation: wk-spot .5s 2.6s forwards; }
.wk-figur { position: absolute; bottom: .1rem; width: calc(3rem * var(--s, 1)); margin: 0 0 0 calc(-1.5rem * var(--s, 1)); z-index: 1; transform-origin: 50% 100%; }
.wk-figur svg { display: block; width: 100%; height: calc(6rem * var(--s, 1)); fill: currentColor; stroke: currentColor; stroke-width: 6; stroke-linecap: round; overflow: visible; }
.wk-figur path { fill: none; } .wk-figur circle { stroke: none; }
.wk-figur figcaption { margin: 0 -.4rem; font-size: max(.55rem, calc(.7rem * var(--s, 1))); line-height: 1.3rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-figur:not(.wk-neu) { left: var(--nach, 50%); animation: wk-platz .9s .5s ease-in-out both, wk-hops .35s 2.7s ease-out 2 alternate; }
.wk-figur:not(.wk-neu):nth-child(odd) { animation-delay: .5s, 2.78s; }
@keyframes wk-platz { from { left: var(--von, 50%); } }
.wk-f0 { color: #ffc94d; } .wk-f1 { color: #ff6b9a; } .wk-f2 { color: #5fd68f; } .wk-f3 { color: #b48cff; } .wk-f4 { color: #ff9f43; } .wk-f5 { color: #e8e8e8; }
.wk-neu { left: 50%; color: #6cc4ff; z-index: 2; animation: wk-anlauf 1.5s 1.1s cubic-bezier(.25, .6, .35, 1) both, wk-hops .35s 2.7s ease-out 2 alternate; }
@keyframes wk-anlauf { from { transform: translateY(9rem) scale(3.5); filter: blur(4px); opacity: 0; } 12% { opacity: 1; } to { transform: none; filter: none; } }
.wk-neu svg { animation: wk-wipp .17s 1.1s 8 alternate; }
.wk-neu figcaption { font-weight: 700; animation: wk-ein .3s 2.6s both; }
.wk-figur .bein-l, .wk-figur .bein-r { transform-origin: 20px 47px; animation: wk-bein .22s .5s 4 alternate ease-in-out; }
.wk-figur .bein-r { animation-direction: alternate-reverse; }
.wk-neu .bein-l, .wk-neu .bein-r { animation-duration: .17s; animation-delay: 1.1s; animation-iteration-count: 8; }
.wk-figur .arm-l { transform-origin: 20px 26px; animation: wk-jubel-l .35s 2.7s 2 alternate; }
.wk-figur .arm-r { transform-origin: 20px 26px; animation: wk-jubel-r .35s 2.7s 2 alternate; }
@keyframes wk-bein { from { transform: rotate(-22deg); } to { transform: rotate(22deg); } }
@keyframes wk-jubel-l { to { transform: rotate(110deg); } } @keyframes wk-jubel-r { to { transform: rotate(-110deg); } }
@keyframes wk-hops { to { translate: 0 -1rem; } } @keyframes wk-wipp { to { translate: 0 -.3rem; } }
@keyframes wk-spot { to { opacity: 1; } } @keyframes wk-ein { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wk-buehne, .wk-buehne * { animation: none !important; } .wk-spot { opacity: 1; } }
.lob-art-super { --lob: #e0a100; } .lob-art-danke { --lob: #d6336c; } .lob-art-groove { --lob: #7b4fd6; }
.lob-art-teamplayer { --lob: #2a9d5c; } .lob-art-retter { --lob: #e8590c; } .lob-art-orga { --lob: #0b74c4; }
.lob-buehne { position: relative; height: 7.5rem; }
.lob-abzeichen { position: absolute; left: 50%; top: 50%; width: 5rem; height: 5rem; margin: -2.5rem 0 0 -2.5rem; border-radius: 50%; display: grid; place-items: center;
  font-size: 2.6rem; color: #fff; background: var(--lob); box-shadow: 0 .3rem 1rem color-mix(in srgb, var(--lob) 50%, transparent); z-index: 1;
  animation: lob-pop .7s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes lob-pop { from { scale: 0; rotate: -30deg; } }
.lob-buehne i { position: absolute; left: 50%; top: 50%; font-style: normal; color: var(--lob); pointer-events: none; }
.lob-sterne .lob-buehne i::before { content: '★'; }
.lob-herzen .lob-buehne i::before { content: '♥'; }
.lob-sterne .lob-buehne i { animation: lob-stern 1.6s ease-out infinite; }
@keyframes lob-stern { from { translate: 0 0; scale: .2; opacity: 1; } to { translate: var(--x) var(--y); scale: 1.3; opacity: 0; } }
.lob-herzen .lob-buehne i { top: 100%; font-size: 1.3rem; animation: lob-herz 2.4s ease-in infinite; }
@keyframes lob-herz { from { translate: var(--x) 0; opacity: 0; } 20% { opacity: 1; } to { translate: calc(var(--x) * .6) -7.5rem; opacity: 0; } }
.lob-konfetti .lob-buehne i { top: -1rem; width: .45rem; height: .8rem; background: var(--lob); animation: lob-fall 2.2s linear infinite; }
.lob-konfetti .lob-buehne i:nth-of-type(3n) { background: #e0a100; } .lob-konfetti .lob-buehne i:nth-of-type(3n+1) { background: #d6336c; }
@keyframes lob-fall { from { translate: var(--x) 0; rotate: 0deg; } to { translate: calc(var(--x) * 1.2) 9rem; rotate: 540deg; } }
.lob-buehne i:nth-of-type(1) { --x: -10rem; --y: -2rem; } .lob-buehne i:nth-of-type(2) { --x: -7rem; --y: 2.5rem; animation-delay: .3s; }
.lob-buehne i:nth-of-type(3) { --x: -4rem; --y: -3rem; animation-delay: .6s; } .lob-buehne i:nth-of-type(4) { --x: -2rem; --y: 3rem; animation-delay: .9s; }
.lob-buehne i:nth-of-type(5) { --x: 2rem; --y: -3rem; animation-delay: .2s; } .lob-buehne i:nth-of-type(6) { --x: 4rem; --y: 2.5rem; animation-delay: .5s; }
.lob-buehne i:nth-of-type(7) { --x: 7rem; --y: -2rem; animation-delay: .8s; } .lob-buehne i:nth-of-type(8) { --x: 10rem; --y: 2rem; animation-delay: 1.1s; }
.lob-buehne i:nth-of-type(9) { --x: -8.5rem; --y: 0rem; animation-delay: 1.3s; } .lob-buehne i:nth-of-type(10) { --x: 8.5rem; --y: 0rem; animation-delay: 1.4s; }
.lob-buehne i:nth-of-type(11) { --x: -5.5rem; --y: -.5rem; animation-delay: 1s; } .lob-buehne i:nth-of-type(12) { --x: 5.5rem; --y: .5rem; animation-delay: .7s; }
dialog.lob blockquote { margin: .5rem 0 1rem; font-style: italic; }
.lob-gesendet { margin-top: 1rem; border-top: 1px solid var(--rand); padding-top: .6rem; } .lob-gesendet summary { cursor: pointer; font-weight: 600; min-height: 1.8rem; }
.lob-gesendet ul { list-style: none; padding: 0; margin: .4rem 0 0; } .lob-gesendet li { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding: .3rem 0; } .lob-gesendet form.inline { margin-left: auto; }
.lob-arten { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .4rem; border: 0; padding: 0; margin: 0; }
.lob-wahl { position: relative; display: flex; align-items: center; gap: .4rem; padding: .4rem .5rem; border: 2px solid var(--rand); border-radius: 6px; cursor: pointer; }
.lob-wahl input { position: absolute; opacity: 0; }
.lob-wahl:has(input:checked) { border-color: var(--lob); background: color-mix(in srgb, var(--lob) 15%, var(--bg)); }
.lob-wahl:has(input:focus-visible) { outline: 2px solid var(--lob); }
.lob-zeichen { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; flex: none; border-radius: 50%; background: var(--lob); color: #fff; }
@media (prefers-reduced-motion: reduce) { .lob-abzeichen, .lob-buehne i { animation: none; } }
.person { white-space: nowrap; }
#technik-jetzt { position: sticky; top: 0; z-index: 2; font-size: 1.25rem; }
#technik-jetzt .technik-song { font-size: 1.6rem; }
.technik-gross { font-size: 1.5rem; font-weight: 700; margin: .3rem 0; }
.technik-blatt tr.jetzt { background: color-mix(in srgb, var(--akzent) 22%, var(--karte)); }
.technik-blatt tr.gleich { outline: 2px dashed var(--akzent); }
.technik-blatt textarea, .technik-blatt td input { width: 100%; }
.technik-listen { list-style: none; padding: 0; }
.technik-listen li { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; padding: .35rem 0; border-bottom: 1px solid var(--rand); }

/* Benutzer anlegen: Passwortfelder nur, wenn der Admin es selbst vergibt */
.zugang-wahl:has(input[value=mail]:checked) .nur-passwort { display: none; }
.protokoll { white-space: pre-wrap; font-size: .8rem; max-height: 20rem; overflow: auto; margin: .5rem 0 0; }
.test-text { display: block; }

/* ===== Produktseite, Testversion, Anmeldung (Webseite ohne Anmeldung, 06.12.2026): Stil der Startseite, Gast-Kopfleiste mit zwei Knöpfen ===== */
.seite-produkt .inhalt > h1, .seite-testversion .inhalt > h1, .seite-login .inhalt > h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.gast-leiste { justify-content: space-between; }
.gast-leiste .marke { font-size: 1.1rem; }
.gast-leiste .marke-name { display: inline; }
.gast-knoepfe { display: flex; gap: .5rem; }
.gast-knoepfe .knopf { padding: .45rem .9rem; }
.seite-login .gast-knoepfe a[href="?p=login"] { display: none; } /* auf der Anmeldeseite selbst überflüssig */
.willkommen .schnell .knopf.haupt { background: var(--akzent); }
.seite-produkt .inhalt, .seite-testversion .inhalt { max-width: 1200px; }
.produkt-held { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 2rem; align-items: center; padding: clamp(1.4rem, 4vw, 3rem); }
.held-marke { font-weight: 700; color: var(--leise); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.produkt-held h2 { font-size: clamp(1.8rem, 4.2vw, 3rem); line-height: 1.1; }
.produkt-held p { font-size: 1.05rem; max-width: 36rem; }
.produkt-held .schnell .knopf, .produkt-schluss .schnell .knopf { padding: .6rem 1.1rem; font-size: 1.02rem; }
.held-video video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; background: #000; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); border: 1px solid var(--rand); }
.produkt-titel { text-align: center; font-size: clamp(1.4rem, 3vw, 2rem); margin: 2.4rem 0 1.2rem; letter-spacing: -.01em; }
.produkt-raster { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.produkt-raster li b { display: block; }
.produkt-schluss { text-align: center; margin-top: 2rem; padding: clamp(1.4rem, 4vw, 2.6rem); }
.produkt-schluss p { max-width: 38rem; margin: .3rem auto; }
.produkt-schluss .schnell { justify-content: center; }
.produkt-fuss { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; padding: 2rem 0 1rem; color: var(--leise); font-size: .9rem; }
.produkt-fuss a { color: var(--leise); }
.produkt-fuss a:hover { color: var(--text); }
.k-band { --k: var(--c-band, #5f6b7a); } .k-raster { --k: var(--c-raster, #00796b); } .k-extra { --k: var(--c-extra, #9c009a); }
/* Testversion: Info links, Formular rechts */
.anfrage-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.2rem; align-items: start; margin-top: 1rem; }
.anfrage-info { margin: 0; padding: clamp(1.2rem, 3vw, 2rem); }
.anfrage-info h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.anfrage-info h3 { margin: 1.4rem 0 .5rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-termin); }
.haken-liste { list-style: none; padding: 0; margin: .6rem 0; }
.haken-liste li { padding: .25rem 0 .25rem 1.7rem; position: relative; }
.haken-liste li::before { content: '✓'; position: absolute; left: 0; color: var(--c-song); font-weight: 700; }
.schritte { list-style: none; padding: 0; margin: 0; counter-reset: schritt; }
.schritte li { counter-increment: schritt; position: relative; padding: .35rem 0 .55rem 2.6rem; }
.schritte li::before { content: counter(schritt); position: absolute; left: 0; top: .3rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--akzent); color: var(--akzent-text); font-weight: 700; }
.schritte small { display: block; color: var(--leise); }
.anfrage-form { margin: 0; padding: clamp(1rem, 3vw, 1.6rem); border-top: 3px solid var(--akzent); }
.anfrage-form input, .anfrage-form select, .anfrage-form textarea { width: 100%; box-sizing: border-box; }
.anfrage-form .zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .8rem; }
.anfrage-form label.haken { align-items: flex-start; font-size: .88rem; margin: .4rem 0 .9rem; }
.anfrage-form label.haken input { width: auto; margin-top: .2rem; }
.anfrage-form button.haupt { width: 100%; padding: .7rem; font-size: 1.05rem; }
.anfrage-form > small { display: block; margin-top: .7rem; text-align: center; }
.honig { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.danke { max-width: 44rem; margin: 2rem auto; }
/* Anmeldung: mittig */
.anmelde-buehne { min-height: calc(100vh - 11rem); display: grid; place-items: center; padding: 1rem 0 2rem; }
.anmelde-karte { width: 100%; max-width: 25rem; box-sizing: border-box; padding: clamp(1.3rem, 4vw, 2rem); border-top: 3px solid var(--akzent); box-shadow: 0 10px 40px rgba(0, 0, 0, .35); }
.anmelde-karte h2 { margin: .2rem 0 .2rem; text-align: center; font-size: 1.6rem; }
.anmelde-karte > p.leise { text-align: center; margin: 0 0 1.2rem; }
.anmelde-marke { text-align: center; font-size: 2.4rem; margin: 0; }
.anmelde-karte input { width: 100%; box-sizing: border-box; padding: .55rem .7rem; }
.anmelde-karte button.haupt { width: 100%; padding: .65rem; font-size: 1.05rem; margin-top: .4rem; }
.anmelde-links { display: flex; flex-direction: column; align-items: center; gap: .5rem; margin: 1.1rem 0 0; font-size: .9rem; color: var(--leise); }
.seite-login .inhalt > .meldung { max-width: 25rem; margin: 1rem auto 0; }
/* Einstellungen: Anfragen */
.anfrage-liste { list-style: none; margin: 0; padding: 0; }
.anfrage-liste li { padding: .6rem 0; border-top: 1px solid var(--rand); }
.anfrage-liste li:first-child { border-top: 0; }
.anfrage-liste small { display: block; color: var(--leise); }
.anfrage-text { margin: .3rem 0; white-space: normal; }
.anfrage-liste .werkzeug { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
@media (max-width: 860px) { .produkt-held, .anfrage-raster { grid-template-columns: minmax(0, 1fr); } .produkt-held { gap: 1.2rem; } }
@media (max-width: 520px) {
  .gast-knoepfe .knopf { padding: .4rem .6rem; font-size: .9rem; }
  .gast-leiste .marke-name { display: none; }
  .anfrage-form .zwei { grid-template-columns: minmax(0, 1fr); }
  .produkt-held .schnell .knopf { flex: 1 1 auto; text-align: center; }
}
@media (pointer: coarse) { .gast-knoepfe .knopf, .anmelde-karte input, .anfrage-form input, .anfrage-form select { min-height: 2.6rem; } }
/* Code-Abfrage (layout.php code_dialog): dunkles Pop-up mit 6 Kästchen, auf jedem Gerät gleich */
body { --code: #91d500; --code-text: #0b0b0b; --code-hell: #b5f03a; } /* Code-Eingabe: das Grün der App (Songs); die Verwaltung setzt Rot */
dialog.code-dialog { background: #16181d; color: #e8eaed; border: 1px solid #2a2e36; border-radius: 18px; padding: 2rem 1.6rem 1.3rem; width: min(26rem, calc(100vw - 1.5rem)); box-sizing: border-box; text-align: center; box-shadow: 0 24px 70px rgba(0, 0, 0, .55); color-scheme: dark; }
dialog.code-dialog::backdrop { background: rgba(6, 8, 11, .78); backdrop-filter: blur(4px); }
.code-symbol { font-size: 2rem; margin: 0; }
.code-dialog h2 { font-size: 1.45rem; margin: .3rem 0 .5rem; color: #fff; }
.code-text { color: #a9afb8; margin: 0 0 1.1rem; line-height: 1.5; overflow-wrap: anywhere; }
.code-text b { color: #fff; font-weight: 600; }
.code-dialog .meldung { text-align: left; margin: 0 0 1rem; }
.code-eingabe { width: 100%; box-sizing: border-box; text-align: center; font-size: 1.6rem; letter-spacing: .5em; padding: .6rem; margin-bottom: 1.1rem; background: #0e1014; color: #fff; border: 1.5px solid #3a3f48; border-radius: 10px; }
.code-kaesten { display: flex; justify-content: center; gap: .55rem; margin: 0 0 1.3rem; }
.code-kasten { width: 3.1rem; height: 3.7rem; padding: 0; box-sizing: border-box; text-align: center; font: 600 1.6rem/1 system-ui, sans-serif; background: #0e1014; color: #fff; border: 1.5px solid #3a3f48; border-radius: 11px; caret-color: var(--code); transition: border-color .15s, box-shadow .15s; }
.code-kasten:focus { outline: none; border-color: var(--code); box-shadow: 0 0 0 3px color-mix(in srgb, var(--code) 30%, transparent); }
.code-kaesten.falsch .code-kasten { border-color: #ef4444; animation: code-wackeln .35s; }
@keyframes code-wackeln { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .code-kaesten.falsch .code-kasten { animation: none; } }
.code-weiter { display: block; width: 100%; min-height: 3rem; padding: .8rem; border: 0; border-radius: 11px; background: var(--code); color: var(--code-text); font-size: 1.08rem; font-weight: 700; cursor: pointer; }
.code-weiter:hover { background: color-mix(in srgb, var(--code) 85%, #000); } .code-weiter:focus-visible { outline: 3px solid var(--code-hell); outline-offset: 2px; }
.code-neu { color: #9aa0a6; font-size: .92rem; margin: 1.1rem 0 .3rem; }
.code-link { background: none; border: 0; padding: .3rem .1rem; color: var(--code-hell); font: inherit; font-weight: 600; cursor: pointer; }
.code-link:disabled { color: #6b7280; cursor: default; }
.code-abbrechen { background: none; border: 0; color: #8b919a; font: inherit; font-size: .9rem; text-decoration: underline; cursor: pointer; padding: .4rem; }
.code-ersatz { margin-top: .6rem; text-align: left; border-top: 1px solid #2a2e36; padding-top: .7rem; }
.code-ersatz summary { color: #9aa0a6; font-size: .9rem; cursor: pointer; text-align: center; }
.code-ersatz form { display: flex; gap: .5rem; margin-top: .7rem; }
.code-ersatz input { flex: 1; min-width: 0; background: #0e1014; color: #fff; border: 1.5px solid #3a3f48; border-radius: 8px; padding: .55rem .6rem; font-family: ui-monospace, monospace; }
@media (max-width: 400px) { .code-kaesten { gap: .35rem; } .code-kasten { width: 2.65rem; height: 3.3rem; font-size: 1.4rem; } dialog.code-dialog { padding: 1.6rem 1.1rem 1.1rem; } }
@media (pointer: coarse) { .code-link, .code-abbrechen { min-height: 2.6rem; } }
/* Verwaltung (seiten/verwaltung.php) */
.seite-verwaltung .inhalt { max-width: 72rem; margin: 0 auto; }
.leiste.verw-leiste .abmelden { display: flex; flex-basis: auto; margin-left: auto; padding: 0; } /* kein ☰-Menü in der Verwaltung: Abmelden bleibt am Handy sichtbar */
.seite-verwaltung { --verw: #dc2626; } /* Verwaltung: Rot als Akzent, damit sie sich klar von der App abhebt */
.seite-verwaltung > * { --akzent: #f87171; --akzent-text: #1f0a0a; --c: #f87171; --c-song: #f87171; --c-setlist: #f87171; --c-band: #f87171; --c-termin: #f87171; --c-extra: #f87171; --c-melden: #f87171; --c-raster: #f87171; } /* auf den Kindern, weil die Themen-Regeln am body stärker sind */
.seite-verwaltung { --code: #dc2626; --code-text: #fff; --code-hell: #f87171; }
.verw-leiste { border-bottom: 3px solid var(--verw); }
.verw-karte { border-top-color: var(--verw); }
.verw-einleitung { max-width: 44rem; }
.verw-wahl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; max-width: 44rem; margin-bottom: .8rem; }
.verw-wahl .karte { display: block; text-decoration: none; margin: 0; border-width: 2px; }
.verw-wahl .karte.aktiv { border-color: var(--verw); background: color-mix(in srgb, var(--verw) 12%, var(--karte)); }
.verw-einrichten { max-width: 44rem; padding: 1.2rem; }
.verw-qr { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; margin: 1rem 0; }
.qr-bild { width: 13rem; max-width: 100%; background: #fff; border-radius: 10px; padding: .4rem; box-sizing: border-box; }
.qr-bild svg { display: block; width: 100%; height: auto; }
.verw-schluessel { display: inline-block; font: 600 1rem/1.5 ui-monospace, monospace; letter-spacing: .05em; background: var(--bg); border: 1px solid var(--rand); border-radius: 6px; padding: .4rem .6rem; word-break: break-all; user-select: all; }
.verw-code { max-width: 24rem; } .verw-code label { display: block; margin-bottom: .5rem; font-weight: 600; }
.verw-code .code-kaesten { justify-content: flex-start; }
.verw-einrichten .code-neu { text-align: left; }
.verw-abbrechen { max-width: 44rem; text-align: center; }
.verw-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1rem; align-items: start; }
.verw-raster .karte { margin: 0; padding: 1rem 1.1rem; }
.verw-raster h2, .verw-ersatz h2 { margin-top: 0; }
.verw-raster details { border-top: 1px solid var(--rand); padding: .55rem 0; }
.verw-raster summary { cursor: pointer; font-weight: 600; min-height: 1.8rem; }
.verw-form { display: grid; gap: .6rem; margin-top: .6rem; }
.verw-form input, .verw-anlegen input, .verw-adresse { width: 100%; box-sizing: border-box; }
.verw-form input[type=checkbox], .verw-anlegen input[type=checkbox] { width: auto; min-height: 0; flex: none; } /* Häkchen links neben dem Text, nicht über die ganze Breite */
.verw-anlegen { display: grid; gap: .6rem; }
.verw-admin h3 { margin: 0; }
.verw-admin .werkzeug { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.verw-form fieldset { border: 1px solid var(--rand); border-radius: 8px; padding: .4rem .7rem; }
.als-banner { background: #dc2626; color: #fff; text-align: center; padding: .45rem .8rem; font-weight: 600; position: sticky; top: 0; z-index: 6; }
.als-banner a { color: #fff; text-decoration-color: #fff; }
.zur-verwaltung { white-space: nowrap; }
.vorschlag { margin-top: 1rem; border-top: 1px solid var(--rand); padding-top: .6rem; }
.vorschlag summary { cursor: pointer; font-weight: 600; min-height: 1.8rem; }
.vorschlag form.inline { display: inline; margin-left: .4rem; }
.verw-protokoll ul { list-style: none; padding: 0; margin: 0; max-height: 22rem; overflow: auto; }
.verw-protokoll li { padding: .35rem 0; border-bottom: 1px solid var(--rand); font-size: .92rem; }
.verw-protokoll time { color: var(--leise); margin-right: .4rem; font-variant-numeric: tabular-nums; }
.verw-ersatz { border: 2px solid var(--verw); padding: 1.2rem; margin-bottom: 1rem; }
.ersatz-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 12rem)); gap: .4rem 1.5rem; padding-left: 1.6rem; font: 600 1.05rem/1.6 ui-monospace, monospace; }
.verw-ersatz .werkzeug { display: flex; flex-wrap: wrap; gap: .5rem; }
@media (max-width: 560px) { .verw-wahl { grid-template-columns: minmax(0, 1fr); } .qr-bild { width: 100%; max-width: 15rem; margin: 0 auto; } .verw-qr { justify-content: center; text-align: center; } }
@media (pointer: coarse) { .verw-form input, .verw-anlegen input, .verw-raster summary { min-height: 2.6rem; } }
@media print { .verw-leiste, .verw-raster, .verw-ersatz .werkzeug { display: none; } }
