/* Gästeseite im Rolling-Bowl-Look: Farben und Schrift wie bowling-oelsnitz.de */
:root {
  --grund: #140607;
  --grund-2: #1f0a0b;
  --flaeche: rgba(255, 255, 255, 0.06);
  --flaeche-2: rgba(255, 255, 255, 0.1);
  --linie: rgba(255, 255, 255, 0.13);
  --text: #ffffff;
  --text-2: #ecdcdc;
  --rot: #b1131f;
  --rot-hell: #e3262f;
  --rot-dunkel: #760709;
  --orange: #e24724;
  --gold: #f9cb72;
  --gruen: #4ade80;
  --radius: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font: 17px/1.1 "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 50% -120px, rgba(177, 19, 31, 0.75), transparent 70%),
    radial-gradient(600px 300px at 100% 100%, rgba(118, 7, 9, 0.45), transparent 70%),
    var(--grund);
  background-attachment: fixed;
}

.seite {
  max-width: 560px;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom));
}

/* ---------- Kopf ---------- */
.kopf { text-align: center; padding: 6px 0 18px; }
.logo { width: 150px; height: auto; display: block; margin: 0 auto 6px; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.45)); }
h1 { margin: 0; line-height: 0; }
.titel { width: min(300px, 82%); height: auto; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.5)); }
.unterzeile { margin: 10px auto 0; max-width: 360px; color: var(--text-2); font-weight: 500; }

/* ---------- Bausteine ---------- */
.karte {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.knopf {
  appearance: none;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--rot-hell), var(--rot));
  box-shadow: 0 6px 18px rgba(177, 19, 31, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: #fff;
  font: inherit;
  font-weight: 800;
  padding: 10px 16px;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.08s ease, filter 0.15s ease;
}
.knopf:active { transform: scale(0.97); filter: brightness(0.92); }
.knopf:disabled { background: var(--flaeche-2); box-shadow: none; color: var(--text-2); cursor: default; transform: none; }
.knopf.gross { width: 100%; padding: 16px 20px; font-size: 19px; letter-spacing: 0.01em; }

.hinweis { color: var(--text-2); font-size: 15px; margin: 12px 0 0; text-align: center; }

/* ---------- Start ---------- */
.schritte { list-style: none; counter-reset: s; margin: 0 0 20px; padding: 0; }
.schritte li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: center; padding: 8px 0; }
.schritte li::before {
  content: counter(s);
  grid-row: span 2;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--rot); color: #fff; font-weight: 900; font-size: 18px;
  box-shadow: 0 0 0 4px rgba(177, 19, 31, 0.25);
}
.schritte b { font-weight: 800; margin-bottom: 3px; }
.schritte span { color: var(--text-2); font-size: 15px; }

.meldung p { margin: 0 0 16px; font-size: 18px; font-weight: 600; text-align: center; }

/* ---------- Läuft gerade ---------- */
.laeuft {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(90deg, rgba(249, 203, 114, 0.14), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(249, 203, 114, 0.35);
  border-radius: var(--radius);
  padding: 10px 14px 10px 10px;
  margin-bottom: 16px;
}
.laeuft img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; background: var(--flaeche-2); flex: none; }
.laeuft div { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.laeuft strong, .laeuft div span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.laeuft div span:last-child { color: var(--text-2); font-size: 15px; }
.welle { display: flex; gap: 3px; align-items: flex-end; height: 18px; flex: none; }
.welle i { width: 4px; background: var(--gold); border-radius: 2px; animation: welle 1s ease-in-out infinite; }
.welle i:nth-child(2) { animation-delay: -0.3s; }
.welle i:nth-child(3) { animation-delay: -0.6s; }
@keyframes welle { 0%, 100% { height: 5px; } 50% { height: 18px; } }
@media (prefers-reduced-motion: reduce) { .welle i { animation: none; height: 12px; } }

/* ---------- Rückmeldungen ---------- */
.erfolg {
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.5);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 14px;
  font-weight: 500;
}
.erfolg strong { color: var(--gruen); font-weight: 800; }

.sperre {
  background: rgba(249, 203, 114, 0.1);
  border: 1px solid rgba(249, 203, 114, 0.45);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 14px;
  text-align: center;
  font-weight: 600;
}
.sperre strong { color: var(--gold); font-weight: 900; font-variant-numeric: tabular-nums; }

/* ---------- Suche ---------- */
.suche { display: block; position: sticky; top: 0; z-index: 2; padding: 8px 0 10px; background: var(--grund); }
.suche::before { content: ""; position: absolute; inset: 0 -16px; background: var(--grund); z-index: -1; }
.suche input {
  width: 100%;
  font: inherit;
  font-size: 18px;
  font-weight: 500;
  color: #1d1a1a;
  background: #fff;
  border: 3px solid transparent;
  border-radius: 14px;
  padding: 14px 18px 14px 50px;
  outline: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.suche input:focus { border-color: var(--rot-hell); }
.suche input::placeholder { color: #6b6262; }
.lupe { position: absolute; left: 18px; top: 50%; width: 22px; height: 22px; margin-top: -11px; fill: none; stroke: var(--rot); stroke-width: 2.6; stroke-linecap: round; pointer-events: none; }

.treffer { list-style: none; margin: 4px 0 0; padding: 0; }
.treffer li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  margin-bottom: 8px;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 14px;
}
.treffer img, .treffer .ohne-bild { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; background: var(--flaeche-2); flex: none; }
.treffer .text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.treffer .text strong, .treffer .text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.treffer .text strong { font-weight: 700; }
.treffer .text span { color: var(--text-2); font-size: 15px; }
.treffer .knopf { flex: none; padding: 10px 14px; font-size: 15px; }

/* ---------- Sonstiges ---------- */
.toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  max-width: 528px;
  margin: 0 auto;
  background: #fff;
  color: #1d1a1a;
  border-left: 6px solid var(--rot);
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  transform: translateY(160%);
  transition: transform 0.25s ease;
  z-index: 10;
}
.toast.sichtbar { transform: translateY(0); }

.fuss { color: var(--text-2); opacity: 0.85; font-size: 12.5px; text-align: center; margin-top: 30px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

[hidden] { display: none !important; }
