/* Anmeldesystem Beachsportclub Cuxhaven – Markendesign von cux-beach.de.
   Schriften, Logo und Bilder liegen lokal (DSGVO), keine externen Anfragen. */
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/barlow-500.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/barlow-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/barlow-700.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 800; font-style: normal; font-display: swap; src: url(../fonts/barlow-800.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400 700; font-style: normal; font-display: swap; src: url(../fonts/inter.woff2) format("woff2"); }

:root {
  /* Marke Beachsportclub Cuxhaven (cux-beach.de) */
  --bg: #fdf9f4;            /* Creme */
  --surface: #ffffff;
  --tint: #eef3f4;          /* helle Blaugrau-Fläche */
  --dark: #12262c;          /* tiefes Petrol (Footer, Hero, Text) */
  --dark-2: #1b3841;        /* Überschriften-Petrol */
  --brand: #e77c1f;         /* Markenorange: nur Deko und Text auf Dunkel */
  --ink: #12262c;
  --ink-2: #2f474e;
  --muted: #566a70;
  --line: #ebe5db;
  --line-strong: #d6cec1;
  --field: #84959a;         /* Rahmen von Eingabefeldern, 3:1 */
  --accent: #ad5206;        /* Aktionsorange mit weißer Schrift 5,3:1 */
  --accent-hover: #8f4304;
  --accent-soft: #fbeadb;
  --ok-bg: #e1f1e7;
  --ok-ink: #14532d;
  --warn-bg: #fff0c9;
  --warn-ink: #5c3f00;
  --err-bg: #fde9e7;
  --err-ink: #9b1c1c;
  --info-bg: #e3eef0;
  --info-ink: #1b3841;
  --radius: 8px;
  --radius-card: 14px;
  --shadow: 0 2px 14px rgba(18, 38, 44, .08);
  --measure: 68ch;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Barlow", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--field) var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16.5px/1.6 var(--font);
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
::selection { background: var(--accent); color: #fff; }
input, select, textarea { caret-color: var(--accent); accent-color: var(--accent); }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.hero :focus-visible, .band :focus-visible, .site-footer :focus-visible { outline-color: #fff; }
.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: .5rem .9rem; border-radius: 6px; z-index: 50; }
.skip:focus { left: 8px; }

/* Kopf und Fuß */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: 76px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .8rem; color: var(--dark-2); font: 600 1.1rem/1.15 var(--font-head); text-decoration: none; }
.brand img { width: 48px; height: 48px; display: block; flex: none; }
.brand em { font-style: normal; color: var(--accent); }
.nav { display: flex; flex-wrap: nowrap; gap: .1rem 1.5rem; align-items: center; margin-left: auto; font: 600 1rem var(--font-head); white-space: nowrap; }
.nav a { color: var(--ink); padding: .35rem 0; border-bottom: 2px solid transparent; text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }
.nav .who { color: var(--muted); }
.header-cta { flex: none; }

.site-footer { margin-top: 4rem; background: var(--dark); color: #c9d6d9; font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem 3rem; padding-block: 3rem 2rem; }
.site-footer h2 { font: 700 1rem var(--font-head); color: #fff; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .75rem; }
.site-footer p { margin: 0 0 .5rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a { color: #fff; text-decoration-color: rgba(255, 255, 255, .4); }
.site-footer .brandline { font: 700 1.25rem var(--font-head); color: #fff; margin-bottom: .6rem; }
.site-footer .copy { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 1.25rem; color: #a9bbc0; font-size: 14px; }
main:has(.rules:last-child) + .site-footer { margin-top: 0; }

/* Hero (Startseite) */
.hero { position: relative; isolation: isolate; background: var(--dark) url(../img/hero-match.webp) center 30% / cover; color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 18, 22, .93) 0%, rgba(8, 18, 22, .78) 50%, rgba(8, 18, 22, .36) 100%); }
.hero .wrap { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(4.5rem, 9vw, 6.5rem); }
.hero h1 { color: #fff; max-width: 16ch; font-size: clamp(2.4rem, 1.4rem + 3.8vw, 4rem); line-height: 1.04; }
.hero p { color: #e3ecee; font-size: 1.15rem; max-width: 50ch; margin: 1.1rem 0 0; }
.hero .actions-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.9rem; }
.btn-ghost { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .6); color: #fff; }

/* Dunkles Kopfband für Unterseiten */
.page-head.band { background: var(--dark); color: #fff; box-shadow: 0 0 0 100vmax var(--dark); clip-path: inset(0 -100vmax); margin-bottom: 2.25rem; padding-block: clamp(2rem, 5vw, 3.25rem); }
.band h1 { color: #fff; }
.band .lead, .page-head.band .lead { color: #e3ecee; }
.band .facts dt { color: #b7c8cc; }
.band .facts dd { color: #fff; }
.band a { color: #fff; }

/* Typografie */
h1, h2, h3 { font-family: var(--font-head); color: var(--dark-2); line-height: 1.1; letter-spacing: -.005em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.1rem); font-weight: 800; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.page-head { padding: clamp(1.75rem, 4vw, 3rem) 0 1.5rem; }
.page-head h1 { margin-bottom: .6rem; }
.page-head .lead { color: var(--ink-2); font-size: 1.1rem; max-width: var(--measure); margin: 0; }

/* Faktenzeile */
.facts { display: flex; flex-wrap: wrap; gap: .4rem 1.75rem; margin: 1rem 0 0; padding: 0; }
.facts div { display: flex; gap: .45rem; align-items: baseline; }
.facts dt { color: var(--muted); font-size: 15px; }
.facts dd { margin: 0; font-weight: 600; font-family: var(--font-head); font-size: 1.1rem; }

/* Startseite: Turnierkarten */
.events { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; padding-top: 3rem; scroll-margin-top: 1rem; align-items: stretch; }
.event { display: flex; flex-direction: column; gap: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 1.75rem; }
.event h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: .35rem; }
.event .sub { color: var(--ink-2); margin: 0; }
.event ul { list-style: none; margin: 0; padding: 0; }
.event li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.event li:last-child { border-bottom: 0; }
.event li span:last-child { font-weight: 600; white-space: nowrap; }
.event .cta { display: flex; flex-direction: column; gap: .5rem; align-items: stretch; margin-top: auto; }
.deadline { font-size: 15px; color: var(--muted); }
.deadline.soon { color: var(--warn-ink); font-weight: 650; }
/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .65rem 1.5rem; border-radius: 5px; border: 2px solid var(--accent); background: var(--accent); color: #fff; font: 700 1.05rem/1.1 var(--font-head); text-transform: uppercase; letter-spacing: .03em; text-decoration: none; cursor: pointer; transition: background-color .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease); }
.btn:active { transform: scale(.97); }
.btn-quiet { background: transparent; color: var(--accent); }
.btn-danger { background: transparent; border-color: var(--err-ink); color: var(--err-ink); }
.btn-small { min-height: 40px; padding: .4rem 1rem; font-size: .95rem; }
.btn[disabled], .btn.is-disabled { background: #e8e4dc; border-color: #e8e4dc; color: #5b6468; cursor: not-allowed; transform: none; }
.btn.is-loading { pointer-events: none; opacity: .75; }

/* Formular-Layout */
.form-layout > * { min-width: 0; }
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2rem; align-items: start; padding-bottom: 3rem; }
.fsec { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 1.75rem; margin-bottom: 1.25rem; }
.fsec > h2 { margin-bottom: .35rem; }
.fsec > .hint { color: var(--ink-2); margin: 0 0 1.25rem; max-width: var(--measure); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.span2 { grid-column: 1 / -1; }
.field label, .field .lbl { display: block; font-weight: 600; color: var(--dark-2); margin-bottom: .35rem; font-size: 16px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field .help { color: var(--muted); font-size: 15px; margin-top: .3rem; }
input:not([type]), input[type=date], input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=search], select, textarea {
  width: 100%; min-height: 48px; padding: .6rem .8rem; font: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid var(--field); border-radius: var(--radius);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
input::placeholder { color: #5a6c72; opacity: 1; }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(173, 82, 6, .28); }
.field.has-error input, .field.has-error select { border-color: var(--err-ink); background: #fff7f6; }
.field-error { color: var(--err-ink); font-size: 15px; font-weight: 600; margin-top: .3rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Teams */
.teams { display: grid; gap: .9rem; margin-bottom: 1rem; }
.team { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr) auto; gap: .75rem; align-items: end; padding: 1rem; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); }
.team .name-wrap { position: relative; }
.team .count { position: absolute; right: .7rem; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--muted); pointer-events: none; }
.team .name-wrap input { padding-right: 3.2rem; }
.team .rm { width: 48px; min-height: 48px; padding: 0; }
.team .rm svg { width: 20px; height: 20px; }
.team .tprice { grid-column: 1 / -1; font-size: 15px; color: var(--muted); margin: -.25rem 0 0; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.team.is-new, .person.is-new { animation: rise .2s var(--ease); }

/* Mengen */
.qty-list { border-top: 1px solid var(--line); }
.qty { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 1rem; align-items: center; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.qty .info { overflow-wrap: anywhere; }
.qty .info strong { display: block; font-weight: 600; }
.qty .info span { font-size: 15px; color: var(--muted); }
.qty .each { font-weight: 650; white-space: nowrap; }
.stepper { display: inline-flex; align-items: stretch; border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.stepper button { width: 48px; min-height: 46px; border: 0; background: transparent; display: grid; place-items: center; color: var(--accent); cursor: pointer; border-radius: 6px; }
.stepper button svg { width: 16px; height: 16px; }
.stepper input { width: 3.5rem; min-height: 46px; text-align: center; border: 0; border-inline: 1.5px solid var(--line); border-radius: 0; padding: 0; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.group-title { margin: 1.5rem 0 .4rem; font-size: 1rem; }

.page-head.compact { padding: 1.5rem 0 1rem; }
.page-head.compact h1 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.back { display: inline-flex; align-items: center; gap: .35rem; font-size: 15px; margin-bottom: .75rem; }
.back svg { width: 14px; height: 14px; }
details.disclosure { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow); padding-inline: 1.75rem; margin-bottom: 1.25rem; }
details.disclosure > summary { list-style: none; cursor: pointer; padding: 1.5rem 0; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
details.disclosure > summary::-webkit-details-marker { display: none; }
details.disclosure > summary h2 { margin: 0; }
details.disclosure > summary .opt { color: var(--muted); font-size: 15px; font-weight: 400; }
details.disclosure > summary::after { content: ""; width: .6em; height: .6em; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s var(--ease); flex: none; align-self: center; }
details.disclosure[open] > summary::after { transform: rotate(-135deg); }
details.disclosure > .body { padding-bottom: 1.75rem; }
details.disclosure > .body > .hint { color: var(--ink-2); margin: 0 0 1.25rem; max-width: var(--measure); }

/* Teilnehmerliste */
.plist { max-width: 900px; }
.person { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: .75rem; align-items: end; padding: 1rem; margin-bottom: .75rem; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); position: relative; }
.person .pn { grid-column: span 4; }
.person .ps { grid-column: span 3; }
.person .pz { grid-column: span 2; }
.person .pa { grid-column: span 2; }
.person .pl { grid-column: span 5; }
.person .pq { grid-column: span 6; }
.person .rm { grid-column: 12; grid-row: 1 / span 1; justify-self: end; width: 48px; min-height: 48px; padding: 0; }
.person .rm svg { width: 20px; height: 20px; }
@media (max-width: 760px) {
  .person { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 1rem; }
  .person .pn, .person .ps, .person .pl, .person .pq { grid-column: span 2; }
  .person .pz, .person .pa { grid-column: span 1; }
  .person .rm { grid-column: 1 / -1; grid-row: auto; justify-self: stretch; width: auto; min-height: 48px; }
}

/* Zustimmung */
.consent { display: grid; grid-template-columns: 28px 1fr; gap: .9rem; padding: 1rem; background: #fff; border: 1.5px solid var(--field); border-radius: var(--radius); cursor: pointer; }
.consent input { width: 24px; height: 24px; margin: 2px 0 0; }
.consent.has-error { border-color: var(--err-ink); background: #fff7f6; }
.consent span { color: var(--ink-2); font-size: 16px; }

/* Zusammenfassung */
:is(.summary, .receipt) { position: sticky; top: 1.25rem; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); }
:is(.summary, .receipt) h2 { font-size: 1.05rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
:is(.summary, .receipt) .lines { list-style: none; margin: 0; padding: .5rem 1.25rem; min-height: 4.5rem; }
:is(.summary, .receipt) .lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; font-size: 15.5px; border-bottom: 1px dotted var(--line); }
:is(.summary, .receipt) .lines li:last-child { border-bottom: 0; }
:is(.summary, .receipt) .lines .what { min-width: 0; overflow-wrap: anywhere; }
:is(.summary, .receipt) .lines .what small { display: block; color: var(--muted); font-size: 14px; }
:is(.summary, .receipt) .lines .sum { white-space: nowrap; font-weight: 600; }
:is(.summary, .receipt) .empty { color: var(--muted); font-size: 15px; padding: .75rem 0; display: block; }
:is(.summary, .receipt) .total { display: flex; justify-content: space-between; align-items: baseline; padding: 1rem 1.25rem; border-top: 2px solid var(--ink); font-size: 1.1rem; }
:is(.summary, .receipt) .total output { font-size: 1.6rem; font-weight: 750; letter-spacing: -.02em; }
:is(.summary, .receipt) .next { padding: 0 1.25rem 1.25rem; font-size: 15px; color: var(--ink-2); }
:is(.summary, .receipt) .next .note { background: var(--warn-bg); color: var(--warn-ink); border-radius: 6px; padding: .6rem .8rem; margin-bottom: 1rem; font-weight: 550; }
:is(.summary, .receipt) .btn { width: 100%; }
.summary-toggle { display: none; }
.mobile-only { display: none; }

/* Hinweise */
.alert { padding: .9rem 1.1rem; border-radius: var(--radius); margin: 0 0 1.5rem; background: var(--warn-bg); color: var(--warn-ink); }
.alert.error { background: var(--err-bg); color: var(--err-ink); }
.alert.info { background: var(--info-bg); color: var(--info-ink); }
.alert ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.alert a { color: inherit; font-weight: 650; }
.alert strong { font-weight: 700; }

/* Danke */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; max-width: var(--measure); }
.steps li { position: relative; padding: 1rem 0 1rem 3.25rem; border-top: 1px solid var(--line-strong); counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: .9rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 700; }
.steps li strong { display: block; }
.steps-h { font-size: 1.25rem; margin: 0 0 .5rem; }
.steps li.is-now::before { background: var(--accent); border-color: var(--accent); color: #fff; }
.ref { display: inline-block; font-weight: 750; font-size: 1.25rem; letter-spacing: .02em; padding: .2rem .7rem; background: var(--accent-soft); border-radius: 6px; user-select: all; }

/* Tabellen und Admin */
.toolbar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; margin-bottom: 1rem; }
.toolbar .field { flex: 1 1 200px; }
.tabs { display: flex; flex-wrap: wrap; gap: .25rem; border-bottom: 1px solid var(--line-strong); margin-bottom: 1rem; }
.tabs a { padding: .6rem 1rem; text-decoration: none; color: var(--ink-2); border-bottom: 3px solid transparent; margin-bottom: -1px; font-weight: 600; }
.tabs a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tabs .n { margin-left: .35rem; color: var(--muted); font-weight: 500; }
.tablewrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
th, td { padding: .7rem .9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { position: sticky; top: 0; background: var(--tint); font-size: 14px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
td .sub { display: block; color: var(--muted); font-size: 14px; }
.pill { display: inline-block; padding: .15rem .65rem; border-radius: 999px; font-size: 14px; font-weight: 650; white-space: nowrap; }
.pill.new { background: var(--warn-bg); color: var(--warn-ink); }
.pill.confirmed { background: var(--info-bg); color: var(--info-ink); }
.pill.paid { background: var(--ok-bg); color: var(--ok-ink); }
.pill.cancelled { background: var(--err-bg); color: var(--err-ink); }
.sumline { display: flex; flex-wrap: wrap; gap: .5rem 2rem; color: var(--ink-2); margin: 0 0 1rem; }
.sumline strong { color: var(--ink); }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 3rem; align-items: start; }
.panel { border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); padding: 1.25rem; }
.panel + .panel { margin-top: 1rem; }
.panel h2 { font-size: 1.05rem; margin-bottom: .75rem; }
.actions { display: grid; gap: .6rem; }
.actions .btn { width: 100%; }
.timeline { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.timeline li { padding: .6rem 0; border-top: 1px solid var(--line); }
.timeline li:first-child { border-top: 0; }
.timeline time { display: block; color: var(--muted); font-size: 14px; }
dl.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .35rem 1.5rem; margin: 0 0 1.5rem; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; overflow-wrap: anywhere; }
.login { max-width: 400px; padding-block: 3rem; }
.login .field { margin-bottom: 1rem; }

/* Lesetexte (Impressum, Datenschutz) */
.prose { max-width: var(--measure); padding-bottom: 2rem; }
.prose h2 { margin: 2.25rem 0 .6rem; font-size: 1.25rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2rem; }

/* Mobil */
@media (max-width: 980px) {
  .form-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .summary { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 20; border-width: 2px 0 0; border-radius: 0; box-shadow: 0 -8px 24px rgba(18, 38, 44, .14); }
  .summary #sumBody { display: none; opacity: 0; transform: translateY(8px); transition: opacity .18s var(--ease), transform .18s var(--ease), display .18s allow-discrete; }
  .summary.open #sumBody { display: block; opacity: 1; transform: none; border-top: 1px solid var(--line); }
  @starting-style { .summary.open #sumBody { opacity: 0; transform: translateY(8px); } }
  .summary #sumBody > h2, .summary #sumBody > .total { display: none; }
  .summary.open .lines { max-height: 40vh; overflow: auto; }
  .summary-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 1rem; min-height: 64px; padding: .5rem 1.25rem; border: 0; background: transparent; font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
  .summary-toggle .t { font-size: 1.4rem; font-weight: 750; letter-spacing: -.02em; }
  .summary-toggle .more { color: var(--accent); font-weight: 650; }
  .summary-toggle .more::after { content: ""; display: inline-block; width: .5em; height: .5em; margin-left: .6em; border: solid currentColor; border-width: 2px 2px 0 0; transform: translateY(.1em) rotate(-45deg); transition: transform .2s var(--ease); }
  .summary.open .summary-toggle .more::after { transform: translateY(-.1em) rotate(135deg); }
  .summary .btn.desktop-submit { display: none; }
  .mobile-only { display: inline-flex; width: 100%; margin-top: 1.25rem; }
  .form-layout { padding-bottom: 6rem; }
  .event { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding: 1.5rem 0; }
  .event .cta { min-width: 0; }
  .detail { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .grid2 { grid-template-columns: 1fr; }
  .team { grid-template-columns: minmax(0, 1fr) auto; }
  .team .sel { grid-column: 1 / -1; }
  .team .name-wrap { grid-column: 1; }
  .qty { grid-template-columns: minmax(0, 1fr) auto; }
  .qty .each { grid-column: 1; grid-row: 2; font-size: 15px; color: var(--muted); font-weight: 500; }
  .qty .stepper { grid-column: 2; grid-row: 1 / span 2; }
  .nav { gap: 1rem; }
  /* Admin-Tabelle als gestapelte Zeilen */
  table.stack thead { position: absolute; left: -9999px; }
  table.stack tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 1rem; padding: .9rem; border-bottom: 1px solid var(--line); }
  table.stack td:nth-child(2), table.stack td:nth-child(3), table.stack td:nth-child(6) { grid-column: 1 / -1; }
  table.stack td:nth-child(5) { justify-self: end; align-self: center; }
  table.stack td { display: block; padding: 0; border: 0; }
  table.stack td.num { text-align: left; }
  table.stack td[data-l]::before { content: attr(data-l) ": "; color: var(--muted); font-size: 14px; }
  table.stack td.first { grid-column: 1 / -1; font-weight: 650; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
@media print {
  .site-header, .site-footer, .summary, .nav { display: none; }
  body { background: #fff; }
}

.inline-form { display: flex; gap: .5rem; align-items: center; }
.inline-form select { min-height: 40px; padding: .3rem .6rem; }
.is-waitlist td { background: #fff8e3; }

.meter { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 0 0 .5rem; }
.meter span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
details.plain { margin-top: .75rem; }
details.plain summary { cursor: pointer; color: var(--accent); font-weight: 600; }
ol.teamlist { margin: .5rem 0 0; padding-left: 1.4rem; columns: 2 280px; }

textarea { width: 100%; padding: .7rem .8rem; font: inherit; line-height: 1.5; color: var(--ink); background: #fff; border: 1.5px solid var(--field); border-radius: var(--radius); resize: vertical; }
textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(173, 82, 6, .28); }
.mailprev { margin-top: 1rem; padding: 1rem; background: var(--bg); border-radius: var(--radius); }
.mailprev pre { margin: 0; white-space: pre-wrap; font: inherit; font-size: 15px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; background: var(--accent-soft); padding: .05em .35em; border-radius: 4px; }


/* Hover nur auf Geräten mit Maus: auf dem Handy bleibt Hover sonst nach dem Tippen hängen */
@media (hover: hover) and (pointer: fine) {
  a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
  .brand:hover { color: var(--ink); }
  .nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
  .btn:not([disabled]):not(.is-disabled):hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
  .btn-quiet:hover { background: var(--accent-soft); color: var(--accent-hover); }
  .btn-danger:hover { background: var(--err-bg); border-color: var(--err-ink); color: var(--err-ink); }
  input:hover, select:hover { border-color: var(--ink-2); }
  .stepper button:hover { background: var(--accent-soft); }
  .tabs a:hover { color: var(--ink); background: var(--accent-soft); border-radius: 6px 6px 0 0; }
  tbody tr:hover { background: #f6f9fa; }
}

/* Druck-Feedback für alle Tippflächen */
.stepper button, .tabs a, .summary-toggle, .consent { transition: background-color .15s var(--ease), color .15s var(--ease), transform .12s var(--ease); }
.stepper button:active, .tabs a:active, .summary-toggle:active { transform: scale(.97); }
.consent:active { transform: scale(.99); }
.nav a { transition: color .15s var(--ease), border-color .15s var(--ease); }

@media (max-width: 840px) {
  .is-admin .wrap { min-height: 0; padding-block: .5rem; row-gap: 0; }
  .is-admin .nav { order: 3; width: 100%; margin-left: 0; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; gap: 1.25rem; }
  .is-admin .nav::-webkit-scrollbar { display: none; }
}

/* Markendesign: Karten, Aufstellung, Tabellen */
.team, .person, .consent { background: var(--bg); }
.stepper { background: #fff; border-color: var(--field); }
.summary, .receipt { border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow); background: #fff; }
.summary > #sumBody > h2, .receipt > h2 { background: var(--tint); border-radius: var(--radius-card) var(--radius-card) 0 0; }
.summary h2, .receipt h2 { font-size: 1.2rem; }
.summary .total, .receipt .total { border-top: 1px solid var(--line-strong); }
.summary .total output, .receipt .total output { font: 800 2rem/1 var(--font-head); color: var(--dark-2); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow); }
.tablewrap { border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow); }
.tabs a { font-family: var(--font-head); font-size: 1.05rem; }
.login form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 1.5rem; }
.steps li::before { border-color: var(--dark-2); }
.ref { background: var(--accent-soft); color: var(--dark-2); font-family: var(--font-head); }
.prose { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 1.5rem 1.75rem 1rem; margin-bottom: 1rem; }
.prose h2:first-child { margin-top: .5rem; }

@media (max-width: 980px) {
  .summary { border-top-width: 3px; border-radius: 0; }
  .events { grid-template-columns: minmax(0, 1fr); padding-top: 2rem; }
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .site-header .wrap { min-height: 64px; }
  .brand { font-size: 1rem; } .brand img { width: 40px; height: 40px; }
  .header-cta { display: none; }
  .fsec { padding: 1.25rem; }
  details.disclosure { padding-inline: 1.25rem; }
  .hero .actions-row .btn { width: 100%; }
}

/* Gleichbreite Ziffern nur dort, wo Zahlen untereinander stehen (nicht im Fließtext, sonst werden Bindestriche zu breit) */
.event li span:last-child, .total output, [data-total], .sum, td.num, th.num, .facts dd, .count, .stepper input, .tabs .n, .sumline strong, .summary-toggle .t { font-variant-numeric: tabular-nums; }

/* Layout nach cux-beach.de: Eyebrow, Info-Karten, Zahlenband, Foto-Abschnitt */
.hero .eyebrow { color: var(--brand); font: 700 1.05rem/1.2 var(--font-head); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 .9rem; max-width: none; }
.hero p.eyebrow { color: var(--brand); font-size: 1.05rem; }

.events { padding-top: 2.5rem; }


.rules { margin-top: 0; padding-block: 4rem; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; align-items: center; background: var(--tint); box-shadow: 0 0 0 100vmax var(--tint); clip-path: inset(0 -100vmax); scroll-margin-top: 1rem; }
.rules-text > h2 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 800; margin-bottom: 1rem; }
.rules-text > div { max-width: var(--measure); padding: 1.1rem 0; border-top: 1px solid #cfdde0; }
.rules h3 { margin-bottom: .3rem; }
.rules p { color: var(--ink-2); margin: 0; font-size: 16px; }
.rules .motto { margin-top: 1rem; font: 700 1.3rem var(--font-head); color: #a14a05; }
.rules figure { margin: 0; }
.rules img { display: block; width: 100%; height: auto; border-radius: var(--radius-card); box-shadow: 0 6px 24px rgba(18, 38, 44, .14); }

.gallery { padding-block: 3.5rem; }
.gallery > h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); font-weight: 800; margin-bottom: 1.25rem; }
.gallery-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; gap: 1rem; }
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius-card); box-shadow: 0 6px 24px rgba(18, 38, 44, .14); background: var(--tint); }
.gallery .g-big { grid-row: 1 / 3; }
.gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .gallery .g-big { grid-row: auto; }
  .gallery figure:not(.g-big) { aspect-ratio: 2 / 1; }
}

@media (max-width: 980px) {
  .rules { grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-block: 3rem; }
  .rules figure { order: -1; }
}

/* Korrekturen: Ghost-Button im Hero, Innenabstand der Turnierkarten mobil */
.hero .btn-ghost { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .6); color: #fff; }
@media (hover: hover) and (pointer: fine) { .hero .btn-ghost:hover { background: rgba(255, 255, 255, .26); border-color: #fff; color: #fff; } }
@media (max-width: 980px) { .event { padding: 1.5rem; } }

/* Rollen-Rechte */
fieldset.caps { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: .6rem 1rem 1rem; margin: 1rem 0 0; }
fieldset.caps legend { font-weight: 600; padding-inline: .4rem; color: var(--dark-2); }
.cap { display: grid; grid-template-columns: 24px 1fr; gap: .7rem; align-items: start; padding: .4rem 0; cursor: pointer; }
.cap input { width: 20px; height: 20px; margin: 2px 0 0; }
.settings-form .fsec { margin-bottom: 1.25rem; }
.settings-form select { width: 100%; min-height: 48px; }

/* Freie Plätze auf der Startseite */
.event li small.avail { display: block; font-size: 14px; color: var(--muted); }
.event li small.avail.is-low { color: var(--warn-ink); font-weight: 600; }
.event li small.avail.is-full { color: var(--err-ink); font-weight: 600; }

/* Rechtstexte: fehlende Angaben sichtbar markieren */
mark.ph { background: #fff0c9; color: #5c3f00; padding: .05em .35em; border-radius: 4px; font-weight: 600; }
.legal-editor textarea { font: 14.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; min-height: 28rem; width: 100%; }
.legal-help code { white-space: nowrap; }
.legal-help dl.kv { grid-template-columns: minmax(0, 1fr); }
.legal-help dl.kv dd { margin: 0 0 .5rem; }

/* Abmelden als Formular-Button, sieht aus wie die Navigationslinks */
.nav .navform { display: inline; margin: 0; }
.nav .navform button { font: inherit; color: var(--ink); background: none; border: 0; border-bottom: 2px solid transparent; padding: .35rem 0; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .nav .navform button:hover { border-bottom-color: var(--accent); } }

/* Status-Seite */
.statussteps li.is-done::before { content: ""; background: var(--dark-2) url(../img/check-white.svg) center / 62% no-repeat; border-color: var(--dark-2); }
.statussteps li:not(.is-now):not(.is-done) { color: var(--muted); }

/* Countdown zum Meldeschluss */
.countdown { display: inline-block; margin-left: .4rem; padding: .05rem .6rem; border-radius: 999px; background: var(--accent-soft); color: #6b3300; font: 700 .9rem var(--font-head); }
.countdown.is-soon { background: var(--warn-bg); color: var(--warn-ink); }
.band .countdown { background: rgba(255, 255, 255, .16); color: #fff; }
.band .countdown.is-soon { background: #f6bd85; color: #3b1c00; }

/* Teilen */
.share-grid { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 1.75rem; align-items: start; }
.share-grid canvas { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--dark); }
.share-actions { display: grid; gap: .75rem; max-width: 22rem; }
.share-actions .btn { width: 100%; }
@media (max-width: 640px) { .share-grid { grid-template-columns: minmax(0, 1fr); } .share-grid canvas { max-width: 320px; } }

/* Formular in Schritten (nur mit JavaScript) */
.stepnav ol { list-style: none; display: flex; gap: .5rem; margin: 0 0 .5rem; padding: 0; }
.stepnav li { flex: 1 1 0; min-width: 0; }
.stepnav button { width: 100%; display: flex; align-items: center; gap: .55rem; padding: .55rem .7rem; border: 0; border-bottom: 4px solid var(--line-strong); background: transparent; font: 700 1rem var(--font-head); color: var(--muted); cursor: default; text-align: left; }
.stepnav .n { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 2px solid currentColor; font-size: .9rem; flex: none; }
.stepnav .is-done button { color: var(--dark-2); border-bottom-color: var(--dark-2); cursor: pointer; }
.stepnav .is-done .n { background: var(--dark-2); border-color: var(--dark-2); color: #fff; }
.stepnav .n svg.i { width: .95rem; height: .95rem; vertical-align: 0; stroke-width: 3; }
.stepnav .is-now button { color: var(--ink); border-bottom-color: var(--accent); }
.stepnav .is-now .n { background: var(--accent); border-color: var(--accent); color: #fff; }
.stepcount { margin: 0 0 1rem; }
.stepbtns { display: flex; justify-content: space-between; gap: .75rem; margin: 0 0 1.5rem; }
.stepbtns .btn { min-width: 9rem; }
.stepbtns [hidden] { display: none; }
.stepbtns .btn:last-child { margin-left: auto; }
form[data-steps="on"]:not(.at-last) .desktop-submit { display: none; }
form[data-steps="on"]:not(.at-last) .summary .next .note ~ .btn { display: none; }
@media (max-width: 640px) {
  .stepnav ol { gap: .25rem; }
  .stepnav li { flex: 0 0 auto; }
  .stepnav li.is-now { flex: 1 1 auto; }
  .stepnav button { padding: .55rem .4rem; gap: .4rem; }
  .stepnav .l { display: none; }
  .stepnav .is-now .l { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .stepbtns .btn { flex: 1; }
}

/* Check-in (Handy zuerst) */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ci-top { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: .6rem 0 .5rem; margin-bottom: .5rem; }
.ci-count { margin: 0 0 .4rem; font-size: 1.15rem; }
.ci-top .field { margin: .6rem 0; }
.ci-top input[type=search] { min-height: 52px; font-size: 1.05rem; }
.ci-chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip { min-height: 44px; padding: .4rem 1rem; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #fff; font: 700 1rem var(--font-head); color: var(--ink); cursor: pointer; }
.chip.is-on { background: var(--dark-2); border-color: var(--dark-2); color: #fff; }
.ci-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.ci-class { margin: 1.25rem 0 .4rem; font: 800 1.1rem var(--font-head); text-transform: uppercase; letter-spacing: .04em; color: var(--dark-2); }
.ci-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--line-strong); border-radius: var(--radius-card); padding: .75rem .9rem; margin-bottom: .5rem; }
.ci-row.is-in { border-left-color: #2e8b57; background: #f2faf5; }
.ci-info { min-width: 0; display: grid; gap: .1rem; }
.ci-info strong { font: 800 1.25rem/1.15 var(--font-head); overflow-wrap: anywhere; }
.ci-info span { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.ci-info .pill { justify-self: start; }
.ci-when { color: var(--ok-ink) !important; font-weight: 600; }
.ci-btn { min-width: 9.5rem; min-height: 56px; flex: none; }
.ci-btn.is-in { background: var(--ok-bg); border-color: var(--ok-ink); color: var(--ok-ink); }
.ci-row [hidden], .ci-class[hidden] { display: none; }


/* Einheitliche Icons (Lucide-Sprite assets/img/icons.svg) */
svg.i { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.22em; }
.btn svg.i { width: 1.25em; height: 1.25em; vertical-align: 0; }
.ci-btn svg.i { width: 1.4em; height: 1.4em; }

/* ===== Admin: Seitenleiste mit Gruppen ===== */
body.has-sidebar { display: block; }
.admin-shell { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; }
.admin-main { min-width: 0; display: flex; flex-direction: column; }
.admin-main main.wrap { width: auto; max-width: 1200px; margin: 0; padding: .75rem clamp(1rem, 3vw, 2.25rem) 3rem; flex: 1; }
.admin-top { display: none; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: .5rem; padding: 1rem .75rem; background: #fff; border-right: 1px solid var(--line); }
.sidebar ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.sidebar__brand { display: flex; align-items: center; gap: .7rem; padding: .25rem .5rem 1rem; color: var(--dark-2); text-decoration: none; font: 800 1.1rem/1.1 var(--font-head); }
.sidebar__brand img { display: block; flex: none; }
.sidebar__brand small { display: block; margin-top: .15rem; font: 500 .8rem var(--font); color: var(--muted); letter-spacing: 0; }
.sidebar__nav { flex: 1; }
.sidebar__group { margin: 1rem .6rem .35rem; font: 700 .75rem var(--font-head); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.sidebar__nav .sidebar__group:first-child { margin-top: 0; }
.sidebar a, .sidebar button { display: flex; align-items: center; gap: .7rem; width: 100%; min-height: 44px; padding: .5rem .7rem; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: 600 1rem var(--font-head); text-decoration: none; text-align: left; cursor: pointer; }
.sidebar svg.i { width: 1.3em; height: 1.3em; color: var(--muted); }
.sidebar a[aria-current="page"] { background: var(--accent-soft); color: #5c2b00; }
.sidebar a[aria-current="page"] svg.i { color: var(--accent); }
.sidebar__foot { border-top: 1px solid var(--line); padding-top: .75rem; display: grid; gap: .5rem; }
.sidebar__foot a, .sidebar__foot button { font-weight: 500; font-size: .95rem; color: var(--ink-2); min-height: 40px; }
.sidebar__user { display: flex; align-items: center; gap: .7rem; padding: .25rem .6rem; }
.sidebar__user strong { display: block; font: 700 1rem var(--font-head); }
.sidebar__user small { display: block; color: var(--muted); font-size: .85rem; }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--dark-2); color: #fff; font: 800 1.05rem var(--font-head); flex: none; }
@media (hover: hover) and (pointer: fine) {
  .sidebar a:hover, .sidebar button:hover { background: var(--tint); color: var(--ink); }
  .sidebar a[aria-current="page"]:hover { background: var(--accent-soft); }
}
.sidebar a:focus-visible, .sidebar button:focus-visible { outline-offset: -2px; }

@media (max-width: 900px) {
  .admin-shell { display: block; }
  .admin-top { display: flex; align-items: center; gap: .75rem; position: sticky; top: 0; z-index: 40; height: 56px; padding: 0 .75rem; background: #fff; border-bottom: 1px solid var(--line); }
  .admin-top__title { flex: 1; min-width: 0; font: 800 1.15rem var(--font-head); color: var(--dark-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .menu-btn { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer; }
  .menu-btn svg.i { width: 1.6em; height: 1.6em; }
  .js .menu-btn { display: inline-flex; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .js .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 60; width: min(86vw, 300px); height: 100dvh; border-right: 1px solid var(--line); box-shadow: 8px 0 32px rgba(18, 38, 44, .18); transform: translateX(-104%); transition: transform .24s var(--ease); visibility: hidden; }
  .js .nav-open .sidebar, .js.nav-open .sidebar { transform: none; visibility: visible; }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(8, 18, 22, .5); }
  .sidebar-backdrop[hidden] { display: none; }
  body.nav-open { overflow: hidden; }
  .has-sidebar .ci-top { top: 56px; }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) { .js .sidebar { transition: none; } }
@media print { .sidebar, .admin-top, .sidebar-backdrop { display: none !important; } .admin-shell { display: block; } .admin-main main.wrap { padding: 0; max-width: none; } }
.sidebar a.sidebar__brand { min-height: 0; padding: .25rem .5rem 1rem; font: 800 1.1rem/1.1 var(--font-head); color: var(--dark-2); }
@media (hover: hover) and (pointer: fine) { .sidebar a.sidebar__brand:hover { background: transparent; } }

/* Login-Seite: mittig, mit Rücklink */
.login-wrap { display: flex; align-items: center; justify-content: center; min-height: 62vh; padding-block: 2rem 3rem; }
.login-box { width: min(420px, 100%); text-align: center; }
.login-logo { display: block; margin: 0 auto .75rem; }
.login-box h1 { margin-bottom: 1.5rem; }
.login-box .alert { text-align: left; }
.login-box form { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 1.5rem; }
.login-box .field { margin-bottom: 1rem; }
.login-back { margin: 1.5rem 0 0; }
.login-back a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }

/* Seitenleiste: Feinschliff (Druck-Feedback, lesbarere Gruppen, aktiver Balken) */
.sidebar a, .sidebar button { position: relative; transition: background-color .15s var(--ease), color .15s var(--ease), transform .12s var(--ease); }
.sidebar a:active, .sidebar button:active { transform: scale(.98); }
.sidebar__group { font-size: .82rem; letter-spacing: .09em; color: var(--ink-2); }
.sidebar a[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.sidebar__foot a[aria-current="page"]::before { top: 8px; bottom: 8px; }
@media (min-width: 901px) and (max-height: 820px) {
  .sidebar { padding-block: .6rem; gap: .25rem; }
  .sidebar a, .sidebar button { min-height: 38px; padding-block: .3rem; }
  .sidebar__group { margin-top: .65rem; }
  .sidebar a.sidebar__brand { padding-bottom: .5rem; }
  .sidebar__foot a, .sidebar__foot button { min-height: 36px; }
}

/* ===== Feinschliff Bewegung (kurz, nur transform/opacity, ease-out) ===== */
:root { --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1); }

/* Buttons: Textfarbe wechselt mit (z. B. Check-in „Angekommen“), Druck-Feedback bleibt */
.btn { transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .16s var(--ease); }
.chip { transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .12s var(--ease); }
.chip:active { transform: scale(.97); }
.ci-row { transition: background-color .18s var(--ease), border-color .18s var(--ease); }

/* Hinweise erscheinen weich statt hart */
@keyframes alertIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.alert { animation: alertIn .2s var(--ease); }

/* Formular in Schritten: neuer Schritt blendet ein */
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.step-in { animation: stepIn .22s var(--ease); }
.stepnav button, .stepnav .n { transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease); }

/* Zurück-Pfeile rücken beim Hover minimal nach links */
.back svg.i, .login-back svg.i { transition: transform .15s var(--ease); }
@media (hover: hover) and (pointer: fine) { .back:hover svg.i, .login-back a:hover svg.i { transform: translateX(-3px); } }

/* Handy-Schublade: öffnen mit Drawer-Kurve, schließen schneller; Hintergrund blendet ein/aus */
@media (max-width: 900px) {
  .js .sidebar { transition: transform .2s var(--ease), visibility 0s linear .2s; }
  .js .nav-open .sidebar { transition: transform .28s var(--ease-drawer), visibility 0s; }
  .sidebar-backdrop { opacity: 1; transition: opacity .2s var(--ease), display .2s allow-discrete; }
  .sidebar-backdrop[hidden] { display: none; opacity: 0; }
  @starting-style { .sidebar-backdrop { opacity: 0; } }
}

/* Seitenleiste: nichts schrumpfen lassen, sonst überlappt die Kopfzeile bei niedrigen Fenstern (die Leiste scrollt stattdessen) */
.sidebar > *, .sidebar__nav > *, .sidebar__foot > *, .sidebar__brand > * { flex-shrink: 0; }
.sidebar__nav { flex: 1 0 auto; }
.sidebar a.sidebar__brand { min-height: 56px; }

/* ===== Seitenleiste einklappbar (nur PC): schmale Icon-Leiste, Wahl wird gemerkt ===== */
.sidebar__collapse { display: none; }
@media (min-width: 901px) {
  .sidebar__collapse { display: block; }
  .js .admin-shell { transition: grid-template-columns .2s var(--ease); }
  .sb-collapsed .admin-shell { grid-template-columns: 76px minmax(0, 1fr); }
  .sb-collapsed .sidebar { padding-inline: .6rem; overflow-x: hidden; }
  /* Beschriftungen bleiben für Screenreader erhalten, sind aber unsichtbar */
  .sb-collapsed .sidebar a > span, .sb-collapsed .sidebar button > span, .sb-collapsed .sidebar__brand > span, .sb-collapsed .sidebar__user > span:not(.avatar) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sb-collapsed .sidebar a, .sb-collapsed .sidebar button { justify-content: center; gap: 0; padding-inline: 0; }
  .sb-collapsed .sidebar a.sidebar__brand { padding: .25rem 0 .75rem; }
  .sb-collapsed .sidebar__group { font-size: 0; height: 1px; margin: .75rem .9rem; padding: 0; background: var(--line); letter-spacing: 0; }
  .sb-collapsed .sidebar__nav .sidebar__group:first-child { display: none; }
  .sb-collapsed .sidebar__user { justify-content: center; padding-inline: 0; }
  .sb-collapsed .sidebar a[aria-current="page"]::before { left: -.6rem; }
  .sb-collapsed .sidebar svg.i { width: 1.4em; height: 1.4em; }
}

/* ===== QR-Code (Status-Seite) ===== */
.qrcard__body { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.qr { width: 200px; height: 200px; padding: 12px; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-card); flex: none; }
.qr svg { display: block; width: 100%; height: 100%; }
.qrcard__no span { display: block; color: var(--muted); font-size: 15px; }
.qrcard__no strong { display: block; font: 800 1.9rem/1.1 var(--font-head); letter-spacing: .06em; color: var(--dark-2); overflow-wrap: anywhere; }
.qrcard__no small { display: block; margin-top: .4rem; color: var(--muted); max-width: 22ch; }

/* ===== Check-in App ===== */
.ci-line { display: flex; align-items: center; gap: .75rem; }
.ci-event { flex: 1; min-width: 0; margin: 0; }
.ci-event select { width: 100%; min-height: 46px; text-overflow: ellipsis; }
.ci-count { margin: 0; display: flex; align-items: baseline; gap: .1rem; font: 800 1.6rem/1 var(--font-head); flex: none; font-variant-numeric: tabular-nums; }
.ci-count span { opacity: .45; }
.ci-count small { margin-left: .4rem; font: 500 .8rem var(--font); color: var(--muted); }
.ci-top .meter { margin: .5rem 0 0; }
.ci-search { position: relative; margin: .6rem 0; }
.ci-search input { padding-right: 62px; min-height: 52px; font-size: 1.05rem; }
.ci-scanbtn { position: absolute; right: 4px; top: 4px; width: 44px; height: 44px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; transition: transform .12s var(--ease); }
.ci-scanbtn:active { transform: scale(.94); }
.ci-scanbtn svg.i { width: 1.5em; height: 1.5em; }
.ci-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -1rem; padding: 2px 1rem; }
.ci-chips::-webkit-scrollbar { display: none; }
.ci-chips .chip { flex: none; }
.ci-list { padding-bottom: 6rem; }
.ci-fab { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 30; display: inline-flex; align-items: center; gap: .6rem; min-height: 60px; padding: 0 1.5rem; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: 800 1.1rem var(--font-head); text-transform: uppercase; letter-spacing: .04em; box-shadow: 0 8px 24px rgba(18, 38, 44, .3); cursor: pointer; transition: transform .14s var(--ease), background-color .15s var(--ease); }
.ci-fab:active { transform: scale(.96); }
.ci-fab svg.i { width: 1.7em; height: 1.7em; }
body.scan-open { overflow: hidden; }
body.scan-open .ci-fab { display: none; }
.ci-appinfo { margin-top: 1.5rem; max-width: var(--measure); }

.scan { position: fixed; inset: 0; z-index: 100; background: #000; color: #fff; overscroll-behavior: contain; }
.scan[hidden] { display: none; }
.scan video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan__shade { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.scan__frame { width: min(68vw, 320px); aspect-ratio: 1; border: 3px solid #fff; border-radius: 22px; box-shadow: 0 0 0 100vmax rgba(8, 18, 22, .58); }
.scan__bar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: calc(.75rem + env(safe-area-inset-top)) 1rem .75rem; background: linear-gradient(rgba(0, 0, 0, .6), transparent); }
.scan__bar h2 { margin: 0; color: #fff; font: 800 1.2rem var(--font-head); }
.scan__close { width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .2); color: #fff; cursor: pointer; }
.scan__close svg.i { width: 1.5em; height: 1.5em; }
.scan__hint { position: absolute; left: 1rem; right: 1rem; bottom: calc(2rem + env(safe-area-inset-bottom)); z-index: 2; margin: 0; padding: .75rem 1rem; text-align: center; font: 600 1.05rem var(--font); border-radius: 12px; background: rgba(8, 18, 22, .72); }
.scan__hint.is-bad { background: #9b1c1c; }
.scan__manual { position: absolute; left: 1rem; right: 1rem; bottom: calc(6.5rem + env(safe-area-inset-bottom)); z-index: 3; padding: 1rem; border-radius: 14px; background: #fff; color: var(--ink); }
.scan__manual[hidden], .scan__sheet[hidden], .scan__hint[hidden] { display: none; }
.scan__manual label { display: block; margin-bottom: .4rem; font-weight: 600; }
.scan__manual div { display: flex; gap: .5rem; }
.scan__manual input { flex: 1; min-width: 0; }
.scan__sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; max-height: 78dvh; overflow: auto; padding: 1.1rem 1rem calc(1rem + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: #fff; color: var(--ink); animation: sheetUp .26s var(--ease-drawer); }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
.scan__head { display: grid; gap: .15rem; }
.scan__head strong { font: 800 1.35rem/1.15 var(--font-head); }
.scan__head span { color: var(--muted); font-size: 15px; }
.scan__head .pill { justify-self: start; margin-top: .3rem; }
.scan__warn { margin: .75rem 0 0; padding: .6rem .8rem; border-radius: 8px; background: var(--err-bg); color: var(--err-ink); font-weight: 600; }
.scan__note { margin: .75rem 0 0; padding: .6rem .8rem; border-radius: 8px; background: var(--warn-bg); color: var(--warn-ink); font-weight: 600; }
.scan__teams { list-style: none; margin: .9rem 0; padding: 0; display: grid; gap: .5rem; }
.scan__teams li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .65rem .75rem; border: 1px solid var(--line); border-left: 6px solid var(--line-strong); border-radius: var(--radius); }
.scan__teams li.is-in { border-left-color: #2e8b57; background: #f2faf5; }
.scan__teams strong { display: block; font: 800 1.15rem/1.15 var(--font-head); overflow-wrap: anywhere; }
.scan__teams span { color: var(--muted); font-size: 14.5px; }
.scan__teams .btn { min-height: 52px; min-width: 7.5rem; flex: none; }
.scan__teams .btn.is-in { background: var(--ok-bg); border-color: var(--ok-ink); color: var(--ok-ink); }
.scan__foot { display: grid; gap: .6rem; }
.scan__foot .btn { width: 100%; min-height: 52px; }
@media (max-width: 900px) {
  .ci-head { display: none; }
  .admin-main main.wrap { padding-top: .5rem; }
  .ci-top { margin-inline: calc(-1 * clamp(1rem, 3vw, 2.25rem)); padding-inline: clamp(1rem, 3vw, 2.25rem); border-bottom: 1px solid var(--line); }
}

/* ===== Handy-Layout (öffentliche Seiten) ===== */
.sitemenu { display: none; position: relative; margin-left: auto; }
.sitemenu summary { list-style: none; display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 .9rem; border: 1.5px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink); font: 700 1rem var(--font-head); cursor: pointer; transition: background-color .15s var(--ease), transform .12s var(--ease); }
.sitemenu summary::-webkit-details-marker { display: none; }
.sitemenu summary:active { transform: scale(.97); }
.sitemenu[open] summary { background: var(--tint); }
.sitemenu__panel { position: absolute; right: 0; top: calc(100% + .5rem); z-index: 40; width: min(78vw, 280px); display: grid; gap: .15rem; padding: .5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: 0 12px 32px rgba(18, 38, 44, .18); transform-origin: top right; animation: menuIn .16s var(--ease); }
@keyframes menuIn { from { opacity: 0; transform: scale(.96) translateY(-4px); } to { opacity: 1; transform: none; } }
.sitemenu__panel a { display: flex; align-items: center; gap: .7rem; min-height: 48px; padding: 0 .8rem; border-radius: 8px; color: var(--ink); font: 600 1.05rem var(--font-head); text-decoration: none; }
.sitemenu__panel a svg.i { color: var(--accent); width: 1.3em; height: 1.3em; }
.sitemenu__panel a[aria-current="page"] { background: var(--accent-soft); }
@media (hover: hover) and (pointer: fine) { .sitemenu__panel a:hover { background: var(--tint); } }

@media (max-width: 700px) {
  /* Kopf: eine Zeile, Menü als Aufklapper */
  .site-header .wrap { min-height: 60px; flex-wrap: nowrap; gap: .75rem; }
  .site-header .nav { display: none; }
  .site-header:not(.is-admin) .sitemenu { display: block; }
  .brand { font-size: .98rem; gap: .6rem; }
  .brand img { width: 38px; height: 38px; }

  /* Hero: kompakter, Inhalt schneller erreichbar */
  .hero::before { background: rgba(8, 18, 22, .8); }
  .hero .wrap { padding-block: 2rem 3.6rem; }
  .hero h1 { font-size: clamp(2.05rem, 9.2vw, 2.6rem); max-width: none; }
  .hero p { font-size: 1.02rem; margin-top: .8rem; }
  .hero p.eyebrow { font-size: .95rem; margin-bottom: .6rem; }
  .hero .actions-row { margin-top: 1.4rem; gap: .6rem; }


  /* Turnierkarten */
  .events { padding-top: 1.25rem; gap: 1rem; }
  .event { padding: 1.15rem; gap: 1rem; }
  .event h2 { font-size: 1.45rem; }
  .event li { font-size: 15.5px; padding: .4rem 0; }

  .rules { padding-block: 2.25rem; }
  .rules-text > h2 { font-size: 1.7rem; }

  /* Kopfbänder der Formular-, Status- und Danke-Seite */
  .page-head.band { padding-block: 1.25rem 1.4rem; margin-bottom: 1.25rem; }
  .page-head.band h1 { font-size: clamp(1.7rem, 8vw, 2.1rem); }
  .band .facts { gap: .3rem 1.1rem; margin-top: .6rem; }
  .band .facts dd { font-size: 1rem; }

  .site-footer { margin-top: 2.5rem; }
  .site-footer .wrap { padding-block: 2rem 1.5rem; gap: 1.5rem; }
}
@media (max-width: 700px) and (prefers-reduced-motion: reduce) { .sitemenu__panel { animation: none; } }
/* Check-in-Zeilen bleiben auch am Handy zweispaltig (Name links, Knopf rechts) */
@media (max-width: 520px) {
  .ci-row { flex-direction: row; align-items: center; }
  .ci-btn { width: auto; min-width: 8.4rem; padding-inline: .9rem; }
}

/* ===== Sponsoren ===== */
.sponsors { margin-top: 3rem; }
.sponsors h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.sponsors ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.sponsors li { display: grid; place-items: center; height: 88px; min-width: 130px; padding: .75rem 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); }
.sponsors img { display: block; height: 56px; width: auto; max-width: 180px; object-fit: contain; }
.sponsors a { display: grid; place-items: center; }
@media (hover: hover) and (pointer: fine) { .sponsors li { transition: box-shadow .18s var(--ease), transform .18s var(--ease); } .sponsors li:has(a):hover { box-shadow: var(--shadow); transform: translateY(-2px); } }
@media (max-width: 700px) { .sponsors { margin-top: 2rem; } .sponsors ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .sponsors li { min-width: 0; height: 78px; padding: .6rem .9rem; } .sponsors img { max-width: 100%; height: 48px; } }
.sponsor-row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 1rem 1.5rem; align-items: start; margin-bottom: 1rem; }
.sponsor-row__logo { display: grid; place-items: center; min-height: 96px; padding: .75rem; background: repeating-conic-gradient(#f3f0ea 0% 25%, #fff 0% 50%) 50% / 16px 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.sponsor-row__logo img { max-width: 100%; height: 56px; width: auto; object-fit: contain; }
.sponsor-row__actions { grid-column: 1 / -1; display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
@media (max-width: 700px) { .sponsor-row { grid-template-columns: minmax(0, 1fr); } }
.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 1.25rem 0; }

/* ===== Systemstatus ===== */
.sys-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.25rem; padding: .9rem 1.1rem; margin-bottom: 1.25rem; border-radius: var(--radius-card); background: var(--ok-bg); color: var(--ok-ink); }
.sys-summary strong { font: 800 1.25rem var(--font-head); }
.sys-summary.is-warn { background: var(--warn-bg); color: var(--warn-ink); }
.sys-summary.is-fail { background: var(--err-bg); color: var(--err-ink); }
.sys-summary a { color: inherit; font-weight: 600; }
.sys-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.sys-card { background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--line-strong); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 1.1rem 1.25rem; }
.sys-card.is-ok { border-left-color: #2e8b57; } .sys-card.is-warn { border-left-color: #d4a017; } .sys-card.is-fail { border-left-color: var(--err-ink); } .sys-card.is-info { border-left-color: #588491; }
.sys-card header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.sys-card h2 { font-size: 1.15rem; margin: 0; }
.sys-card .pill { display: inline-flex; align-items: center; gap: .35rem; }
.sys-detail { margin: .6rem 0 .5rem; color: var(--ink-2); overflow-wrap: anywhere; }
.sys-rows { display: grid; grid-template-columns: minmax(6rem, 38%) minmax(0, 1fr); gap: .25rem 1rem; margin: 0; font-size: 14.5px; }
.sys-rows dt { color: var(--muted); } .sys-rows dd { margin: 0; overflow-wrap: anywhere; }
.sys-rows dd.is-warn { color: var(--warn-ink); font-weight: 600; } .sys-rows dd.is-fail { color: var(--err-ink); font-weight: 600; }
@media (max-width: 900px) { .sys-grid { grid-template-columns: minmax(0, 1fr); } }
.sidebar .badge { margin-left: auto; min-width: 1.4rem; height: 1.4rem; padding: 0 .4rem; border-radius: 999px; background: var(--err-ink); color: #fff; font: 700 .8rem/1.4rem var(--font-head); text-align: center; }
.sb-collapsed .sidebar .badge { position: absolute; top: 4px; right: 6px; min-width: 1rem; height: 1rem; padding: 0; line-height: 1rem; font-size: .65rem; }

/* Teilnehmernamen im Anmeldeformular */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem 1.25rem; margin: 1rem 0; }
.people:empty { display: none; }
@media (max-width: 700px) { .people { grid-template-columns: minmax(0, 1fr); } }
.fsec.has-error { border-color: var(--err-ink); }
.share-link { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .5rem; }
.share-link .btn { flex: 0 1 auto; }
.share-sub { margin: 1.5rem 0 .9rem; font-size: 1.05rem; color: var(--ink-2); font-family: var(--font-head); }
@media (max-width: 700px) { .share-link .btn { flex: 1 1 100%; } }
.scan__photo { display: flex; width: 100%; margin-bottom: .9rem; cursor: pointer; }
.scan__photolink { position: absolute; left: 0; right: 0; bottom: calc(.5rem + env(safe-area-inset-bottom)); z-index: 2; text-align: center; }
.scan__photolink span { display: inline-block; padding: .55rem 1rem; color: #fff; font: 600 .95rem var(--font); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.scan__hint { bottom: calc(3.5rem + env(safe-area-inset-bottom)); }
.scan:has(.scan__sheet:not([hidden])) .scan__photolink { display: none; }

/* ---- Termine und Helfer-Schichten ---- */
@media (max-width: 720px) { .termin { grid-template-columns: 1fr; gap: .4rem; } .termin__cta { justify-content: flex-start; margin-top: .4rem; } }
.shiftlist { list-style: none; margin: .75rem 0 1rem; padding: 0; display: grid; gap: .6rem; }
.shift { background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.shift > label, .shift__row { display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center; padding: .85rem 1rem; cursor: pointer; }
.shift__row { grid-template-columns: 1fr auto; cursor: default; }
.shift input[type=checkbox] { width: 1.4rem; height: 1.4rem; }
.shift__main { display: flex; flex-direction: column; }
.shift__main .sub { color: var(--ink-2); font-size: .95rem; }
.shift__free { font-size: .9rem; color: var(--ink-2); white-space: nowrap; }
.shift__free.is-low { color: #9a6700; font-weight: 600; }
.shift__free.is-full, .shift.is-full { color: var(--muted); }
.shift.is-full > label { cursor: not-allowed; background: #f3f5f8; }
.shift:has(input:checked) { border-color: var(--accent, #0b5cad); box-shadow: 0 0 0 2px rgba(11,92,173,.18); }
@media (max-width: 520px) {
  .shift > label { grid-template-columns: auto 1fr; row-gap: .25rem; }
  .shift > label .shift__free { grid-column: 2; }
  .shift__row { grid-template-columns: 1fr; }
}
.kindtag { display: inline-block; margin: 0 0 .4rem; padding: .1rem .6rem; border-radius: 99px; background: #f3e7dc; color: #8a4005; font: 700 .8rem/1.5 var(--font-head); text-transform: uppercase; letter-spacing: .05em; }
.rules-group { margin: 1.6rem 0 .2rem; padding-bottom: .3rem; border-bottom: 2px solid var(--line); font: 700 1.05rem/1.3 var(--font-head); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.rules-group:first-of-type { margin-top: .6rem; }
.page-head.is-center { text-align: center; }
.page-head.is-center .lead { margin-inline: auto; }
/* Kompakte Veranstaltungskarten: Preise und Schichten klappen auf */
.event-more summary { display: flex; align-items: center; gap: .55rem; cursor: pointer; font-weight: 650; color: var(--accent); padding: .3rem 0; list-style: none; }
.event-more summary::-webkit-details-marker { display: none; }
.event-more summary::before { content: "+"; display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; border: 1.5px solid currentColor; border-radius: 50%; font-weight: 700; line-height: 1; }
.event-more[open] summary::before { content: "\2212"; }
.event-more summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.event-more ul { margin-top: .6rem; }
.event-more[open] { padding-bottom: .25rem; }
.kindtag.is-test { background: #fde8c8; color: #7a3a00; margin-left: .3rem; }
.alert.test-banner { background: #fff3cd; border-color: #e0b100; color: #4d3b00; margin-block: 1rem; }
/* Wetter auf der Startseite */
.weather { margin: 2.5rem 0 0; padding: 1.4rem 1.6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow); }
.weather__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 1rem; }
.weather__head h2 { font-size: 1.35rem; margin: 0; }
.weather__days { list-style: none; margin: 1rem 0 .4rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.weather__day { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "icon name" "icon label" "temp temp" "meta meta"; column-gap: .8rem; padding: .9rem 1rem; background: var(--bg, #fdf9f4); border: 1px solid var(--line); border-radius: 12px; }
.weather__name { grid-area: name; font-weight: 700; align-self: end; }
.weather__icon { grid-area: icon; font-size: 2.2rem; line-height: 1; align-self: center; }
.weather__label { grid-area: label; color: var(--ink-2); font-size: .95rem; }
.weather__temp { grid-area: temp; margin-top: .55rem; font-size: 1.1rem; }
.weather__meta { grid-area: meta; font-size: .9rem; color: var(--ink-2); }
.weather__src { margin: .4rem 0 0; }
@media (max-width: 720px) { .weather__days { grid-template-columns: 1fr; gap: .6rem; } .weather { padding: 1.1rem; } }

/* === Abstände und Bausteine (statt style-Attributen, CSP) === */
.mt-0 { margin-top: 0; } .mt-md { margin-top: 1rem; } .mt-lg { margin-top: 1.5rem; } .mb-md { margin-bottom: 1rem; } .mb-lg { margin-bottom: 1.5rem; }
.is-off { opacity: .65; }
.panel-wide { max-width: 960px; }
.panel-danger { border-color: var(--err-ink, #a40e26); }
.panel-danger h2 { color: var(--err-ink, #a40e26); }
.mw-form { max-width: 34rem; }

/* === Galerie (16:9, Verwaltung im Admin) === */
/* Sechsspaltiges Raster: jedes Bild belegt zwei Spalten, übrig gebliebene Bilder der letzten Reihe stehen mittig (keine Lücken). Genau drei Bilder: erstes groß. */
.gallery-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: none; }
.gallery figure { grid-column: span 2; aspect-ratio: 16 / 9; }
.gallery .g-big { grid-column: span 4; grid-row: span 2; aspect-ratio: auto; }
.gallery figure:nth-child(3n+1):last-child:not(.g-big) { grid-column: 3 / span 2; }
.gallery figure:nth-child(3n+1):nth-last-child(2):not(.g-big) { grid-column: 2 / span 2; }
.gallery figure:nth-child(3n+2):last-child:not(.g-big) { grid-column: 4 / span 2; }
@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery figure, .gallery .g-big, .gallery figure:nth-child(n):not(.g-big) { grid-column: auto; grid-row: auto; aspect-ratio: 16 / 9; }
}
.gallery-row { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 1rem 1.5rem; align-items: start; margin-bottom: 1rem; }
.gallery-row__img { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--tint); }
.gallery-row__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery-row .sponsor-row__actions { grid-column: 1 / -1; }
@media (max-width: 700px) { .gallery-row { grid-template-columns: minmax(0, 1fr); } }

/* === Sponsoren-Leiste mit Stufen === */
.sponsors { margin-top: 3rem; }
.sponsors__row { margin-top: .75rem; justify-content: center; }
.sponsors__row.tier-1 li { height: 120px; min-width: 220px; padding: 1rem 2rem; }
.sponsors__row.tier-1 img { height: 80px; max-width: 280px; }
.sponsors__row.tier-3 li { height: 64px; min-width: 100px; padding: .4rem .9rem; }
.sponsors__row.tier-3 img { height: 40px; max-width: 130px; }
@media (max-width: 700px) {
  .sponsors__row.tier-1 li { height: 96px; padding: .75rem 1.2rem; } .sponsors__row.tier-1 img { height: 64px; }
  .sponsors__row.tier-3 li { height: 56px; } .sponsors__row.tier-3 img { height: 34px; }
}

/* === Countdown-Leiste unter dem Hero === */
.count-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .9rem 2rem; margin: -2.75rem 0 0; position: relative; z-index: 1; padding: 1rem 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow); }
.count-bar__label { margin: 0; font: 650 1.05rem/1.3 var(--font-head); color: var(--ink); }
.count-bar__date { display: block; font: 400 .95rem/1.4 var(--font); color: var(--ink-2); }
.count-bar__grid { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; }
.count-bar__grid[hidden] { display: none; }
.count-bar__grid li { display: grid; justify-items: center; min-width: 3.2rem; }
.count-bar__grid b { font: 800 clamp(1.7rem, 1.2rem + 1.6vw, 2.3rem)/1 var(--font-head); font-variant-numeric: tabular-nums; color: var(--accent); }
.count-bar__grid span { font-size: .8rem; color: var(--ink-2); }
.count-bar.is-done .count-bar__label { color: var(--accent); }
@media (max-width: 560px) { .count-bar { padding: .9rem 1rem; } .count-bar__grid { width: 100%; justify-content: space-between; gap: .5rem; } }

/* === Dashboard === */
.kpis { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.kpi { display: grid; gap: .2rem; padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); }
.kpi__n { font: 800 2rem/1 var(--font-head); font-variant-numeric: tabular-nums; }
.kpi__l { color: var(--ink-2); font-size: .95rem; }
.kpi__l small { display: block; color: var(--muted); }
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.dash-grid .panel + .panel { margin-top: 0; }
.tasklist, .eventlist, .recentlist { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.task { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem .8rem; border-left: 4px solid var(--accent); background: var(--tint, #f4f7f7); border-radius: 6px; }
.task.is-warn { border-left-color: #c77700; background: #fdf3e1; }
.task.is-fail { border-left-color: var(--err-ink, #a40e26); background: #fbe9ec; }
.eventlist li { padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.eventlist li:last-child { padding-bottom: 0; border-bottom: 0; }
.eventlist__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.eventlist p { margin: .2rem 0; }
.recentlist li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; }
@media (max-width: 960px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dash-grid { grid-template-columns: minmax(0, 1fr); } }
/* === Aus style-Attributen übernommen (CSP ohne unsafe-inline); nicht von Hand ändern === */
.u-0148ad { padding-block: 0 3rem; }
.u-03b2b9 { margin-block: .5rem 0; }
.u-049c56 { display: inline; }
.u-0b5c0e { margin: .75rem 0 0; }
.u-0ddfed { color: var(--err-ink); }
.u-10138b { margin: .9rem 0 0; }
.u-1241d6 { margin: 0 0 .15rem; }
.u-17506e { margin: 1.5rem 0 .75rem; }
.u-191b4c { margin-top: 1.5rem; }
.u-1a0f22 { margin: 0 0 .6rem; }
.u-1f3c88 { max-width: 440px; margin-bottom: 3rem; }
.u-203ea2 { margin-top: 1.5rem; max-width: var(--measure); }
.u-205336 { max-width: 960px; }
.u-245c5d { margin: .4rem 0; }
.u-247700 { max-width: 960px; margin-top: 1.5rem; }
.u-283a29 { display: flex; gap: .6rem; flex-wrap: wrap; }
.u-29e3e7 { margin-top: .9rem; }
.u-2a873e { width: 25%; }
.u-2b4554 { width: 35%; }
.u-36fb45 { padding-block: 0 3rem; max-width: 440px; margin-inline: auto; }
.u-379236 { flex: 1 1 260px; }
.u-39af90 { max-width: var(--measure); }
.u-4aa988 { margin-top: 1rem; }
.u-4bfd9f { margin: .25rem 0 .75rem; }
.u-4d59f1 { margin-bottom: .9rem; }
.u-4dc7c2 { min-width: 10rem; }
.u-4e8b86 { margin-top: .25rem; }
.u-50bdad { margin: 2rem 0 .75rem; }
.u-57a165 { max-width: 420px; }
.u-581c27 { margin-top: 2rem; }
.u-5b02cf { margin-bottom: .75rem; }
.u-610b4f { padding-left: 1.1rem; margin: 0; }
.u-633558 { margin-top: .5rem; }
.u-6829d0 { position: static; }
.u-68f5f1 { margin-bottom: 1.25rem; }
.u-707e15 { max-width: 960px; margin-bottom: 1.25rem; }
.u-7180f7 { margin-top: .6rem; }
.u-739217 { width: 100%; text-align: center; }
.u-758061 { width: 7rem; }
.u-7e4457 { margin-top: 1.25rem; }
.u-7ef55c { max-width: 26rem; }
.u-81ad8e { margin-top: 0; }
.u-866b09 { margin-top: .75rem; }
.u-89a288 { margin-bottom: 2rem; }
.u-90139d { align-self: end; }
.u-90f6ab { display: flex; gap: .6rem; }
.u-956db5 { margin: 0 0 .2rem; }
.u-98f0da { max-width: 960px; margin-top: 1rem; }
.u-9b1727 { margin-bottom: 1rem; }
.u-9c3e07 { width: 100%; }
.u-9f8f3e { margin-top: 2.5rem; }
.u-ad2d78 { flex-basis: 100%; border-top: 1px solid var(--line); padding-top: .9rem; margin-top: .3rem; }
.u-b1efe1 { margin-block: .75rem 1rem; }
.u-b2dbdf { min-width: 21rem; }
.u-be1ad1 { flex-wrap: wrap; }
.u-c2a555 { min-width: 14rem; }
.u-c4728a { margin-bottom: 1.5rem; }
.u-c73bef { min-width: 9rem; }
.u-cd3c06 { width: 6rem; }
.u-d10e79 { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }
.u-df89a9 { width: 5rem; }
.u-e00f4a { max-width: 440px; margin-inline: auto; }
.u-e6f38e { margin: 0; gap: .25rem 1rem; font-size: 14.5px; }
.u-e94bc9 { margin-bottom: 0; }
.u-e99cbd { max-width: 34rem; }
.u-eb190e { white-space: nowrap; }
.u-ec18cd { margin: 0; }
.u-ee8260 { margin: .25rem 0; }
.u-f57ba5 { min-width: 11rem; }
.u-f6117c { margin-bottom: .75rem; flex-wrap: wrap; }
.u-fad055 { margin: 0 0 .8rem; }

/* === Bewegung mit Zweck (alles unter 300 ms außer dem einmaligen Hero-Einstieg; Reduced Motion schaltet über die Regel weiter oben ab) === */
/* Hero: Elemente erscheinen nacheinander, einmal beim Laden */
@keyframes heroIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hero .wrap > * { animation: heroIn .42s var(--ease) both; }
.hero .wrap > :nth-child(2) { animation-delay: 50ms; }
.hero .wrap > :nth-child(3) { animation-delay: 100ms; }
.hero .wrap > :nth-child(4) { animation-delay: 150ms; }
/* Aufklappen von Preisen und Schichten statt Sprung */
@supports (selector(::details-content)) {
  .event-more { interpolate-size: allow-keywords; }
  .event-more::details-content { block-size: 0; overflow: hidden; transition: block-size .22s var(--ease), content-visibility .22s allow-discrete; }
  .event-more[open]::details-content { block-size: auto; }
}
/* Absenden: Button zeigt Spinner, bis die nächste Seite kommt */
@keyframes spin { to { transform: rotate(360deg); } }
.btn.is-loading::after { content: ""; flex: none; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@media (prefers-reduced-motion: reduce) { .btn.is-loading::after { animation: spin 2s linear infinite !important; } }
/* Galerie: ruhiger Zoom nur mit Maus */
@media (hover: hover) and (pointer: fine) {
  .gallery figure img { transition: transform .5s var(--ease); }
  .gallery figure:hover img { transform: scale(1.03); }
}

/* === Hilfe-Seite im Admin === */
.help ul.help-toc { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.help section.panel { scroll-margin-top: 1rem; }
.help-toc a.btn { min-height: 36px; padding: .25rem .8rem; text-transform: none; letter-spacing: 0; font-weight: 600; font-size: .95rem; border-width: 1.5px; }
.help .muted.small { margin-top: 1rem; }
.help h2 { font-size: 1.2rem; }
.help h3 { font-size: 1rem; margin: 1rem 0 .3rem; }
.help ol.help-steps { margin: .5rem 0 0; padding-left: 1.3rem; display: grid; gap: .5rem; }
.help ul { margin: .4rem 0 0; padding-left: 1.2rem; display: grid; gap: .3rem; }
.help .lead-in { margin: 0 0 .5rem; color: var(--ink-2); }
.help .statuslist { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .6rem; }
.help .statuslist li { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: .75rem; align-items: baseline; }
.help details { border-top: 1px solid var(--line); padding: .6rem 0; }
.help details:first-of-type { border-top: 0; }
.help summary { cursor: pointer; font-weight: 650; }
.help details p { margin: .5rem 0 0; }
@media (max-width: 600px) { .help .statuslist li { grid-template-columns: minmax(0, 1fr); gap: .2rem; } }

/* Kalender-Link auf den Veranstaltungskarten */
.cal-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: .6rem; font: 600 .95rem var(--font-head); }
.cal-link svg.i { width: 1.1em; height: 1.1em; }
.cal-all { margin: 1rem 0 0; }
.cal-all a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.cal-all svg.i { width: 1.1em; height: 1.1em; }
