/* Nur helles Farbschema: kein automatischer Dark Mode von Pico oder Browser */
:root {
    color-scheme: light;
}


:root,
:root:not([data-theme='dark']),
[data-theme='light'] {
    --pico-font-family: Calibri, 'Lucida Grande', Helvetica, Arial, sans-serif;
    --brand-heading-font: 'Walter W01 Regular', Calibri, 'Lucida Grande', Helvetica, serif;
    --pico-primary-background: #1f5a8c;
    --pico-primary-border: #1f5a8c;
    --pico-primary-hover-background: #17466e;
    --pico-primary-hover-border: #17466e;
    --pico-primary-underline: rgba(31, 90, 140, 0.5);
    --pico-primary: #1f5a8c;
    --pico-primary-hover: #17466e;
    --pico-primary-focus: rgba(31, 90, 140, 0.22);
    --pico-primary-inverse: #fff;
    --pico-border-radius: 0.45rem;
    --brand-accent: #7fb2dc;
    --brand-primary: #1f5a8c;
    --brand-ink: #1d2a3a;
    --brand-navy: #142f4f;
    --brand-ice: #d9ecfa;
    --brand-gold: #d3ac31;
    --brand-gold-dark: #8f6d0e;
    --brand-link: #2a68b8;
    --brand-heading: #1a3d63;
    --measure: 36em;
    --brand-page: #eff7ff;
    --brand-menu: #1c59a5;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    padding: 1.5rem 1rem 3rem;
    color: var(--brand-ink);
    background: url("../images/bg2025-nK3Xndi.jpg") no-repeat bottom center / cover fixed;
}

a {
    text-underline-offset: 0.18em;
}

.site-main :is(p, li, td, dd) {
    overflow-wrap: break-word;
    text-wrap: pretty;
}

.site-main :is(p, ul, ol, dl) {
    max-width: var(--measure);
}

.lead {
    font-size: 1.125rem;
}

.site-shell {
    width: min(55.5rem, 100%);
    margin: 0 auto;
    overflow: hidden;
    background: url("../images/bg_white-sWuejrd.jpg") repeat-x var(--brand-page);
    border-radius: 0.5rem;
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.45);
}

.site-header {
    position: relative;
    padding: 2.4rem 1.5rem 0;
    background: url("../images/whitenoise-RyWCW38.png") var(--brand-menu);
}

/* Schnee liegt oben auf der Karte (wie unten auf dem Kalendermotiv) */
.site-header::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 2.25rem;
    background: url("../images/snow-cap-qdmsb0T.svg") repeat-x 0 0 / 75rem 2.25rem;
    filter: drop-shadow(0 1px 1px rgba(10, 30, 60, 0.2));
    pointer-events: none;
}

.brand-row {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr) 8rem;
    align-items: center;
    gap: 1rem;
}

.brand-logo img {
    display: block;
    width: 4.5rem;
    height: auto;
}

.partner-logo {
    display: block;
}

