/* ═══════════════════════════════════════════════════════════
   SCP Adventcup – Frontend, mobile-first
   Alle Regeln unter .scp-ac gescoped, damit sie gegen den
   .scp-page * Reset der Landingpage gewinnen.
   ═══════════════════════════════════════════════════════════ */

.scp-ac {
	--ac-blau: #1ea8f2;
	--ac-blau-d: #0d84c7;
	--ac-navy: #0b2a43;
	--ac-ink: #111416;
	--ac-muted: #5b6268;
	--ac-linie: #dfe6ec;
	--ac-tint: #eaf6fe;
	--ac-off: #f6f7f8;
	--ac-gruen: #1f9d44;
	--ac-gruen-bg: #e8f8ec;
	--ac-gelb: #d98b00;
	--ac-gelb-bg: #fff4e0;
	--ac-rot: #d92b2b;
	--ac-rot-bg: #fdeaea;
	--ac-display: 'Barlow Condensed', Impact, sans-serif;
	--ac-body: 'Barlow', system-ui, -apple-system, sans-serif;
	--ac-r: 14px;
	--ac-r-s: 10px;
	--ac-tap: 48px;
	--ac-shadow: 0 8px 24px rgba(11, 42, 67, .08);
	font-family: var(--ac-body);
	color: var(--ac-ink);
	line-height: 1.5;
	font-size: 16px;
	-webkit-text-size-adjust: 100%;
}
.scp-ac, .scp-ac *, .scp-ac *::before, .scp-ac *::after { box-sizing: border-box; }
.scp-ac button { font-family: inherit; }

/* ── Typografie ── */
.scp-ac .ac-h2 { font-family: var(--ac-display); font-size: 34px; font-weight: 900; line-height: .95; letter-spacing: -.01em; margin: 0; color: var(--ac-ink); }
.scp-ac .ac-h3 { font-family: var(--ac-display); font-size: 24px; font-weight: 900; line-height: 1; margin: 0; color: var(--ac-ink); }
.scp-ac .ac-label { font-family: var(--ac-display); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ac-blau-d); }
.scp-ac .ac-hint { font-size: 14px; color: var(--ac-muted); line-height: 1.5; margin: 6px 0 0; }
.scp-ac .ac-hint a, .scp-ac .ac-text a { color: var(--ac-blau-d); text-decoration: underline; text-underline-offset: 2px; }
.scp-ac .ac-text { font-size: 15px; line-height: 1.6; margin: 0; }

