/* Gestaltung wie das Programmheft „Erinnerung ist Leben“: Blau, Hellblau-Box, Segoe UI, Davidstern */
:root {
  --blau: #0093d3;         /* Haupt-Blau */
  --blau-dunkel: #0071bc;  /* dunkles Blau (fette Zeilen) */
  --box: #e7f3fb;          /* hellblaue Info-Box */
  --linie: #cfe6f5;
  --text: #1a1a1a;
  --grau: #555;
  --ok: #e6f4ea; --okrand: #2e8b57;
  --warn: #fff6cc; --warnrand: #d4a800;
  --rot: #a02828;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.6 'Segoe UI', 'Helvetica Neue', Arial, sans-serif; color: var(--text); background: #fff; }
.innen { max-width: 860px; margin: 0 auto; padding: 0 16px; }
a { color: var(--blau-dunkel); }
.stern { display: inline-block; width: 1em; height: 1em; }
.stern svg { width: 100%; height: 100%; display: block; }

/* Kopfleiste mit Logo und „Pill“ wie im Heft */
.kopfleiste { padding: 14px 0 6px; }
.kopfleiste .innen { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.logo img { height: 96px; width: auto; display: block; }
.pill { background: var(--blau); color: #fff; font-weight: 700; font-size: 13px; padding: 6px 14px; border-radius: 16px; text-decoration: none; white-space: nowrap; }

/* Titel der Reihe wie auf der Titelseite */
.reihe { text-align: right; padding: 18px 0 10px; }
.reihe .innen > span { display: block; }
.reihe .r1 { color: var(--blau); font-weight: 300; font-size: clamp(40px, 9vw, 66px); line-height: 1; letter-spacing: 1px; text-transform: uppercase; }
.reihe .r2 { display: flex !important; justify-content: flex-end; align-items: center; gap: 12px; color: var(--blau-dunkel); font-weight: 800;
  font-size: clamp(40px, 9vw, 66px); line-height: 1.02; text-transform: uppercase; }
.reihe .r2 .stern { width: .8em; height: .8em; }
.reihe .unter { color: var(--blau-dunkel); font-size: 19px; font-weight: 600; margin-top: 18px; }
.reihe .zeit { color: var(--blau); font-size: 19px; }
.reihe.klein { padding: 4px 0 0; }
.reihe.klein .r1, .reihe.klein .r2 { font-size: clamp(22px, 5vw, 30px); }

main { padding-top: 16px; padding-bottom: 40px; }

/* Übersicht wie „Programm auf einen Blick“ */
.programm { color: var(--blau); font-weight: 300; font-size: 34px; line-height: 1.15; margin: 24px 0 18px; }
.programm b { color: var(--blau-dunkel); font-weight: 800; display: block; }
.programmliste { border-top: 1px solid var(--linie); }
.eintrag { display: grid; grid-template-columns: 120px 1fr auto; gap: 12px; align-items: center; padding: 14px 12px; border-bottom: 1px solid var(--linie);
  text-decoration: none; color: var(--text); }
.eintrag:nth-child(odd) { background: var(--box); }
.eintrag:hover .titel b { text-decoration: underline; }
.eintrag .datum { color: var(--blau-dunkel); font-weight: 800; line-height: 1.35; }
.eintrag .titel b { display: block; font-size: 17px; }
.eintrag .titel span { color: var(--grau); font-size: 15px; }
.eintrag .los { color: var(--blau-dunkel); font-weight: 700; font-size: 14px; white-space: nowrap; }

/* Veranstaltungsseite wie im Heft */
.va .datumzeile { color: var(--blau); font-size: 24px; font-weight: 300; margin-top: 18px; }
.va .titel { color: var(--blau-dunkel); font-size: clamp(26px, 5vw, 34px); font-weight: 800; line-height: 1.12; margin: 4px 0 0; }
.va .untertitel { color: var(--blau); font-size: 18px; margin-top: 8px; }
.va .inhalt { display: grid; grid-template-columns: 1fr 240px; gap: 28px; margin-top: 24px; }
.va .text p { margin: 0 0 14px; }
.infobox { background: var(--box); padding: 18px; align-self: start; font-size: 15px; line-height: 1.45; }
.infobox .zeile { margin-bottom: 12px; }
.infobox .zeile:last-child { margin-bottom: 0; }
.label { display: block; color: var(--blau-dunkel); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; }

/* Anmeldung */
.anmeldung { margin-top: 28px; padding-top: 4px; border-top: 3px solid var(--blau); }
h1.seitentitel, .anmeldung h2 { color: var(--blau-dunkel); font-size: 26px; font-weight: 800; margin: 20px 0 12px; }
.formular { display: grid; gap: 14px; max-width: 520px; }
.formular.breit { max-width: none; }
.formular label { display: grid; gap: 4px; font-weight: 700; font-size: 14px; color: var(--blau-dunkel); }
.formular .person { padding-left: 14px; border-left: 3px solid var(--box); }
.formular .person[hidden] { display: none; }
.formular .haken { display: block; font-weight: normal; font-size: 14px; color: var(--text); }
.formular .haken input { margin-right: 6px; }
.zeile2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
input, select, textarea { font: inherit; font-size: 16px; color: var(--text); padding: 10px 12px; border: 1px solid #b9d7ec; border-radius: 4px; width: 100%; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blau); outline-offset: 0; border-color: var(--blau); }
.haken input { width: auto; }
.versteckt { position: absolute; left: -9999px; width: 1px; height: 1px; }
.knopf { display: inline-block; font: inherit; font-weight: 700; background: var(--blau); color: #fff; border: 0; border-radius: 20px; padding: 11px 24px;
  cursor: pointer; text-decoration: none; }
.knopf:hover { background: var(--blau-dunkel); }
.klein { font-size: 14px; color: var(--grau); font-weight: normal; }
.ok, .hinweis, .fehler { border-left: 4px solid; padding: 12px 16px; margin: 14px 0; }
.ok { background: var(--ok); border-color: var(--okrand); }
.ok h2 { margin-top: 0; }
.hinweis { background: var(--warn); border-color: var(--warnrand); }
.fehler { background: #fbe9e9; border-color: var(--rot); }

/* Fuß wie auf der Titelseite */
footer { border-top: 1px solid var(--linie); color: var(--blau-dunkel); font-size: 14px; padding: 16px 0 28px; }
footer .innen { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
footer b { display: block; font-size: 15px; }
footer .rechts { display: flex; align-items: center; gap: 8px; }
footer .stern { width: 16px; height: 16px; color: var(--blau); }

/* Verwaltung */
.klein-knopf { display: inline-block; font: inherit; font-size: 14px; background: #fff; color: var(--blau-dunkel); border: 1px solid #b9d7ec; border-radius: 14px;
  padding: 4px 12px; cursor: pointer; text-decoration: none; }
.rot { color: var(--rot); }
.link-knopf { background: none; border: 0; color: var(--blau-dunkel); font: inherit; cursor: pointer; text-decoration: underline; padding: 0; }
.inline { display: inline; }
.leiste { display: flex; gap: 18px; align-items: center; background: var(--box); padding: 8px 14px; margin-bottom: 20px; }
.leiste .inline { margin-left: auto; }
.datum { color: var(--blau); margin: 0; }
main > h1 { color: var(--blau-dunkel); font-weight: 800; font-size: 28px; line-height: 1.2; margin: 4px 0 12px; }
main > h2 { color: var(--blau-dunkel); }
.kennzahlen { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.liste { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 16px; }
.liste th { text-align: left; color: var(--blau-dunkel); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; padding: 8px 6px; border-bottom: 2px solid var(--blau); }
.liste td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.liste tbody tr:nth-child(odd) td { background: var(--box); }
.liste tr.da td { background: var(--ok) !important; }
.liste tr.abgemeldet td { color: var(--grau); text-decoration: line-through; }
.einlass-knopf { font: inherit; font-size: 18px; min-width: 64px; padding: 4px 8px; border: 1px solid #b9d7ec; border-radius: 6px; background: #fff; cursor: pointer; }
.da .einlass-knopf { background: var(--okrand); color: #fff; border-color: var(--okrand); font-size: 15px; }
details { margin: 12px 0; }
summary { cursor: pointer; font-weight: 700; color: var(--blau-dunkel); }
.qr { width: 200px; }
.gefahr { margin-top: 32px; }
code { word-break: break-all; }
.zeile { display: block; }
.formular .zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

@media (max-width: 640px) {
  .logo img { height: 72px; }
  .va .inhalt { grid-template-columns: 1fr; gap: 18px; }
  .eintrag { grid-template-columns: 92px 1fr; }
  .eintrag .los { grid-column: 2; }
  .liste { font-size: 14px; }
  .liste th:nth-child(4), .liste td:nth-child(4) { display: none; }
  .formular .zeile { grid-template-columns: 1fr; }
}
@media print {
  .kopfleiste .pill, footer, .leiste, .nicht-drucken, details, .reihe { display: none !important; }
  .liste tbody tr td { background: none !important; }
  .einlass-knopf { border: 1px solid #000; background: none !important; color: #000 !important; }
}
