/* 33 RPM – helles Vintage-Design: Creme, Schwarz, Petrol */

@font-face { font-family: "Fraunces"; font-weight: 700; font-display: swap; src: url("/fonts/fraunces-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 900; font-display: swap; src: url("/fonts/fraunces-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Courier Prime"; font-weight: 400; font-display: swap; src: url("/fonts/courier-prime-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Courier Prime"; font-weight: 700; font-display: swap; src: url("/fonts/courier-prime-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #F3EBDD;          /* Creme wie altes Papier */
  --flaeche: #FBF6EC;     /* Karten, Eingabefelder */
  --flaeche-2: #E6DAC4;   /* Chips, sekundäre Flächen */
  --linie: #DCCFB8;
  --text: #1D1B18;        /* Plattenschwarz */
  --text-2: #6B6257;
  --akzent: #2F6F73;      /* Petrol (Label-Farbe) */
  --akzent-hell: rgba(47, 111, 115, 0.12);
  --akzent-text: #F3EBDD;
  --gefahr: #B23A26;
  --ok: #3E7A45;
  --radius: 10px;
  --nav-h: 64px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --mono: "Courier Prime", "Courier New", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 16px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--akzent); }
[hidden] { display: none !important; }

main { max-width: 1100px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 16px) 16px 24px; }

/* Kleine Grossbuchstaben-Zeilen in Schreibmaschinenschrift */
.etikett { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }

/* ---------- Kopf ---------- */
.kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 14px; }
.kopf h1 { margin: 0; font-family: var(--serif); font-weight: 900; font-size: 34px; letter-spacing: -0.02em; line-height: 1.05; }
.kopf .zahl { font-family: var(--mono); color: var(--text-2); font-size: 13px; letter-spacing: 0.04em; white-space: nowrap; }

.suche {
  width: 100%; padding: 11px 14px; border-radius: var(--radius);
  background: var(--flaeche); border: 1px solid var(--linie); outline: none;
}
.suche:focus { border-color: var(--akzent); box-shadow: 0 0 0 3px var(--akzent-hell); }