/* ── Karten ── */
.scp-ac .ac-card { background: #fff; border: 1px solid var(--ac-linie); border-radius: var(--ac-r); padding: 18px; box-shadow: var(--ac-shadow); }
.scp-ac .ac-card + .ac-card { margin-top: 14px; }
.scp-ac .ac-stack > * + * { margin-top: 14px; }

/* ── Chips ── */
.scp-ac .ac-chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--ac-display); font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; border-radius: 999px; padding: 6px 12px 5px; background: var(--ac-off); color: var(--ac-muted); white-space: nowrap; line-height: 1; }
.scp-ac .ac-chip-blau  { background: var(--ac-blau); color: #fff; }
.scp-ac .ac-chip-navy  { background: var(--ac-navy); color: #fff; }
.scp-ac .ac-chip-gruen { background: var(--ac-gruen-bg); color: #15532a; }
.scp-ac .ac-chip-gelb  { background: var(--ac-gelb-bg); color: #7a4b00; }
.scp-ac .ac-chip-rot   { background: var(--ac-rot-bg); color: #7d1f1f; }
.scp-ac .ac-chip-line  { background: #fff; border: 1.5px solid var(--ac-linie); }

/* ── Buttons ── */
.scp-ac .ac-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--ac-tap); font-family: var(--ac-display); font-size: 18px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 0 22px; border-radius: var(--ac-r-s); border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, transform .12s, opacity .15s; -webkit-tap-highlight-color: transparent; }
.scp-ac .ac-btn:active { transform: scale(.98); }
.scp-ac .ac-btn-primary { background: var(--ac-blau); color: #fff; box-shadow: 0 6px 16px rgba(30,168,242,.3); }
.scp-ac .ac-btn-primary:hover { background: var(--ac-blau-d); color: #fff; }
.scp-ac .ac-btn-secondary { background: #fff; color: var(--ac-blau-d); border-color: var(--ac-blau); }
.scp-ac .ac-btn-secondary:hover { background: var(--ac-tint); }
.scp-ac .ac-btn-ghost { background: transparent; color: var(--ac-muted); border-color: var(--ac-linie); font-size: 15px; min-height: 42px; }
.scp-ac .ac-btn-ghost:hover { color: var(--ac-ink); border-color: var(--ac-muted); }
.scp-ac .ac-btn-block { width: 100%; }
.scp-ac .ac-btn[disabled] { opacity: .5; cursor: default; transform: none; }
.scp-ac .ac-btn-reihe { display: flex; flex-direction: column; gap: 10px; }

/* ── Formularfelder ── */
.scp-ac .ac-field { margin: 0 0 16px; }
.scp-ac .ac-field > label { display: block; font-family: var(--ac-display); font-size: 15px; font-weight: 700; letter-spacing: .04em; margin: 0 0 6px; color: var(--ac-ink); }
.scp-ac .ac-field input:not([type="checkbox"]):not([type="radio"]),
.scp-ac .ac-field select,
.scp-ac .ac-field textarea,
.scp-ac .ac-input {
	display: block; width: 100%; min-height: var(--ac-tap); font-family: var(--ac-body); font-size: 16px; color: var(--ac-ink);
	background: #fff; border: 1.5px solid var(--ac-linie); border-radius: var(--ac-r-s); padding: 12px 14px; margin: 0;
	transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
.scp-ac .ac-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b6268' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.scp-ac .ac-field textarea { min-height: 88px; resize: vertical; }
.scp-ac .ac-field input:focus, .scp-ac .ac-field select:focus, .scp-ac .ac-field textarea:focus, .scp-ac .ac-input:focus { outline: none; border-color: var(--ac-blau); box-shadow: 0 0 0 3px rgba(30,168,242,.18); }
.scp-ac .ac-field .ac-fehler { border-color: var(--ac-rot) !important; }
.scp-ac .ac-grid-2 { display: grid; grid-template-columns: 1fr; gap: 0 14px; }

/* Auswahlkarten (Checkbox/Radio als große Tap-Fläche) */
.scp-ac .ac-choice { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; background: #fff; border: 2px solid var(--ac-linie); border-radius: var(--ac-r-s); padding: 14px; margin: 0 0 10px; cursor: pointer; transition: border-color .15s, background .15s; -webkit-tap-highlight-color: transparent; }
.scp-ac .ac-choice:has(input:checked) { border-color: var(--ac-blau); background: var(--ac-tint); }
.scp-ac .ac-choice input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ac-blau); flex: 0 0 auto; }
.scp-ac .ac-choice-body { min-width: 0; }
.scp-ac .ac-choice-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.scp-ac .ac-choice-title strong { font-family: var(--ac-display); font-size: 24px; font-weight: 900; line-height: 1; }
.scp-ac .ac-choice-meta { font-size: 14px; color: var(--ac-muted); margin-top: 5px; line-height: 1.45; }
.scp-ac .ac-choice-note { font-size: 13px; color: var(--ac-ink); background: rgba(30,168,242,.1); border-radius: 8px; padding: 8px 10px; margin-top: 8px; line-height: 1.45; }
.scp-ac .ac-choice-voll { opacity: .85; }

/* ── Hinweise & Meldungen ── */
.scp-ac .ac-note { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--ac-r-s); padding: 14px 16px; font-size: 15px; line-height: 1.5; background: var(--ac-tint); border-left: 4px solid var(--ac-blau); color: var(--ac-ink); }
.scp-ac .ac-note-gelb  { background: var(--ac-gelb-bg); border-left-color: var(--ac-gelb); }
.scp-ac .ac-note-gruen { background: var(--ac-gruen-bg); border-left-color: var(--ac-gruen); }
.scp-ac .ac-note-rot   { background: var(--ac-rot-bg); border-left-color: var(--ac-rot); }
.scp-ac .ac-note a { color: var(--ac-blau-d); text-decoration: underline; }
.scp-ac .ac-note ul { margin: 8px 0 0; padding-left: 18px; }
.scp-ac .ac-note li { list-style: disc; margin: 4px 0; }
.scp-ac .ac-note[hidden] { display: none; }

/* Toast */
.scp-ac-toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 9999; max-width: min(92vw, 480px); background: #111416; color: #fff; border-radius: 12px; padding: 14px 18px; font-family: 'Barlow', system-ui, sans-serif; font-size: 15px; line-height: 1.45; box-shadow: 0 12px 32px rgba(0,0,0,.28); opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; }
.scp-ac-toast.ac-toast-an { opacity: 1; transform: translate(-50%, 0); }
.scp-ac-toast.ac-toast-ok { background: #15532a; }
.scp-ac-toast.ac-toast-fehler { background: #7d1f1f; }
.scp-ac-toast ul { margin: 6px 0 0; padding-left: 18px; }

/* ── Schrittanzeige (Anmeldung) ── */
.scp-ac .ac-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 18px; }
.scp-ac .ac-step { text-align: center; }
.scp-ac .ac-step-bar { height: 5px; border-radius: 999px; background: var(--ac-linie); margin-bottom: 8px; }
.scp-ac .ac-step-txt { font-family: var(--ac-display); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ac-muted); }
.scp-ac .ac-step.ac-aktiv .ac-step-bar, .scp-ac .ac-step.ac-fertig .ac-step-bar { background: var(--ac-blau); }
.scp-ac .ac-step.ac-aktiv .ac-step-txt { color: var(--ac-ink); }
.scp-ac.ac-js .ac-panel:not(.ac-aktiv) { display: none; }
.scp-ac .ac-panel-nav { display: flex; gap: 10px; margin-top: 18px; }
.scp-ac .ac-panel-nav .ac-btn { flex: 1 1 0; }
.scp-ac .ac-panel-nav .ac-btn-ghost { flex: 0 0 auto; padding: 0 16px; }

/* ── Platzanzeige ── */
.scp-ac.ac-plaetze { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0 0 30px; }
.scp-ac .ac-platz { background: #fff; border: 1px solid var(--ac-linie); border-radius: var(--ac-r-s); padding: 14px 16px; display: grid; grid-template-columns: auto 1fr auto; gap: 4px 14px; align-items: center; box-shadow: var(--ac-shadow); }
.scp-ac .ac-platz-klasse { font-family: var(--ac-display); font-size: 30px; font-weight: 900; line-height: 1; grid-row: span 2; }
.scp-ac .ac-platz-termin { font-size: 14px; color: var(--ac-muted); }
.scp-ac .ac-platz-bar { height: 6px; background: var(--ac-off); border-radius: 999px; overflow: hidden; }
.scp-ac .ac-platz-bar span { display: block; height: 100%; background: var(--ac-blau); }
.scp-ac .ac-platz-voll .ac-platz-bar span { background: var(--ac-rot); }
.scp-ac .ac-platz-stand { grid-row: span 2; text-align: right; }
.scp-ac .ac-platz-stand strong { display: block; font-family: var(--ac-display); font-size: 20px; font-weight: 800; color: var(--ac-blau-d); line-height: 1; }
.scp-ac .ac-platz-voll .ac-platz-stand strong { color: var(--ac-rot); }
.scp-ac .ac-platz-stand small { font-size: 12px; color: var(--ac-muted); white-space: nowrap; }

/* ── Meldeliste ── */
.scp-ac.ac-teilnehmer { display: grid; grid-template-columns: 1fr; gap: 14px; }
.scp-ac .ac-tn-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-bottom: 2px solid var(--ac-blau); padding-bottom: 8px; margin-bottom: 10px; }
.scp-ac .ac-tn-kopf .ac-h3 { font-size: 28px; }
.scp-ac .ac-tn-kopf small { font-size: 13px; color: var(--ac-muted); text-align: right; }
.scp-ac .ac-tn-liste { margin: 0; padding: 0; list-style: none; }
.scp-ac .ac-tn-liste li { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 0; border-bottom: 1px solid var(--ac-linie); font-size: 15px; }
.scp-ac .ac-tn-nr { font-family: var(--ac-display); font-size: 13px; font-weight: 800; color: #fff; background: var(--ac-blau); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; }
.scp-ac .ac-tn-frei .ac-tn-nr { background: transparent; border: 1.5px dashed var(--ac-linie); color: transparent; }
.scp-ac .ac-tn-frei span:last-child { color: #a3abb3; font-size: 14px; }
.scp-ac .ac-tn-name { flex: 1 1 auto; min-width: 0; }
.scp-ac .ac-tn-warte { font-size: 13px; color: var(--ac-muted); margin: 10px 0 0; line-height: 1.55; }

/* ── Dashboard ── */
.scp-ac .ac-dash-kopf { display: flex; flex-direction: column; gap: 10px; margin: 0 0 16px; }
.scp-ac .ac-dash-kopf .ac-h2 { font-size: clamp(30px, 8vw, 44px); }
.scp-ac .ac-dash-chips { display: flex; gap: 8px; flex-wrap: wrap; }

/* Team-Umschalter */
.scp-ac .ac-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin: 0 -2px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.scp-ac .ac-tabs::-webkit-scrollbar { display: none; }
.scp-ac .ac-tab { flex: 0 0 auto; min-height: var(--ac-tap); display: inline-flex; flex-direction: column; justify-content: center; padding: 6px 16px; border-radius: var(--ac-r-s); border: 2px solid var(--ac-linie); background: #fff; cursor: pointer; text-align: left; -webkit-tap-highlight-color: transparent; }
.scp-ac .ac-tab strong { font-family: var(--ac-display); font-size: 18px; font-weight: 900; line-height: 1.05; }
.scp-ac .ac-tab small { font-size: 12px; color: var(--ac-muted); }
.scp-ac .ac-tab.ac-aktiv { border-color: var(--ac-blau); background: var(--ac-tint); }
.scp-ac .ac-tab .ac-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ac-gelb); margin-left: 6px; vertical-align: middle; }
.scp-ac .ac-tab .ac-dot-ok { background: var(--ac-gruen); }
.scp-ac.ac-js .ac-team:not(.ac-aktiv) { display: none; }

/* Team-Karte */
.scp-ac .ac-team { position: relative; padding: 0; overflow: visible; }
.scp-ac .ac-team-kopf { padding: 18px 18px 14px; border-bottom: 1px solid var(--ac-linie); }
.scp-ac .ac-team-kopf .ac-h3 { font-size: 28px; margin: 8px 0 4px; }
.scp-ac .ac-team-kopf .ac-hint { margin: 0; }
.scp-ac .ac-team-chips { display: flex; gap: 8px; flex-wrap: wrap; }

/* Fortschritt / Checkliste */
.scp-ac .ac-progress { padding: 14px 18px; background: var(--ac-off); border-bottom: 1px solid var(--ac-linie); }
.scp-ac .ac-progress-bar { height: 8px; border-radius: 999px; background: #fff; border: 1px solid var(--ac-linie); overflow: hidden; margin: 8px 0 12px; }
.scp-ac .ac-progress-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--ac-blau), var(--ac-gruen)); transition: width .3s; }
.scp-ac .ac-progress-titel { display: flex; justify-content: space-between; align-items: baseline; }
.scp-ac .ac-progress-titel strong { font-family: var(--ac-display); font-size: 16px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.scp-ac .ac-progress-titel span { font-size: 13px; color: var(--ac-muted); }
.scp-ac .ac-check { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
.scp-ac .ac-check li { list-style: none; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ac-muted); min-height: 28px; }
.scp-ac .ac-check li::before { content: ""; flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--ac-linie); background: #fff; }
.scp-ac .ac-check li.ac-ok { color: var(--ac-ink); }
.scp-ac .ac-check li.ac-ok::before { border-color: var(--ac-gruen); background: var(--ac-gruen) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }
.scp-ac .ac-check li.ac-warn::before { border-color: var(--ac-gelb); background: var(--ac-gelb-bg); }

/* Aufklapp-Abschnitte */
.scp-ac .ac-sec { border-bottom: 1px solid var(--ac-linie); }
.scp-ac .ac-sec:last-of-type { border-bottom: none; }
.scp-ac .ac-sec > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 18px; -webkit-tap-highlight-color: transparent; }
.scp-ac .ac-sec > summary::-webkit-details-marker { display: none; }
.scp-ac .ac-sec > summary::after { content: ""; margin-left: auto; width: 22px; height: 22px; flex: 0 0 auto; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6268' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/22px no-repeat; transition: transform .2s; }
.scp-ac .ac-sec[open] > summary::after { transform: rotate(180deg); }
.scp-ac .ac-sec-titel { font-family: var(--ac-display); font-size: 21px; font-weight: 900; line-height: 1; }
.scp-ac .ac-sec-sub { font-size: 13px; color: var(--ac-muted); }
.scp-ac .ac-sec-body { padding: 4px 18px 20px; }
.scp-ac .ac-sec-status { margin-left: auto; padding-right: 6px; }
.scp-ac .ac-sec > summary:has(.ac-sec-status)::after { margin-left: 0; }

/* Kader */
.scp-ac .ac-kader { display: flex; flex-direction: column; gap: 10px; }
.scp-ac .ac-sp { display: grid; grid-template-columns: 64px 1fr 44px; grid-template-areas: "nr name weg" "gd gd gd"; gap: 8px; background: var(--ac-off); border: 1px solid var(--ac-linie); border-radius: var(--ac-r-s); padding: 10px; }
.scp-ac .ac-sp input { min-height: 46px; font-size: 16px; font-family: var(--ac-body); border: 1.5px solid var(--ac-linie); border-radius: 8px; padding: 10px 12px; background: #fff; color: var(--ac-ink); width: 100%; -webkit-appearance: none; appearance: none; }
.scp-ac .ac-sp input:focus { outline: none; border-color: var(--ac-blau); box-shadow: 0 0 0 3px rgba(30,168,242,.18); }
.scp-ac .ac-sp-nr { grid-area: nr; text-align: center; font-weight: 700; }
.scp-ac .ac-sp-name { grid-area: name; }
.scp-ac .ac-sp-gd { grid-area: gd; }
.scp-ac .ac-sp-weg { grid-area: weg; min-height: 46px; border: none; background: #fff; border: 1.5px solid var(--ac-linie); border-radius: 8px; color: #9aa3ab; font-size: 22px; line-height: 1; cursor: pointer; }
.scp-ac .ac-sp-weg:hover { color: var(--ac-rot); border-color: var(--ac-rot); }
.scp-ac .ac-sp-leer { display: none; }
.scp-ac .ac-kader-kopf { display: none; }
.scp-ac .ac-kader-fuss { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.scp-ac .ac-kader-zaehler { font-size: 14px; color: var(--ac-muted); }
.scp-ac .ac-kader-zaehler strong { color: var(--ac-ink); }

/* Zahlung */
.scp-ac .ac-geld { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.scp-ac .ac-geld strong { font-family: var(--ac-display); font-size: 30px; font-weight: 900; line-height: 1; }
.scp-ac .ac-geld span { font-size: 14px; color: var(--ac-muted); }

/* Gruppe */
.scp-ac .ac-gruppe { margin: 0; padding: 0; list-style: none; }
.scp-ac .ac-gruppe li { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 0; border-bottom: 1px solid var(--ac-linie); font-size: 15px; }
.scp-ac .ac-gruppe li.ac-eigen { font-weight: 700; }
.scp-ac .ac-gruppe li em { font-style: normal; font-size: 12px; color: var(--ac-blau-d); margin-left: auto; }
.scp-ac .ac-farbe { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); flex: 0 0 auto; }

/* Spielplan */
.scp-ac .ac-plan { margin: 0; padding: 0; list-style: none; }
.scp-ac .ac-plan li { list-style: none; display: grid; grid-template-columns: 56px 1fr; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--ac-linie); font-size: 15px; }
.scp-ac .ac-plan li.ac-eigen { background: var(--ac-tint); margin: 0 -10px; padding: 10px; border-radius: 8px; border-bottom-color: transparent; }
.scp-ac .ac-plan-zeit { font-family: var(--ac-display); font-size: 18px; font-weight: 800; grid-row: span 2; }
.scp-ac .ac-plan-runde { font-size: 12px; color: var(--ac-muted); text-transform: uppercase; letter-spacing: .06em; }
.scp-ac .ac-plan-pause { text-align: center; font-size: 13px; color: var(--ac-muted); font-style: italic; padding: 8px 0 !important; display: block !important; }
.scp-ac .ac-plan-vs { color: var(--ac-muted); font-size: 13px; margin: 0 6px; }

/* Aktionsleiste am Kartenende, klebt beim Scrollen am unteren Rand */
.scp-ac .ac-actions { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 10px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-top: 1px solid var(--ac-linie); border-radius: 0 0 var(--ac-r) var(--ac-r); }
.scp-ac .ac-actions .ac-btn { flex: 1 1 0; min-width: 0; font-size: 16px; padding: 0 12px; }
.scp-ac .ac-actions .ac-dirty { position: absolute; top: -10px; left: 18px; font-size: 12px; font-weight: 700; color: var(--ac-gelb); background: #fff; border: 1px solid var(--ac-gelb); border-radius: 999px; padding: 2px 10px; display: none; }
.scp-ac .ac-team.ac-geaendert .ac-dirty { display: inline-block; }

/* Login-Formular */
.scp-ac .ac-login { max-width: 480px; }

/* Honeypot */
.scp-ac .ac-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Tablet & Desktop ── */
@media (min-width: 640px) {
	.scp-ac .ac-card { padding: 24px; }
	.scp-ac .ac-grid-2 { grid-template-columns: 1fr 1fr; }
	.scp-ac .ac-btn-reihe { flex-direction: row; }
	.scp-ac .ac-btn-reihe .ac-btn { flex: 1 1 0; }
	.scp-ac.ac-plaetze { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
	.scp-ac.ac-teilnehmer { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
	.scp-ac .ac-dash-kopf { flex-direction: row; align-items: flex-end; justify-content: space-between; }
	.scp-ac .ac-check { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
	.scp-ac .ac-sec > summary, .scp-ac .ac-sec-body, .scp-ac .ac-team-kopf, .scp-ac .ac-progress, .scp-ac .ac-actions { padding-left: 24px; padding-right: 24px; }
	/* Kader als Tabelle */
	.scp-ac .ac-kader-kopf { display: grid; grid-template-columns: 70px 1fr 180px 44px; gap: 8px; font-family: var(--ac-display); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ac-muted); padding: 0 10px 4px; }
	.scp-ac .ac-sp { grid-template-columns: 70px 1fr 180px 44px; grid-template-areas: "nr name gd weg"; background: #fff; }
	.scp-ac .ac-plan li { grid-template-columns: 70px 150px 1fr; }
	.scp-ac .ac-plan-zeit { grid-row: auto; }
	.scp-ac .ac-plan-runde { align-self: center; }
}

@media (prefers-reduced-motion: reduce) {
	.scp-ac *, .scp-ac-toast { transition: none !important; }
}

/* ── Vereinslogos ── */
.scp-ac .ac-logo { width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1.5px solid var(--ac-linie); display: inline-grid; place-items: center; overflow: hidden; flex: 0 0 auto; }
.scp-ac .ac-logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; display: block; }
.scp-ac .ac-logo-mono { background: var(--ac-navy); border-color: var(--ac-navy); color: #fff; font-family: var(--ac-display); font-size: 17px; font-weight: 900; letter-spacing: .02em; }
.scp-ac .ac-logo-klein { width: 30px; height: 30px; }
.scp-ac .ac-logo-klein.ac-logo-mono { font-size: 12px; }
.scp-ac .ac-logo-gross { width: 60px; height: 60px; }
.scp-ac .ac-logo-gross.ac-logo-mono { font-size: 24px; }
.scp-ac .ac-dash-ident { display: flex; align-items: center; gap: 14px; min-width: 0; }
.scp-ac .ac-logo-zeile { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 8px; }

/* ── Sponsorenraster ──
   minmax(0, …) ist Pflicht: 1fr allein bedeutet minmax(auto, 1fr),
   und Safari rechnet als Mindestbreite die native Bildbreite ein.
   Die Kacheln werden dadurch breiter als ihre Spalte und schieben
   sich aus dem Raster – am Handy quer über den Rand hinaus. */
.scp-ac.ac-sponsoren { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 14px; align-items: stretch; width: 100%; max-width: 900px; margin: 0 auto; }
.scp-ac .ac-sponsor { display: block; width: 100%; min-width: 0; min-height: 0; aspect-ratio: 1; background: #fff; border: 1px solid #e8eef3; border-radius: 12px; padding: 16px; transition: transform .15s, box-shadow .15s; }
.scp-ac a.ac-sponsor:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(11,42,67,.12); }
.scp-ac .ac-sponsor img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
@media (max-width: 560px) { .scp-ac.ac-sponsoren { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .scp-ac .ac-sponsor { padding: 10px; border-radius: 10px; } }
@media (max-width: 340px) { .scp-ac.ac-sponsoren { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── Terminübersicht ── */
.scp-ac.ac-termine { display: flex; flex-direction: column; gap: 10px; }
.scp-ac .ac-termin { display: grid; grid-template-columns: 150px 90px 62px minmax(0,1fr) auto; align-items: center; gap: 14px; background: #fff; border: 1px solid #e8eef3; border-left: 5px solid var(--ac-blau, #1ea8f2); border-radius: 10px; padding: 14px 18px; box-shadow: 0 6px 18px rgba(15,25,40,.07); transition: transform .15s, box-shadow .15s; }
.scp-ac .ac-termin:hover { transform: translateX(4px); box-shadow: 0 10px 26px rgba(15,25,40,.13); }
.scp-ac .ac-termin-tag strong { display: block; font-size: 16px; font-weight: 700; color: var(--ac-navy, #0b2a43); line-height: 1.15; }
.scp-ac .ac-termin-tag small { font-size: 13px; color: #7a828a; }
.scp-ac .ac-termin-zeit { font-size: 19px; font-weight: 800; color: var(--ac-navy, #0b2a43); white-space: nowrap; }
.scp-ac .ac-termin-klasse { justify-self: start; background: var(--ac-blau, #1ea8f2); color: #fff; font-size: 15px; font-weight: 800; letter-spacing: .3px; padding: 4px 11px 3px; border-radius: 6px; }
.scp-ac .ac-termin-info { font-size: 15px; color: #555b61; min-width: 0; }
.scp-ac .ac-termin-info strong { color: #22262a; }
.scp-ac .ac-termin-modus { display: inline-block; margin-left: 8px; font-size: 13px; color: #7a828a; }
.scp-ac .ac-termin-form { font-size: 17px; font-weight: 800; color: var(--ac-blau, #1ea8f2); white-space: nowrap; }
@media (max-width: 820px) {
  .scp-ac .ac-termin { grid-template-columns: 1fr auto; gap: 4px 12px; padding: 13px 15px; }
  .scp-ac .ac-termin-tag { grid-column: 1; }
  .scp-ac .ac-termin-zeit { grid-column: 2; grid-row: 1; text-align: right; }
  .scp-ac .ac-termin-klasse { grid-column: 1; grid-row: 2; margin-top: 4px; }
  .scp-ac .ac-termin-form { grid-column: 2; grid-row: 2; text-align: right; align-self: center; }
  .scp-ac .ac-termin-info { grid-column: 1 / -1; grid-row: 3; margin-top: 6px; font-size: 14px; }
  .scp-ac .ac-termin-modus { margin-left: 0; display: block; margin-top: 2px; }
}
