/* Große, kontrastreiche Bedienung – bewusst schlicht */
:root {
  --bg: #111111;
  --text: #ffffff;
  --gedimmt: #d0d0d0;
  --akzent: #ffd400;
  --karte: #262626;
  --stopp: #c62828;
  --radius: 28px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 28px;
  line-height: 1.3;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  padding: 16px 16px 0;
}
body.spielt { padding-bottom: 180px; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; }
button:active { transform: scale(0.97); }

.kopf { display: flex; align-items: baseline; gap: 24px; padding: 4px 8px 16px; }
.uhr { font-size: 64px; font-weight: 800; }
.datum { font-size: 34px; color: var(--gedimmt); }

/* Kacheln */
.kacheln {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.kachel {
  min-height: 220px;
  border-radius: var(--radius);
  padding: 24px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  border: 6px solid transparent;
}
.kachel-name { font-size: 64px; font-weight: 900; line-height: 1.05; overflow-wrap: anywhere; }
.kachel-name.lang { font-size: 46px; }
.kachel-unter { font-size: 30px; opacity: 0.9; margin-top: 8px; }
.kachel.aktiv { border-color: var(--akzent); box-shadow: 0 0 0 4px var(--bg) inset; }
.kachel.aktiv .kachel-unter::before { content: "▶ "; }

.mikro {
  margin-top: 24px; width: 100%;
  min-height: 150px;
  border-radius: var(--radius);
  background: var(--akzent); color: #000;
  font-size: 48px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; gap: 24px;
}
.mikro-symbol { font-size: 72px; }
.mikro, .nochmal {
  touch-action: none;              /* langes Drücken: kein Scrollen, kein Menü */
  -webkit-touch-callout: none;
  -webkit-user-select: none; user-select: none;
}
.mikro-text { text-align: center; }
/* Solange gedrückt: rot und pulsierend = "Ich höre zu" */
.mikro.hoert, .nochmal.hoert {
  background: #c62828; color: #fff;
  animation: puls 0.8s infinite alternate;
  transform: scale(0.98);
}
@keyframes puls { to { background: #e53935; } }

/* Suche */
.suche-kopf { display: flex; gap: 16px; flex-wrap: wrap; }
.zurueck, .nochmal {
  min-height: 100px; padding: 0 32px;
  border-radius: var(--radius);
  font-size: 36px; font-weight: 800;
}
.zurueck { background: #444; }
.nochmal { background: var(--akzent); color: #000; flex: 1; }
.suchform { display: flex; gap: 12px; margin-top: 20px; }
.suchform input {
  flex: 1; min-width: 0;
  font: inherit; font-size: 32px;
  padding: 18px 20px; border-radius: 18px; border: 3px solid #666;
  background: #000; color: #fff;
}
.suchform button { padding: 0 28px; border-radius: 18px; background: #444; font-weight: 700; }
.status { font-size: 34px; color: var(--akzent); min-height: 1.3em; }

.vorlesen {
  width: 100%; min-height: 100px; margin-bottom: 20px;
  border-radius: var(--radius);
  background: #1565c0; color: #fff;
  font-size: 40px; font-weight: 800;
}
.treffer { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.treffer li button {
  width: 100%; text-align: left;
  background: var(--karte);
  border-radius: var(--radius);
  padding: 24px 28px;
  border: 4px solid #444;
}
.treffer li button.aktiv { border-color: var(--akzent); }
.t-titel { font-size: 38px; font-weight: 800; }
.t-meta { font-size: 28px; color: var(--akzent); margin-top: 6px; }
.t-reihe { font-size: 26px; color: var(--gedimmt); margin-top: 4px; }

/* Spieler */
.spieler {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: #000; border-top: 4px solid var(--akzent);
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 16px;
}
.spieler-text { flex: 1; min-width: 0; }
.spieler-label { font-size: 24px; color: var(--gedimmt); }
.spieler-titel { font-size: 36px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stopp {
  min-height: 130px; min-width: 260px;
  border-radius: var(--radius);
  background: var(--stopp); font-size: 48px; font-weight: 900;
}

@media (max-width: 600px) {
  body { font-size: 22px; }
  .uhr { font-size: 44px; } .datum { font-size: 24px; }
  .kacheln { grid-template-columns: 1fr; }
  .kachel { min-height: 150px; } .kachel-name { font-size: 48px; }
  .mikro { font-size: 34px; min-height: 120px; }
  .stopp { min-width: 150px; min-height: 100px; font-size: 34px; }
  .zurueck, .nochmal { font-size: 26px; min-height: 80px; padding: 0 18px; }
  .t-titel { font-size: 28px; }
}