.partner-logo img {
    display: block;
    width: min(100%, 7.5rem);
    height: auto;
    margin-inline: auto;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.brand-logo img {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.site-title {
    margin: 0;
    text-align: center;
    font-family: var(--brand-heading-font);
    font-weight: normal;
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    line-height: 1.05;
    text-wrap: balance;
}

.site-title a {
    color: var(--brand-gold);
    text-decoration: none;
    text-shadow: -1px -1px #000;
}

.site-title a:hover {
    color: #f0cf5e;
}

/* Schnee liegt auch auf der Menüleiste; versetzt, damit sich das Muster nicht wiederholt */
.site-nav::before,
.menu-toggle::after {
    content: '';
    position: absolute;
    inset: -1px 0 auto;
    height: 1.1rem;
    background: url("../images/snow-cap-qdmsb0T.svg") repeat-x -23rem 0 / 75rem 2.25rem;
    filter: drop-shadow(0 1px 1px rgba(10, 30, 60, 0.2));
    pointer-events: none;
}

.site-nav {
    position: relative;
    display: block;
    margin: 1rem -1.5rem 0;
    padding: 0.7rem 0.75rem 0.45rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(8, 28, 60, 0.28);
}

.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 0.1rem 0.5rem;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav li {
    margin: 0;
    padding: 0;
}

.site-nav a,
.site-nav li :where(a) {
    display: block;
    margin: 0;
    padding: 0.15rem 0.4rem;
    color: var(--brand-gold);
    background: none;
    border-radius: 0;
    font-family: var(--brand-heading-font);
    font-size: 1.35rem;
    line-height: 1.3;
    white-space: nowrap;
    font-weight: normal;
    text-decoration: none;
    text-shadow: -1px -1px #000;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: #fff;
    opacity: 0.8;
    text-shadow: none;
}

.site-nav a[aria-current='page'] {
    color: #fff;
    opacity: 1;
    text-shadow: none;
}

.menu-toggle,
.menu-toggle:is(:hover, :focus, :active) {
    position: relative;
    width: calc(100% + 2rem);
    margin: 0.75rem -1rem 0;
    padding: 0.5rem 1rem;
    color: var(--brand-gold);
    background: url("../images/whitenoise-RyWCW38.png") var(--brand-menu);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-family: var(--brand-heading-font);
    font-size: 1.5rem;
    font-weight: normal;
    text-shadow: -1px -1px #000;
}

.menu-toggle:hover,
.menu-toggle[aria-expanded='true'] {
    color: #fff;
    text-shadow: none;
}

.menu-toggle:focus-visible,
.site-nav a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
}

.menu-toggle::before {
    content: '\2630\00a0';
}

.site-main {
    min-height: 28rem;
    padding: clamp(1.25rem, 4vw, 3rem);
}

.site-main h1,
.site-main h2,
.site-main h3 {
    max-width: 24em;
    margin-bottom: 0.5em;
    color: var(--brand-heading);
    font-family: var(--brand-heading-font);
    font-weight: normal;
    line-height: 1.15;
    text-wrap: balance;
}

.site-main h1 {
    margin-top: 0;
    font-size: 2rem;
}

.site-main h2 {
    margin-top: 2.5rem;
    font-size: 1.5rem;
}

.site-main h3 {
    margin-top: 1.75rem;
    font-size: 1.25rem;
}

.site-footer {
    padding: 1.5rem;
    text-align: center;
    color: var(--brand-ink);
    background: var(--brand-page);
}

/* Gruß unterhalb der Karte auf dem Hintergrundbild, gelb wie der Seitentitel */
.site-greeting {
    max-width: 30em;
    margin: 2rem auto 0;
    padding: 0 1rem;
    color: var(--brand-gold);
    font-family: var(--brand-heading-font);
    font-size: clamp(1.375rem, 3vw, 1.75rem);
    line-height: 1.25;
    text-align: center;
    text-shadow: -1px -1px #000, 0 1px 6px rgba(0, 0, 0, 0.65);
    text-wrap: balance;
}

.site-footer nav {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
}

.site-footer a {
    color: var(--brand-link);
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(14rem, 0.85fr);
    align-items: center;
    gap: 2rem;
}

/* Wie Font Awesome 7: feste Breite, Pfade dürfen über die viewBox hinausragen (sonst wird z. B. der Warenkorb oben abgeschnitten) */
.icon {
    display: inline-block;
    width: 1.25em;
    height: 1em;
    flex: none;
    overflow: visible;
    fill: currentColor;
    vertical-align: -0.125em;
}

/* a.icon-button schlägt Picos a[role="button"] { display: inline-block }, sonst greift gap bei Link-Buttons nicht */
.icon-button,
a.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75em;
}

.calendar-image {
    display: block;
    width: min(100%, 25rem);
    height: auto;
    margin: 0 auto;
}

.phase-notice {
    padding: 1rem 1.25rem;
    border-left: 0.3rem solid var(--brand-accent);
    background: #eef6fc;
}

.organization-grid,
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: 1rem;
}

/* Zwei Karten pro Zeile; eine übrige letzte Karte steht mittig darunter */
.organization-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem 1.5rem;
    padding-top: 0.5rem;
}

.organization-grid > .organization-card {
    grid-column: span 2;
}