/* ---------- Raster ---------- */
.raster {
  display: grid; gap: 18px 14px; margin-top: 16px;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.karte { display: block; text-decoration: none; color: inherit; min-width: 0; }
.karte .cover { aspect-ratio: 1; }
.karte .t { margin-top: 8px; font-family: var(--serif); font-weight: 700; font-size: 15px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.karte .k { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.cover {
  width: 100%; border-radius: 4px; background: var(--flaeche-2); object-fit: cover; display: block;
  box-shadow: 0 1px 2px rgba(29,27,24,0.12), 0 8px 20px rgba(29,27,24,0.14);
}
/* Platzhalter ohne Cover: schwarze Platte mit Petrol-Label */
.cover.leer {
  background:
    radial-gradient(circle, var(--akzent) 0 22%, transparent 22.5%),
    repeating-radial-gradient(circle, #1D1B18 0 3px, #2a2622 3px 4px);
  box-shadow: none; border-radius: 50%;
}

.leerzustand { grid-column: 1 / -1; text-align: center; color: var(--text-2); padding: 48px 16px; }
.leerzustand .gross { font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--text); margin-bottom: 14px; }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px;
  padding: 10px 16px; border-radius: var(--radius); border: 1px solid var(--linie);
  background: var(--flaeche); cursor: pointer; text-decoration: none; color: var(--text); font-weight: 600;
}
.knopf.primaer { background: var(--akzent); color: var(--akzent-text); border-color: var(--akzent); }
.knopf.gefahr { color: var(--gefahr); }
.knopf.gefahr.sicher { background: var(--gefahr); color: #fff; border-color: var(--gefahr); }
.knopf.klein { padding: 7px 12px; font-size: 14px; min-height: 38px; }
.knopf:disabled { opacity: 0.5; cursor: default; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Detail ---------- */
.zurueck { display: inline-block; margin-bottom: 14px; color: var(--text-2); text-decoration: none; font-family: var(--mono); font-size: 14px; }
.detail { display: grid; gap: 24px; }
@media (min-width: 760px) { .detail { grid-template-columns: 360px 1fr; align-items: start; } }
.detail h2 { margin: 4px 0 0; font-family: var(--serif); font-weight: 900; font-size: 32px; line-height: 1.1; letter-spacing: -0.015em; }
.detail .kuenstler { font-family: var(--mono); font-weight: 700; color: var(--akzent); text-transform: uppercase; letter-spacing: 0.1em; font-size: 14px; }
.meta { color: var(--text-2); font-size: 14px; margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chip { font-size: 12px; padding: 4px 10px; border-radius: 99px; background: var(--flaeche-2); color: var(--text); }
.chip.akzent { background: var(--akzent-hell); color: var(--akzent); font-weight: 600; }

.block { margin-top: 26px; }
.block h3 { margin: 0 0 8px; font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }
.tracks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie); }
.tracks li { display: grid; grid-template-columns: 38px 1fr auto; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--linie); font-size: 15px; }
.tracks li.ueberschrift { grid-template-columns: 1fr; font-family: var(--mono); color: var(--text-2); font-size: 13px; font-weight: 700; }
.tracks .pos, .tracks .dauer { font-family: var(--mono); color: var(--text-2); }

.feld { display: grid; gap: 6px; margin-top: 12px; }
.feld label { font-size: 13px; color: var(--text-2); }
.feld select, .feld textarea, .feld input {
  width: 100%; padding: 10px 12px; border-radius: var(--radius);
  background: var(--flaeche); border: 1px solid var(--linie); outline: none;
}
.feld select:focus, .feld textarea:focus { border-color: var(--akzent); }
.feld textarea { min-height: 80px; resize: vertical; }

/* ---------- Scannen ---------- */
.kamera {
  position: relative; width: 100%; max-width: 520px; margin: 0 auto; aspect-ratio: 4 / 3;
  background: #1D1B18; color: #F3EBDD; border-radius: var(--radius); overflow: hidden;
}
.kamera video { width: 100%; height: 100%; object-fit: cover; display: block; }
.kamera .rahmen {
  position: absolute; left: 12%; right: 12%; top: 34%; bottom: 34%;
  border: 2px solid #F3EBDD; border-radius: 8px; box-shadow: 0 0 0 9999px rgba(29,27,24,0.45);
}
.kamera .hinweis { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; }
.kamera.aus { display: grid; place-items: center; padding: 16px; text-align: center; background: var(--flaeche-2); color: var(--text-2); }
.kamera.aus strong { color: var(--text); font-family: var(--mono); }
.scan-status { text-align: center; margin: 12px 0; color: var(--text-2); min-height: 1.4em; }

.manuell { display: grid; grid-template-columns: 1fr auto; gap: 8px; max-width: 520px; margin: 18px auto 0; }
.manuell select { grid-column: 1 / -1; }
.manuell select, .manuell input { padding: 10px 12px; border-radius: var(--radius); background: var(--flaeche); border: 1px solid var(--linie); min-width: 0; min-height: 44px; }

.treffer { list-style: none; margin: 18px auto 0; padding: 0; max-width: 720px; display: grid; gap: 10px; }
.treffer li { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 10px; border-radius: var(--radius); background: var(--flaeche); border: 1px solid var(--linie); }
.treffer .cover { width: 72px; height: 72px; }
.treffer .titel { font-family: var(--serif); font-weight: 700; line-height: 1.25; }
.treffer .knopfreihe { margin-top: 8px; }
.marke { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 99px; margin-top: 6px; font-weight: 600; }
.marke.da { background: rgba(62,122,69,0.14); color: var(--ok); }
.marke.album { background: var(--akzent-hell); color: var(--akzent); }

/* ---------- Anmeldung ---------- */
.anmeldung { max-width: 340px; margin: 10vh auto 0; text-align: center; }
.anmeldung .logo { width: 132px; height: 132px; display: block; margin: 0 auto 18px; }
.anmeldung h1 { margin: 0; font-family: var(--serif); font-weight: 900; font-size: 44px; letter-spacing: -0.02em; line-height: 1; }
.anmeldung .etikett { margin-top: 8px; }
.anmeldung form { display: grid; gap: 10px; margin-top: 28px; text-align: left; }
.anmeldung input { padding: 12px 14px; border-radius: var(--radius); background: var(--flaeche); border: 1px solid var(--linie); outline: none; }
.anmeldung input:focus { border-color: var(--akzent); }
.fehler { color: var(--gefahr); font-size: 14px; min-height: 1.3em; }

/* ---------- Navigation ---------- */
#nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(243,235,221,0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--linie);
}
#nav a { display: grid; place-items: center; align-content: center; gap: 3px; color: var(--text-2); text-decoration: none; font-size: 11px; font-family: var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
#nav a.aktiv { color: var(--akzent); font-weight: 700; }
#nav svg { width: 24px; height: 24px; }

#toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 20;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 12px);
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 99px; font-size: 14px;
  max-width: calc(100% - 32px); box-shadow: 0 6px 24px rgba(29,27,24,0.25);
}

