/* Adventskonzert – Aussehen (Papier, Nachtblau, Sterngold). Gemeinsame Bausteine mit den anderen Anmeldeseiten. */
:root {
  --papier:#f3ede0; --karte:#fffdf6; --tinte:#232a3b;
  --nacht:#1d2b4a; --nacht-hell:#2f4474; --nacht-pale:#e8ecf4; --nacht-mid:#c3cde0;
  --gold:#b07a22; --gold-hell:#c18a2e; --gold-pale:#f8efd2; --wachs:#e6dcc0;
  --rot:#a8322d; --red:#a8322d;
  --linie:#d8cfb8; --mid:#555a68; --muted:#8a8576; --dark:#232a3b; --border:#d8cfb8; --bg:#f3ede0;
  /* alte Namen, damit Restbestände weiter passen */
  --pine:#1d2b4a; --pine-light:#2f4474; --pine-pale:#e8ecf4; --pine-mid:#c3cde0;
}
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body {
  margin:0; color:var(--tinte); line-height:1.6; font-family:'Nunito Sans',system-ui,sans-serif; font-size:16px;
  background-color:var(--papier);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .15 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Deko an den Seitenrändern (nur auf breiten Bildschirmen, z. B. PC) ---- */
@media (min-width:1000px) {
  body::before, body::after {
    content:""; position:fixed; top:0; bottom:0; z-index:0; pointer-events:none;
    width:clamp(110px, calc((100vw - 640px) / 2), 270px);
    background-repeat:repeat-y; background-size:100% auto; opacity:.95;
  }
  body::before { left:0;  background-image:url(rand-links.svg);  background-position:left top; }
  body::after  { right:0; background-image:url(rand-rechts.svg); background-position:right top; }
}
.main, .box { position:relative; z-index:1; }
.main { max-width:600px; margin:0 auto; padding:26px 20px 80px; }
.main.schmal { max-width:540px; }

/* ---- Kopf mit Stern ---- */
.main::before { content:""; display:block; height:112px; margin:0 auto 4px; background:url(stern.svg) center / contain no-repeat; }
.pagehead { margin-bottom:20px; text-align:center; }
.pagehead .vorspann { font-size:13px; letter-spacing:.1em; text-transform:uppercase; color:var(--gold); font-weight:700; margin:0 0 4px; }
h1, .pagehead h1 { font-family:'Fraunces',Georgia,serif; font-weight:600; letter-spacing:-.01em; color:var(--nacht); line-height:1.1; font-size:34px; margin:0 0 6px; }
.pagehead .thema { font-family:'Caveat','Segoe Script',cursive; color:var(--gold); font-weight:700; font-size:27px; line-height:1.1; margin:2px 0 12px; }
.pagehead .sub { color:var(--mid); font-size:15px; margin:0 0 2px; }
.noten { display:block; width:230px; max-width:70%; height:auto; margin:14px auto 4px; }

/* ---- Karten / Formular ---- */
.card, .success {
  background:var(--karte); border:1.5px solid var(--nacht); border-radius:3px; padding:26px 24px 24px;
  box-shadow:5px 5px 0 var(--wachs);
}
.success { text-align:center; padding:34px 24px; }
.section { margin-bottom:24px; }
.section:last-of-type { margin-bottom:0; }
.section-title { font-family:'Fraunces',Georgia,serif; font-weight:600; font-size:20px; color:var(--nacht); margin-bottom:12px; padding-bottom:6px; border-bottom:1.5px dashed var(--linie); }
.row { display:grid; grid-template-columns:1fr; gap:14px; margin-bottom:14px; }
.field { display:flex; flex-direction:column; gap:2px; min-width:0; }
.field label { font-size:13px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--mid); }
.field input { border:none; border-bottom:2px solid var(--linie); background:transparent; padding:8px 2px 7px; font-size:18px; font-family:inherit; color:var(--tinte); border-radius:0; outline:none; width:100%; }
.field input:focus { border-bottom-color:var(--gold-hell); }
.field input::placeholder { color:#b3ab97; }
.req { color:var(--rot); }
.termin-opt { display:flex; align-items:flex-start; gap:12px; background:var(--gold-pale); border:1.5px solid var(--wachs); border-radius:3px; padding:13px 15px; margin-bottom:10px; cursor:pointer; transition:border-color .12s, transform .12s; }
.termin-opt:hover { border-color:var(--gold-hell); }
.termin-opt:has(input:checked) { border-color:var(--nacht); background:#fff7dc; box-shadow:3px 3px 0 var(--wachs); }
.termin-opt input { margin-top:4px; accent-color:var(--nacht); flex:0 0 auto; width:18px; height:18px; }
.termin-opt span { font-size:16px; font-weight:600; }
.hp { position:absolute; left:-9999px; height:0; overflow:hidden; }
.voll-hinweis { color:var(--rot); font-weight:700; font-size:14px; }

/* ---- Knöpfe ---- */
.btn, .btn-danger, .ticket-btn, .btn-sec { font-family:inherit; font-weight:700; cursor:pointer; text-decoration:none; text-align:center; border-radius:3px; transition:transform .08s, box-shadow .08s; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; border:none; background:var(--nacht); color:#fff; font-size:17px; padding:14px 28px; width:100%; margin-top:8px; box-shadow:3px 3px 0 var(--gold-hell); }
.btn:hover { background:var(--nacht-hell); }
.btn:active, .btn-danger:active, .ticket-btn:active { transform:translate(2px,2px); box-shadow:1px 1px 0 var(--gold-hell); }
.btn-sec { display:inline-block; width:100%; margin-top:12px; background:var(--karte); color:var(--nacht); border:1.5px solid var(--nacht); font-size:15px; padding:11px 24px; }
.btn-sec:hover { background:var(--nacht-pale); }
.btn-danger { display:inline-block; border:none; background:var(--rot); color:#fff; font-size:16px; padding:13px 30px; margin-top:8px; box-shadow:3px 3px 0 #5d1d1a; }
.btn-danger:hover { background:#862520; }
.ticket-btn { display:inline-flex; align-items:center; gap:8px; margin-top:18px; background:var(--gold-hell); color:#fff; font-size:16px; padding:12px 24px; box-shadow:3px 3px 0 var(--nacht); }
.ticket-btn:hover { background:var(--gold); }
.back { display:inline-block; margin-top:22px; color:var(--nacht-hell); font-weight:700; text-decoration:underline; text-underline-offset:3px; font-size:14px; }

/* ---- Meldungen ---- */
.msg-error { background:#f6e3e0; border-left:4px solid var(--rot); color:#7d211c; font-size:15px; padding:11px 14px; margin:0 0 18px; }
.hinweis { background:var(--nacht-pale); border-left:4px solid var(--nacht); color:var(--nacht); font-size:14px; padding:11px 14px; margin:0 0 18px; }
.zettel { background:var(--gold-pale); border-radius:2px; padding:12px 18px 13px; margin:0 0 22px; transform:rotate(-.6deg); box-shadow:2px 3px 0 rgba(120,90,30,.14); font-family:'Caveat','Segoe Script',cursive; font-size:22px; line-height:1.25; color:#4a3b12; }
.card p.info-klein, .info-klein { font-size:13px; color:var(--muted); text-align:center; margin:14px 0 0; line-height:1.5; }
.dsgvo-row { display:flex; align-items:flex-start; gap:10px; font-size:14px; color:var(--mid); margin:18px 0 6px; cursor:pointer; text-align:left; line-height:1.5; }
.dsgvo-row input { margin-top:4px; accent-color:var(--nacht); flex:0 0 auto; width:17px; height:17px; }
.dsgvo-row a { color:var(--nacht-hell); }

/* ---- Rundes Symbol (Erfolg / Hinweis / Fehler) ---- */
.check { width:62px; height:62px; border-radius:50%; background:var(--nacht); color:var(--gold-pale); font-family:'Fraunces',Georgia,serif; font-size:30px; display:flex; align-items:center; justify-content:center; margin:0 auto 16px; box-shadow:0 0 0 5px var(--karte), 0 0 0 7px var(--gold-hell); }
.closed .check { background:var(--muted); }
.warteliste .check, .check.warteliste, .check.warn { background:var(--gold-hell); color:#fff; }
.check.err { background:var(--rot); color:#fff; }
.success h1 { margin-bottom:10px; }
.success p, .card p { color:var(--mid); font-size:16px; margin:0 auto 8px; max-width:440px; }
.card p.info-klein { color:var(--muted); font-size:13px; margin:14px auto 0; max-width:none; }

/* ---- Eckdaten-Kasten (Abmeldung / Bestätigung / Warteliste) ---- */
.facts { text-align:left; background:var(--gold-pale); border:1.5px solid var(--wachs); border-radius:3px; padding:14px 16px; margin:20px 0; font-size:15px; color:var(--nacht); }
.facts div { margin-bottom:4px; }
.facts div:last-child { margin-bottom:0; }
.qty-field { text-align:left; margin:18px 0 6px; }
.qty-field label { display:block; font-size:13px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--mid); margin-bottom:4px; }
.qty-field input { width:100px; border:none; border-bottom:2px solid var(--linie); background:transparent; padding:8px 2px; font-size:18px; font-family:inherit; border-radius:0; }
.qty-field input:focus { outline:none; border-bottom-color:var(--gold-hell); }
form + form { margin-top:0; }

/* ---- Mitte-zentrierte Seiten (alles außer Anmeldung) ---- */
.mitte .card { text-align:center; }
.mitte p { margin-left:auto; margin-right:auto; }

/* ---- Check-in am Einlass (bewusst schlicht und gut lesbar) ---- */
body.checkin { display:flex; align-items:center; justify-content:center; min-height:100vh; padding:20px; }
body.checkin::before, body.checkin::after { display:none; }
.box { width:100%; max-width:420px; }
.box .card { padding:34px 24px; text-align:center; }
.card.ok { background:#eef6ee; border-color:#2d6a3d; }
.card.warn { background:#fbf0dc; border-color:var(--gold-hell); }
.card.err { background:#f9e6e3; border-color:var(--rot); }
.icon { width:76px; height:76px; border-radius:50%; display:flex; align-items:center; justify-content:center; margin:0 auto 18px; font-size:38px; color:#fff; }
.icon.ok { background:#2d6a3d; } .icon.warn { background:var(--gold-hell); } .icon.err { background:var(--rot); }
.again { display:inline-block; margin-top:20px; color:var(--nacht-hell); font-weight:700; font-size:15px; }

@media (max-width:480px) {
  body { font-size:16px; }
  .main { padding:18px 16px 60px; }
  .main::before { height:92px; }
  h1, .pagehead h1 { font-size:29px; }
  .card, .success { padding:22px 18px 20px; }
}

/* Check-in: Eingabefeld gut sichtbar */
.box .field input { border:1.5px solid var(--nacht-mid); background:#fff; padding:12px 13px; font-size:18px; border-radius:3px; }
.box .field input:focus { border-color:var(--nacht); }
