/* Funky Dance Masters 2027 – Gestaltung gemäß docs/GESTALTUNG.md (Schwarz/Rot, Papier für Formulare und Verwaltung). */

@font-face {
    font-family: "Archivo";
    font-style: normal;
    font-weight: 400 900;
    font-stretch: 62% 125%;
    font-display: swap;
    src: url("fonts/archivo-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Archivo";
    font-style: normal;
    font-weight: 400 900;
    font-stretch: 62% 125%;
    font-display: swap;
    src: url("fonts/archivo-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --black: #0b0b0b;
    --ink: #141414;
    --paper: #f5f4f1;
    --white: #fff;
    --text-on-dark: #f5f4f2;
    --muted-dark: #a8a6a3;
    --body-dark: #c9c7c3;
    --muted: #5e5c58;
    --body: #3d3b38;
    --line: #dcd9d3;
    --line-soft: #eceae6;
    --input-border: #c9c5be;
    --line-dark: rgb(255 255 255 / 14%);
    --line-dark-strong: rgb(255 255 255 / 30%);
    --red: #c41514;
    --red-hover: #a51110;
    --grey-inactive: #8a8782;
    --row-hover: #faf9f7;
    --surface-dark: #161616;
    --font: "Archivo", system-ui, sans-serif;
    --mono: ui-monospace, Menlo, monospace;
    --gutter: 64px;
    --radius: 2px;

    /* Kontextfarben; .theme-paper setzt sie für helle Arbeitsbereiche um. */
    --bg: var(--black);
    --fg: var(--text-on-dark);
    --fg-body: var(--body-dark);
    --fg-muted: var(--muted-dark);
    --rule: var(--line-dark);
    --panel: var(--surface-dark);
}
.theme-paper {
    --bg: var(--paper);
    --fg: var(--ink);
    --fg-body: var(--body);
    --fg-muted: var(--muted);
    --rule: var(--line);
    --panel: var(--white);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    min-width: 0;
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 5px; transition: color .15s; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -6rem; left: 1rem; padding: .75rem 1rem; background: var(--white); color: var(--ink); z-index: 20; }
.skip-link:focus { top: 1rem; }
.amount { font-variant-numeric: tabular-nums; }
.muted { color: var(--fg-muted); }

/* Kopfzeile öffentlich */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: 88px; padding: 0 var(--gutter); background: var(--black); color: var(--text-on-dark); border-bottom: 1px solid var(--line-dark); }
.theme-paper .site-header { border-bottom: 0; }
.site-header .brand img { height: 66px; width: auto; }
.site-menu { display: contents; }
.site-nav { display: flex; align-items: center; gap: 36px; font-size: 16px; font-weight: 500; }
.site-nav a, .admin-nav a { padding: 6px 0; border-bottom: 2px solid transparent; text-decoration: none; }
.site-nav [aria-current="page"], .admin-nav [aria-current="page"] { border-bottom-color: var(--red); }
.header-aside { font-size: 15px; font-weight: 500; color: var(--muted-dark); text-decoration: none; }
.menu-toggle { display: none; }

/* Schaltflächen */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 1px solid var(--red); border-radius: var(--radius); background: var(--red); color: var(--white); font: 600 16px var(--font); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.button:hover { background: var(--red-hover); border-color: var(--red-hover); color: var(--white); }
.button-large { min-height: 56px; padding: 0 28px; font-size: 17px; }
.button-secondary { background: transparent; border-color: currentColor; color: var(--fg); }
.button-secondary:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.theme-paper .button-secondary { background: var(--white); border-color: var(--ink); }
.theme-paper .button-secondary:hover { background: var(--ink); color: var(--white); }
.button-small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.link-button { min-height: 40px; padding: 0 4px; border: 0; background: none; color: var(--muted); font: 500 15px var(--font); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.link-button:hover { color: var(--red); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 17px; font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }

/* Startseite */
.hero { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 64px; padding: 80px var(--gutter) 88px; align-items: end; }
/* Hintergrundbild vollständig eingepasst (contain), Motive rechts; Rest schwarz wie der Bildrand, der Verlauf hält den Text lesbar. */
.hero { background-image: linear-gradient(to right, rgba(0, 0, 0, .7) 30%, rgba(0, 0, 0, 0) 70%), url(hero-desktop.jpg); background-color: var(--black); background-size: contain; background-repeat: no-repeat; background-position: right center; }
.hero-kicker { max-width: 32ch; margin: 0 0 32px; font-size: 18px; line-height: 1.45; color: var(--muted-dark); }
.hero h1 { margin: 0; font-size: 120px; font-weight: 800; line-height: .88; letter-spacing: -.05em; }
.accent { color: var(--red); }
.hero-date { margin: 56px 0 0; font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 36px 0 0; }
.hero-facts div { padding: 18px 24px 0; border-left: 1px solid var(--line-dark); }
.hero-facts div:first-child { padding-left: 0; border-left: 0; }
.hero-facts dt { font-size: 14px; color: var(--muted-dark); }
.hero-facts dd { margin: 6px 0 0; font-size: 20px; font-weight: 600; }
.hero .actions { margin-top: 48px; }

.band { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 64px; padding: 72px var(--gutter); border-top: 1px solid var(--line-dark); scroll-margin-top: 16px; }
.band > h2 { margin: 0; font-size: 18px; font-weight: 600; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; }
.steps li { padding-top: 21px; border-top: 1px solid var(--line-dark-strong); }
.steps li:first-child { padding-top: 20px; border-top: 2px solid var(--red); }
.steps span { font-size: 15px; font-weight: 600; color: var(--muted-dark); }
.steps h3 { margin: 8px 0; font-size: 20px; font-weight: 700; }
.steps p, .guidelines p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--body-dark); }
.status-box { display: flex; align-items: center; justify-content: space-between; gap: 24px 32px; margin-top: 48px; padding: 24px 28px; background: var(--surface-dark); }
.status-box p { margin: 0; font-size: 17px; line-height: 1.5; }
.status-box strong { font-weight: 600; }
.status-box span { color: var(--muted-dark); }
.status-box a { flex: none; }
.status-box .text-link { font-size: 16px; }
.guidelines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.guidelines h3 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.guidelines p { margin-top: 12px; font-size: 17px; }
.guidelines .doc-state { margin-top: 20px; font-size: 15px; color: var(--muted-dark); }