.fuss { text-align: center; margin-top: 44px; }
.fuss button { background: none; border: none; color: var(--text-2); text-decoration: underline; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; }

/* ---------- Offline, Hinweise, Updates ---------- */
#offline {
  position: fixed; top: calc(env(safe-area-inset-top) + 8px); left: 50%; transform: translateX(-50%); z-index: 30;
  background: var(--text); color: var(--bg); font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em;
  padding: 6px 12px; border-radius: 99px;
}
.hinweis-karte {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  padding: 12px 14px; margin-bottom: 18px; border-radius: var(--radius);
  background: var(--akzent-hell); border: 1px solid rgba(47,111,115,0.25);
}
.hinweis-karte strong { display: block; font-family: var(--serif); font-size: 17px; }
.hinweis-karte span { font-size: 14px; color: var(--text-2); }

.update.gross {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px; background: var(--gefahr); color: #fff; font-weight: 600;
}
.update.gross button { background: #fff; color: var(--gefahr); border: 0; border-radius: 99px; padding: 6px 14px; font-weight: 700; cursor: pointer; }
.update.klein {
  position: fixed; z-index: 40; left: 16px; right: 16px; margin: 0 auto; max-width: 520px;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 12px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-radius: 14px; background: var(--flaeche); border: 1px solid var(--linie);
  box-shadow: 0 10px 30px rgba(29,27,24,0.18);
}
.update.klein strong { display: block; font-family: var(--serif); }
.update.klein span { font-size: 13px; color: var(--text-2); }

/* ---------- Installieren ---------- */
.installieren { max-width: 560px; }
.installieren h1 { margin: 6px 0 8px; font-family: var(--serif); font-weight: 900; font-size: 34px; letter-spacing: -0.02em; line-height: 1.05; }
.schritte { counter-reset: s; list-style: none; margin: 22px 0; padding: 0; display: grid; gap: 10px; }
.schritte li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: start; padding: 12px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); }
.schritte li::before { content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--text); color: var(--bg); font-family: var(--mono); font-weight: 700; font-size: 14px; }
.andere summary { cursor: pointer; color: var(--akzent); font-weight: 600; padding: 8px 0; }
.andere h3 { margin: 18px 0 0; }

.fuss { display: grid; gap: 6px; }
.fuss a { color: var(--text-2); }
.nav-marke { display: none !important; }
.kamera.aus p { margin: 0 0 12px; }

/* ---------- Mac / grosse Bildschirme: Navigation oben ---------- */
@media (min-width: 900px) and (pointer: fine) {
  body { padding-bottom: 0; padding-top: 60px; }
  #nav {
    top: 0; bottom: auto; height: 60px; padding: 0 max(24px, calc((100vw - 1100px) / 2 + 16px));
    display: flex; align-items: center; gap: 28px; border-top: 0; border-bottom: 1px solid var(--linie);
  }
  #nav a { display: flex; align-items: center; gap: 8px; font-size: 12px; }
  #nav a svg { width: 20px; height: 20px; }
  .nav-marke { display: flex !important; margin-right: auto; color: var(--text) !important; font-family: var(--serif) !important; font-weight: 900; font-size: 22px !important; letter-spacing: -0.01em !important; text-transform: none !important; }
  .nav-marke svg { width: 28px !important; height: 28px !important; }
  #offline { top: 70px; }
  .update.gross { padding-top: 10px; }
  .update.klein { bottom: 24px; right: 24px; left: auto; }
  #toast { bottom: 24px; }
  .raster { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 26px 20px; }
}

.nav-marke circle:last-child { fill: var(--akzent); }

