/* Meranderground Silvester. Vorläufig im Look des Formulars 2025, wird an den Flyer 2026 angepasst. Keine externen Schriften. */
:root {
    --bg: #0d0e14;
    --panel: #12131b;
    --text: #f3f3f7;
    --muted: #a3a3b6;
    --line: #2c2d3b;
    --field: #22232e;
    --accent-1: #6c63ff;
    --accent-2: #d64fd1;
    --accent-3: #ff5a5f;
    --glow: linear-gradient(135deg, var(--accent-1), var(--accent-2) 55%, var(--accent-3));
    --error: #ff7b8a;
    --font: "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); font-size: 17px; line-height: 1.5; color: var(--text); background: var(--bg); }
a { color: inherit; text-underline-offset: 2px; }
h1, h2 { line-height: 1.2; }
.center { text-align: center; }
.strong { font-weight: 700; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }

.test-banner { background: #f5c542; color: #1a1a1a; text-align: center; font-weight: 700; font-size: .9rem; padding: .5rem 1rem; }
.page { max-width: 580px; margin: 0 auto; padding: 40px 16px 24px; }
.page.wide { max-width: 1150px; padding-top: 20px; }

/* Rahmen mit Farbverlauf und Leuchten wie 2025 */
.site .panel { position: relative; background: var(--panel); padding: 30px 26px; border-radius: 4px; }
.site .panel::before { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: 6px; background: var(--glow); box-shadow: 0 0 28px rgba(214, 79, 209, .35); }
.site main { position: relative; z-index: 0; }

.event { text-align: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.event-title { margin: 0 0 6px; font-size: clamp(1.7rem, 7vw, 2.1rem); font-weight: 800; background: var(--glow); -webkit-background-clip: text; background-clip: text; color: transparent; }
.event p { margin: 0; font-size: 1.15rem; font-weight: 600; }

.info { text-align: center; padding: 18px 0 6px; border-bottom: 1px solid var(--line); }
.info h2 { font-size: 1.25rem; font-weight: 600; margin: 0 0 14px; }
.info p { margin: 0 0 14px; font-size: .97rem; }

.signup { padding-top: 10px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }
.field { display: block; font-weight: 600; margin: 16px 0 0; }
.hint { font-weight: 600; }
.req { color: var(--accent-3); }
.field input, .field textarea, .search input {
    display: block; width: 100%; margin-top: 8px; min-height: 46px; padding: 10px 12px;
    font: inherit; font-size: 16px; font-weight: 400; color: inherit;
    background: var(--field); border: 1px solid var(--line); border-radius: 4px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input[aria-invalid="true"] { border-color: var(--error); }
.error { display: block; color: var(--error); font-size: .92rem; font-weight: 500; margin: 6px 0 0; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 4px; cursor: pointer; font-size: .95rem; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent-2); }
.hp { position: absolute; left: -9999px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 28px;
    font: inherit; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
    color: #fff; background: var(--glow); border: 0; border-radius: 10px; cursor: pointer;
    box-shadow: 0 0 18px rgba(214, 79, 209, .45);
}
.signup .btn { display: flex; margin: 22px auto 0; }
.btn.ghost { background: transparent; border: 1px solid var(--accent-2); box-shadow: none; text-transform: none; letter-spacing: 0; }
.fine { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }

.closed { text-align: center; padding-top: 22px; }
.closed h2 { font-size: 1.5rem; margin: 0 0 6px; }
.big { font-size: 1.3rem; font-weight: 600; }
.social { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.legal h1 { margin-top: 0; }
.legal h2 { font-size: 1.05rem; margin: 1.4rem 0 .4rem; }
.legal p, .legal li { font-size: .95rem; }

.foot { text-align: center; font-size: .85rem; color: var(--muted); padding: 8px 16px 32px; }
.flash { padding: 10px 14px; border-radius: 8px; background: var(--field); border-left: 4px solid #3ecf8e; }
.flash.err { border-left-color: var(--error); }
.narrow { max-width: 420px; margin: 32px auto; }

/* Verwaltung: hell und schlicht */
body.admin { --text: #1d1d24; --muted: #686876; --line: #e2e2ea; --field: #fff; --error: #c62839; background: #f5f5f8; color: var(--text); }
.admin .panel { background: #fff; border-radius: 12px; padding: 22px; box-shadow: 0 2px 10px rgba(0, 0, 0, .05); }
.admin .btn { box-shadow: none; text-transform: none; letter-spacing: 0; background: #2b2540; }
.admin .btn.secondary { color: var(--text); background: #fff; border: 1px solid var(--line); }
.admin-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line); font-weight: 600; }
.admin-nav form { margin-left: auto; }
.link { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; color: inherit; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.stat { background: #fff; border-radius: 12px; padding: 12px 16px; font-size: .9rem; }
.stat .num { display: block; font-size: 1.6rem; font-weight: 700; }
.stat.bad .num { color: var(--error); }
.search { display: flex; gap: 8px; margin: 12px 0; }
.search input { margin: 0; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: 12px; }
.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(--line); white-space: nowrap; }
.actions-cell { display: flex; gap: 14px; }
tr.cancelled td { color: #a0a0ac; text-decoration: line-through; }
tr.cancelled td:last-child, tr.cancelled td:nth-last-child(2) { text-decoration: none; }
.tag { font-size: .75rem; background: #fde8eb; color: var(--error); padding: 1px 6px; border-radius: 6px; }
.danger-zone { margin-top: 24px; }
.settings .btn { margin-top: 20px; }
.settings h2 { font-size: 1.1rem; margin: 26px 0 0; }
.settings h2:first-of-type { margin-top: 0; }
.preview { white-space: pre-wrap; background: #f5f5f8; border-radius: 8px; padding: 14px; font-size: .9rem; }
.mail-progress { margin: 12px 0; padding: 12px 14px; border-radius: 8px; background: #fff6d8; }

/* Gästeliste zum Drucken */
.guestlist { width: 100%; border-collapse: collapse; background: #fff; font-size: 1rem; }
.guestlist th, .guestlist td { text-align: left; padding: 7px 10px; border-bottom: 1px solid #cfcfd8; }
.guestlist .box { width: 44px; }
.guestlist .box span { display: inline-block; width: 20px; height: 20px; border: 2px solid #1d1d24; border-radius: 3px; vertical-align: middle; }
@media print {
    @page { margin: 12mm; }
    body.admin { background: #fff; font-size: 11pt; }
    .admin-nav, .test-banner, .no-print, .flash { display: none !important; }
    .page.wide { max-width: none; padding: 0; }
    .print-head h1 { font-size: 15pt; margin: 0 0 2pt; }
    .print-head p { margin: 0 0 8pt; }
    .guestlist tr { break-inside: avoid; }
    .guestlist thead { display: table-header-group; }
}