/* Veranstalterfläche und Fußzeile */
.organiser { position: relative; background: var(--black); color: var(--white); border-top: 1px solid var(--line-dark); border-bottom: .3pt solid var(--white); }
.organiser-logo { padding: 44px var(--gutter) 52px; }
.organiser img { height: 112px; width: auto; }
.organiser p { position: absolute; right: var(--gutter); bottom: 16px; margin: 0; font-size: 13px; line-height: 1; white-space: nowrap; color: var(--muted-dark); }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; padding: 32px var(--gutter); background: var(--black); font-size: 15px; color: var(--muted-dark); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.site-footer a { text-decoration: none; }

/* Inhaltsseiten (Kontakt, Impressum, Vereinsbereich, Verwaltungsunterseiten) */
.prose { max-width: 60rem; min-height: 50vh; padding: 64px var(--gutter) 80px; overflow-wrap: anywhere; }
.eyebrow { margin: 0 0 12px; font-size: 16px; color: var(--fg-muted); }
.prose h1, .page-intro h1 { margin: 0 0 20px; font-size: 72px; font-weight: 800; line-height: .95; letter-spacing: -.045em; }
.prose h2 { margin: 48px 0 16px; font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -.015em; }
.prose h3 { margin: 24px 0 8px; font-size: 19px; font-weight: 700; }
.lead { max-width: 58ch; margin: 0 0 32px; font-size: 19px; line-height: 1.5; color: var(--fg-body); }
.content-card, .card { margin-block: 24px; padding: 24px 28px; background: var(--panel); border: 1px solid var(--rule); }
.content-card > :first-child, .card > :first-child { margin-top: 0; }
.content-card > :last-child, .card > :last-child { margin-bottom: 0; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.cards .card { margin: 0; }
.notice { margin-block: 24px; padding: 20px 24px; background: var(--panel); border: 1px solid var(--rule); border-left: 2px solid var(--red); font-size: 16px; line-height: 1.55; }
.notice > :first-child { margin-top: 0; }
.notice > :last-child { margin-bottom: 0; }
.status { display: inline-block; margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--fg-muted); }