/* ---------- Hinzufügen ---------- */
.segment {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; max-width: 520px; margin: 0 auto 16px;
  background: var(--flaeche-2); border-radius: 12px;
}
.segment button {
  min-height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--text-2);
  font-weight: 600; cursor: pointer;
}
.segment button[aria-selected="true"] { background: var(--flaeche); color: var(--text); box-shadow: 0 1px 3px rgba(29,27,24,0.12); }
.tipp { max-width: 520px; margin: 10px auto 0; font-size: 13px; color: var(--text-2); text-align: center; }
.suchform { display: grid; grid-template-columns: 1fr auto; gap: 8px; max-width: 520px; margin: 0 auto; }
.suchform input { padding: 10px 14px; min-height: 46px; border-radius: var(--radius); background: var(--flaeche); border: 1px solid var(--linie); outline: none; min-width: 0; }
.suchform input:focus { border-color: var(--akzent); box-shadow: 0 0 0 3px var(--akzent-hell); }

.treffer-kopf { max-width: 720px; margin: 0 auto; }
.zurueck-knopf { background: none; border: 0; padding: 6px 0; color: var(--akzent); font-weight: 600; cursor: pointer; }
.album-kopf { display: grid; margin: 4px 0 4px; }
.album-kopf strong { font-family: var(--serif); font-size: 22px; line-height: 1.15; }
.album-kopf span { color: var(--text-2); font-size: 14px; }
.treffer li.album { display: block; padding: 0; }
.album-knopf {
  width: 100%; display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center;
  padding: 10px; border: 0; background: none; text-align: left; cursor: pointer; border-radius: var(--radius);
}
.album-knopf:hover { background: var(--akzent-hell); }
.album-knopf > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.album-knopf .marke { justify-self: start; }
.pfeil { color: var(--text-2); font-size: 24px; line-height: 1; }

/* ---------- Mehr ---------- */
.mehr { max-width: 720px; }
.stat-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .stat-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stat { display: grid; gap: 2px; padding: 14px; border-radius: var(--radius); background: var(--flaeche); border: 1px solid var(--linie); }
.stat b { font-family: var(--serif); font-weight: 900; font-size: 34px; line-height: 1; color: var(--akzent); font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--text-2); }
.stat-notizen { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.stat-notizen li { position: relative; padding-left: 18px; font-size: 15px; }
.stat-notizen li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 8px; height: 8px; border-radius: 50%; background: var(--akzent); }
.abschnitt { margin: 30px 0 8px; font-weight: 700; }
.menue { border-radius: var(--radius); background: var(--flaeche); border: 1px solid var(--linie); overflow: hidden; }
.menue-zeile {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px;
  padding: 12px 14px; border: 0; border-top: 1px solid var(--linie); background: none; color: var(--text);
  text-decoration: none; text-align: left; font: inherit; cursor: default;
}
.menue-zeile:first-child { border-top: 0; }
a.menue-zeile, button.menue-zeile { cursor: pointer; }
a.menue-zeile:hover, button.menue-zeile:hover { background: var(--akzent-hell); }
.menue-zeile > span:first-child { display: grid; gap: 2px; }
.menue-zeile small { color: var(--text-2); font-size: 13px; }
.menue-zeile.spalte { flex-direction: column; align-items: stretch; }
.menue-zeile .knopfreihe { flex-wrap: nowrap; }
.farben { display: flex; flex-wrap: wrap; gap: 8px; }
.farbe {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px 6px 8px;
  border-radius: 99px; border: 1px solid var(--linie); background: var(--bg); cursor: pointer; font-size: 14px;
}
.farbe i { width: 20px; height: 20px; border-radius: 50%; }
.farbe[aria-checked="true"] { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); font-weight: 700; }
.mehr .fuss { margin-top: 30px; }

.schmal { max-width: 420px; }
.seitentitel { margin: 0 0 8px; font-family: var(--serif); font-weight: 900; font-size: 32px; letter-spacing: -0.02em; }
.formular { display: grid; gap: 4px; margin-top: 10px; }
.formular .knopf { margin-top: 6px; }