.organization-grid > .organization-card:last-child:nth-child(odd) {
    grid-column: 2 / span 2;
}

/* Festliche Karten: blaue Leiste mit Schnee oben, leicht schief – als hängen sie an einer Leine */
.organization-card {
    position: relative;
    margin: 0;
    padding: 2.25rem 1.5rem 1.25rem;
    text-align: center;
    background: #fff linear-gradient(180deg, #fff 60%, #f3f9ff);
    border: 1px solid #d5e2ee;
    border-radius: 0.5rem;
    box-shadow: 0 6px 14px -8px rgba(10, 30, 60, 0.35);
    transform: rotate(-0.6deg);
    transform-origin: 50% 0;
}

.organization-card:nth-child(even) {
    transform: rotate(0.5deg);
}

.organization-card:nth-child(3) {
    transform: rotate(0.4deg);
}

.organization-card:nth-child(4) {
    transform: rotate(-0.45deg);
}

.organization-card::before,
.organization-card::after {
    content: '';
    position: absolute;
    inset: -1px -1px auto;
    pointer-events: none;
}

/* Blaue Leiste und Schnee liegen deckungsgleich auf der Kartenoberkante – wie auf der Menüleiste */
.organization-card::before,
.organization-card::after {
    height: 1.2rem;
    border-radius: 0.5rem 0.5rem 0 0;
}

.organization-card::before {
    background: url("../images/whitenoise-RyWCW38.png") var(--brand-menu);
}

.organization-card::after {
    background: url("../images/snow-cap-qdmsb0T.svg") repeat-x -11rem 0 / 75rem 2.25rem;
    filter: drop-shadow(0 1px 1px rgba(10, 30, 60, 0.2));
}

.organization-card:nth-child(2)::after { background-position-x: -37rem; }
.organization-card:nth-child(3)::after { background-position-x: -52rem; }
.organization-card:nth-child(4)::after { background-position-x: -5rem; }

.organization-card img.logo-large {
    height: 6.5rem;
}

.organization-card p {
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.55;
    text-align: left;
}

/* Text oben, Logo zentriert darunter am Kartenfuß */
.organization-card {
    display: flex;
    flex-direction: column;
}

.organization-card img {
    order: 2;
    align-self: center;
    width: auto;
    max-width: 60%;
    height: 3.5rem;
    margin: auto 0 0;
    object-fit: contain;
}

/* Bestellformular im Kartenstil, aber gerade – schiefe Eingabefelder wären unruhig */
.organization-card.form-card {
    display: block;
    margin: 1.5rem 0 0;
    padding: 2rem 1.5rem 0.75rem;
    text-align: left;
    background: #fff;
    transform: none;
}

.form-card::after {
    background-position-x: -44rem;
}

.organization-card img.logo-medium {
    height: 5.46875rem;
}

/* Bestellen und Gewinnbenachrichtigung in einer Karte unter dem Willkommenstext, durch eine Linie getrennt.
   Bestellen als wichtigste Aktion oben mit kräftigerem Verlauf und blauem Hauptbutton. */
.organization-card.action-card {
    margin: 1.75rem 0 1.25rem;
    padding: 0;
    border-color: #b9d1e8;
    box-shadow: 0 8px 18px -8px rgba(10, 30, 60, 0.45);
    transform: rotate(-0.4deg);
}

.action-card::after {
    background-position-x: -29rem;
}

.action-card__section {
    padding: 1.25rem 1.5rem;
    text-align: center;
}

.action-card__section:first-child {
    padding-top: 2.25rem;
    border-radius: 0.5rem 0.5rem 0 0;
}

.action-card__section:last-child {
    border-radius: 0 0 0.5rem 0.5rem;
}

.action-card__section:only-child {
    border-radius: 0.5rem;
}

.action-card__section + .action-card__section {
    border-top: 1px solid #b9d1e8;
}

.action-card__section p {
    max-width: 30em;
    margin: 0 auto 1rem;
    text-align: center;
    text-wrap: balance;
}

.action-card__section p:last-child {
    margin-bottom: 0;
}

.action-card__order {
    background: #dcebf8 linear-gradient(180deg, #f4f9fe 0%, #d3e6f6 100%);
}