/* Formulare */
input, select, textarea, button { max-width: 100%; font: inherit; }
.field { display: grid; gap: 8px; margin-block: 16px; align-content: start; }
.field label, .checkbox label { font-size: 15px; font-weight: 600; }
.field input, .field select, .field textarea, .search-input { min-width: 0; height: 50px; padding: 0 14px; border: 1px solid var(--input-border); border-radius: var(--radius); background: var(--white); color: var(--ink); font: 400 16px var(--font); color-scheme: light; }
.field textarea { height: auto; min-height: 120px; padding-block: 12px; }
.field input[type="file"] { height: auto; padding: 12px 14px; }
.field select { padding: 0 12px; }
.field [aria-invalid="true"], .has-error input { border: 2px solid var(--red); padding-inline: 13px; }
.field-error { margin: 0; font-size: 14px; font-weight: 500; color: var(--red-hover); }
body:not(.theme-paper) .field-error { color: #ff8a89; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.field-grid .field { margin: 0; }
.checkbox { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 4px 16px; margin: 0; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.checkbox input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--red); }
.checkbox label { font-size: 16px; font-weight: 400; line-height: 1.5; }
.checkbox .field-error { grid-column: 2; }
.checkbox-list { border-top: 1px solid var(--rule); }

.bank { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 0; }
.bank dt { font-size: 14px; color: var(--fg-muted); }
.bank dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* Anmeldeformular 1b */
.page-intro { padding: 64px var(--gutter) 40px; border-bottom: 1px solid var(--line); }
.page-intro .lead { margin: 0; }
.page-intro .notice { max-width: 58rem; margin-bottom: 0; }
.registration-layout { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 48px; padding: 48px var(--gutter) 80px; align-items: start; }
.registration-form { display: grid; gap: 24px; }
.registration-layout .registration-form { gap: 56px; }
.registration-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.step-legend { display: flex; align-items: baseline; gap: 14px; margin-bottom: 24px; padding: 0; font-size: 26px; font-weight: 700; letter-spacing: -.015em; }
.step-legend span { color: var(--red); }
.fieldset-hint { margin: -12px 0 24px; font-size: 16px; line-height: 1.5; color: var(--fg-muted); }
.field-legend { margin: 28px 0 16px; padding: 0; font-size: 15px; font-weight: 600; line-height: 1.5; }
.field-legend + .fieldset-hint { margin: -8px 0 12px; }
.error-summary ul { margin: 8px 0 0; padding-left: 20px; }

