/* Pizza & Prosecco Abend – Design passend zum Flyer (Weinrot, Bernstein/Gold, Champagner) */
:root {
  --amber: #f5b942;
  --gold: #e9a530;
  --champ: #f6e3b4;
  --cream: #f9eedb;
  --muted: #e8d5bb;
  --red: #b3202a;
  --red-deep: #7d1119;
  --wine: #3a1410;
  --hair: rgba(245, 185, 66, 0.3);
  --font-display: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
  --font-cond: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --font-script: 'Kaushan Script', 'Segoe Script', 'Brush Script MT', cursive;
  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.5;
  background-color: #200b0b;
  background-image: linear-gradient(180deg, #4a1a14 0%, #3a1410 40%, #200b0b 100%);
}

a { color: var(--amber); }
a:hover { color: var(--champ); }

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

/* ---------- Kopfbereich mit weichgezeichneter Kulisse ---------- */
.closed-banner {
  background: linear-gradient(180deg, var(--amber), var(--gold));
  color: var(--wine);
  text-align: center;
  padding: 16px 20px;
  border-bottom: 3px solid var(--red-deep);
}
.closed-banner p { margin: 0; }
.cb-title { font-family: var(--font-display); font-size: clamp(24px, 6vw, 34px); text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.1; }
.cb-sub { margin-top: 4px !important; font-family: var(--font-cond); font-weight: 700; font-size: clamp(18px, 4.5vw, 22px); }

.hero { position: relative; overflow: hidden; padding: 28px 20px 30px; }
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(74, 26, 20, 0.8) 0%, rgba(58, 20, 16, 0.74) 100%),
    url(hero_bg.jpg) center / cover no-repeat;
  /* Kulisse läuft nach unten weich in den Seitenhintergrund aus (keine harte Kante) */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
}
.hero::after {
  content: '';
  position: absolute; left: 50%; top: -60px; width: 640px; height: 340px; margin-left: -320px;
  background: radial-gradient(ellipse at 50% 45%, rgba(245, 185, 66, 0.34) 0%, rgba(245, 185, 66, 0.12) 45%, rgba(245, 185, 66, 0) 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; text-align: center; }

.title {
  --t: clamp(38px, calc((100vw - 48px) / 6.7), 70px);
  margin: 0;
  font-family: var(--font-script);
  font-weight: 400;
  line-height: 0.95;
  transform: rotate(-2deg);
}
.title .l1, .title .l2 { display: block; }
.title .l1 { font-size: var(--t); color: #fbeed2; text-shadow: 0 0 22px rgba(245, 185, 66, 0.35), 0 3px 8px rgba(0, 0, 0, 0.55); }
.title .l2 { font-size: calc(var(--t) * 1.04); color: var(--amber); text-shadow: 0 0 26px rgba(245, 185, 66, 0.5), 0 3px 8px rgba(0, 0, 0, 0.55); }
.hero.compact { padding: 22px 20px 14px; }
.hero.compact .title { --t: clamp(30px, calc((100vw - 48px) / 8.5), 48px); }

.ribbons { display: flex; flex-direction: column; align-items: center; margin-top: 16px; }
.ribbons p { margin: 0; }
.tag {
  font-family: var(--font-cond); font-weight: 700; font-style: italic;
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cream); background: linear-gradient(90deg, #8f1922, #b3202a);
  padding: 3px 14px; border-radius: 4px;
  transform: rotate(-1.5deg); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}
.band {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.03em; line-height: 1;
  color: var(--wine); background: linear-gradient(180deg, #fdf4de 0%, #f1d9a2 100%);
  padding: 6px 20px 5px; border-radius: 6px; transform: rotate(-1.5deg);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 240, 200, 0.7);
}
.band.big { font-size: clamp(30px, 10vw, 46px); margin-top: -4px; }
.band.small { font-size: clamp(17px, 5.4vw, 24px); margin-top: -3px; }
.band .slash { color: var(--red); }

.pill {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  padding: 6px 18px; border-radius: 999px;
  background: rgba(245, 185, 66, 0.14); border: 1px solid rgba(245, 185, 66, 0.7);
  font-family: var(--font-cond); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
}
.pill b { color: var(--amber); font-weight: 700; }

.datecard {
  max-width: 320px; margin: 22px auto 0; padding: 14px 18px; text-align: left;
  border-radius: 16px; border: 1px solid rgba(245, 185, 66, 0.4);
  background: linear-gradient(160deg, #a8202a 0%, #7d1119 100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.dc-row { display: flex; align-items: center; gap: 12px; }
.dc-row svg { flex: 0 0 auto; }
.dc-label { display: block; font-family: var(--font-cond); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: #ffd9b0; line-height: 1; }
.dc-big { display: block; font-family: var(--font-display); font-size: 30px; line-height: 1.05; color: #fff8ea; }
.dc-sep { margin: 9px 0; border-top: 1.5px dotted rgba(255, 225, 170, 0.55); }

/* ---------- Inhalt ---------- */
.wrap { max-width: 560px; margin: 0 auto; padding: 0 20px 48px; }
.wrap.wide { max-width: 900px; }
.wrap.top { padding-top: 24px; }
.wrap > * + * { margin-top: 22px; }

.card {
  padding: 20px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--hair);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.card h2 { margin: 0 0 14px; font-family: var(--font-display); font-weight: 400; font-size: 24px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--amber); }
.card.narrow { max-width: 420px; margin-left: auto; margin-right: auto; }

.field { margin-bottom: 14px; }
label {
  display: block; margin: 0 0 6px;
  font-family: var(--font-cond); font-weight: 700; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber);
}
input, select {
  width: 100%; height: 48px; padding: 0 14px;
  color: var(--cream); font: inherit; font-size: 16px; /* 16px verhindert das Zoomen auf iPhones */
  border-radius: 12px; border: 1px solid rgba(245, 185, 66, 0.45); background: rgba(20, 8, 6, 0.55);
}
select option { background: #2a0f0c; color: var(--cream); }
input:focus, select:focus, .btn:focus-visible, button:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 52px; padding: 0 24px;
  border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--font-cond); font-weight: 700; font-size: 19px; letter-spacing: 0.1em; text-transform: uppercase;
  color: #2a1206; background: linear-gradient(180deg, #f8c85a, #e9a530);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
.btn:hover { filter: brightness(1.05); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn.ghost { width: auto; height: 40px; padding: 0 16px; font-size: 15px; color: var(--amber); background: transparent; border: 1px solid var(--hair); box-shadow: none; }

.link { padding: 6px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
.link:hover { color: var(--amber); }

.msg { min-height: 1.4em; margin: 12px 0 0; font-size: 15px; }
.msg.err { color: #ffb3ad; }
.msg.ok { color: #c4e8b4; }
.fine { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }
.center { text-align: center; }

/* ---------- Anmeldeseite ---------- */
.flyer-box { min-height: 120px; }
.flyer {
  display: block; width: 100%; height: auto; aspect-ratio: 1118 / 1588;
  border-radius: 16px; border: 1px solid rgba(245, 185, 66, 0.5);
  box-shadow: 0 0 36px rgba(245, 185, 66, 0.22), 0 10px 24px rgba(0, 0, 0, 0.5);
}
.done { text-align: center; }
.done h2 { margin-bottom: 8px; }
.done p { margin: 0 0 16px; }
.done .big { font-family: var(--font-script); font-size: 34px; line-height: 1.1; color: var(--amber); }

/* ---------- Admin ---------- */
.admin-title { margin: 0; text-align: center; font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 7vw, 40px); text-transform: uppercase; color: var(--amber); }
#dash > .card + .card { margin-top: 22px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.toolbar .spacer { flex: 1; }
.stamp { font-size: 13px; color: var(--muted); }
.total { display: flex; align-items: baseline; gap: 10px; }
.total strong { font-family: var(--font-display); font-weight: 400; font-size: 52px; line-height: 1; color: var(--amber); }
.total span { font-family: var(--font-cond); font-weight: 700; font-size: 18px; letter-spacing: 0.08em; text-transform: uppercase; }

.chart { display: grid; gap: 9px; }
.bar-row { display: grid; grid-template-columns: 96px 1fr 36px; align-items: center; gap: 10px; font-family: var(--font-cond); font-size: 16px; }
.bar-label { white-space: nowrap; }
.bar-track { height: 22px; overflow: hidden; border-radius: 11px; background: rgba(255, 255, 255, 0.08); }
.bar-fill { height: 100%; width: 0; border-radius: 11px; background: linear-gradient(90deg, #e9a530, #f8c85a); transition: width 0.5s ease; }
.bar-count { text-align: right; font-weight: 700; color: var(--amber); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--hair); }
th { font-family: var(--font-cond); font-weight: 700; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); white-space: nowrap; }
th button { padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
th button::after { content: ' \2195'; opacity: 0.5; }
th[aria-sort='ascending'] button::after { content: ' \25B2'; opacity: 1; }
th[aria-sort='descending'] button::after { content: ' \25BC'; opacity: 1; }
td.num, th.num { text-align: right; }
tbody tr:hover { background: rgba(255, 255, 255, 0.05); }
.empty { padding: 18px 0; color: var(--muted); }

@media (max-width: 480px) {
  .bar-row { grid-template-columns: 78px 1fr 30px; }
  .card { padding: 16px; }
  table { font-size: 15px; }
  th, td { padding: 9px 6px; }
  th { font-size: 12.5px; letter-spacing: 0.05em; }
}
@media (prefers-reduced-motion: reduce) {
  .bar-fill { transition: none; }
}