.action-card__reminder {
    background: #fff linear-gradient(180deg, #fff 60%, #f3f9ff);
}

.action-card__button {
    padding: 0.75rem 1.25rem;
    font-size: 1.0625rem;
}

.action-card__section .action-card__note {
    margin-top: -0.4rem;
    color: var(--brand-heading);
    font-size: 0.875rem;
}

.partner-grid {
    gap: 1.25rem 1rem;
    padding-top: 0.5rem;
}

/* Partner wie die Organisationskarten, aber ohne Leiste mit Schnee; überlagerte 3er-, 4er- und 5er-Zyklen
   ergeben eine unregelmäßig wirkende Neigung */
.partner-grid article {
    --tilt-a: 0deg;
    --tilt-b: 0deg;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 1rem 1.1rem;
    background: #fff linear-gradient(180deg, #fff 60%, #f3f9ff);
    border: 1px solid #d5e2ee;
    border-radius: 0.5rem;
    box-shadow: 0 6px 14px -8px rgba(10, 30, 60, 0.35);
    transform: rotate(calc(var(--tilt-a) + var(--tilt-b)));
    transform-origin: 50% 0;
}

.partner-grid article:nth-child(3n + 1) { --tilt-a: -0.5deg; }
.partner-grid article:nth-child(3n + 2) { --tilt-a: 0.4deg; }
.partner-grid article:nth-child(3n) { --tilt-a: -0.15deg; }
.partner-grid article:nth-child(4n + 1) { --tilt-b: 0.2deg; }
.partner-grid article:nth-child(4n + 3) { --tilt-b: -0.25deg; }
.partner-grid article:nth-child(5n + 2) { --tilt-b: 0.3deg; }

.partner-name {
    margin: 0;
    color: var(--brand-ink);
    font-size: 1rem;
    font-weight: 700;
    hyphens: auto;
    line-height: 1.3;
    text-wrap: balance;
}

.partner-address {
    margin-top: 0.45rem;
    color: #4b5563;
    font-size: 0.875rem;
    font-style: normal;
    font-variant-numeric: tabular-nums lining-nums;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.table-scroll {
    overflow-x: auto;
}

.prize-table {
    width: 100%;
    --pico-background-color: transparent;
    --pico-table-row-stripped-background-color: transparent;
    border-collapse: collapse;
    background: transparent;
}

.prize-table :is(th, td) {
    padding: 0.8rem 0.75rem;
    vertical-align: top;
    background: transparent;
    border-bottom: 1px solid color-mix(in srgb, var(--brand-primary) 16%, transparent);
}

.prize-table thead th {
    padding-top: 0.4rem;
    padding-bottom: 0.65rem;
    color: var(--brand-ink);
    font-size: 0.9rem;
    font-weight: 700;
    text-align: left;
}

.prize-table tbody tr.day-start > * {
    border-top: 1px solid color-mix(in srgb, var(--brand-primary) 30%, transparent);
}

.prize-table th[scope='row'] {
    white-space: nowrap;
    color: var(--brand-primary);
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums lining-nums;
    font-weight: 700;
}

.prize-description {
    display: block;
    hyphens: auto;
    overflow-wrap: anywhere;
    text-wrap: pretty;
}

.prize-sponsor {
    display: block;
    margin-top: 0.2rem;
    color: #4b5563;
    font-size: 0.9rem;
    hyphens: auto;
    overflow-wrap: anywhere;
}

.prize-number-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, 3.6rem);
    gap: 0.6rem 0.45rem;
    align-content: start;
    padding-top: 0.2rem;
}

/* Lose wie kleine Kalender-Etiketten: blaue Textur, Schnee oben, Schatten, jedes ganz leicht versetzt.
   Die überlagerten 3er-, 5er- und 7er-Zyklen ergeben ein unregelmäßig wirkendes Muster ohne JavaScript. */