.dances { display: grid; gap: 16px; }
.dance-card { min-width: 0; margin: 0; padding: 0; background: var(--white); border: 1px solid var(--line); color: var(--ink); }
.dance-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 18px 24px; }
.dance-card:not(.is-collapsed) .dance-head { border-bottom: 1px solid var(--line); }
.dance-head-main, .dance-head-side { display: flex; align-items: baseline; gap: 24px; min-width: 0; }
.dance-head h3 { margin: 0; flex: none; font-size: 19px; font-weight: 700; }
.dance-meta { font-size: 16px; color: var(--body); overflow-wrap: anywhere; }
.dance-price { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dance-head [data-toggle-dance] { color: var(--ink); }
.dance-body { padding: 24px; }
.dance-body .field-grid + .field-error, .dance-body > .field-error { margin-top: 16px; }
.persons-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 32px 0 10px; }
.persons-head h4 { margin: 0; font-size: 16px; font-weight: 700; }
.persons-head p { margin: 0; font-size: 14px; color: var(--muted); text-align: right; }
.persons { border-top: 1px solid var(--line); }
.person-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1fr) 170px 88px; gap: 16px; align-items: center; }
.persons-columns { padding: 10px 0; font-size: 13px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); }
.person { padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.person .field { margin: 0; gap: 4px; }
.person .field input { height: 42px; padding: 0 12px; border-color: var(--line); font-variant-numeric: tabular-nums; }
.person .field [aria-invalid="true"] { border-color: var(--red); padding-inline: 11px; }
.person-nr { color: var(--muted); font-variant-numeric: tabular-nums; }
.person .link-button { justify-self: end; height: 42px; font-size: 14px; text-decoration: none; }
.add-person { min-height: 44px; margin-top: 16px; padding: 0 18px; font-size: 15px; }
.photo-package { margin-top: 24px; border-top: 1px solid var(--line); border-bottom: 0; padding-bottom: 0; }
.dance-result { display: flex; flex-wrap: wrap; gap: 8px 40px; padding: 18px 24px; background: var(--ink); color: var(--text-on-dark); font-size: 16px; }
.dance-result p { margin: 0; }
.dance-result p > span { margin-right: 8px; color: var(--muted-dark); }
.dance-result strong { font-weight: 600; }
.add-dance { width: 100%; min-height: 56px; margin-top: 16px; }
.theme-paper .add-dance { background: transparent; }

.summary-aside { position: sticky; top: 24px; display: grid; gap: 16px; }
.summary-panel { padding: 28px; background: var(--black); color: var(--text-on-dark); }
.summary-panel h2 { margin: 0 0 20px; font-size: 20px; font-weight: 700; }
.summary-lines { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-dark); font-size: 16px; }
.summary-lines li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
.summary-lines .summary-total { padding: 18px 0 0; border-bottom: 0; font-size: 22px; font-weight: 700; }
.summary-lines .amount { white-space: nowrap; }
.summary-note { margin: 16px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted-dark); }
.summary-panel .button { width: 100%; margin-top: 24px; }
.payment-box { padding: 24px 28px; border: 1px solid var(--line); font-size: 15px; line-height: 1.55; color: var(--body); }
.payment-box p { margin: 0; }
.payment-box p + p, .payment-box .bank { margin-top: 12px; }
.payment-box .bank { grid-template-columns: 1fr; gap: 8px; }
.payment-box .payment-title { margin-bottom: 8px; font-weight: 700; color: var(--ink); }

