/*
 * Bauplan Abschnitt 07b (Design-Standard): Host-Panel behält die eigene,
 * WCAG-geprüfte Rose/Amber-Hell-Palette statt BrandBoost-Indigo — Rose 500
 * #E23670 / Rose-Ink #8F1B42, Amber 500 #F59E0B / Amber-Ink #92400E,
 * Grund #FBFAF9, Text #201713, Inter statt Fraunces (Fraunces bleibt dem
 * Kiosk-Großmoment vorbehalten).
 */
:root {
  --bg: #fbfaf9;
  --surface: #ffffff;
  --border: #e7e2dd;
  --text: #201713;
  --text-secondary: #6b5f58;
  --rose: #e23670;
  --rose-ink: #8f1b42;
  --amber: #f59e0b;
  --amber-ink: #92400e;
  --error: #dc2626;
  --success: #16a34a;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

/* button/.btn setzen unten explizit display:inline-block — als Autoren-
   Regel schlägt das sonst das native [hidden] auf Buttons tot (gefunden
   bei public/gallery.html: der "Suche zurücksetzen"-Button blieb trotz
   hidden-Attribut sichtbar). Betraf bisher nur Buttons, da hidden im
   restlichen Code ausschließlich auf div/p liegt. */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
}

.shell {
  max-width: 640px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.shell.wide {
  max-width: 880px;
}

.brand {
  font-weight: 700;
  font-size: 20px;
  color: var(--rose-ink);
  margin: 0 0 2rem;
}

h1 {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 6px;
}

.subtitle {
  color: var(--text-secondary);
  margin: 0 0 1.75rem;
  font-size: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--text-secondary);
}

input, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  margin-bottom: 1.1rem;
}

input:focus, select:focus {
  outline: 2px solid var(--rose);
  outline-offset: 1px;
}

button, .btn {
  display: inline-block;
  background: linear-gradient(90deg, var(--rose), var(--rose-ink));
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  text-decoration: none;
}

button.secondary, .btn.secondary {
  background: var(--surface);
  color: var(--rose-ink);
  border: 1px solid var(--rose);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.error-text {
  color: var(--error);
  font-size: 13.5px;
  margin: -0.6rem 0 1rem;
}

.hint {
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 1.25rem;
}

.hint a {
  color: var(--rose-ink);
  font-weight: 600;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--text);
}

.event-item:hover {
  border-color: var(--rose);
}

.event-name {
  font-weight: 600;
}

.event-meta {
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 3px;
}

.empty-state {
  text-align: center;
  color: var(--text-secondary);
  padding: 3rem 1rem;
  border: 1px dashed var(--border);
  border-radius: 14px;
}

.slug-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fdf2f6;
  border: 1px solid #f6c9d8;
  border-radius: 10px;
  padding: 10px 14px;
  font-family: ui-monospace, "SFMono-Regular", monospace;
  font-size: 14px;
  color: var(--rose-ink);
  margin: 1rem 0;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.mt-0 {
  margin-top: 0;
}

.mt-lg {
  margin-top: 1.5rem;
}

.ml-10 {
  margin-left: 10px;
}

.actions-row {
  display: flex;
  gap: 10px;
}

.field-note {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* Checkbox+Text-Labels (z.B. Admin-Paket-Feature-Auswahl) dürfen die
   generische label{display:block}-Regel oben nicht erben — die ist für
   eigenständige Feld-Überschriften gedacht, nicht für ein Label, das
   direkt neben seiner Checkbox in einer Zeile stehen soll. */
.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 400;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 1.1rem;
}

/* Bauplan Abschnitt 03 (Mosaic-Wand): Kachel-Raster, von Host-Vorschau
   (public/host/mosaic.js) UND Gast-Wand (public/mosaic.js) genutzt —
   deshalb hier statt in einer feature-eigenen CSS-Datei, wie schon
   .checkbox-group oben für Admin+Host gilt. */
.mosaic-grid {
  display: grid;
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.mosaic-tile {
  aspect-ratio: 1;
  background-color: #efe9e4;
  background-size: cover;
  background-position: center;
  position: relative;
}

.mosaic-tile.is-prize-tile::after {
  content: "★";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  font-size: 0.9em;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
}

.mosaic-upload-result {
  text-align: center;
  padding: 1.5rem 1rem;
}

.mosaic-prize-banner {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--amber);
  color: var(--amber-ink);
  border-radius: 10px;
  padding: 1rem;
  margin-top: 1rem;
  font-weight: 600;
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber-ink);
}

/* Bauplan Abschnitt 08 (Fleet-Dashboard) — online/offline+Fehler brauchen
   eine andere Farbe als der bestehende amber-Standard-Badge (der z. B.
   "aktiv"/"widerrufen" bei Impersonation-Grants markiert). */
.badge-ok {
  background: rgba(22, 163, 74, 0.15);
  color: var(--success);
}
.badge-warn {
  background: rgba(220, 38, 38, 0.15);
  color: var(--error);
}

/* Bauplan Abschnitt 08 (Event-Foto-Galerie): freies Foto-Raster für
   gallery-public.js — anders als .mosaic-grid keine feste Spaltenzahl
   (die Kachelanzahl steht bei der Galerie nicht im Voraus fest, jedes
   neue Kiosk-Foto kommt einfach dazu). */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
}

.photo-tile {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: #efe9e4;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Bauplan Abschnitt 07 (Highlight-Reels) — Vorschau im Host-Panel
   (host/event.js) UND auf der Gast-Galerie (gallery-public.js). */
.highlight-reel-video {
  max-width: 320px;
  border-radius: 10px;
  display: block;
}