/* ---------- Konto: Anmelden, Code, Einladung ---------- */
.logo .label { fill: var(--akzent); }
.anmeldung .logo.klein { width: 84px; height: 84px; }
.anmeldung form { gap: 4px; }
.anmeldung form .meta { margin: 0 0 6px; text-align: left; }
.anmeldung form .knopf.primaer { margin-top: 8px; min-height: 48px; }
.anmeldung .feld input { padding: 12px 14px; }
.anmeldung .tipp { margin-top: 6px; }
.pw-feld { position: relative; }
.pw-feld input { padding-right: 48px !important; }
.auge {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px;
  display: grid; place-items: center; border: 0; background: none; color: var(--text-2); cursor: pointer; border-radius: 8px;
}
.auge svg { width: 20px; height: 20px; }
.auge:hover { color: var(--text); }
.link-knopf { margin: 6px auto 0; display: block; background: none; border: 0; color: var(--akzent); font-weight: 600; cursor: pointer; padding: 8px; }
.code-box {
  font-family: var(--mono); font-weight: 700; font-size: 22px; letter-spacing: 0.08em; text-align: center;
  padding: 16px; margin: 6px 0; border-radius: var(--radius); background: var(--flaeche); border: 1px dashed var(--akzent);
  word-break: break-all; user-select: all; -webkit-user-select: all;
}
.code-box.klein { font-size: 13px; letter-spacing: 0; font-weight: 400; text-align: left; }
.knopfreihe.zwei > * { flex: 1; }
.knopfreihe.ende { justify-content: flex-end; margin-top: 12px; }
.haken { display: flex; align-items: center; gap: 10px; margin: 12px 0 4px; font-size: 15px; cursor: pointer; }
.haken input { width: 22px; height: 22px; accent-color: var(--akzent); }
.anmeldung .formular { text-align: left; }

/* ---------- Dialog ---------- */
.dialog-hintergrund {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: end center;
  background: rgba(29,27,24,0.4); padding: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom));
}
@media (min-width: 640px) { .dialog-hintergrund { place-items: center; } }
.dialog {
  width: 100%; max-width: 460px; max-height: 85vh; overflow: auto; padding: 18px; border-radius: 16px;
  background: var(--bg); box-shadow: 0 20px 50px rgba(29,27,24,0.3);
}
.dialog-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.dialog-kopf h2 { margin: 0; font-family: var(--serif); font-weight: 900; font-size: 22px; }
.schliessen { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--flaeche-2); font-size: 22px; line-height: 1; cursor: pointer; color: var(--text); }
.dialog .menue { margin-top: 10px; }

/* ---------- Mehr: Ergänzungen ---------- */
.menue-zeile.rot b { color: var(--gefahr); }
.punkt { width: 10px; height: 10px; border-radius: 50%; background: var(--akzent); flex: none; }
.tipp.links { text-align: left; margin-left: 0; }
.knopf.klein.gefahr.sicher { white-space: normal; }

/* ---------- Textseiten (Datenschutz) ---------- */
.text-seite { max-width: 640px; }
.text-seite h2 { font-family: var(--serif); font-size: 20px; margin: 26px 0 6px; }
.text-seite p { margin: 0 0 10px; }
.anmeldung h1.seitentitel { font-size: 28px; line-height: 1.15; margin-top: 4px; overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }

/* ---------- Tracklist nach Seiten ---------- */
.seiten { display: grid; gap: 12px; }
@media (min-width: 1100px) { .seiten { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.seite { border-radius: var(--radius); background: var(--flaeche); border: 1px solid var(--linie); padding: 4px 14px 6px; }
.seite header { display: flex; align-items: center; gap: 10px; padding: 10px 0 8px; }
.seite-buchstabe {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--text); color: var(--bg); font-family: var(--serif); font-weight: 900; font-size: 18px;
  box-shadow: inset 0 0 0 5px var(--text), inset 0 0 0 7px var(--akzent);
}
.seite-name { display: grid; font-family: var(--serif); font-weight: 700; font-size: 17px; line-height: 1.1; }
.seite-name small { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.seite-info { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--text-2); white-space: nowrap; }
.seite .tracks { border-top: 1px solid var(--linie); }
.seite .tracks li:last-child { border-bottom: 0; }
.seite .tracks li { grid-template-columns: 26px 1fr auto; }

/* ---------- Navigation: Plus in der Mitte ---------- */
#nav a.nav-plus svg {
  width: 32px; height: 32px; margin: -4px 0; padding: 6px; border-radius: 50%;
  background: var(--akzent); color: var(--akzent-text);
}
#nav a.nav-plus { color: var(--text-2); }
#nav a.nav-plus.aktiv { color: var(--akzent); }
@media (min-width: 900px) and (pointer: fine) {
  #nav a.nav-plus svg { width: 24px !important; height: 24px !important; margin: 0; padding: 4px; }
}

