/* GLX Media - Aussehen. Farben kommen aus den 12 GLX-Designs (data-design am <html>). */
:root {
  --schrift: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --radius: 10px;
  --kopf: 58px;
  --nav: 230px;
  --cover: 170px;
}
[data-design="glx"]      { --hg:#070d16; --flaeche:#0c1624; --flaeche2:#12203a; --text:#e6f3ff; --text2:#8fa7c2; --akzent:#18c8ff; --akzent-text:#04121c; --linie:#1b2d47; --auswahl:#0f3554; --gefahr:#ff5d6c; --leuchten:0 0 14px rgba(24,200,255,.35); color-scheme:dark; }
[data-design="dunkel"]   { --hg:#151618; --flaeche:#1d1f22; --flaeche2:#26292d; --text:#ececec; --text2:#9a9ea5; --akzent:#5aa9ff; --akzent-text:#08121e; --linie:#30343a; --auswahl:#2b3a4f; --gefahr:#ff6b6b; --leuchten:none; color-scheme:dark; }
[data-design="hell"]     { --hg:#eef2f7; --flaeche:#ffffff; --flaeche2:#f3f6fa; --text:#16202c; --text2:#5d6b7c; --akzent:#0a72d6; --akzent-text:#ffffff; --linie:#dde3ea; --auswahl:#dcebfb; --gefahr:#d42a3b; --leuchten:none; color-scheme:light; }
[data-design="oled"]     { --hg:#000; --flaeche:#000; --flaeche2:#0d0d0d; --text:#f2f2f2; --text2:#8a8a8a; --akzent:#18c8ff; --akzent-text:#000; --linie:#1c1c1c; --auswahl:#0b2533; --gefahr:#ff5d6c; --leuchten:none; color-scheme:dark; }
[data-design="ozean"]    { --hg:#06191d; --flaeche:#0a242a; --flaeche2:#0f3139; --text:#ddf6f4; --text2:#86b3b0; --akzent:#2fe0c4; --akzent-text:#03201b; --linie:#164149; --auswahl:#0f4a4b; --gefahr:#ff7a6b; --leuchten:0 0 12px rgba(47,224,196,.3); color-scheme:dark; }
[data-design="wald"]     { --hg:#0d1510; --flaeche:#131f17; --flaeche2:#1a2a1f; --text:#e5f1e6; --text2:#93ab97; --akzent:#6fdc7d; --akzent-text:#0b1d0e; --linie:#25392b; --auswahl:#21422a; --gefahr:#ff7b6b; --leuchten:none; color-scheme:dark; }
[data-design="abend"]    { --hg:#170f1c; --flaeche:#21152a; --flaeche2:#2c1c37; --text:#f6e9f2; --text2:#b39bb0; --akzent:#ff8a3d; --akzent-text:#1e0d02; --linie:#3a2747; --auswahl:#46284a; --gefahr:#ff5b7a; --leuchten:0 0 12px rgba(255,138,61,.3); color-scheme:dark; }
[data-design="rubin"]    { --hg:#140a0d; --flaeche:#1e0f14; --flaeche2:#2a151c; --text:#f7e7ea; --text2:#b8949b; --akzent:#ff4d6d; --akzent-text:#22030a; --linie:#3a1d26; --auswahl:#4a1a27; --gefahr:#ffb03b; --leuchten:none; color-scheme:dark; }
[data-design="sand"]     { --hg:#f3ede2; --flaeche:#fbf7f0; --flaeche2:#f1e9dc; --text:#2b241a; --text2:#7a6b55; --akzent:#b5651d; --akzent-text:#fff; --linie:#e2d6c3; --auswahl:#f0dcc0; --gefahr:#c0392b; --leuchten:none; color-scheme:light; }
[data-design="lavendel"] { --hg:#f1eef9; --flaeche:#ffffff; --flaeche2:#f6f3fd; --text:#231d33; --text2:#6c6487; --akzent:#7b4fe0; --akzent-text:#fff; --linie:#e3ddf3; --auswahl:#e8defc; --gefahr:#d42a5b; --leuchten:none; color-scheme:light; }
[data-design="silbermuschel"] { --hg:#e6d9b4; --flaeche:#f8f1df; --flaeche2:#efe3c4; --text:#1f3d2a; --text2:#5e6a4c; --akzent:#2f5d3a; --akzent-text:#f8f1df; --linie:#d6c48f; --auswahl:#ead8a0; --gefahr:#a8322d; --leuchten:none; color-scheme:light; }
[data-design="kontrast"] { --hg:#000; --flaeche:#000; --flaeche2:#111; --text:#fff; --text2:#ffe500; --akzent:#ffe500; --akzent-text:#000; --linie:#fff; --auswahl:#333; --gefahr:#ff4040; --leuchten:none; color-scheme:dark; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--hg); color: var(--text); font: 15px/1.45 var(--schrift); }
button, input, select { font: inherit; color: inherit; }
a { color: var(--akzent); }
/* sichtbare Scrollbalken */
* { scrollbar-width: auto; scrollbar-color: color-mix(in srgb, var(--akzent) 55%, var(--flaeche2)) var(--flaeche); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--flaeche); }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--akzent) 55%, var(--flaeche2)); border-radius: 6px; border: 2px solid var(--flaeche); }

/* Grundgerüst */
#rahmen { display: grid; grid-template-columns: var(--nav) 1fr; grid-template-rows: var(--kopf) 1fr; height: 100vh; }
#kopf { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: var(--flaeche); border-bottom: 1px solid var(--linie); }
.marke { font-weight: 800; font-size: 20px; letter-spacing: .5px; white-space: nowrap; cursor: pointer; }
.marke span { color: var(--akzent); text-shadow: var(--leuchten); }
#suche { flex: 1; min-width: 0; max-width: 440px; margin-left: 12px; }
.frei { flex: 1; }
#nav { background: var(--flaeche); border-right: 1px solid var(--linie); overflow-y: auto; padding: 10px 8px; }
#nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--text); text-decoration: none; margin-bottom: 2px; }
#nav a:hover { background: var(--flaeche2); }
#nav a.aktiv { background: var(--auswahl); box-shadow: inset 0 0 0 1.5px var(--akzent); font-weight: 600; }
#nav .sym { width: 22px; text-align: center; font-size: 17px; }
#nav .titel { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--text2); margin: 14px 12px 6px; }
#inhalt { overflow-y: auto; padding: 18px 22px 120px; }
body.musik-an #inhalt { padding-bottom: 150px; }

/* Knöpfe & Felder */
.knopf { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--linie); background: var(--flaeche2); cursor: pointer; white-space: nowrap; text-decoration: none; color: var(--text); }
.knopf:hover { border-color: var(--akzent); }
.knopf.haupt { background: var(--akzent); color: var(--akzent-text); border-color: var(--akzent); box-shadow: var(--leuchten); font-weight: 600; }
.knopf.gefahr { color: var(--gefahr); }
.knopf.klein { padding: 4px 10px; font-size: 13px; }
.sk { border: 0; background: none; cursor: pointer; padding: 6px 9px; border-radius: 8px; font-size: 18px; line-height: 1; color: var(--text); }
.sk:hover { background: color-mix(in srgb, var(--akzent) 18%, transparent); color: var(--akzent); }
.sk.aktiv { color: var(--akzent); background: color-mix(in srgb, var(--akzent) 14%, transparent); }
input[type=text], input[type=password], input[type=search], input[type=number], select { background: var(--flaeche2); border: 1px solid var(--linie); border-radius: 8px; padding: 8px 11px; outline: none; width: 100%; }
input:focus, select:focus { border-color: var(--akzent); }
input[type=range] { accent-color: var(--akzent); }
input[type=checkbox] { accent-color: var(--akzent); width: 18px; height: 18px; vertical-align: -3px; }
label.feld { display: block; margin: 12px 0 4px; color: var(--text2); font-size: 13px; }
.zeile { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
h1 { font-size: 24px; margin: 0 0 14px; }
h2 { font-size: 18px; margin: 22px 0 10px; }
.leise { color: var(--text2); font-size: 13px; }

/* Werkzeugleiste über Listen */
.leiste { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.leiste h1 { margin: 0 12px 0 0; }
.gruppe { display: inline-flex; border: 1px solid var(--linie); border-radius: 8px; overflow: hidden; }
.gruppe .sk { border-radius: 0; font-size: 16px; padding: 7px 11px; }
.groesse { display: inline-flex; align-items: center; gap: 6px; color: var(--text2); font-size: 13px; }
.groesse input { width: 120px; }
select.sort { width: auto; }

/* Cover-Raster */
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--cover), 1fr)); gap: 18px 16px; }
.kachel { cursor: pointer; min-width: 0; border-radius: var(--radius); outline: none; }
.kachel .bild { position: relative; aspect-ratio: 2 / 3; border-radius: var(--radius); overflow: hidden; background: var(--flaeche2); box-shadow: 0 4px 14px rgba(0,0,0,.25); transition: transform .15s, box-shadow .15s; }
.kachel.quadrat .bild { aspect-ratio: 1; }
.kachel.breit .bild { aspect-ratio: 16 / 9; }
.kachel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kachel:hover .bild, .kachel:focus .bild { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--akzent), var(--leuchten), 0 8px 22px rgba(0,0,0,.35); }
.kachel .name { margin-top: 7px; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kachel .unter { color: var(--text2); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kachel .fort { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0,0,0,.5); }
.kachel .fort i { display: block; height: 100%; background: var(--akzent); }
.kachel .haken { position: absolute; top: 7px; right: 7px; background: var(--akzent); color: var(--akzent-text); border-radius: 50%; width: 24px; height: 24px; display: grid; place-items: center; font-size: 14px; font-weight: 800; }
.kachel .abspielen { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .15s; background: rgba(0,0,0,.3); font-size: 44px; color: #fff; }
.kachel:hover .abspielen { opacity: 1; }
.ordnerkachel .bild { display: grid; place-items: center; font-size: 64px; }

/* Listenansicht */
.liste { display: flex; flex-direction: column; gap: 4px; }
.listzeile { display: flex; align-items: center; gap: 14px; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.listzeile:hover, .listzeile:focus { background: var(--flaeche2); outline: none; box-shadow: inset 0 0 0 1px var(--akzent); }
.listzeile img { width: calc(var(--cover) * .32); aspect-ratio: 2/3; object-fit: cover; border-radius: 6px; flex: none; }
.listzeile.quadrat img { aspect-ratio: 1; }
.listzeile .t { flex: 1; min-width: 0; }
.listzeile .t b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.listzeile .r { color: var(--text2); font-size: 13px; white-space: nowrap; }

/* Reihen auf der Startseite */
.reihe { display: grid; grid-auto-flow: column; grid-auto-columns: var(--cover); gap: 16px; overflow-x: auto; padding: 4px 2px 12px; }

/* Detailseite */
.detail { display: grid; grid-template-columns: minmax(180px, 300px) 1fr; gap: 28px; align-items: start; }
.detail .poster { width: 100%; border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.detail h1 { font-size: 30px; margin-bottom: 6px; }
.detail .meta { color: var(--text2); margin-bottom: 14px; }
.detail .text { max-width: 820px; white-space: pre-line; }
.kette { color: var(--text2); font-size: 13px; margin-bottom: 10px; }
.kette a { color: var(--text2); text-decoration: none; }
.kette a:hover { color: var(--akzent); }
.titelliste { margin-top: 14px; border-top: 1px solid var(--linie); }
.titelzeile { display: grid; grid-template-columns: 44px 1fr auto auto; gap: 12px; align-items: center; padding: 9px 8px; border-bottom: 1px solid var(--linie); cursor: pointer; }
.titelzeile:hover, .titelzeile:focus { background: var(--flaeche2); outline: none; }
.titelzeile.spielt { color: var(--akzent); font-weight: 600; }
.titelzeile .nr { color: var(--text2); text-align: right; }
.titelzeile .fertig { color: var(--akzent); }
.reiter { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0 6px; }
.reiter button { border: 1px solid var(--linie); background: var(--flaeche2); border-radius: 18px; padding: 6px 14px; cursor: pointer; }
.reiter button.aktiv { background: var(--akzent); color: var(--akzent-text); border-color: var(--akzent); }

/* Anmeldung / Profile */
.mitte { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.anmeldung { width: min(440px, 100%); }
.anmeldung .marke { font-size: 32px; text-align: center; margin-bottom: 18px; }
.profile { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; align-items: flex-start; margin: 10px 0 24px; }
.profil { width: 150px; text-align: center; cursor: pointer; border: 0; background: none; padding: 6px 0; color: var(--text); font: inherit; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 14px; }
.profil .av { width: 96px; height: 96px; margin: 0 auto 8px; border-radius: 18px; display: grid; place-items: center; font-size: 42px; font-weight: 800; color: #fff; transition: transform .15s, box-shadow .15s; }
.profil:hover .av, .profil:focus .av { transform: scale(1.06); box-shadow: 0 0 0 3px var(--akzent), var(--leuchten); }
.profil:focus { outline: none; color: var(--akzent); }
.benutzerknopf { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #fff; border: 0; cursor: pointer; }

/* Player */
#player { position: fixed; inset: 0; background: #000; z-index: 50; }
#player video { width: 100%; height: 100%; object-fit: contain; background: #000; }
#pOben, #pUnten { position: absolute; left: 0; right: 0; padding: 14px 18px; color: #fff; transition: opacity .3s; }
#pOben { top: 0; display: flex; align-items: center; gap: 12px; background: linear-gradient(rgba(0,0,0,.75), transparent); font-size: 18px; font-weight: 600; }
#pUnten { bottom: 0; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
#player .sk { color: #fff; font-size: 22px; }
#player .sk.gross { font-size: 30px; }
#pLeiste { width: 100%; }
.pReihe { display: flex; align-items: center; gap: 8px; }
#pZeit { font-variant-numeric: tabular-nums; margin-left: 8px; }
#pTon, #pUT { width: auto; background: rgba(0,0,0,.5); color: #fff; }
#pLaut, #mLaut { width: 90px; }
#player.ruhig #pOben, #player.ruhig #pUnten { opacity: 0; }
#player.ruhig { cursor: none; }
#pWarten { position: absolute; left: 50%; top: 50%; margin: -20px 0 0 -20px; }
.warteuhr { width: 40px; height: 40px; border-radius: 50%; border: 4px solid rgba(255,255,255,.2); border-top-color: var(--akzent); animation: dreh 1s linear infinite; }
@keyframes dreh { to { transform: rotate(360deg); } }

/* Musikleiste */
#musik { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--flaeche); border-top: 1px solid var(--akzent); box-shadow: 0 -4px 20px rgba(0,0,0,.3); }
#mCover { width: 54px; height: 54px; border-radius: 8px; object-fit: cover; background: var(--flaeche2); }
#mText { min-width: 0; width: 240px; display: flex; flex-direction: column; }
#mText b, #mText span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#mText span { color: var(--text2); font-size: 13px; }
#mLeiste { flex: 1; min-width: 60px; }
#mZeit { font-variant-numeric: tabular-nums; color: var(--text2); font-size: 13px; min-width: 90px; text-align: right; }

/* Pop-up & Meldung */
#popup { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.55); display: grid; place-items: center; padding: 16px; }
#popup .fenster { background: var(--flaeche); border: 1px solid var(--akzent); box-shadow: var(--leuchten), 0 20px 60px rgba(0,0,0,.5); border-radius: 14px; padding: 22px; width: min(560px, 100%); max-height: 90vh; overflow-y: auto; }
#popup h2 { margin-top: 0; }
#popup .knoepfe { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
#meldung { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; background: var(--flaeche2); border: 1px solid var(--akzent); box-shadow: var(--leuchten); padding: 10px 18px; border-radius: 10px; max-width: 90vw; }
body.musik-an #meldung { bottom: 100px; }
.ordnerwahl { max-height: 320px; overflow-y: auto; border: 1px solid var(--linie); border-radius: 8px; margin-top: 8px; }
.ordnerwahl div { padding: 7px 12px; cursor: pointer; border-bottom: 1px solid var(--linie); }
.ordnerwahl div:hover { background: var(--flaeche2); color: var(--akzent); }
.designs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.designkarte { border: 2px solid var(--linie); border-radius: 10px; padding: 10px; cursor: pointer; text-align: center; font-size: 13px; }
.designkarte.aktiv { border-color: var(--akzent); box-shadow: var(--leuchten); }
.designkarte .muster { height: 34px; border-radius: 6px; margin-bottom: 6px; display: flex; overflow: hidden; }
.designkarte .muster i { flex: 1; }
table.tab { width: 100%; border-collapse: collapse; }
table.tab td, table.tab th { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--linie); }
table.tab th { color: var(--text2); font-weight: 600; font-size: 13px; }
.balken { height: 6px; background: var(--flaeche2); border-radius: 3px; overflow: hidden; margin-top: 6px; }
.balken i { display: block; height: 100%; background: var(--akzent); }
.leer { text-align: center; padding: 60px 20px; color: var(--text2); }
.leer .gross { font-size: 54px; margin-bottom: 10px; }
#menuKnopf { display: none; }

/* Handy */
@media (max-width: 820px) {
  :root { --nav: 0px; --cover: 120px; }
  #rahmen { grid-template-columns: 1fr; }
  #nav { position: fixed; top: var(--kopf); bottom: 0; left: 0; width: 250px; z-index: 30; transform: translateX(-100%); transition: transform .2s; }
  body.nav-auf #nav { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.5); }
  #menuKnopf { display: inline-block; }
  #suche { margin-left: 0; }
  #kopf { gap: 4px; padding: 0 8px; }
  #kopf .frei { display: none; }
  #kopf [data-geh^="#/einstellungen/hilfe"] { display: none; }
  .marke { font-size: 17px; }
  #inhalt { padding: 14px 12px 120px; }
  .detail { grid-template-columns: 1fr; }
  .detail .poster { max-width: 220px; }
  #mText { width: auto; flex: 1; }
  #mLeiste, #mLaut, #mZeit { display: none; }
  .groesse input { width: 80px; }
}
/* Fernseher / große Bildschirme: Fokus deutlich zeigen */
.tv .kachel:focus .bild { transform: scale(1.06); }

/* Startseite: Bibliotheken als große Knöpfe */
.bibkacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 8px; }
.bibkachel { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: var(--radius); background: var(--flaeche); border: 1px solid var(--linie); cursor: pointer; outline: none; }
.bibkachel .sym { font-size: 34px; }
.bibkachel b { font-size: 18px; }
.bibkachel:hover, .bibkachel:focus { border-color: var(--akzent); box-shadow: var(--leuchten); }
.sk.wort { font-size: 14px; padding: 7px 12px; }
.wahlreihe { display: flex; gap: 8px; flex-wrap: wrap; }
.einst h2 { font-size: 16px; margin: 20px 0 8px; }
.einst h2:first-child { margin-top: 0; }
.ordnersym { width: calc(var(--cover) * .32); text-align: center; font-size: 30px; flex: none; }
.listzeile img { max-height: 110px; width: auto; max-width: calc(var(--cover) * .45); }
body.ohne-titel .kachel .name, body.ohne-titel .kachel .unter { display: none; }
/* Fernseh-Modus */
body.tv { font-size: 16px; }
body.tv #nav a { padding: 10px 12px; font-size: 16px; }
body.tv .kachel:focus .bild, body.tv .listzeile:focus, body.tv .bibkachel:focus, body.tv .titelzeile:focus, body.tv .knopf:focus { outline: 3px solid var(--akzent); outline-offset: 3px; }
body.tv .kachel .name { font-size: 15px; }

/* Ansicht je Bibliothek */
.ansicht.bild-hoch .kachel .bild { aspect-ratio: 2 / 3; }
.ansicht.bild-quadrat .kachel .bild { aspect-ratio: 1; }
.ansicht.bild-breit .kachel .bild { aspect-ratio: 16 / 9; }
.ansicht.bild-quadrat .listzeile img { aspect-ratio: 1; }
.ansicht.bild-breit .listzeile img { aspect-ratio: 16 / 9; }
.ansicht.abstand-eng .raster { gap: 8px 6px; }
.ansicht.abstand-weit .raster { gap: 30px 26px; }
.ansicht.ohne-titel .kachel .name, .ansicht.ohne-titel .kachel .unter { display: none; }
.ansicht.ohne-jahr .jahr { display: none; }
.anzahl { margin: -6px 0 12px; }

#player video::cue { font-size: 1.1em; background: rgba(0,0,0,.6); }

/* Identifizieren: Treffer zur Auswahl */
.kandidaten { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-top: 12px; max-height: 55vh; overflow-y: auto; }
.kandidat { cursor: pointer; display: flex; flex-direction: column; gap: 3px; font-size: 13px; padding: 4px; border-radius: 8px; outline: none; }
.kandidat img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 8px; background: var(--flaeche2); }
.kandidat:hover, .kandidat:focus { box-shadow: 0 0 0 2px var(--akzent); }
#popup .fenster:has(.kandidaten) { width: min(820px, 100%); }

/* Favoriten, Filter, A–Z */
.kachel .herz { position: absolute; top: 7px; left: 7px; color: #ff4d6d; font-size: 20px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.knopf.aktiv-fav { color: #ff4d6d; border-color: #ff4d6d; }
.filterzeile { margin: -4px 0 12px; }
.azleiste { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 2px; padding: 6px 0; margin-bottom: 8px; background: var(--hg); }
.azleiste button { border: 0; background: none; color: var(--text); cursor: pointer; min-width: 26px; padding: 4px 6px; border-radius: 6px; font-weight: 600; font-size: 13px; }
.azleiste button:hover { background: var(--auswahl); color: var(--akzent); }
.azleiste button.leer { color: var(--text2); opacity: .35; cursor: default; }
.abschnitte { display: flex; flex-direction: column; gap: 6px; max-width: 520px; }
.abschnitt { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--linie); border-radius: 8px; background: var(--flaeche2); }

/* Dashboard */
.dkacheln{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(150px,45%),1fr));gap:12px;margin-bottom:14px}
.dk{background:var(--flaeche);border:1px solid var(--linie);border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:4px;min-width:0}
.dk b{font-size:1.6em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dk.warn{border-color:var(--gefahr)}
.dspalten{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(340px,100%),1fr));gap:14px}
.dspalten .karte h2,#dash .karte h2{margin-top:0}
.wg{display:flex;gap:12px;padding:10px 0;border-top:1px solid var(--linie)}
.wg:first-of-type{border-top:0}
.wg img{width:64px;height:90px;object-fit:cover;border-radius:6px;flex:none;background:var(--flaeche2)}
.wg .t{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.wg .t b,.wg .t span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fort.gross{height:6px;border-radius:3px;background:var(--flaeche2);margin:4px 0}
.fort.gross i{display:block;height:100%;border-radius:3px;background:var(--akzent)}
.aufgabe{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid var(--linie)}
.aufgabe:first-of-type{border-top:0}
.aufgabe>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.tabelle{overflow-x:auto}
.tabelle table{width:100%;border-collapse:collapse}
.tabelle th{text-align:left;font-weight:600;color:var(--text2);padding:6px 8px;white-space:nowrap}
.tabelle td{padding:8px;border-top:1px solid var(--linie);white-space:nowrap}
.protokoll{max-height:340px;overflow-y:auto;font-family:ui-monospace,Consolas,monospace;font-size:.85em;line-height:1.55}
.protokoll span{margin-right:8px}

/* Kopfleiste: Knöpfe mit Text */
.kopfknopf{display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 14px;border-radius:10px;border:1px solid var(--linie);background:var(--flaeche2);color:var(--text);font:inherit;font-weight:600;cursor:pointer;margin-left:8px;white-space:nowrap}
.kopfknopf:hover,.kopfknopf:focus-visible{border-color:var(--akzent);box-shadow:var(--leuchten)}
.kopfknopf .sym{font-size:1.05em}
.kopfknopf.ich{padding-left:5px}
.kopfknopf .punkt{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;color:#fff;font-weight:800}
.kopfknopf .pfeil{opacity:.7}
.kontomenue{display:grid;grid-template-columns:1fr;gap:8px;margin:12px 0}
.kontomenue .knopf{text-align:left}
@media (max-width:760px){.kopfknopf .txt{display:none}.kopfknopf{padding:0 9px;margin-left:4px}.kopfknopf.ich{padding:0 5px}}

.tabelle tr.erkannt td{border-top:0;padding-top:0;white-space:normal;color:var(--text2);font-size:.9em}
.erk{display:inline-block;margin:2px 10px 2px 0;word-break:break-all}

.anmeldelogo{display:block;width:120px;height:120px;margin:0 auto 6px}
#kopf .marke::before{content:"";display:inline-block;width:30px;height:30px;margin-right:8px;vertical-align:-8px;background:url(/logo.png) center/contain no-repeat}

.bibkachel.gruppe{background:linear-gradient(135deg,var(--flaeche2),var(--flaeche))}
.pfad a{color:var(--text2)}

.bibkachel.ziel{outline:3px dashed var(--akzent);outline-offset:3px}

.kontomenue.menue3{grid-template-columns:repeat(3,1fr)}
@media (max-width:640px){.kontomenue.menue3{grid-template-columns:1fr}}

.anfasser{cursor:grab;color:var(--text2);font-size:18px;padding:0 6px 0 0;user-select:none}
tr.ziehbar{cursor:grab}
tr.ziel td{background:color-mix(in srgb,var(--akzent) 22%,transparent)}
tr.gruppenzeile.ziel{outline:2px dashed var(--akzent)}

.avbild{width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block}
.av,.punkt,.benutzerknopf{overflow:hidden}
.avsym{font-size:.95em;line-height:1}
.profil .av .avsym{font-size:56px}
.kopfknopf .punkt .avsym{font-size:18px}
.av.gross{width:150px;height:150px;border-radius:26px;display:grid;place-items:center;font-size:64px;font-weight:800;color:#fff;margin:0 auto}
.av.gross .avsym{font-size:84px}
.av.mittel{width:72px;height:72px;border-radius:16px;display:grid;place-items:center;font-size:34px;font-weight:800;color:#fff}
.av.mittel .avsym{font-size:42px}
.symbolraster{display:grid;grid-template-columns:repeat(auto-fill,minmax(46px,1fr));gap:6px;max-height:230px;overflow-y:auto;padding:2px}
.symbolwahl{font-size:26px;height:46px;border-radius:10px;border:1px solid var(--linie);background:var(--flaeche2);cursor:pointer}
.symbolwahl:hover,.symbolwahl:focus,.symbolwahl.aktiv{outline:2px solid var(--akzent);outline-offset:1px}
.farbraster{display:flex;flex-wrap:wrap;gap:8px}
.farbwahl{width:34px;height:34px;border-radius:10px;border:2px solid var(--linie);cursor:pointer}
.farbwahl:focus,.farbwahl.aktiv{outline:3px solid var(--akzent);outline-offset:2px}
/* Koppeln per QR-Code */
.koppeln { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.koppeln .qr { width: 260px; height: 260px; display: grid; place-items: center; background: #fff; border-radius: 10px; flex: none; }
.koppeln .qr svg { display: block; border-radius: 10px; }
.koppeln .ktext { flex: 1; min-width: 220px; }
.kcode { font-size: 2.1em; font-weight: 700; letter-spacing: .12em; font-family: ui-monospace, Consolas, monospace; color: var(--akzent); }
input.kcode { font-size: 1.6em; text-transform: uppercase; }
/* Player wie GLX Explorer TV: einfarbige Symbole, Bedienfeld als Karte in den Designfarben */
.ikon { width: 1em; height: 1em; display: block; }
#player .sk, #musik .sk { display: inline-flex; align-items: center; justify-content: center; }
#player .sk { font-size: 26px; padding: 9px; color: var(--text); border-radius: 12px; }
#player .sk.gross { font-size: 36px; }
#player .sk:hover, #player .sk:focus-visible { color: var(--akzent); background: color-mix(in srgb, var(--akzent) 16%, transparent); outline: 2px solid var(--akzent); }
#pUnten { left: 3%; right: 3%; bottom: 18px; padding: 12px 20px 10px; color: var(--text); border-radius: 20px;
  background: linear-gradient(color-mix(in srgb, color-mix(in srgb, var(--flaeche2) 90%, var(--akzent)) 94%, transparent), color-mix(in srgb, var(--flaeche) 94%, transparent));
  border: 2px solid var(--akzent); box-shadow: 0 10px 40px rgba(0,0,0,.5), 0 0 18px color-mix(in srgb, var(--akzent) 30%, transparent); }
#pOben { color: #fff; }
#pZeit { color: var(--text2); font-variant-numeric: tabular-nums; }
#pLeiste, #mLeiste { accent-color: var(--akzent); }
#musik .sk { font-size: 22px; padding: 8px; }
#musik .sk.gross { font-size: 30px; }
#pOben .sk { color: #fff; }

/* Fernseher: Anmeldung kompakt, passt ohne Scrollen auf den Bildschirm */
body.tv .mitte { padding: 10px; }
body.tv .anmeldelogo { width: 64px; height: 64px; margin-bottom: 2px; }
body.tv .anmeldung .marke { font-size: 24px; margin-bottom: 10px; }
body.tv .anmeldung h2 { font-size: 20px; margin: 4px 0 8px; }
body.tv .profile { gap: 16px; margin: 6px 0 12px; }
body.tv .profil { width: 120px; font-size: 16px; }
body.tv .profil .av { width: 76px; height: 76px; font-size: 34px; }
body.tv .profil .av .avsym { font-size: 44px; }
body.tv .anmeldung .karte { max-width: 380px !important; padding: 12px 18px; margin-bottom: 8px; }
body.tv .anmeldung label.feld { margin: 6px 0 3px; font-size: 14px; }
body.tv .anmeldung input[type=text], body.tv .anmeldung input[type=password] { padding: 6px 10px; font-size: 16px; }
body.tv .anmeldung .karte p { margin: 6px 0 !important; font-size: 15px; }
body.tv .anmeldung #aLos, body.tv .anmeldung #eLos { width: 100%; justify-content: center; padding: 7px 12px; font-size: 16px; }
body.tv .anmeldung #aHandy { font-size: 15px; padding: 6px 12px; }
body.tv .anmeldung p[style*="margin-top:18px"] { margin-top: 8px !important; }
body.tv input:focus { box-shadow: 0 0 0 2px var(--akzent); }
body.tv .profil { width: 140px; }
/* Fernseher mit offenem Anmeldeformular: links Logo und Profile, rechts das Formular */
body.tv .anmeldung:has(#aForm:not([hidden])) { width: min(900px, 100%) !important; display: grid; grid-template-columns: 1fr 1fr; column-gap: 34px; align-items: center; }
body.tv .anmeldung:has(#aForm:not([hidden])) > * { grid-column: 1; }
body.tv .anmeldung:has(#aForm:not([hidden])) > #aForm { grid-column: 2; grid-row: 1 / span 4; width: 100%; max-width: none !important; margin: 0 !important; align-self: center; }
body.tv .anmeldung:has(#aForm:not([hidden])) > p:last-child { grid-column: 1; }
/* Mit dem Handy anmelden: Code immer einzeilig, am Fernseher kompakt ohne Scrollbalken */
.kcode { white-space: nowrap; }
#popup .fenster:has(.koppeln) { width: min(720px, 100%); }
.koppeln { flex-wrap: nowrap; }
body.tv #popup .fenster:has(.koppeln) { padding: 16px 20px; max-height: none; overflow: visible; }
body.tv #popup .fenster:has(.koppeln) h2 { font-size: 20px; margin-bottom: 8px; }
body.tv .koppeln { gap: 18px; }
body.tv .koppeln .qr { width: 210px; height: 210px; }
body.tv .koppeln .qr svg { width: 210px; height: 210px; }
body.tv .koppeln .ktext p { margin: 4px 0; font-size: 15px; }
body.tv .koppeln .kcode { font-size: 1.5em; letter-spacing: .08em; margin: 6px 0; }
body.tv #popup .knoepfe { margin-top: 10px; }
body.tv #popup .knoepfe .knopf { padding: 6px 12px; font-size: 15px; }

/* ---------- 0.1.7: Icon-Sets ---------- */
.si { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: -0.25em; object-fit: contain; flex: none; }
.si.mono { background: var(--akzent); -webkit-mask: var(--si) center / contain no-repeat; mask: var(--si) center / contain no-repeat; }
.si-glow { display: inline-flex; vertical-align: -0.25em; filter: drop-shadow(0 0 2px var(--akzent)) drop-shadow(0 0 5px var(--akzent)); }
.si-glow .si { vertical-align: 0; }
.si.si-metall { background: linear-gradient(160deg, #ffffff 0%, #c9d3de 30%, #7d8a99 55%, #e9eef3 75%, #8a96a3 100%); }
.si.si-bunt { background: linear-gradient(135deg, #ff4d6d, #ffb03b 35%, #6fdc7d 60%, #18c8ff 80%, #7b4fe0); }
#nav .sym .si, .bibkachel .sym .si { width: 1.3em; height: 1.3em; }
.bibkachel .sym .si { width: 44px; height: 44px; }
.symsets { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.symkarte { border: 2px solid var(--linie); border-radius: 10px; padding: 10px; cursor: pointer; text-align: center; font-size: 13px; background: var(--flaeche); }
.symkarte.aktiv { border-color: var(--akzent); box-shadow: var(--leuchten); }
.symkarte:focus { outline: 3px solid var(--akzent); outline-offset: 2px; }
.symkarte .vorschau { display: flex; justify-content: center; gap: 6px; font-size: 22px; margin-bottom: 6px; min-height: 30px; align-items: center; }
.symkarte .vorschau .si { width: 26px; height: 26px; }
.designkarte:focus { outline: 3px solid var(--akzent); outline-offset: 2px; }

/* ---------- Seitenmenü unten: Testzeit und Konto ---------- */
#nav { display: flex; flex-direction: column; }
#nav .nav-unten { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--linie); }
#nav .nav-ich .punkt { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; overflow: hidden; flex: none; font-size: 15px; }
#nav .nav-ich .punkt img { width: 100%; height: 100%; object-fit: cover; }
#nav .nav-ich .nav-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#nav .nav-ich .pfeil { color: var(--text2); }
#nav .nav-lizenz { color: var(--akzent); font-size: 14px; }
#nav .nav-lizenz.aus { color: var(--gefahr); font-weight: 600; }
#nav .nav-neu { background: var(--akzent); color: var(--akzent-text); border-radius: 10px; font-size: 11px; padding: 1px 7px; margin-left: auto; font-weight: 700; }
.kontomenue { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.kontomenue .knopf { justify-content: flex-start; }

/* ---------- Hinweisband, Lizenz, Update, TMDB ---------- */
.hinweisband { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin: -4px 0 14px; border-radius: 10px; background: var(--flaeche2); border: 1px solid var(--akzent); }
.hinweisband > span { flex: 1; }
.hinweisband.aus { border-color: var(--gefahr); color: var(--gefahr); }
.lzstatus { font-size: 1.15em; font-weight: 700; padding: 10px 14px; border-radius: 10px; background: var(--flaeche2); margin-bottom: 12px; border-left: 4px solid var(--akzent); }
.lzstatus.ok { border-left-color: #3ccf6e; }
.lzstatus.aus { border-left-color: var(--gefahr); color: var(--gefahr); }
.tab.kurz { width: auto; }
.tab.kurz td:first-child { color: var(--text2); padding-right: 24px; }
.upneu { padding: 10px 14px; border-radius: 10px; background: var(--flaeche2); border: 1px solid var(--akzent); margin: 8px 0; }
.upnotiz { white-space: pre-wrap; font-family: inherit; font-size: .92em; color: var(--text2); max-height: 260px; overflow: auto; margin: 8px 0; }
.tmdbstatus { margin: 6px 0 4px; padding: 6px 10px; border-radius: 8px; }
.tmdbstatus.ok { color: #3ccf6e; background: rgba(60, 207, 110, .1); }
.tmdbstatus.nein { color: var(--gefahr); background: rgba(255, 93, 108, .1); }

/* ---------- Hilfe ---------- */
.hilfeinhalt { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hilfeinhalt h2 { width: 100%; }
.hilfeteil { scroll-margin-top: 10px; }
.hilfeteil:focus { outline: 2px solid var(--akzent); }
.hilfetext { line-height: 1.55; }
.hilfetext li { margin: 4px 0; }

/* ---------- Fernseher: Verwaltung kompakt ---------- */
body.tv .karte { padding: 14px 18px; }
body.tv .einst h2 { font-size: 15px; margin: 14px 0 6px; }
body.tv .knopf { padding: 6px 12px; font-size: 15px; }
body.tv .knopf.klein { padding: 4px 9px; font-size: 13px; }
body.tv .reiter button { padding: 7px 12px; font-size: 15px; }
body.tv .tab td, body.tv .tab th { padding: 6px 8px; font-size: 14px; }
body.tv #inhalt h1 { font-size: 24px; margin: 0 0 10px; }
body.tv a:focus, body.tv #nav a:focus, body.tv .sk:focus, body.tv .reiter button:focus, body.tv select:focus, body.tv input[type=checkbox]:focus, body.tv input[type=range]:focus { outline: 3px solid var(--akzent); outline-offset: 2px; }
