/* Gewinnspiel Pallweber: Aussehen wie das bisherige Zite-Formular. Keine externen Schriften. */
:root {
    --rot: #B41C2E;
    --schwarz: #231F20;
    --grau: #6B625B;
    --linie: #E4DED7;
    --flaeche: #FBF8F4;
    --karte: #FFFFFF;
    --gruen: #09371F;
    --font-head: "Avenir Next", Futura, "Century Gothic", "Segoe UI", Arial, sans-serif;
    --font-text: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-text); font-size: 17px; line-height: 1.5; color: var(--schwarz); background: var(--flaeche); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; }
h1 { font-size: 1.6rem; margin: 1rem 0 .5rem; }
h2 { font-size: 1.25rem; margin: 1.5rem 0 .5rem; }
h3 { font-size: 1rem; margin: 0 0 .5rem; }
a { color: inherit; text-underline-offset: 2px; }
.center { text-align: center; }
.strong { font-weight: 700; }
.muted { color: var(--grau); }
.small { font-size: .9rem; }
.num { font-variant-numeric: tabular-nums; }
.ok { color: var(--gruen); }
:focus-visible { outline: 3px solid var(--schwarz); outline-offset: 2px; }

.test-banner { background: var(--schwarz); color: #fff; text-align: center; font-weight: 700; font-size: .9rem; padding: .5rem 1rem; }
.page { max-width: 600px; margin: 0 auto; padding: 20px 16px 32px; }
.page.wide { max-width: 1100px; }
.card { background: var(--karte); border-radius: 20px; box-shadow: 0 6px 24px rgba(35, 31, 32, .08); padding: 24px; margin: 16px 0; }
.card.narrow { max-width: 420px; margin: 32px auto; }

.hero { padding: 0; overflow: hidden; text-align: center; }
.hero-img { display: block; width: 100%; height: auto; }
.logo { display: inline-block; max-width: 60%; height: auto; margin: 18px 0; }

.prizes-title { font-size: 1.3rem; text-align: center; margin: 0 0 18px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.pokal { flex: none; width: 40px; height: 40px; }
/* Kasten „Hier gehts zur Anmeldung!“: oben ca. 1 cm weniger Platz (Wunsch Alexandra 10.11.) */
.signup-cta { padding-top: 6px; }
.signup-cta .question { margin-top: 0; }
/* Weniger Abstand zwischen diesem Kasten und der Adresse darunter */
main:has(.signup-cta, .signup-form) { padding-bottom: 0; }
/* Überschrift des Formulars als roter Balken, wie der Knopf „Jetzt teilnehmen“ */
.signup-form h2 { margin: 0 0 12px; padding: 12px 20px; background: var(--rot); color: #fff; border-radius: 12px; text-align: center; font-size: 1.1rem; line-height: 1.35; }
.prize-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.prize { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border: 1px solid var(--linie); border-radius: 14px; }
.rank { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--rot); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; }
.prize-text { display: block; min-width: 0; }
.prize-main { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; line-height: 1.25; }
.prize-extra { display: block; margin-top: 2px; font-size: 1.05rem; font-weight: 600; color: var(--rot); }
.prize-top { padding: 18px; border-color: var(--rot); background: #FDF4F5; }
.prize-top .prize-main { font-size: 1.25rem; }
.prize-top .prize-extra { font-weight: 700; }
.draw-info { margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: #FBEBED; text-align: center; }
.draw-info p { margin: 0; font-size: .97rem; }
.draw-info .draw-date { margin-bottom: 12px; font-size: 1.05rem; line-height: 1.4; }
.draw-info .draw-date strong { display: block; font-size: 1.15rem; }

fieldset { border: 0; margin: 0 0 16px; padding: 0; }
.question { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; margin-bottom: 12px; padding: 0; }
.answer { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px; margin: 8px 0; border: 1px solid var(--linie); border-radius: 12px; cursor: pointer; }
.answer input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.letter { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--flaeche); font-weight: 700; font-size: .9rem; }
.answer:has(input:checked) { border-color: var(--rot); background: #FDF4F5; }
.answer:has(input:checked) .letter { background: var(--rot); color: #fff; }
.answer:has(input:focus-visible) { outline: 3px solid var(--schwarz); outline-offset: 2px; }

.field { display: block; font-weight: 600; margin: 14px 0 6px; }
.field input, .field select, .search input { display: block; width: 100%; margin-top: 6px; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 16px; font-weight: 400; color: inherit; background: #fff; border: 1px solid var(--linie); border-radius: 12px; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0; cursor: pointer; }
.check input { flex: none; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--rot); }
.error { color: var(--rot); font-size: .95rem; margin: 6px 0; }
.hp { position: absolute; left: -9999px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 20px; font: inherit; font-weight: 700; color: #fff; background: var(--rot); border: 1px solid var(--rot); border-radius: 12px; cursor: pointer; text-decoration: none; width: 100%; }
.btn.secondary { color: var(--schwarz); background: #fff; border-color: var(--linie); width: auto; }
.actions { display: flex; gap: 10px; margin-top: 12px; }
.actions .btn:not(.secondary) { flex: 1; }
.link { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; color: inherit; }

.foot { text-align: center; font-size: .85rem; color: var(--grau); padding: 8px 16px 32px; }

.legal h2 { font-size: 1.05rem; margin-top: 1.3rem; }
.legal p, .legal li { font-size: .97rem; }
.legal table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 8px 6px; border-bottom: 1px solid var(--linie); }

.flash { padding: 10px 14px; border-radius: 12px; background: #fff; border-left: 4px solid var(--gruen); }
.flash.err { border-left-color: var(--rot); }

/* Verwaltung */
.admin-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--linie); font-weight: 600; }
.admin-nav form { margin-left: auto; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.stat { background: #fff; border-radius: 14px; padding: 12px 16px; font-size: .9rem; }
.stat .num { display: block; font-size: 1.6rem; font-weight: 700; }
.stat.bad .num { color: var(--rot); }
.search { display: flex; gap: 8px; margin: 12px 0; }
.search input { margin: 0; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: 14px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table-wrap th, .table-wrap td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--linie); white-space: nowrap; }
.tag { font-size: .75rem; background: #FBEBED; color: var(--rot); padding: 1px 6px; border-radius: 6px; }
.danger-zone { margin-top: 24px; }
.settings .btn { margin-top: 18px; }

.draw { text-align: center; }
.big-code { font-family: var(--font-head); font-weight: 700; font-size: clamp(6rem, 26vw, 15rem); line-height: 1.05; color: var(--rot); margin: 8px 0 20px; }
.draw summary { list-style: none; }
.draw summary::-webkit-details-marker { display: none; }
.draw dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; max-width: 480px; margin: 18px auto; text-align: left; font-size: 1.15rem; }
.draw dt { color: var(--grau); }
.draw dd { margin: 0; font-weight: 700; word-break: break-word; }
.draw .actions { justify-content: center; flex-wrap: wrap; }
.prize-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; margin: 10px 0; }
.prize-row .btn { width: auto; white-space: nowrap; }

/* Entwurf 2: Preise im Stil der Dorfblatt-Anzeige */
:root { --tanne: #1E5B3A; --tanne-hell: #F1F7F2; --tanne-linie: #A9D3B4; }
.trees { display: block; margin: 0 auto 6px; width: 160px; height: auto; }
.prizes-title { color: var(--tanne); }
.prize-cards { gap: 30px; margin-top: 34px; }
.prize { position: relative; display: block; padding: 32px 20px 18px; border: 2px solid var(--tanne-linie); background: var(--tanne-hell); border-radius: 16px; }
.prize-top { padding: 32px 20px 18px; border-color: var(--tanne-linie); background: var(--tanne-hell); }
.rank, .prize-top .rank { position: absolute; top: -24px; left: 18px; width: 48px; height: 48px; background: var(--tanne); border: 4px solid #fff; font-size: 1.35rem; }
.prize-tree { position: absolute; top: -30px; right: 18px; width: 30px; height: 40px; }
.prize-main, .prize-top .prize-main { font-size: 1.2rem; color: var(--tanne); }
.prize-extra, .prize-top .prize-extra { color: var(--tanne); font-weight: 700; }
.draw-pill-wrap { text-align: center; margin: 2px 0 0; }
.draw-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 20px; border-radius: 999px; background: var(--rot); color: #fff; font-weight: 700; font-size: 1rem; line-height: 1.2; }
.draw-pill svg { flex: none; }
@media (max-width: 420px) { .draw-pill { font-size: .88rem; padding: 8px 14px; gap: 6px; } .draw-pill svg { width: 18px; height: 18px; } }

/* Kopf wie im Flyer */
.fest-title { text-align: center; font-size: clamp(2.1rem, 9vw, 3rem); line-height: 1.05; margin: 20px 0 16px; letter-spacing: -.01em; }
.fest-title span { display: block; }
.t-gruen { color: var(--tanne); }
.t-rot { color: var(--rot); }
.fest-facts { list-style: none; width: fit-content; max-width: 100%; margin: 0 auto 18px; padding: 0; }
.fest-facts li { display: flex; align-items: flex-start; gap: 10px; margin: 8px 0; font-weight: 600; font-size: 1.05rem; line-height: 1.35; }
.fest-facts svg { flex: none; width: 24px; height: 24px; color: var(--tanne); }
.draw-info .draw-pill-wrap { margin: 0 0 10px; }
.nowrap { white-space: nowrap; }
@media (max-width: 420px) {
  .draw-info { padding: 14px 10px; }
  .draw-info .draw-pill { font-size: .8rem; padding: 7px 12px; white-space: nowrap; }
}
@media (max-width: 350px) { .draw-info .draw-pill { white-space: normal; } }
.signup-note { margin: 18px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--flaeche); font-size: .95rem; line-height: 1.45; }