/* ---------- Zufall ---------- */
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.filter-chip {
  min-height: 36px; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--linie);
  background: var(--flaeche); color: var(--text); font-size: 14px; cursor: pointer;
}
.filter-chip[aria-pressed="true"] { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); font-weight: 600; }
.zufall { max-width: 420px; margin: 0 auto; text-align: center; }
.zufall-platte { display: grid; justify-items: center; gap: 4px; text-decoration: none; color: inherit; }
.zufall-cover { position: relative; width: min(78vw, 340px); aspect-ratio: 1; margin-bottom: 14px; }
.zufall-cover .cover { width: 100%; height: 100%; aspect-ratio: 1; }
.zufall-cover.start span {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 900; font-size: 44px; color: var(--akzent-text);
}
.zufall-cover.start .cover.leer { animation: drehen 6s linear infinite; }
@keyframes drehen { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .zufall-cover.start .cover.leer { animation: none; } }
.zufall-platte .kuenstler { font-family: var(--mono); font-weight: 700; color: var(--akzent); text-transform: uppercase; letter-spacing: 0.1em; font-size: 13px; min-height: 1em; }
.zufall-platte .titel { font-family: var(--serif); font-weight: 900; font-size: 28px; line-height: 1.1; }
.knopfreihe.mitte { justify-content: center; margin-top: 18px; }
.knopf.aus { opacity: 0.4; pointer-events: none; }

/* ---------- Cover wechseln, Pressung ändern ---------- */
.detail-cover { display: grid; justify-items: center; gap: 4px; }
.cover-knopf { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 4px; }
.cover-knopf:focus-visible { outline: 3px solid var(--akzent); outline-offset: 3px; }
.cover-wahl h3 { margin: 14px 0 8px; font-weight: 700; }
.cover-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cover-option { padding: 0; border: 2px solid transparent; border-radius: 6px; background: var(--flaeche-2); cursor: pointer; aspect-ratio: 1; overflow: hidden; }
.cover-option img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-option:hover, .cover-option:focus-visible { border-color: var(--akzent); }
.foto-wahl { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--linie); }
.foto-knopf { width: 100%; }
.ersetzen-info { margin: -6px 0 16px; padding: 10px 12px; border-radius: var(--radius); background: var(--akzent-hell); color: var(--text); }

/* ---------- Filter ---------- */
.suchzeile { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.filter-knopf {
  display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; min-height: 44px; border-radius: var(--radius);
  border: 1px solid var(--linie); background: var(--flaeche); color: var(--text); font-weight: 600; cursor: pointer;
}
.filter-knopf svg { width: 20px; height: 20px; }
.filter-knopf.an { border-color: var(--akzent); color: var(--akzent); }
.filter-zahl { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--akzent); color: var(--akzent-text); font-size: 12px; display: grid; place-items: center; }
.filterpanel { margin-top: 10px; padding: 14px; border-radius: var(--radius); background: var(--flaeche); border: 1px solid var(--linie); }
.filter-gruppe + .filter-gruppe { margin-top: 14px; }
.filter-gruppe h3 { margin: 0 0 8px; font-weight: 700; }
.filterpanel .filter-chips { margin: 0; }
.filterpanel .knopfreihe.ende { margin-top: 16px; }
.aktive-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.aktive-filter:empty { display: none; }
.aktiv-chip { min-height: 30px; padding: 4px 10px; border-radius: 99px; border: 0; background: var(--akzent-hell); color: var(--akzent); font-size: 13px; font-weight: 600; cursor: pointer; }
.aktiv-chip.neutral { background: var(--flaeche-2); color: var(--text-2); cursor: default; display: inline-flex; align-items: center; }
.link-knopf.inline { display: inline; margin: 0; padding: 0 4px; }
@media (max-width: 380px) { .filter-knopf span:not(.filter-zahl) { display: none; } }
