:root {
  --blau: #2a4fb5; --blau-hell: #4169e1; --blau-zart: #e8eefb; --tinte: #1b2440; --grau: #6b7389;
  --linie: #dde3f0; --grund: #f6f7fb; --karte: #fff; --rot: #b3261e; --gruen: #1f7a4a; --gold: #b8892d;
  --r: 14px; --schatten: 0 1px 2px rgba(20, 30, 60, .06), 0 4px 14px rgba(20, 30, 60, .06);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--tinte);
  background: var(--grund); min-height: 100vh; padding-bottom: 76px;
}
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 600; margin: .2em 0 .4em; }
h1 { font-size: 1.55rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
a { color: var(--blau); }
button, input, select, textarea { font: inherit; color: inherit; }

/* Kopf */
#kopf {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: var(--blau); color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
#kopf .wappen { width: 30px; height: 40px; background: #fff; -webkit-mask: url(/wappen.png) center/contain no-repeat;
  mask: url(/wappen.png) center/contain no-repeat; flex: none; opacity: .95; }
#kopf .titel { flex: 1; min-width: 0; }
#kopf .titel b { display: block; font-family: Georgia, serif; font-size: 1.15rem; letter-spacing: .3px; }
#kopf .titel small { opacity: .85; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
#kopf select { background: rgba(255, 255, 255, .15); color: #fff; border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 10px; padding: 5px 8px; max-width: 46vw; }
#kopf select option { color: var(--tinte); }
#zurueck { background: none; border: 0; color: #fff; font-size: 1.5rem; padding: 0 6px 0 0; cursor: pointer; }

main { max-width: 860px; margin: 0 auto; padding: 14px; }

/* Leiste unten */
#leiste {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: flex; justify-content: space-around;
  background: #fff; border-top: 1px solid var(--linie); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
#leiste a { flex: 1; text-align: center; text-decoration: none; color: var(--grau); font-size: .72rem; padding: 2px 0; }
#leiste a span { display: block; font-size: 1.35rem; line-height: 1.2; }
#leiste a.an { color: var(--blau); font-weight: 600; }

/* Karten */
.karte { background: var(--karte); border-radius: var(--r); box-shadow: var(--schatten); padding: 14px; margin: 0 0 12px; }
.karte.klick { cursor: pointer; transition: transform .08s; }
.karte.klick:active { transform: scale(.99); }
.abend { display: flex; gap: 12px; align-items: stretch; padding: 0; overflow: hidden; }
.abend .bild { width: 104px; flex: none; background: var(--blau-zart) center/cover no-repeat; position: relative; }
.abend .bild.leer::after { content: ""; position: absolute; inset: 22px; background: var(--blau);
  -webkit-mask: url(/wappen.png) center/contain no-repeat; mask: url(/wappen.png) center/contain no-repeat; opacity: .25; }