.prize-number {
    --tilt-a: 0deg;
    --tilt-b: 0deg;
    --shift-y: 0px;
    position: relative;
    display: block;
    padding: 0.4rem 0.3rem 0.25rem;
    color: #fff;
    background: url("../images/whitenoise-RyWCW38.png") var(--brand-menu);
    border-radius: 0.3rem;
    box-shadow: 0 4px 8px -4px rgba(10, 30, 60, 0.55);
    font-weight: 700;
    font-variant-numeric: tabular-nums lining-nums;
    line-height: 1.25;
    text-align: center;
    text-shadow: 0 1px 1px rgba(10, 30, 60, 0.35);
    white-space: nowrap;
    transform: translateY(var(--shift-y)) rotate(calc(var(--tilt-a) + var(--tilt-b)));
}

.prize-number::before {
    content: '';
    position: absolute;
    inset: -2px -1px auto;
    height: 0.55rem;
    background: url("../images/snow-cap-qdmsb0T.svg") repeat-x -3rem 0 / 30rem 0.9rem;
    border-radius: 0.3rem 0.3rem 0 0;
    filter: drop-shadow(0 1px 0.5px rgba(10, 30, 60, 0.25));
    pointer-events: none;
}

.prize-number:nth-child(3n + 1) { --tilt-a: -1.4deg; }
.prize-number:nth-child(3n + 2) { --tilt-a: 0.9deg; }
.prize-number:nth-child(3n) { --tilt-a: -0.3deg; }
.prize-number:nth-child(5n + 1) { --tilt-b: 0.6deg; --shift-y: 1px; }
.prize-number:nth-child(5n + 3) { --tilt-b: -0.8deg; --shift-y: -1px; }
.prize-number:nth-child(5n + 4) { --shift-y: 2px; }
.prize-number:nth-child(7n + 2)::before { background-position-x: -11rem; }
.prize-number:nth-child(7n + 4)::before { background-position-x: -19rem; }
.prize-number:nth-child(7n + 5)::before { background-position-x: -7rem; }
.prize-number:nth-child(7n)::before { background-position-x: -24rem; }

/* Pro Gewinn ein anderer Startpunkt, damit benachbarte Zeilen nicht gleich aussehen */
.prize-table tbody tr:nth-child(even) .prize-number:nth-child(even) { --tilt-b: -0.6deg; }
.prize-table tbody tr:nth-child(3n) .prize-number:nth-child(odd) { --tilt-b: 0.7deg; }

@media (max-width: 40rem) {
    .table-scroll {
        overflow-x: visible;
    }

    .prize-table,
    .prize-table tbody,
    .prize-table tr,
    .prize-table th,
    .prize-table td {
        display: block;
        width: 100%;
    }

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

    .prize-table tbody tr {
        padding: 0.85rem 0;
        border-bottom: 1px solid color-mix(in srgb, var(--brand-primary) 16%, transparent);
    }

    .prize-table tbody tr.day-start {
        margin-top: 0.35rem;
        border-top: 1px solid color-mix(in srgb, var(--brand-primary) 30%, transparent);
    }

    .prize-table tbody tr:first-child.day-start {
        margin-top: 0;
        border-top: 0;
    }

    .prize-table :is(th, td) {
        padding: 0.35rem 0;
        border: 0;
    }

    .prize-table th[scope='row'] {
        padding-top: 0;
    }

    .prize-table th[data-label]::before,
    .prize-table td::before {
        display: block;
        margin-bottom: 0.15rem;
        color: #4b5563;
        font-size: 0.8rem;
        font-weight: 700;
        line-height: 1.3;
    }

    .prize-table th[data-label]::before {
        content: attr(data-label);
    }

    .prize-table td::before {
        content: attr(data-label);
    }
}

/* Kompakte Formulare: Eingaben ca. 75 % der Pico-Standardhöhe */
.site-main form,
.site-main form :is(input, select, textarea, button) {
    --pico-form-element-spacing-vertical: 0.375rem;
    --pico-form-element-spacing-horizontal: 0.75rem;
    --pico-spacing: 0.5rem;
}

.site-main form :is(input:not([type="checkbox"], [type="radio"]), select, textarea, button) {
    font-size: 0.9375rem;
}

/* Kompaktere Felder: Höhe ergibt sich aus Innenabstand und Zeilenhöhe */
.site-main form input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"]),
.site-main form select:not([multiple], [size]) {
    padding-block: 0.25rem;
    line-height: 1.4;
}