/* Tabellen */
.table-wrap { position: relative; overflow-x: auto; }
.participants-table, .data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.participants-table { margin-top: 8px; }
.participants-table th, .participants-table td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.participants-table th { font-size: 13px; font-weight: 600; color: var(--fg-muted); }
.data-table { margin-top: 16px; background: var(--white); border: 1px solid var(--line); }
.data-table th { padding: 12px 16px; font-size: 13px; font-weight: 600; color: var(--muted); text-align: left; border-bottom: 1px solid var(--line); }
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.data-table tbody tr:hover { background: var(--row-hover); }
.data-table .end { text-align: right; }
.data-table .ref { font-family: var(--mono); font-size: 14px; white-space: nowrap; }
.data-table .ref a { text-underline-offset: 3px; }
.data-table .strong { font-weight: 600; }
.data-table .sub { font-size: 14px; color: var(--muted); }
.data-table.compact td { padding-block: 10px; vertical-align: middle; }
.data-table .pos { width: 60px; }
.data-table td.pos { font-weight: 700; }
.data-table form { margin: 0; }
.data-table .button-small { background: var(--ink); border-color: var(--ink); }
.data-table .button-small:hover { background: var(--red); border-color: var(--red); }
.state { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.state::before { content: ""; flex: none; width: 9px; height: 9px; border: 1.5px solid var(--ink); background: var(--ink); }
.state-offen::before { border-color: var(--red); background: var(--red); }
.state-teilweise::before { border-color: var(--red); background: var(--white); }
.state-storniert::before { border-color: var(--grey-inactive); background: var(--white); }

/* Verwaltung 1c */
.admin-header { display: flex; align-items: center; gap: 48px; min-height: 64px; padding: 0 40px; background: var(--black); color: var(--text-on-dark); }
.admin-brand { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 700; text-decoration: none; }
.admin-brand::before { content: ""; width: 10px; height: 10px; background: var(--red); }
.admin-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.admin-nav a { color: var(--muted-dark); }
.admin-nav a[aria-current="page"], .admin-nav a:hover { color: var(--text-on-dark); }
.admin-user { display: flex; align-items: center; gap: 6px; margin-left: auto; font-size: 14px; color: var(--muted-dark); }
.admin-user form { display: inline; margin: 0; }
.admin-user button { min-height: 44px; padding: 0; border: 0; background: none; color: var(--text-on-dark); font: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.admin-user button:hover { color: var(--red); }
.admin-main { padding: 40px 40px 64px; }
.admin-main .prose { max-width: 60rem; min-height: 0; padding: 0; }
.admin-main h1 { margin: 0 0 20px; font-size: 48px; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.admin-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px; }
.admin-title h1 { margin: 0; }
.admin-title .actions { gap: 12px; }
.admin-title .button-secondary { min-height: 44px; padding: 0 18px; border-color: var(--input-border); font-size: 15px; font-weight: 500; }
.admin-title .button-secondary:hover { border-color: var(--ink); }
.admin-main > .notice { max-width: 60rem; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 32px 0 0; background: var(--white); border: 1px solid var(--line); }
.kpis div { padding: 20px 24px; }
.kpis div + div { border-left: 1px solid var(--line); }
.kpis dt { font-size: 14px; color: var(--muted); }
.kpis dd { margin: 6px 0 0; font-size: 32px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpis dd small { font-size: 18px; font-weight: 500; color: var(--muted); }
.meter { display: block; width: 100%; height: 4px; margin-top: 12px; }
.meter-track { fill: var(--line-soft); }
.meter-fill { fill: var(--ink); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 32px; }
.toolbar form { flex: 1; max-width: 420px; margin: 0; }
.search-input { width: 100%; height: 44px; font-size: 15px; }
.segments { display: flex; background: var(--white); border: 1px solid var(--input-border); border-radius: var(--radius); }
.segments a { display: flex; align-items: center; height: 42px; padding: 0 16px; font-size: 15px; font-weight: 500; text-decoration: none; }
.segments a[aria-current="page"] { background: var(--ink); color: var(--white); }
.toolbar .count { margin: 0 0 0 auto; font-size: 14px; color: var(--muted); }
.dance-filter { align-items: flex-end; }
.dance-filter .field { margin: 0; }
.dance-filter .count { align-self: center; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 32px; margin-top: 48px; }
.section-head h2 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.015em; }
.section-head p { margin: 0; font-size: 14px; color: var(--muted); }
.qr-code svg { width: min(15rem, 100%); height: auto; padding: 8px; background: var(--white); }
.recovery-codes { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 8px; padding-left: 0; list-style: none; font-family: var(--mono); }

@media (max-width: 1100px) {
    :root { --gutter: 40px; }
    .hero h1 { font-size: 88px; }
    .registration-layout { grid-template-columns: 1fr; }
    .summary-aside { position: static; }
    .admin-header { flex-wrap: wrap; gap: 8px 32px; padding: 12px 40px; }
    .admin-nav { flex-wrap: wrap; gap: 4px 24px; }
}

@media (max-width: 760px) {
    :root { --gutter: 20px; }
    html { scroll-behavior: auto; }
    .site-header { flex-wrap: wrap; gap: 0 16px; height: auto; min-height: 68px; }
    .site-header .brand { display: flex; align-items: center; min-height: 68px; }
    .site-header .brand img { height: 34px; }
    .menu-toggle { display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border: 1px solid var(--line-dark-strong); border-radius: var(--radius); background: transparent; color: var(--text-on-dark); font: 500 15px var(--font); cursor: pointer; }
    .site-menu { display: block; flex-basis: 100%; padding-bottom: 16px; }
    .site-menu[data-collapsed] { display: none; }
    .site-nav { flex-direction: column; align-items: stretch; gap: 0; }
    .site-nav a, .site-menu .header-aside { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--line-dark); }
    .site-nav a[aria-current="page"] { border-bottom-color: var(--red); }

    .hero { grid-template-columns: 1fr; gap: 0; padding: 56px var(--gutter) 48px; }
    .hero { background-image: linear-gradient(to right, rgba(0, 0, 0, .8) 45%, rgba(0, 0, 0, .35)), url(hero-mobil.jpg); background-position: right top; }
    .hero-kicker { margin-bottom: 20px; font-size: 16px; }
    .hero h1 { font-size: 58px; line-height: .9; }
    .hero-date { margin-top: 36px; font-size: 44px; }
    .hero-facts { display: block; margin-top: 24px; border-top: 1px solid var(--line-dark); }
    .hero-facts div, .hero-facts div:first-child { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--line-dark); }
    .hero-facts dt { font-size: 15px; }
    .hero-facts dd { margin: 0; font-size: 16px; text-align: right; }
    .hero .actions { display: grid; gap: 8px; margin-top: 32px; }
    .hero .actions .text-link { justify-content: center; min-height: 48px; font-size: 16px; }
    .band { grid-template-columns: 1fr; gap: 24px; padding: 56px var(--gutter); }
    .steps, .guidelines, .cards { grid-template-columns: 1fr; }
    .status-box { flex-direction: column; align-items: stretch; }
    .organiser-logo { padding: 32px var(--gutter) 0; }
    .organiser img { height: 68px; }
    .organiser p { position: static; padding: 28px var(--gutter) 20px; font-size: 12px; text-align: right; white-space: normal; }
    .site-footer { justify-content: flex-end; padding: 20px; font-size: 14px; }
    .site-footer > span { display: none; }
    .site-footer nav { justify-content: flex-end; gap: 0 20px; }
    .site-footer a { display: inline-flex; align-items: center; min-height: 44px; }

    .prose { padding: 48px var(--gutter) 64px; }
    .prose h1, .page-intro h1 { font-size: clamp(34px, 10.5vw, 44px); overflow-wrap: anywhere; hyphens: auto; }
    .page-intro { padding: 48px var(--gutter) 32px; }
    .registration-layout { gap: 32px; padding: 32px var(--gutter) 64px; }
    .field-grid, .bank { grid-template-columns: 1fr; }
    .dance-head, .dance-head-main, .dance-head-side { flex-wrap: wrap; gap: 4px 16px; }
    .dance-head { padding: 14px 16px; }
    .dance-body { padding: 20px 16px; }
    .dance-result { padding: 16px; }
    .persons-columns { display: none; }
    .person-row { grid-template-columns: 28px minmax(0, 1fr); gap: 8px 12px; }
    .person .field, .person .link-button { grid-column: 2; }
    .person .link-button { justify-self: start; height: 44px; }
    .person .field .visually-hidden { position: static !important; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; font-size: 13px; color: var(--muted); }
    .add-person { width: 100%; }

    .admin-header { padding: 12px var(--gutter); }
    .admin-main { padding: 32px var(--gutter) 48px; }
    .admin-main h1 { font-size: 36px; }
    .admin-nav a, .segments a { min-height: 44px; }
    .kpis { grid-template-columns: 1fr; }
    .kpis div + div { border-left: 0; border-top: 1px solid var(--line); }
    .toolbar form { flex-basis: 100%; max-width: none; }
    .segments { flex-wrap: wrap; }
    .toolbar .count { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
@media (forced-colors: active) {
    .state::before, .meter { forced-color-adjust: none; }
    .dance-card, .content-card, .card, .notice { border: 1px solid CanvasText; }
}