.abend .inhalt { padding: 11px 12px 11px 0; min-width: 0; flex: 1; }
.abend .kopfzeile { color: var(--grau); font-size: .82rem; }
.abend h3 { margin: 2px 0 3px; }
.abend .zeile { font-size: .88rem; color: #3b4562; overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.marken { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.marke { font-size: .75rem; background: var(--blau-zart); color: var(--blau); border-radius: 99px; padding: 1px 8px; }
.marke.ort { background: #fdf3e1; color: #8a5a00; }

.leer-hinweis { text-align: center; color: var(--grau); padding: 30px 10px; }
.leer-hinweis .wappen-gross { width: 90px; height: 120px; margin: 0 auto 10px; background: var(--blau); opacity: .18;
  -webkit-mask: url(/wappen.png) center/contain no-repeat; mask: url(/wappen.png) center/contain no-repeat; }

/* Filter */
.filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.filter input[type=search] { flex: 1 1 200px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--linie); background: #fff; border-radius: 99px; padding: 4px 12px; cursor: pointer; font-size: .88rem; }
.chip.an { background: var(--blau); border-color: var(--blau); color: #fff; }

/* Formulare */
label { display: block; font-size: .85rem; color: var(--grau); margin: 10px 0 3px; }
input[type=text], input[type=email], input[type=date], input[type=search], input[type=url], select, textarea {
  width: 100%; border: 1px solid var(--linie); background: #fff; border-radius: 10px; padding: 9px 11px; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--blau-hell); box-shadow: 0 0 0 3px rgba(65, 105, 225, .15); }
textarea { min-height: 90px; resize: vertical; }
.reihe { display: flex; gap: 8px; align-items: center; }
.reihe > * { flex: 1; min-width: 0; }
.reihe > .schmal { flex: 0 0 auto; }
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 11px;
  padding: 10px 16px; background: var(--blau); color: #fff; font-weight: 600; cursor: pointer; text-decoration: none;
}
.knopf:disabled { opacity: .5; cursor: default; }
.knopf.zweit { background: var(--blau-zart); color: var(--blau); }
.knopf.rot { background: #fbe9e7; color: var(--rot); }
.knopf.klein { padding: 6px 11px; font-size: .88rem; border-radius: 9px; }
.knopf.voll { width: 100%; }
.knopfreihe { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.x { border: 0; background: none; color: var(--grau); font-size: 1.2rem; cursor: pointer; padding: 4px 8px; }

/* Abend-Ansicht */
.abend-kopf .datum { color: var(--grau); }
.abschnitt h2 { display: flex; align-items: center; gap: 8px; }
.abschnitt h2 .knopf { margin-left: auto; }
.menue .gang { color: var(--gold); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin-top: 8px; }
.menue .gericht { font-family: Georgia, serif; font-size: 1.08rem; }
.menue .notiz, .klein-grau { color: var(--grau); font-size: .86rem; }
.personen-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.person-chip { background: var(--blau-zart); color: var(--blau); border-radius: 99px; padding: 3px 11px; text-decoration: none; font-size: .92rem; }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
.galerie img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 9px; cursor: zoom-in; background: var(--blau-zart); }
.musik { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; }
.musik img { width: 120px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; flex: none; background: #000; }
.musik .t { font-weight: 600; }
.gruss { border-left: 3px solid var(--blau-hell); padding: 4px 0 4px 12px; margin: 10px 0; font-family: Georgia, serif; }
.gruss .wer { font-family: system-ui, sans-serif; color: var(--grau); font-size: .84rem; margin-top: 3px; }
.sterne { color: var(--gold); letter-spacing: 2px; }
.sterne-wahl button { border: 0; background: none; font-size: 1.6rem; color: #ccd; cursor: pointer; padding: 0 2px; }
.sterne-wahl button.an { color: var(--gold); }

/* Listen im Formular */
.liste-zeile { display: flex; gap: 6px; align-items: center; margin: 6px 0; }
.liste-zeile select { flex: 0 0 42%; }
.vorschlaege { position: relative; }
.vorschlaege .box { position: absolute; left: 0; right: 0; top: 100%; z-index: 10; background: #fff; border: 1px solid var(--linie);
  border-radius: 10px; box-shadow: var(--schatten); max-height: 260px; overflow: auto; }
.vorschlaege .box div { padding: 8px 12px; cursor: pointer; }
.vorschlaege .box div:hover, .vorschlaege .box div.an { background: var(--blau-zart); }
.vorschlaege .box small { color: var(--grau); }

.warnung { background: #fff4e5; border: 1px solid #f3d19c; color: #7a4b00; border-radius: 10px; padding: 9px 12px; margin: 8px 0; font-size: .9rem; }
.info { background: var(--blau-zart); color: #233d84; border-radius: 10px; padding: 9px 12px; margin: 8px 0; font-size: .9rem; }

/* Zugänge */
.zugang { display: flex; gap: 10px; align-items: center; }
.zugang .wer { flex: 1; min-width: 0; }
.zugang .wer b { display: block; overflow: hidden; text-overflow: ellipsis; }
.zugang.aus { opacity: .5; }
.qr { background: #fff; padding: 10px; display: inline-block; border-radius: 10px; }
.qr svg { display: block; width: 220px; height: 220px; }
.link-feld { font-size: .82rem; word-break: break-all; background: var(--grund); padding: 8px; border-radius: 8px; }

/* Anmeldung */
.anmeldung { max-width: 420px; margin: 8vh auto 0; text-align: center; }
.anmeldung .wappen-gross { width: 110px; height: 150px; margin: 0 auto 6px; background: var(--blau);
  -webkit-mask: url(/wappen.png) center/contain no-repeat; mask: url(/wappen.png) center/contain no-repeat; }
.anmeldung h1 { font-size: 2rem; color: var(--blau); }
.anmeldung .karte { text-align: left; }
.oder { color: var(--grau); margin: 14px 0; font-size: .9rem; }
.sprachen { margin-top: 16px; }
.sprachen button { border: 0; background: none; color: var(--grau); cursor: pointer; padding: 4px 8px; }
.sprachen button.an { color: var(--blau); font-weight: 700; }

/* Großbild */
#gross { position: fixed; inset: 0; z-index: 50; background: rgba(5, 10, 25, .94); display: none; flex-direction: column;
  align-items: center; justify-content: center; }
#gross.an { display: flex; }
#gross img { max-width: 96vw; max-height: 82vh; object-fit: contain; border-radius: 6px; }
#gross .unter { color: #dfe6ff; margin-top: 10px; text-align: center; padding: 0 16px; }
#gross .zu, #gross .vor, #gross .rueck { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0;
  border-radius: 99px; width: 44px; height: 44px; font-size: 1.4rem; cursor: pointer; }
#gross .zu { top: 14px; right: 14px; } #gross .rueck { left: 10px; top: 50%; } #gross .vor { right: 10px; top: 50%; }

#meldung { position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); background: var(--tinte); color: #fff;
  padding: 10px 16px; border-radius: 12px; z-index: 60; opacity: 0; transition: opacity .2s; pointer-events: none; max-width: 90vw; }
#meldung.an { opacity: .95; }
.laedt { text-align: center; color: var(--grau); padding: 40px; }
.fuss { text-align: center; color: var(--grau); font-size: .78rem; margin: 24px 0 6px; }
.versteckt { display: none !important; }
@media (min-width: 700px) { .abend .bild { width: 150px; } }