/* Absende-Buttons etwas größer als die kompakten Felder */
.site-main form button[type="submit"] {
    padding: 0.65rem 1.5rem;
    font-size: 1.0625rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
}

.form-grid > .span-full {
    grid-column: 1 / -1;
}

/* Feldzeile: Label, Eingabe, feste Meldungszeile – Fehler ersetzen den Hilfetext, nichts verrutscht */
.form-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin-bottom: 0.2rem;
}

/* Calibri und die Ersatzschriften haben keinen Medium-Schnitt; 600 greift auf den nächsten kräftigeren Schnitt zurück */
.form-field > label {
    margin-bottom: 0.15rem;
    font-size: 0.9375rem;
    font-weight: 600;
}

/* Pflichtfelder: Sternchen nur optisch; Screenreader erkennen das required-Attribut am Feld */
.form-field > label.required::after,
.form-field--choice > legend.required::after {
    content: " *" / "";
    color: #a61b1b;
}

.required-note {
    margin: 0 0 var(--form-rhythm, 0.75rem);
    color: #4b5563;
    font-size: 0.875rem;
    line-height: var(--form-rhythm, 0.75rem);
}

.required-note span {
    color: #a61b1b;
}

.site-main .form-field :is(input:not([type="checkbox"], [type="radio"]), select, textarea) {
    margin-bottom: 0.1rem;
}

.field-message {
    min-height: 1rem;
    margin-top: 0.3rem;
    font-size: 0.75rem;
    line-height: 1rem;
}

.field-message small {
    display: block;
    margin: 0;
    color: #4b5563;
    font-size: inherit;
}

.site-main .field-message .form-errors {
    margin: 0;
    padding: 0;
    color: #a61b1b;
    font-weight: 600;
}

.form-field--choice {
    margin: 0 0 0.2rem;
    padding: 0;
    border: 0;
}

.form-field--choice legend {
    margin-bottom: 0.15rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    color: inherit;
}

.form-field--choice > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 0.25rem;
    min-height: 1.5rem;
}

.form-field--choice input {
    margin: 0 0.45rem 0 0;
}

.form-field--choice label {
    margin: 0 1.75rem 0 0;
    font-weight: normal;
}

/* Vertikaler Rhythmus im Bestellformular: Vielfache von 0,75 rem (halbe Grundzeile von 1,5 rem) */
.order-form {
    --form-rhythm: 0.75rem;
}

.order-form > fieldset {
    margin: 0 0 var(--form-rhythm);
    padding: 0;
}

/* Formularfelder unter der Überschrift: weißer Hintergrund, oben durch eine Linie von der Überschrift getrennt */
.order-form > fieldset:has(> .order-details) {
    margin-bottom: 0;
}

.order-details {
    margin-inline: -1.5rem;
    padding: calc(var(--form-rhythm) * 2) 1.5rem calc(var(--form-rhythm) * 2);
    border-top: 1px dashed #6f97c0;
}

/* Bestellbereich: schließt direkt an die Angaben an, bis zum Kartenfuß; die Linie trennt Angaben und Bestellung */
.order-checkout {
    margin: 0 -1.5rem -0.75rem;
    border-top: 1px dashed #6f97c0;
    border-radius: 0 0 calc(0.5rem - 1px) calc(0.5rem - 1px);
}

.order-checkout > fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

/* Summe, Button und Hinweis; eigene Linie trennt sie von der Kalenderzeile */
.order-checkout__footer {
    padding: calc(var(--form-rhythm) * 2) 1.5rem calc(var(--form-rhythm) * 2);
    border-top: 1px dashed #6f97c0;
    border-radius: inherit;
}

/* Legende als echte Abschnittsüberschrift im Fieldset, nicht auf dessen Rand */
.order-form > fieldset > legend {
    float: left;
    width: 100%;
    margin: calc(var(--form-rhythm) * 2) 0;
    padding: 0;
    color: var(--brand-heading);
    font-family: var(--brand-heading-font);
    font-size: 1.75rem;
    font-weight: normal;
    line-height: calc(var(--form-rhythm) * 3);
}

/* Hinweis direkt unter der Überschrift, vor der Linie */
.order-form > fieldset > legend:has(+ .required-note) {
    margin-bottom: var(--form-rhythm);
}

.order-form .required-note {
    margin-bottom: calc(var(--form-rhythm) * 2);
}

.order-form > fieldset > legend + * {
    clear: both;
}

.product-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 1rem;
    /* oben 24 px wie unter den anderen Linien; unten 12 px plus feste Meldungszeile ≈ 24 px */
    padding: calc(var(--form-rhythm) * 2) 1.5rem var(--form-rhythm);
}

/* Text auf Höhe des Mengenfelds */
.product-line__info {
    padding-top: 0.35rem;
}

.product-line__price {
    margin-left: 0.5rem;
    color: var(--pico-muted-color);
    font-variant-numeric: tabular-nums;
}

/* Mengenfeld und „Anzahl“ in einer Zeile; im HTML bleibt das Label vor dem Feld */
.product-line__qty {
    display: grid;
    grid-template-columns: 4.5rem auto;
    grid-template-areas: "input label" "message message";
    align-items: center;
    column-gap: 0.5rem;
}

.site-main .product-line__qty > input {
    grid-area: input;
    margin-bottom: 0;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.product-line__qty > label {
    grid-area: label;
    margin: 0;
    white-space: nowrap;
}

.product-line__qty .field-message {
    grid-area: message;
    max-width: 12rem;
    text-align: right;
}

.product-line__qty .form-errors {
    text-align: left;
}

.order-total {
    margin: 0 0 calc(var(--form-rhythm, 0.75rem) * 2);
    font-size: 1.375rem;
    line-height: calc(var(--form-rhythm, 0.75rem) * 3);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.order-total small {
    display: block;
    font-size: 0.875rem;
    line-height: var(--form-rhythm, 0.75rem);
    color: var(--pico-muted-color);
}

.form-alert,
.form-success {
    padding: 0.75rem 1rem;
    border-left: 0.3rem solid;
    border-radius: 0.25rem;
}

.form-alert {
    margin-bottom: 1rem;
    color: #8a1c1c;
    background: #fdeeee;
}

.form-success {
    color: var(--brand-heading);
    background: #eef6fc;
    border-color: var(--brand-primary);
}

.site-main .form-alert ul {
    margin: 0;
    padding: 0;
}

.site-main form li {
    margin: 0;
    list-style: none;
}

/* Rechtliche Hinweise (Datenschutz, Lotteriegesetz) einheitlich: klein, zentriert, kompakt;
   p.legal-note schlägt .organization-card p { text-align: left } in der Bestellkarte */
.legal-note,
.organization-card p.legal-note {
    max-width: 36em;
    margin: 1.5rem auto 0;
    color: #4b5563;
    line-height: 1.35;
    text-align: center;
    text-wrap: balance;
}

.legal-note small {
    line-height: inherit;
}

/* Großer Link zur Gewinnliste über die ganze Breite, Stand als Unterzeile */
.prize-list-link {
    margin: auto;
    padding: 2.5rem 1rem;
    text-align: center;
}

.prize-list-link a {
    font-family: var(--brand-heading-font);
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.2;
}

.prize-list-link small {
    display: block;
    margin-top: 0.5rem;
    color: var(--pico-muted-color);
}

/* Gewinnbenachrichtigung als modaler Dialog (Pico-Dialog, ans Theme angepasst) */
.reminder-dialog {
    --pico-modal-overlay-background-color: rgba(10, 30, 60, 0.6);
}

.reminder-dialog > article {
    width: min(32rem, 100%);
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    background: #eff7ff;
    border-radius: 0.5rem;
}

/* Kopf wie die Menüleiste: blaue Textur, Schneekante, goldene Walter-Schrift */
.reminder-dialog > article > header {
    position: relative;
    padding: 2rem 1.5rem 1.25rem;
    background: url("../images/whitenoise-RyWCW38.png") var(--brand-menu);
    border-bottom: 0;
    border-radius: 0.5rem 0.5rem 0 0;
}

.reminder-dialog > article > header::before {
    content: '';
    position: absolute;
    inset: -1px 0 auto;
    height: 1.1rem;
    background: url("../images/snow-cap-qdmsb0T.svg") repeat-x -17rem 0 / 75rem 2.25rem;
    filter: drop-shadow(0 1px 1px rgba(10, 30, 60, 0.2));
    border-radius: 0.5rem 0.5rem 0 0;
    pointer-events: none;
}

.reminder-dialog h2 {
    margin: 0;
    font-size: 1.375rem;
    color: var(--brand-gold);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

/* Schließen-Kreuz hell auf dem dunklen Kopf */
.reminder-dialog header [rel="prev"] {
    position: relative;
    z-index: 1;
    margin-top: 0.15rem;
    filter: invert(1) brightness(2);
    opacity: 0.85;
}

.reminder-dialog header [rel="prev"]:is(:hover, :focus-visible) {
    opacity: 1;
}

.reminder-dialog form button[type="submit"] {
    width: 100%;
    margin-top: 0.75rem;
}

/* Buttons mit etwas Tiefe: leichter Verlauf, Lichtkante oben, Schatten; beim Drücken eingedrückt */
.site-main :is(button:not([rel="prev"]), [role="button"], input[type="submit"]) {
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 55%, rgba(0, 0, 0, 0.12));
    border-color: rgba(8, 28, 60, 0.45);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 1px 1px rgba(10, 30, 60, 0.25),
        0 3px 8px -2px rgba(10, 30, 60, 0.35);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.site-main :is(button:not([rel="prev"]), [role="button"], input[type="submit"]):hover {
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 2px 2px rgba(10, 30, 60, 0.22),
        0 6px 14px -4px rgba(10, 30, 60, 0.4);
}

.site-main :is(button:not([rel="prev"]), [role="button"], input[type="submit"]):active {
    transform: translateY(1px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

.site-main :is(button:not([rel="prev"]), [role="button"], input[type="submit"]):focus-visible {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 0 0 3px var(--pico-primary-focus);
}

@media (prefers-reduced-motion: reduce) {
    .site-main :is(button, [role="button"], input[type="submit"]) {
        transition: none;
        transform: none !important;
    }
}

.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 30rem) {
    .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .organization-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .organization-grid > .organization-card,
    .organization-grid > .organization-card:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .site-main :is(p, li, td, dd) {
        hyphens: auto;
        hyphenate-limit-chars: 10 4 4;
    }
}

@media (max-width: 48rem) {
    body {
        padding: 0 0 2.5rem;
        background-attachment: scroll;
    }

    .site-greeting {
        margin-top: 1.75rem;
        padding-inline: 1.25rem;
    }

    .site-shell {
        width: 100%;
        border-radius: 0;
    }

    .site-header {
        padding: 2rem 1rem 0;
    }

    .brand-row {
        grid-template-columns: 3.5rem minmax(0, 1fr) 4.5rem;
        gap: 0.5rem;
    }

    .brand-logo img {
        width: 3.25rem;
    }

    .partner-logo img {
        width: 4.25rem;
    }

    .site-title {
        font-size: clamp(1.5rem, 6vw, 2.25rem);
    }

    .menu-toggle:not([hidden]) {
        display: block;
    }

    .site-nav {
        margin: 0 -1rem;
        padding-top: 0;
    }

    .site-nav::before {
        content: none;
    }

    .menu-toggle,
    .menu-toggle:is(:hover, :focus, :active) {
        padding-top: 0.75rem;
    }

    .site-nav ul {
        display: block;
    }

    .site-nav[hidden] {
        display: none;
    }

    .site-nav a,
    .site-nav li :where(a) {
        padding: 0.45rem 0.75rem;
        font-size: 1.5rem;
        text-align: center;
        white-space: normal;
    }

    .home-hero {
        grid-template-columns: 1fr;
    }

    .home-hero > div:first-child {
        order: 2;
    }

    .home-hero > img {
        order: 1;
        max-width: 18rem;
    }
}

@media (min-width: 48.01rem) {
    .menu-toggle {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}