/* Hey!CDC Meldeportal – ergänzt style.css (gleiche Farben/Schriften, Light/Dark per prefers-color-scheme). */
:root {
  --p-gap: clamp(16px, 2.4vw, 24px);
  --p-field-bg: var(--bg);
  --p-soft: rgba(255,255,255,.04);
  --p-soft-2: rgba(255,255,255,.07);
  --p-err: #ff9b9b;
  --p-err-line: #ff7a7a;
  --p-ok: #86efac;
  --p-warn: #fdba74;
  --p-pink-ink: var(--pink);
  --p-sky-ink: var(--sky);
  /* Status-Farben (dunkel) */
  --st-entwurf-bg: rgba(164,158,176,.16);      --st-entwurf-fg: #d3cddd;
  --st-eingereicht-bg: rgba(250,204,21,.16);   --st-eingereicht-fg: #fde68a;
  --st-rueckfrage-bg: rgba(251,146,60,.18);    --st-rueckfrage-fg: #fdba74;
  --st-bestaetigt-bg: rgba(74,222,128,.16);    --st-bestaetigt-fg: #86efac;
  --st-warteliste-bg: rgba(96,165,250,.18);    --st-warteliste-fg: #93c5fd;
  --st-abgelehnt-bg: rgba(248,113,113,.18);    --st-abgelehnt-fg: #fca5a5;
  --st-zurueckgezogen-bg: rgba(0,0,0,.45);     --st-zurueckgezogen-fg: #9a94a6;
}
@media (prefers-color-scheme: light) {
  :root {
    --p-field-bg: #fff;
    --p-soft: rgba(40,20,55,.035);
    --p-soft-2: rgba(40,20,55,.06);
    --p-err: #b42318;
    --p-err-line: #d92d20;
    --p-ok: #15803d;
    --p-warn: #b45309;
    --p-pink-ink: #b0177f;
    --p-sky-ink: #1670a8;
    --st-entwurf-bg: #eeeaf2;        --st-entwurf-fg: #4b4554;
    --st-eingereicht-bg: #fef3c7;    --st-eingereicht-fg: #854d0e;
    --st-rueckfrage-bg: #ffedd5;     --st-rueckfrage-fg: #9a3412;
    --st-bestaetigt-bg: #dcfce7;     --st-bestaetigt-fg: #166534;
    --st-warteliste-bg: #dbeafe;     --st-warteliste-fg: #1e40af;
    --st-abgelehnt-bg: #fee2e2;      --st-abgelehnt-fg: #991b1b;
    --st-zurueckgezogen-bg: #d4d0da; --st-zurueckgezogen-fg: #36313c;
  }
}

[hidden] { display: none !important; }
.p-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Rahmen ---------- */
.portal { min-height: 70vh; }
.p-main { padding: clamp(22px, 4vw, 48px) 0 clamp(56px, 8vw, 96px); }
.p-app:focus { outline: none; }
.p-loading { color: var(--muted); padding: 40px 0; }
.p-narrow { max-width: 760px; margin-inline: auto; }
.p-narrow--form { max-width: 880px; }

/* Portal-Navigation unter dem Website-Kopf */
.p-nav { background: var(--surface); border-bottom: 1px solid var(--line); }
.p-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; padding: 10px 0; }
.p-nav__who { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 700; color: var(--white); }
.p-nav__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
.p-nav__badge { flex: none; font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: .3em .7em; border-radius: 999px; background: rgba(255,94,201,.14); color: var(--p-pink-ink); border: 1px solid rgba(255,94,201,.35); }
.p-nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.p-nav__links::-webkit-scrollbar { display: none; }
.p-nav__link, .p-nav__logout { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; white-space: nowrap; font: inherit; font-size: .92rem; font-weight: 700; color: var(--text); text-decoration: none; background: transparent; border: 1px solid transparent; cursor: pointer; }
.p-nav__link:hover, .p-nav__logout:hover { background: var(--p-soft-2); color: var(--white); }
.p-nav__link[aria-current="page"] { background: rgba(255,94,201,.12); border-color: rgba(255,94,201,.35); color: var(--white); }
.p-nav__link[aria-current="page"] .p-icon { color: var(--p-pink-ink); }
.p-nav__logout { border-color: var(--line-strong); margin-left: 6px; }
@media (max-width: 700px) {
  .p-nav__inner { padding: 8px 0 6px; }
  .p-nav__who { width: 100%; font-size: .92rem; }
  .p-nav__links { width: calc(100% + 20px); margin-right: -20px; padding-right: 20px; padding-bottom: 4px; }
  .p-nav__link, .p-nav__logout { padding: 7px 11px; font-size: .88rem; }
}

/* ---------- Icons ---------- */
.p-icon { width: 20px; height: 20px; flex: none; }
.p-icon--s { width: 16px; height: 16px; }
.p-icon--btn { width: 18px; height: 18px; margin-left: -4px; }

/* ---------- Seitenkopf ---------- */
.p-head { margin-bottom: clamp(18px, 3vw, 30px); }
.p-head .eyebrow { margin-bottom: .7rem; }
.p-head h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); margin-bottom: .25em; }
.p-head h1:focus { outline: none; }
.p-head h1:focus-visible { outline: 3px solid var(--sky); outline-offset: 4px; border-radius: 4px; }
.p-lead { max-width: 62ch; font-size: clamp(1.02rem, 1.5vw, 1.15rem); margin-bottom: 0; }
.p-head__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
@media (min-width: 900px) {
  .p-head:has(.p-head__actions) { display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 24px; }
  .p-head:has(.p-head__actions) > :not(.p-head__actions) { grid-column: 1; }
  .p-head__actions { grid-column: 2; grid-row: 1 / span 2; margin: 0 0 .5em; }
}
.p-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 0; }
.p-tag { display: inline-flex; align-items: center; gap: 6px; padding: .28em .75em; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .85rem; font-weight: 600; color: var(--text); }
.p-tag--ok { color: var(--st-bestaetigt-fg); background: var(--st-bestaetigt-bg); border-color: transparent; }
.p-tag--fehler { color: var(--st-abgelehnt-fg); background: var(--st-abgelehnt-bg); border-color: transparent; }
.p-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-weight: 700; font-size: .92rem; text-decoration: none; color: var(--muted); }
.p-back:hover { color: var(--white); }
.p-back .p-icon { width: 18px; height: 18px; }

/* ---------- Status-Chips ---------- */
.p-chip { display: inline-flex; align-items: center; gap: .45em; padding: .26em .75em .26em .6em; border-radius: 999px; font-size: .82rem; font-weight: 800; letter-spacing: .02em; white-space: nowrap; line-height: 1.4; background: var(--st-entwurf-bg); color: var(--st-entwurf-fg); }
.p-chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.p-chip--eingereicht { background: var(--st-eingereicht-bg); color: var(--st-eingereicht-fg); }
.p-chip--rueckfrage { background: var(--st-rueckfrage-bg); color: var(--st-rueckfrage-fg); }
.p-chip--bestaetigt { background: var(--st-bestaetigt-bg); color: var(--st-bestaetigt-fg); }
.p-chip--warteliste { background: var(--st-warteliste-bg); color: var(--st-warteliste-fg); }
.p-chip--abgelehnt { background: var(--st-abgelehnt-bg); color: var(--st-abgelehnt-fg); }
.p-chip--zurueckgezogen { background: var(--st-zurueckgezogen-bg); color: var(--st-zurueckgezogen-fg); }

/* ---------- Meldungen ---------- */
.p-flash { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; margin-bottom: 20px; border-radius: 14px; border: 1px solid rgba(74,222,128,.35); background: var(--st-bestaetigt-bg); color: var(--st-bestaetigt-fg); font-weight: 600; }
.p-flash p { margin: 0; }
.p-flash .p-icon { margin-top: 3px; }
.p-flash--fehler { border-color: rgba(248,113,113,.4); background: var(--st-abgelehnt-bg); color: var(--st-abgelehnt-fg); }
.p-summary:focus { outline: 3px solid var(--p-err-line); outline-offset: 2px; }
.p-summary ul { margin: 6px 0 0; padding-left: 1.2em; }
.p-summary li { margin: 2px 0; }
.p-summary .btn { color: var(--ink); text-decoration: none; }
.form-alert--ok:focus { outline: none; }
.p-statusinfo { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: 14px; margin: 0 0 20px; background: var(--p-soft); border: 1px solid var(--line); color: var(--text); }
.p-statusinfo .p-icon { margin-top: 3px; color: var(--p-sky-ink); }
.p-statusinfo--eingereicht { background: var(--st-eingereicht-bg); border-color: transparent; color: var(--st-eingereicht-fg); }
.p-statusinfo--eingereicht .p-icon, .p-statusinfo--warteliste .p-icon, .p-statusinfo--rueckfrage .p-icon { color: inherit; }
.p-statusinfo--warteliste { background: var(--st-warteliste-bg); border-color: transparent; color: var(--st-warteliste-fg); }
.p-statusinfo--rueckfrage { background: var(--st-rueckfrage-bg); border-color: transparent; color: var(--st-rueckfrage-fg); }
.p-statusinfo--entwurf { background: var(--st-eingereicht-bg); border-color: transparent; color: var(--st-eingereicht-fg); }
.p-statusinfo--entwurf .p-icon { color: inherit; }

/* Große Hinweise (Rückfrage, Ablehnung) */
.p-callout { display: flex; gap: 18px; align-items: flex-start; padding: clamp(20px, 3.5vw, 30px); margin-bottom: 22px; border-radius: var(--radius); border: 2px solid; }
.p-callout h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); margin-bottom: .2em; }
.p-callout__icon { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--ink); }
.p-callout__icon .p-icon { width: 24px; height: 24px; }
.p-callout__meta { font-size: .88rem; color: var(--muted); margin-bottom: .6em; }
.p-callout__text { margin: 0; padding: 14px 18px; border-radius: 12px; background: var(--p-field-bg); border: 1px solid var(--line); font-size: 1.08rem; line-height: 1.55; color: var(--white); white-space: pre-line; overflow-wrap: anywhere; }
.p-callout .btn-row { margin-top: 18px; }
.p-callout--rueckfrage { border-color: rgba(251,146,60,.6); background: rgba(251,146,60,.08); }
.p-callout--rueckfrage .p-callout__icon { background: #fdba74; }
.p-callout--abgelehnt { border-color: rgba(248,113,113,.55); background: rgba(248,113,113,.07); }
.p-callout--abgelehnt .p-callout__icon { background: #fca5a5; }
@media (max-width: 560px) { .p-callout { flex-direction: column; gap: 12px; } }

/* ---------- Karten & Layout ---------- */
.p-card { padding: clamp(20px, 3vw, 28px); }
.p-card:hover { border-color: var(--line); }
.p-card + .p-card, .p-card + .p-soon, .p-soon + .p-card { margin-top: var(--p-gap); }
.p-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.p-card__head .p-card__title { margin: 0; }
.p-card__title { font-size: clamp(1.25rem, 2.4vw, 1.5rem); margin-bottom: .7em; }
.p-count { min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center; font-weight: 800; font-size: .9rem; background: rgba(255,94,201,.14); color: var(--p-pink-ink); }
.p-link-edit { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .92rem; }
.p-dash, .p-detail { display: grid; gap: var(--p-gap); align-items: start; }
@media (min-width: 960px) {
  .p-dash { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
  .p-detail { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
}
.p-dash > *, .p-detail > *, .p-settings > *, .p-auth > *, .p-detail__main, .p-detail__side { min-width: 0; }
.p-dash__side > * + *, .p-detail__side > * + *, .p-detail__main > * + * { margin-top: var(--p-gap); }
.p-detail__actions { margin-top: var(--p-gap); }
.p-small { font-size: .9rem; }
/* Kontakt bei Fragen/Problemen: in der App (dort fehlt die Fußzeile) unter dem Inhalt, im Browser steht er in der Fußzeile */
.p-support { display: none; margin: 32px 0 0; text-align: center; font-size: .85rem; color: var(--muted); }
.als-app .p-support { display: block; }
.p-konto-support { margin: 4px 0 0; color: var(--muted); }
.p-mt { margin-top: 12px; }
.p-nomargin { margin: 0; }
.p-addr { margin-bottom: .7em; line-height: 1.6; }
.p-addr:last-child { margin-bottom: 0; }

.p-facts { list-style: none; padding: 0; margin: 0 0 4px; display: grid; gap: 10px; }
.p-facts li { display: flex; gap: 12px; align-items: flex-start; }
.p-facts .p-icon { margin-top: 3px; color: var(--p-sky-ink); }
.p-facts strong { color: var(--white); }

.p-phase { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 16px; padding: 10px 14px; border-radius: 12px; background: var(--p-soft); border: 1px solid var(--line); }
.p-phase__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.p-phase--ok { color: var(--st-bestaetigt-fg); background: var(--st-bestaetigt-bg); border-color: transparent; }
.p-phase--ok .p-phase__dot { background: currentColor; box-shadow: 0 0 0 4px rgba(74,222,128,.2); }
.p-phase--warn { color: var(--st-rueckfrage-fg); background: var(--st-rueckfrage-bg); border-color: transparent; }
.p-phase--warn .p-phase__dot, .p-phase--info .p-phase__dot { background: currentColor; }
.p-phase--info { color: var(--st-warteliste-fg); background: var(--st-warteliste-bg); border-color: transparent; }
.p-card--anmeldung { background: linear-gradient(140deg, rgba(255,94,201,.10), rgba(154,216,249,.06) 60%), var(--surface); }

/* Liste der eigenen Starts */
.p-starts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.p-start { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px 16px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--p-soft); color: inherit; text-decoration: none; transition: border-color .2s, transform .2s, background .2s; }
.p-start:hover { border-color: rgba(255,94,201,.5); background: var(--p-soft-2); color: inherit; transform: translateY(-1px); }
.p-start__main { display: grid; min-width: 0; }
.p-start__name { font-weight: 800; color: var(--white); font-size: 1.05rem; overflow-wrap: anywhere; }
.p-start__kat { font-size: .9rem; color: var(--muted); }
.p-start__hinweis { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: .85rem; font-weight: 700; color: var(--st-eingereicht-fg); }
.p-start__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.p-start__fee { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--white); }
.p-start__go { color: var(--p-pink-ink); }
@media (max-width: 520px) {
  .p-start { grid-template-columns: minmax(0, 1fr) auto; }
  .p-start__side { grid-column: 1; grid-row: 2; flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; }
  .p-start__go { grid-column: 2; grid-row: 1 / span 2; }
}
.p-empty { padding: 22px; border: 1px dashed var(--line-strong); border-radius: 14px; text-align: center; }
.p-empty p { margin: 0 0 .3em; }
.p-sum { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 700; color: var(--white); }
.p-sum small { display: block; font-weight: 500; font-size: .82rem; color: var(--muted); }
.p-sum strong { font-family: var(--head); font-size: 1.9rem; line-height: 1; color: var(--p-pink-ink); font-variant-numeric: tabular-nums; }

.p-soon, .p-soon-inline { display: flex; gap: 12px; align-items: flex-start; }
.p-soon { padding: 14px 18px; border-radius: 14px; border: 1px dashed rgba(154,216,249,.45); background: rgba(154,216,249,.05); }
.p-soon p { margin: 0; font-size: .95rem; }
.p-soon .p-icon { margin-top: 3px; color: var(--p-sky-ink); }
.p-soon-inline { margin: 18px 0 0; }
.p-soon-inline .p-icon { margin-top: 4px; }

/* ---------- Anmelde-Seiten ---------- */
.p-auth { display: grid; gap: var(--p-gap); align-items: start; }
@media (min-width: 900px) { .p-auth--info { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.p-auth__card { max-width: 620px; width: 100%; }
.p-auth__aside .eyebrow { margin-bottom: .6rem; }
.p-auth__event { font-size: clamp(1.5rem, 3vw, 2rem); }
.p-auth__aside .p-facts { margin-bottom: 18px; }
.p-auth__alt { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: .95rem; }
.p-done { text-align: center; padding: 10px 0; }
.p-done h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.p-done h2:focus { outline: none; }
.p-done .btn-row { justify-content: center; }
.p-done__icon { width: 56px; height: 56px; padding: 13px; border-radius: 18px; margin: 0 auto 14px; color: var(--ink); background: var(--pink); box-shadow: var(--glow-pink); }

/* ---------- Formulare ---------- */
.p-form .form-grid { gap: 16px 18px; }
.p-sec { padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--line); }
.p-form > .p-sec:first-of-type, .p-form > .p-req-note + .p-sec, .p-sec:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.p-sec__title { font-family: var(--body); font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--p-pink-ink); margin: 0 0 14px; }
.p-sec__title:focus { outline: none; }
.p-sec .notice { margin-top: 18px; }
.p-req { color: var(--p-pink-ink); }
.p-req-note { font-size: .85rem; margin-bottom: 16px; }
.p-hint { font-size: .84rem; color: var(--muted); margin: 6px 0 0; }
.p-err { font-size: .88rem; font-weight: 700; color: var(--p-err); margin: 6px 0 0; }
.p-err::before { content: '! '; }
.p-label { display: block; font-size: .85rem; font-weight: 700; color: var(--white); margin: 0 0 6px; }
.p-static { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--p-soft); border: 1px solid var(--line); overflow-wrap: anywhere; }
.field select { width: 100%; font: inherit; font-size: 1rem; color: var(--white); padding: 13px 40px 13px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background-color: var(--p-field-bg); appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.field select:disabled { opacity: .55; cursor: not-allowed; }
.field select:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255,94,201,.18); }
.field input[readonly] { background: var(--p-soft); color: var(--muted); }
.field input, .field textarea, .field select { min-height: 48px; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 2px solid var(--pink); outline-offset: 1px; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--p-err-line); box-shadow: 0 0 0 3px rgba(255,122,122,.15); }
.field textarea { min-height: 110px; }
.p-counter { display: block; text-align: right; font-size: .8rem; color: var(--muted); margin-top: 4px; }

.p-check { padding: 14px 16px; border-radius: 14px; background: var(--p-soft); border: 1px solid var(--line); }
.p-check__row { display: flex; gap: 12px; align-items: flex-start; }
.p-check input[type=checkbox] { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--neon); cursor: pointer; }
.p-check label { cursor: pointer; color: var(--white); font-weight: 600; line-height: 1.5; }
.p-check.invalid { border-color: var(--p-err-line); }
.p-check .p-hint, .p-check .p-err { margin-left: 34px; }
.p-form .p-check + .p-check { margin-top: 0; }

.p-radios { border: 0; padding: 0; margin: 0; min-width: 0; }
.p-radios legend { padding: 0; font-size: .85rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.p-radios__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.p-radio { position: relative; flex: 1 1 140px; }
.p-radio input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; cursor: pointer; }
.p-radio label { display: flex; flex-direction: column; justify-content: center; min-height: 52px; height: 100%; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--p-field-bg); font-weight: 800; color: var(--white); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.p-radio label small { font-weight: 500; font-size: .8rem; color: var(--muted); }
.p-radio input:hover + label { border-color: var(--pink); }
.p-radio input:checked + label { border-color: var(--pink); background: rgba(255,94,201,.12); box-shadow: inset 0 0 0 1px var(--pink); }
.p-radio input:focus-visible + label { outline: 3px solid var(--sky); outline-offset: 2px; }
.p-radios.invalid .p-radio label { border-color: var(--p-err-line); }

.p-klasse-hinweis { font-size: .86rem; color: var(--p-sky-ink); margin: 6px 0 0; min-height: 1.3em; }
.p-klasse-hinweis:empty { display: none; }
.p-fee { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 16px; padding: 14px 18px; border-radius: 14px; background: linear-gradient(120deg, rgba(255,94,201,.12), rgba(154,216,249,.08)); border: 1px solid rgba(255,94,201,.3); }
.p-fee__label { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); grid-column: 1; }
.p-fee__value { grid-column: 1; font-family: var(--head); font-size: 2rem; line-height: 1.1; color: var(--white); font-variant-numeric: tabular-nums; }
.p-fee__info { grid-column: 2; grid-row: 1 / span 2; font-size: .86rem; color: var(--muted); text-align: right; }
@media (max-width: 480px) { .p-fee { grid-template-columns: 1fr; } .p-fee__info { grid-column: 1; grid-row: auto; text-align: left; } }

.p-namecheck:empty { display: none; }
.p-warn { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; padding: 12px 14px; border-radius: 12px; font-size: .92rem; background: var(--st-rueckfrage-bg); color: var(--st-rueckfrage-fg); }
.p-warn .p-icon { margin-top: 2px; }
.p-warn a { color: inherit; font-weight: 700; }
.p-warn-text { padding: 12px 14px; border-radius: 12px; background: var(--st-rueckfrage-bg); color: var(--st-rueckfrage-fg); font-weight: 600; }

.p-actions { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.p-actions__btns { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 560px) {
  .p-actions { flex-direction: column-reverse; align-items: stretch; }
  .p-actions__btns { flex-direction: column-reverse; }
  .p-actions .btn { width: 100%; }
  .p-cancel { text-align: center; }
}
.form-actions .btn:only-child { margin-left: auto; }

.p-notice { padding: clamp(18px, 3vw, 24px); gap: 14px; }
.p-notice h3 { font-size: 1.15rem; }
.p-notice p { font-size: .95rem; }
.p-notice .icon { width: 40px; height: 40px; border-radius: 12px; }
.p-notice .icon .p-icon { width: 22px; height: 22px; }
.p-mini-list { margin: -.4em 0 .9em; padding-left: 1.2em; font-size: .95rem; }
@media (max-width: 480px) { .p-notice { flex-direction: column; } }

/* Buttons Ergänzungen */
.btn .p-icon--btn { margin-left: -4px; }
.btn--gefahr { background: #f87171; border-color: #f87171; color: #1b0a0a; }
.btn--gefahr:hover { background: #fca5a5; border-color: #fca5a5; box-shadow: 0 0 18px rgba(248,113,113,.45); color: #1b0a0a; }
.btn--gefahr-ghost { color: var(--st-abgelehnt-fg); border-color: rgba(248,113,113,.45); }
.btn--gefahr-ghost:hover { color: var(--st-abgelehnt-fg); border-color: #f87171; background: var(--st-abgelehnt-bg); }
.btn[aria-disabled="true"] { pointer-events: none; }
.p-linkbtn { background: none; border: 0; padding: 4px 0; font: inherit; font-size: .9rem; font-weight: 700; color: var(--p-sky-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Beschreibungslisten ---------- */
.p-dl { margin: 0; display: grid; gap: 0; }
.p-dl > div { display: grid; grid-template-columns: minmax(130px, 34%) 1fr; gap: 4px 16px; padding: 11px 0; border-top: 1px solid var(--line); }
.p-dl > div:first-child { border-top: 0; padding-top: 0; }
.p-dl dt { font-size: .86rem; font-weight: 700; color: var(--muted); }
.p-dl dd { margin: 0; color: var(--white); overflow-wrap: anywhere; }
@media (max-width: 520px) { .p-dl > div { grid-template-columns: 1fr; } }
.p-dl--compact > div { grid-template-columns: 1fr; padding: 8px 0; }
.p-pre { white-space: pre-line; }
.p-yes, .p-no { display: inline-flex; align-items: flex-start; gap: 6px; }
.p-yes { color: var(--p-ok); }
.p-no { color: var(--p-warn); }
.p-yes .p-icon, .p-no .p-icon { margin-top: 4px; }
.p-stack { display: grid; gap: 6px; }
.p-stack .p-yes, .p-stack .p-no { font-size: .93rem; }

/* Zahlung */
.p-pay { border-color: rgba(74,222,128,.4); background: linear-gradient(140deg, rgba(74,222,128,.08), transparent 60%), var(--surface); }
.p-pay__ok { font-weight: 700; }
.p-dl--pay dd { display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.p-copy { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer; }
.p-copy:hover { border-color: var(--pink); color: var(--p-pink-ink); }
.p-copy.is-ok { border-color: var(--p-ok); color: var(--p-ok); }

/* Zeitleiste */
.p-tl { list-style: none; margin: 0; padding: 0; position: relative; }
.p-tl__item { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding-bottom: 16px; }
.p-tl__item:last-child { padding-bottom: 0; }
.p-tl__item::before { content: ''; position: absolute; left: 10px; top: 18px; bottom: -2px; width: 2px; background: var(--line-strong); }
.p-tl__item:last-child::before { display: none; }
.p-tl__dot { width: 14px; height: 14px; margin: 5px 0 0 4px; border-radius: 50%; background: var(--surface); border: 3px solid var(--muted); position: relative; z-index: 1; }
.p-tl__item--eingereicht .p-tl__dot { border-color: var(--st-eingereicht-fg); }
.p-tl__item--rueckfrage .p-tl__dot { border-color: var(--st-rueckfrage-fg); }
.p-tl__item--bestaetigt .p-tl__dot { border-color: var(--st-bestaetigt-fg); }
.p-tl__item--warteliste .p-tl__dot { border-color: var(--st-warteliste-fg); }
.p-tl__item--abgelehnt .p-tl__dot { border-color: var(--st-abgelehnt-fg); }
.p-tl__title { margin: 0; font-weight: 800; color: var(--white); }
.p-tl__meta { margin: 0; font-size: .85rem; color: var(--muted); }
.p-tl__text { margin: 6px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--p-soft); border: 1px solid var(--line); font-size: .93rem; white-space: pre-line; overflow-wrap: anywhere; }

/* ---------- Dialoge ---------- */
.p-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: clamp(20px, 4vw, 30px); border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.p-dialog::backdrop { background: rgba(6,5,9,.72); backdrop-filter: blur(3px); }
.p-dialog__title { font-size: clamp(1.35rem, 3vw, 1.7rem); margin-bottom: .5em; }
.p-dialog__body p:last-child { margin-bottom: 0; }
.p-dialog__body { margin-bottom: 18px; }
.p-dialog .form-grid { margin-bottom: 4px; }
.p-dialog__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.p-dialog--gefahr { border-color: rgba(248,113,113,.5); }
@media (max-width: 480px) { .p-dialog__actions { flex-direction: column-reverse; } .p-dialog__actions .btn { width: 100%; } }

/* ---------- 2FA ---------- */
.p-steps { padding-left: 1.3em; margin: 0 0 8px; display: grid; gap: 4px; }
.p-secret { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: clamp(1rem, 3.6vw, 1.25rem); font-weight: 700; letter-spacing: .08em; color: var(--white); }
.p-secret span { padding: 6px 10px; border-radius: 8px; background: var(--p-soft-2); border: 1px solid var(--line); }
.p-qr-box { display: flex; justify-content: center; margin: 4px 0 14px; }
.p-qr { width: min(240px, 70vw); height: auto; display: block; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.p-qr-alt { margin: 0 0 22px; }
.p-qr-alt summary { cursor: pointer; color: var(--muted, inherit); font-size: .95rem; text-decoration: underline; text-underline-offset: 3px; }
.p-qr-alt[open] summary { margin-bottom: 8px; }
.p-qr-alt .btn-row { margin: 10px 0 0; }
.p-codes { list-style: none; padding: 16px; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; border-radius: 14px; background: var(--p-field-bg); border: 1px dashed var(--line-strong); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.05rem; color: var(--white); }

/* ---------- Orga: Kacheln ---------- */
.p-block { margin-top: clamp(24px, 4vw, 40px); }
.p-block__title { font-family: var(--body); font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--p-pink-ink); margin: 0 0 14px; }
.p-block__title small { font-size: inherit; color: var(--muted); letter-spacing: .08em; text-transform: none; font-weight: 600; margin-left: 6px; }
.p-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.p-tile { position: relative; display: grid; gap: 4px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.p-tile__kat { font-weight: 700; font-size: .9rem; color: var(--text); line-height: 1.35; }
.p-tile__num { font-family: var(--head); font-size: 1.15rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.p-tile__num strong { font-size: 2rem; color: var(--white); }
.p-tile__bar { height: 6px; border-radius: 999px; background: var(--p-soft-2); overflow: hidden; }
.p-tile__bar-in { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--sky-deep), var(--neon)); }
.p-tile__sub { font-size: .8rem; color: var(--muted); }
.p-tile--voll { border-color: rgba(74,222,128,.45); }
.p-tile--voll .p-tile__bar-in { background: #4ade80; }

/* Werkzeugleiste */
.p-toolbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: end; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.p-toolbar__q { grid-column: 1 / -1; }
.p-toolbar__switch { grid-column: 1 / -1; }
.p-toolbar .field label { font-size: .78rem; }
.p-toolbar .field input, .p-toolbar .field select { padding-top: 10px; padding-bottom: 10px; min-height: 44px; font-size: .95rem; }
@media (min-width: 900px) {
  .p-toolbar { grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(140px, 1fr)) auto; }
  .p-toolbar__q, .p-toolbar__switch { grid-column: auto; }
  .p-toolbar__switch { padding-bottom: 10px; }
}
.p-switch { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .92rem; color: var(--white); cursor: pointer; white-space: nowrap; position: relative; }
.p-switch input { position: absolute; opacity: 0; width: 42px; height: 24px; margin: 0; cursor: pointer; }
.p-switch__track { flex: none; position: relative; width: 42px; height: 24px; border-radius: 999px; background: var(--p-soft-2); border: 1px solid var(--line-strong); transition: background .2s; }
.p-switch__track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s; }
.p-switch input:checked + .p-switch__track { background: rgba(255,94,201,.35); border-color: var(--pink); }
.p-switch input:checked + .p-switch__track::after { transform: translateX(18px); background: var(--pink); }
.p-switch input:focus-visible + .p-switch__track { outline: 3px solid var(--sky); outline-offset: 2px; }
.p-results-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin: 14px 2px 10px; }
.p-results { margin: 0; font-size: .9rem; color: var(--muted); }

/* Tabellen */
.p-table-wrap { position: relative; overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); -webkit-overflow-scrolling: touch; }
.p-table-wrap:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.p-table { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.4; }
.p-table th, .p-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.p-table thead th { position: sticky; top: 0; background: var(--surface-2); font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.p-table tbody tr:last-child td { border-bottom: 0; }
.p-table tbody tr { cursor: pointer; transition: background .15s; }
.p-table tbody tr:hover { background: var(--p-soft-2); }
.p-table td { white-space: nowrap; }
.p-table td small { display: block; color: var(--muted); font-size: .8rem; }
.p-cell-main { font-weight: 700; color: var(--white); }
.p-cell-link { font-weight: 700; }
.p-num { text-align: right !important; font-variant-numeric: tabular-nums; }
.p-center { text-align: center !important; }
.p-nowrap { white-space: nowrap; }
.p-table__empty { text-align: center !important; padding: 28px !important; color: var(--muted); cursor: default; }
.p-sort { display: inline-flex; align-items: center; gap: 6px; padding: 0; background: none; border: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer; white-space: nowrap; }
.p-sort:hover, .p-sort.is-aktiv { color: var(--white); }
.p-sort__pfeil { font-size: .7rem; opacity: .55; }
.p-sort.is-aktiv .p-sort__pfeil { opacity: 1; color: var(--p-pink-ink); }
.p-num .p-sort { flex-direction: row-reverse; }
.p-row--entwurf td { color: var(--muted); }
.p-row--zurueckgezogen td, .p-row--abgelehnt td { opacity: .78; }
.p-table td:first-child { font-weight: 700; color: var(--white); }
/* Statusfarbe als Randstreifen */
.p-table tbody tr td:first-child { box-shadow: inset 4px 0 0 transparent; }
.p-row--eingereicht td:first-child { box-shadow: inset 4px 0 0 var(--st-eingereicht-fg); }
.p-row--rueckfrage td:first-child { box-shadow: inset 4px 0 0 var(--st-rueckfrage-fg); }
.p-row--bestaetigt td:first-child { box-shadow: inset 4px 0 0 var(--st-bestaetigt-fg); }
.p-row--warteliste td:first-child { box-shadow: inset 4px 0 0 var(--st-warteliste-fg); }
.p-row--abgelehnt td:first-child { box-shadow: inset 4px 0 0 var(--st-abgelehnt-fg); }
.p-row--zurueckgezogen td:first-child { box-shadow: inset 4px 0 0 var(--st-zurueckgezogen-fg); }

/* Admin-Detail */
.p-actionbar { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px; margin-bottom: var(--p-gap); border-radius: 16px; background: var(--surface); border: 1px solid rgba(255,94,201,.35); }
@media (max-width: 560px) { .p-actionbar .btn { flex: 1 1 calc(50% - 10px); padding-inline: 1em; } }

/* Einstellungen */
.p-settings { display: grid; gap: var(--p-gap); align-items: start; }
@media (min-width: 960px) { .p-settings { grid-template-columns: 1fr 1fr; } .p-settings__wide { grid-column: 1 / -1; } }
.p-settings .p-card + .p-card { margin-top: 0; }
.p-sub { font-size: 1.15rem; margin: 26px 0 12px; }

/* ======================================================================
   Phase 2 – Startunterlagen
   ====================================================================== */
.btn--small { padding: .62em 1.15em; font-size: .88rem; }
.btn--small .p-icon--btn { width: 16px; height: 16px; }
.p-right { text-align: right !important; }
.p-wrap { white-space: normal !important; }
.p-muted-cell { color: var(--muted) !important; font-weight: 600 !important; }
.p-empty-line { margin: 0 0 12px; color: var(--muted); font-style: italic; }
.p-no--fehler { color: var(--p-err); }

/* Abzeichen und Pillen */
.p-badge { display: inline-flex; align-items: center; gap: 5px; padding: .14em .6em; border-radius: 999px; font-size: .76rem; font-weight: 800; letter-spacing: .02em; white-space: nowrap; line-height: 1.5; vertical-align: middle; background: var(--p-soft-2); color: var(--text); }
.p-badge .p-icon { width: 13px; height: 13px; }
.p-badge--ok { background: var(--st-bestaetigt-bg); color: var(--st-bestaetigt-fg); }
.p-badge--warn { background: var(--st-eingereicht-bg); color: var(--st-eingereicht-fg); }
.p-badge--fehler { background: var(--st-abgelehnt-bg); color: var(--st-abgelehnt-fg); }
.p-badge--info { background: var(--st-warteliste-bg); color: var(--st-warteliste-fg); }
.p-badge--pink { background: rgba(255,94,201,.14); color: var(--p-pink-ink); }
.p-pill { display: inline-flex; align-items: center; gap: 6px; padding: .3em .8em; border-radius: 999px; font-size: .8rem; font-weight: 800; white-space: nowrap; background: var(--p-soft-2); color: var(--muted); }
.p-pill .p-icon { width: 14px; height: 14px; }
.p-pill--ok { background: var(--st-bestaetigt-bg); color: var(--st-bestaetigt-fg); }
.p-pill--offen { background: var(--st-rueckfrage-bg); color: var(--st-rueckfrage-fg); }
.p-pill--warn { background: var(--st-eingereicht-bg); color: var(--st-eingereicht-fg); }
.p-pill--neutral { background: var(--p-soft-2); color: var(--muted); }

/* Unterlagen-Karte */
.p-ul { border-color: rgba(154,216,249,.35); }
.p-ul__frist { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: -4px 0 16px; font-size: .93rem; color: var(--muted); }
.p-ul__frist strong { color: var(--white); }
.p-ul__frist .p-icon { color: var(--p-sky-ink); }
.p-ul__lesen { margin: 16px 0 0; }
.p-prog { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.p-ul { container-type: inline-size; }
@container (min-width: 760px) { .p-prog { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.p-prog__btn { width: 100%; height: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--p-soft); font: inherit; color: inherit; text-align: left; }
button.p-prog__btn { cursor: pointer; transition: border-color .15s, background .15s; }
button.p-prog__btn:hover { border-color: var(--line-strong); background: var(--p-soft-2); }
.p-prog__icon { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--p-soft-2); color: var(--muted); }
.p-prog__txt { display: grid; min-width: 0; }
.p-prog__titel { font-weight: 800; font-size: .92rem; color: var(--white); }
.p-prog__wert { display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; font-weight: 700; color: var(--muted); }
.p-prog__mark { width: 14px; height: 14px; }
.is-ok .p-prog__icon { background: var(--st-bestaetigt-bg); color: var(--st-bestaetigt-fg); }
.is-ok .p-prog__wert { color: var(--p-ok); }
.is-ok > .p-prog__btn { border-color: rgba(74,222,128,.35); }
.is-offen .p-prog__icon { background: var(--st-rueckfrage-bg); color: var(--st-rueckfrage-fg); }
.is-offen .p-prog__wert { color: var(--p-warn); }
.is-warn .p-prog__icon { background: var(--st-eingereicht-bg); color: var(--st-eingereicht-fg); }
.is-warn .p-prog__wert { color: var(--st-eingereicht-fg); }

.p-ul-sec { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.p-ul-sec__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 12px; }
.p-detail-ul { margin-bottom: var(--p-gap); }
.p-mobil { display: none; }
.p-ul-sec__title { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--body); font-size: 1.12rem; font-weight: 800; color: var(--white); scroll-margin-top: 96px; hyphens: manual; }
.p-ul-sec__title:focus { outline: none; }
.p-ul-sec__title:focus-visible { outline: 3px solid var(--sky); outline-offset: 4px; border-radius: 6px; }
.p-ul-sec__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(154,216,249,.12); color: var(--p-sky-ink); }
.p-ul-sec__icon .p-icon { width: 18px; height: 18px; }
.p-ul-sec__body > * + * { margin-top: 12px; }
.p-ul-actions { margin-top: 14px !important; }
.p-ul-regel { margin: 0 0 4px; }
.p-ul-msg:empty { display: none; }
.p-ul-msg__ok { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--st-bestaetigt-bg); color: var(--st-bestaetigt-fg); font-weight: 700; }
.p-ul-err:not(.show) { display: none; }
.p-ul-err ul { margin: 6px 0 0; padding-left: 1.2em; }
.p-ausweis { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; border: 1px dashed var(--line-strong); font-size: .9rem; }
.p-ausweis .p-icon { margin-top: 3px; color: var(--p-sky-ink); }

/* Altersprüfung */
.p-ages { display: grid; gap: 10px; }
.p-ages:empty { display: none; }
.p-age { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 14px; border: 1px solid; font-size: .93rem; }
.p-age > .p-icon { margin-top: 2px; }
.p-age p { margin: 0; }
.p-age ul { margin: 4px 0 0; padding-left: 1.15em; }
.p-age li { margin: 2px 0; }
.p-age__titel { font-weight: 800; }
.p-age__sub { margin-top: 6px !important; font-size: .85rem; opacity: .9; }
.p-age__begr { margin-top: 8px !important; padding: 8px 12px; border-radius: 10px; background: var(--p-field-bg); color: var(--text); white-space: pre-line; overflow-wrap: anywhere; }
.p-age--konflikt { background: var(--st-abgelehnt-bg); color: var(--st-abgelehnt-fg); border-color: rgba(248,113,113,.45); }
.p-age--hinweis { background: var(--st-eingereicht-bg); color: var(--st-eingereicht-fg); border-color: rgba(250,204,21,.4); }
.p-age--warnung { background: var(--st-rueckfrage-bg); color: var(--st-rueckfrage-fg); border-color: rgba(251,146,60,.45); }
.p-age-ok { margin: 0; font-weight: 700; font-size: .93rem; }
.p-dialog .p-age { margin-top: 10px; }

/* Tabellen als Karten auf dem Handy; statische Tabellen ohne Zeilen-Klick */
.p-table--static tbody tr { cursor: default; }
.p-table--static tbody tr:hover { background: transparent; }
.p-table--static td:first-child { box-shadow: none !important; }
.p-table-wrap--flat { border-radius: 14px; box-shadow: none !important; }
@media (max-width: 640px) {
  .p-table--karten thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .p-table--karten, .p-table--karten tbody { display: block; }
  .p-table--karten tr { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .p-table--karten tbody tr:last-child { border-bottom: 0; }
  .p-table--karten td { display: block; padding: 0; border: 0; white-space: normal; }
  .p-table--karten td[data-label]::before { content: attr(data-label); display: block; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .p-table--karten td.p-num { text-align: left !important; }
  .p-table--karten td.p-cell-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
  .p-table--karten td.p-wrap { grid-column: 1 / -1; }
  .p-table-wrap--karten { overflow: visible; }
}

/* Tänzerliste eines Starts: auf dem Handy kompakt, eine Person je Zeile */
@media (max-width: 640px) {
  .p-table--taenzer thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .p-table--taenzer, .p-table--taenzer tbody { display: block; }
  .p-table--taenzer tr { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; grid-template-areas: "nr name alt" "nr geb alt"; align-items: center; gap: 0 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
  .p-table--taenzer tbody tr:last-child { border-bottom: 0; }
  .p-table--taenzer td { display: block; padding: 0; border: 0; white-space: normal; }
  .p-table--taenzer .p-mobil { display: inline; }
  .p-tt__nr { grid-area: nr; text-align: left !important; }
  .p-tt__name { grid-area: name; }
  .p-tt__vor { display: none !important; }
  .p-tt__geb { grid-area: geb; font-size: .82rem; color: var(--muted); }
  .p-tt__alt { grid-area: alt; text-align: right; font-weight: 700; }
  .p-tt__alt .p-badge { display: flex; width: max-content; margin: 2px 0 0 auto; }
}
@media (max-width: 420px) {
  .p-prog__btn { flex-direction: column; align-items: flex-start; gap: 8px; }
  .p-prog__icon { width: 32px; height: 32px; }
  .p-ul-sec__title { font-size: 1.02rem; }
}

@media (max-width: 640px) {
  .p-pool thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .p-pool, .p-pool tbody { display: block; }
  .p-pool tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "name name akt" "geb alt akt" "st st st"; align-items: center; gap: 2px 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .p-pool tbody tr:last-child { border-bottom: 0; }
  .p-pool td { display: block; padding: 0; border: 0; }
  .p-pool .p-mobil { display: inline; }
  .p-pt__name { grid-area: name; }
  .p-pt__vor { display: none !important; }
  .p-pt__geb, .p-pt__alt { font-size: .85rem; color: var(--muted); }
  .p-pt__geb { grid-area: geb; } .p-pt__alt { grid-area: alt; }
  .p-pt__st { grid-area: st; margin-top: 6px; font-size: .85rem; }
  .p-pt__akt { grid-area: akt; }
  .p-pool td.p-table__empty { grid-column: 1 / -1; }
  .p-table-wrap--karten { overflow: visible; }
}

/* Auswahl aus dem Tänzerpool */
.p-picker > * + * { margin-top: 14px; }
.p-picker__bar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 16px; }
.p-picker__q { flex: 1 1 220px; margin: 0; }
.p-picker__q input { min-height: 44px; padding-top: 10px; padding-bottom: 10px; }
.p-pick__count { margin: 0 0 6px; padding: 8px 14px; border-radius: 999px; font-size: .92rem; background: var(--p-soft-2); color: var(--text); }
.p-pick__count strong { font-size: 1.1rem; color: var(--white); }
.p-pick__count.is-ok { background: var(--st-bestaetigt-bg); color: var(--st-bestaetigt-fg); }
.p-pick__count.is-ok strong { color: inherit; }
.p-pick__count.is-warn { background: var(--st-eingereicht-bg); color: var(--st-eingereicht-fg); }
.p-pick__count.is-warn strong { color: inherit; }
.p-pick { list-style: none; margin: 0; padding: 6px; max-height: min(52vh, 460px); overflow-y: auto; display: grid; gap: 4px; border-radius: 14px; border: 1px solid var(--line); background: var(--p-field-bg); }
.p-pick__item { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid transparent; }
.p-pick__item:hover { background: var(--p-soft-2); }
.p-pick__item.is-an { background: rgba(255,94,201,.10); border-color: rgba(255,94,201,.35); }
.p-pick__item input { position: relative; z-index: 1; flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--neon); cursor: pointer; }
.p-pick__item label { flex: 1; display: grid; gap: 2px; cursor: pointer; min-width: 0; }
.p-pick__item label::after { content: ''; position: absolute; inset: 0; }
.p-pick__name { font-weight: 800; color: var(--white); overflow-wrap: anywhere; }
.p-pick__meta { font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.p-pick__meta .p-badge { white-space: normal; }
.p-pick__leer { padding: 18px; text-align: center; color: var(--muted); }
.p-newp-box { border-radius: 14px; border: 1px dashed var(--line-strong); }
.p-newp-box > summary { display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-weight: 800; color: var(--p-pink-ink); cursor: pointer; list-style: none; }
.p-newp-box > summary::-webkit-details-marker { display: none; }
.p-newp-box[open] > summary { border-bottom: 1px solid var(--line); }
.p-newp-box .p-newp { padding: 14px 16px 16px; }
.p-newp__grid { gap: 12px 14px !important; }
@media (min-width: 760px) { .p-newp__grid { grid-template-columns: 1fr 1fr 1fr; } .p-newp__btn { grid-column: 1 / -1; } }
.p-newp__btn { display: flex; align-items: flex-end; }

/* Dateien (Musik, Bild) */
.p-file { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--p-soft); }
.p-file__icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,94,201,.12); color: var(--p-pink-ink); }
.p-file__main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.p-file__main p { margin: 0; }
.p-file__name { font-weight: 800; color: var(--white); overflow-wrap: anywhere; }
.p-file__meta { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.p-file__state { font-weight: 700; font-size: .92rem; }
.p-audio { width: 100%; margin-top: 8px; height: 40px; }
.p-file-pick { position: relative; display: inline-flex; }
.p-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.p-file-input:focus-visible + label { outline: 3px solid var(--sky); outline-offset: 3px; }
.p-file-input:disabled + label { opacity: .55; pointer-events: none; }
.p-upload { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--p-soft-2); }
.p-progress__label { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 700; color: var(--white); }
.p-progress { width: 100%; height: 10px; border: 0; border-radius: 999px; overflow: hidden; background: var(--p-soft-2); appearance: none; -webkit-appearance: none; accent-color: var(--neon); }
.p-progress::-webkit-progress-bar { background: var(--p-soft-2); border-radius: 999px; }
.p-progress::-webkit-progress-value { background: linear-gradient(90deg, var(--sky-deep), var(--neon)); border-radius: 999px; transition: width .2s; }
.p-progress::-moz-progress-bar { background: linear-gradient(90deg, var(--sky-deep), var(--neon)); border-radius: 999px; }
.p-bild-wrap { display: grid; gap: 12px; }
@media (min-width: 700px) { .p-bild-wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; } }
.p-bild { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: repeating-conic-gradient(var(--p-soft-2) 0 25%, transparent 0 50%) 0 0 / 18px 18px; }
.p-bild__img { display: block; width: 100%; height: 100%; object-fit: contain; }
.p-bild.is-laedt::after { content: 'Vorschau lädt …'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .9rem; }
.p-bild.is-fehler::after { content: 'Keine Vorschau'; }
.p-bild-upload > * + * { margin-top: 12px; }
.p-freigabe { margin-top: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(251,146,60,.45); background: var(--st-rueckfrage-bg); }
.p-freigabe .p-switch { white-space: normal; }

/* Moderation */
.p-mod-tipp { padding: 12px 16px; border-radius: 12px; background: rgba(154,216,249,.07); border: 1px solid rgba(154,216,249,.3); font-size: .92rem; }
.p-mod-tipp__titel { margin: 0 0 4px; font-weight: 800; color: var(--white); }
.p-mod-tipp ul { margin: 0; padding-left: 1.15em; columns: 2 200px; column-gap: 24px; }
.p-mod-vorschau-wrap { margin-top: 14px; }
.p-mod-vorschau__titel { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--p-pink-ink); }
.p-mod-vorschau { margin: 0; padding: 14px 18px; border-radius: 12px; border-left: 4px solid var(--neon); background: var(--p-soft-2); font-family: var(--head); font-size: 1.12rem; line-height: 1.55; color: var(--white); overflow-wrap: anywhere; }
.p-counter.is-ueber { color: var(--p-err); font-weight: 800; }

/* Dashboard */
.p-mini { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.p-mini__item { display: inline-flex; align-items: center; gap: 4px; }
.p-mini__item .p-icon { width: 13px; height: 13px; }
.p-mini__item.is-ok { color: var(--p-ok); }
.p-mini__item.is-offen { color: var(--p-warn); }
.p-mini__item.is-warn { color: var(--st-eingereicht-fg); }
.p-banner { display: flex; gap: 16px; align-items: flex-start; padding: clamp(16px, 3vw, 22px) clamp(16px, 3vw, 24px); margin-bottom: var(--p-gap); border-radius: var(--radius); border: 2px solid; }
.p-banner__icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--ink); }
.p-banner__main { min-width: 0; }
.p-banner__titel { margin: 0 0 4px; font-family: var(--body); font-size: 1.1rem; font-weight: 800; color: var(--white); }
.p-banner__list { margin: 0 0 6px; padding-left: 1.15em; }
.p-banner__text { margin: 0; font-size: .93rem; }
.p-banner .btn-row { margin-top: 12px; }
.p-banner--warn { border-color: rgba(251,146,60,.55); background: rgba(251,146,60,.08); }
.p-banner--warn .p-banner__icon { background: #fdba74; }
.p-banner--ok { border-color: rgba(74,222,128,.45); background: rgba(74,222,128,.07); align-items: center; }
.p-banner--ok .p-banner__icon { background: #86efac; }
@media (max-width: 520px) { .p-banner { flex-direction: column; gap: 10px; } }
.p-card--pool { background: linear-gradient(140deg, rgba(154,216,249,.08), transparent 60%), var(--surface); }
.p-card + .p-card--pool { margin-top: var(--p-gap); }

/* Tänzerpool */
.p-pool-msg:empty { display: none; }
.p-pool-info .p-statusinfo { margin-bottom: var(--p-gap); }
.p-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.p-tag--link { text-decoration: none; font-size: .8rem; padding: .2em .65em; color: var(--white); background: var(--p-soft); }
.p-tag--link:hover { border-color: var(--pink); color: var(--white); }
.p-tag--link small { font-weight: 500; color: var(--muted); }
.p-iconbtn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer; }
.p-iconbtn:hover { border-color: var(--pink); color: var(--p-pink-ink); }
.p-iconbtn--gefahr:hover { border-color: #f87171; color: var(--st-abgelehnt-fg); background: var(--st-abgelehnt-bg); }
.p-cell-actions { white-space: nowrap; }
.p-cell-actions .p-iconbtn + .p-iconbtn { margin-left: 6px; }
.p-pool td { vertical-align: middle; }
.p-bulk { padding: 0; }
.p-bulk + .p-block { margin-top: clamp(20px, 3vw, 32px); }
.p-bulk__summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 16px clamp(18px, 3vw, 24px); cursor: pointer; list-style: none; border-radius: var(--radius); }
.p-bulk__summary::-webkit-details-marker { display: none; }
.p-bulk__summary::after { content: '▾'; margin-left: auto; color: var(--muted); transition: transform .2s; }
.p-bulk[open] .p-bulk__summary::after { transform: rotate(180deg); }
.p-bulk__title { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; color: var(--white); }
.p-bulk__title .p-icon { color: var(--p-pink-ink); }
.p-bulk__sub { font-size: .88rem; color: var(--muted); }
.p-bulk__body { padding: 0 clamp(18px, 3vw, 24px) clamp(18px, 3vw, 24px); }
.p-bulk__body textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92rem; min-height: 150px; }
.p-bulk__vorschau { margin-top: 16px; }
.p-bulk__vorschau > * + * { margin-top: 12px; }
.p-bulk__sum { margin: 0; font-size: .93rem; }
.p-bulk__fehler { font-size: .85rem; color: var(--p-err); }
.p-bulk__z--fehler td { background: rgba(248,113,113,.05); }
.p-bulk__z--kopf td, .p-bulk__z--vorhanden td, .p-bulk__z--doppelt td { color: var(--muted); }
.p-bulk .p-flash { margin: 0; }
.p-bulk .p-flash ul { margin: 4px 0 0; padding-left: 1.2em; font-weight: 500; }
.p-bulk .p-flash p { margin: 0; }
.p-toolbar--einfach { grid-template-columns: 1fr; }
@media (min-width: 900px) { .p-toolbar--einfach { grid-template-columns: minmax(0, 1fr) auto; } .p-toolbar--einfach .p-toolbar__q { grid-column: auto; } }

/* Admin-Übersicht */
.p-toolbar__switches { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.p-row--konflikt td { background: rgba(248,113,113,.07); }
.p-table td small.p-cell-flag { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; font-weight: 800; color: var(--st-abgelehnt-fg); }
.p-cell-flag .p-icon { width: 13px; height: 13px; }
.p-menu { position: relative; }
.p-menu > summary { list-style: none; }
.p-menu > summary::-webkit-details-marker { display: none; }
.p-menu__pfeil { font-size: .75rem; margin-left: -2px; }
.p-menu__list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 240px; list-style: none; margin: 0; padding: 6px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
@media (max-width: 899px) { .p-menu__list { right: auto; left: 0; } }
.p-menu__item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-weight: 700; color: var(--white); text-decoration: none; }
.p-menu__item:hover, .p-menu__item:focus-visible { background: var(--p-soft-2); color: var(--white); }
.p-menu__item .p-icon { color: var(--p-sky-ink); }
.p-zip { display: grid; gap: 10px; padding: 14px 16px; margin-bottom: var(--p-gap); border-radius: 16px; background: var(--surface); border: 1px solid rgba(154,216,249,.4); }
.p-zip__txt { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 700; }

/* Mehrfachstarter */
.p-ms { display: grid; gap: var(--p-gap); }
@media (min-width: 900px) { .p-ms { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.p-ms .p-card + .p-card { margin-top: 0; }
.p-ms__karte.is-ueber { border-color: rgba(255,94,201,.45); }
.p-ms__kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.p-ms__name { margin: 0; font-family: var(--body); font-size: 1.15rem; font-weight: 800; }
.p-ms__meta { margin: 4px 0 12px; font-size: .9rem; color: var(--muted); }
.p-ms__starts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.p-ms__starts li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--p-soft); border: 1px solid var(--line); }
.p-ms__nr { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--white); }
.p-ms__main { display: grid; min-width: 0; }
.p-ms__main small { color: var(--muted); font-size: .8rem; }
@media (max-width: 480px) { .p-ms__starts li { grid-template-columns: 40px minmax(0, 1fr); } .p-ms__starts .p-chip { grid-column: 2; justify-self: start; } }

/* Einstellungen: Jobs */
.p-jobs__titel { margin-top: 20px; }
.p-jobs__titel small { font-family: var(--body); font-size: .85rem; color: var(--muted); font-weight: 600; }
.p-jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.p-jobs__item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 4px 16px; padding: 10px 14px; border-radius: 12px; background: var(--st-bestaetigt-bg); color: var(--st-bestaetigt-fg); }
.p-jobs__item.is-still { background: var(--p-soft); color: var(--muted); }
.p-jobs__item.is-fehler { background: var(--st-abgelehnt-bg); color: var(--st-abgelehnt-fg); }
.p-jobs__name { font-weight: 800; }
.p-jobs__name code { margin-left: 8px; font-size: .78rem; font-weight: 600; opacity: .75; }
.p-jobs__erg { font-weight: 600; }
@media (max-width: 600px) { .p-jobs__item { grid-template-columns: 1fr; } }

/* ---------- Light-Mode-Feinschliff ---------- */
@media (prefers-color-scheme: light) {
  .p-nav { background: #fff; }
  .p-callout__text { background: #fff; }
  .p-table thead th { background: #f6f2f9; }
  .p-callout--rueckfrage { background: #fff7ed; }
  .p-callout--abgelehnt { background: #fef2f2; }
  .p-tile, .p-toolbar, .p-table-wrap, .p-actionbar { box-shadow: 0 6px 24px rgba(40,15,55,.05); }
  .p-flash { border-color: #86efac; }
  .p-flash--fehler { border-color: #fca5a5; }
  .p-soon { background: #f2f9fe; border-color: rgba(79,182,239,.5); }
  .p-dialog { background: #fff; }
  .p-dialog::backdrop { background: rgba(23,19,29,.45); }
  .btn--gefahr { background: #dc2626; border-color: #dc2626; color: #fff; }
  .btn--gefahr:hover { background: #b91c1c; border-color: #b91c1c; color: #fff; }
  .btn--gefahr-ghost { color: #b91c1c; border-color: rgba(220,38,38,.4); }
  .btn--gefahr-ghost:hover { color: #991b1b; }
  .p-fee { background: linear-gradient(120deg, #fff0f9, #eef8fe); }
  .p-card--anmeldung { background: linear-gradient(140deg, #fff0f9, #f2f9fe 70%); }
  .p-pay { background: linear-gradient(140deg, #f0fdf4, #fff 60%); }
  .p-callout__icon { color: #fff; }
  .p-callout--rueckfrage .p-callout__icon { background: #ea580c; }
  .p-callout--abgelehnt .p-callout__icon { background: #dc2626; }
  .p-done__icon { background: var(--pink); }
  .p-radio input:checked + label { background: #fff0f9; }
  .p-switch input:checked + .p-switch__track { background: #ffd4ee; }
  .p-banner--warn { background: #fff7ed; }
  .p-banner--warn .p-banner__icon { background: #ea580c; color: #fff; }
  .p-banner--ok { background: #f0fdf4; }
  .p-banner--ok .p-banner__icon { background: #16a34a; color: #fff; }
  .p-card--pool { background: linear-gradient(140deg, #f2f9fe, #fff 60%); }
  .p-ul { border-color: rgba(79,182,239,.45); }
  .p-mod-tipp { background: #f2f9fe; border-color: rgba(79,182,239,.45); }
  .p-pick__item.is-an { background: #fff0f9; }
  .p-age__begr { background: #fff; }
  .p-zip, .p-file { box-shadow: 0 6px 24px rgba(40,15,55,.05); }
  .p-menu__list { background: #fff; }
  .p-bulk__z--fehler td { background: #fef2f2; }
  .p-row--konflikt td { background: #fff5f5; }
  .p-freigabe { background: #fff7ed; }
}
@media (prefers-reduced-motion: reduce) {
  .p-start, .p-start:hover { transition: none; transform: none; }
}

/* ---------- Phase 3: News, Programm, App ---------- */
.p-radio input:disabled + label { opacity: .5; cursor: not-allowed; }
.p-radio input:disabled:hover + label { border-color: var(--line-strong); }
.p-count--null { background: var(--st-bestaetigt-bg); color: var(--st-bestaetigt-fg); }
.p-empty--gross { padding: clamp(28px, 6vw, 48px) 22px; }
.p-empty__icon { width: 40px; height: 40px; margin: 0 auto 10px; color: var(--p-pink-ink); }

/* App installieren / Push */
.p-install { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 14px 48px 14px 16px; margin-bottom: var(--p-gap); border-radius: 16px; border: 1px solid rgba(154,216,249,.4); background: rgba(154,216,249,.07); }
.p-install::before { content: ''; flex: none; width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(140deg, var(--neon), var(--sky-deep)); box-shadow: inset 0 0 0 9px rgba(0,0,0,.18); }
.p-install__text { min-width: 0; }
.p-install__text p { margin: 0; font-size: .95rem; }
.p-install__text .btn-row { margin-top: 10px; }
.p-install__weg { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.p-install__weg:hover { color: var(--white); border-color: var(--line-strong); }
.p-install__weg:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.p-app-karte .p-install { margin-bottom: 0; padding-right: 16px; }
.p-app-karte__sub { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-family: var(--body); font-size: 1rem; font-weight: 800; color: var(--white); }
.p-app-karte__sub .p-icon { color: var(--p-sky-ink); }
.p-app-karte__sub:not(:first-of-type) { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.p-push > p { margin: 0; }
.p-push .p-check + .p-hint { margin-top: 8px; }
.p-push .p-hint:empty { display: none; }

/* Neueste News auf der Übersicht */
.p-teaser { display: flex; align-items: center; gap: 14px; padding: 12px 16px; margin-bottom: var(--p-gap); border-radius: 16px; border: 1px solid rgba(255,94,201,.4); background: linear-gradient(120deg, rgba(255,94,201,.10), rgba(154,216,249,.05)); color: inherit; text-decoration: none; transition: border-color .2s, background .2s; }
.p-teaser:hover { border-color: var(--neon); color: inherit; }
.p-teaser:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.p-teaser__icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--neon); color: var(--ink); }
.p-teaser__txt { flex: 1; min-width: 0; display: grid; }
.p-teaser__kicker { font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--p-pink-ink); }
.p-teaser__titel { font-weight: 800; color: var(--white); overflow-wrap: anywhere; }
.p-teaser__go { flex: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .9rem; color: var(--p-pink-ink); }
@media (max-width: 480px) { .p-teaser__go { font-size: 0; gap: 0; } .p-teaser__go .p-icon { width: 20px; height: 20px; } }

/* News */
.p-news-liste { display: grid; gap: var(--p-gap); }
.p-news-liste .p-card + .p-card { margin-top: 0; }
.p-news__kopf { margin-bottom: 10px; }
.p-news__datum { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: .85rem; font-weight: 700; color: var(--muted); }
.p-news__datum .p-icon { color: var(--p-sky-ink); }
.p-news__titel { margin: 0; font-size: clamp(1.3rem, 2.8vw, 1.65rem); line-height: 1.25; overflow-wrap: anywhere; }
.p-news__text { white-space: pre-line; overflow-wrap: anywhere; line-height: 1.65; color: var(--text); }
.p-news__link { font-weight: 700; overflow-wrap: anywhere; }
.p-news--entwurf { border-style: dashed; border-color: var(--line-strong); }
.p-news__fuss { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.p-news__status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.p-news__von { font-size: .82rem; color: var(--muted); }
.p-news__aktionen { display: flex; flex-wrap: wrap; gap: 8px; }
.p-news__optionen > * + * { margin-top: 10px; }
.p-news__optionen .p-label { margin-bottom: 0; }
.p-news__benach { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--st-warteliste-bg); color: var(--st-warteliste-fg); font-weight: 600; font-size: .92rem; }
.p-news__benach .p-icon { margin-top: 3px; }
.p-news-editor .p-switch { white-space: normal; }
.p-news-editor .p-card__title:focus { outline: none; }
.p-news-admin { display: grid; gap: var(--p-gap); align-items: start; }
.p-news-admin > * { min-width: 0; }
@media (min-width: 1000px) {
  .p-news-admin { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
}

/* Programm: Startliste & Zeitplan (Teams, Vorschau) */
.p-programm > .card + .card, .p-programm > .card + .p-hint { margin-top: var(--p-gap); }
.p-plan-karte__head { flex-wrap: wrap; }
.p-plan-karte__head .p-card__title { display: inline-flex; align-items: center; gap: 10px; }
.p-plan__hinweis { display: flex; align-items: flex-start; gap: 8px; margin: -4px 0 14px; font-size: .9rem; color: var(--muted); }
.p-plan__hinweis .p-icon { margin-top: 3px; color: var(--p-sky-ink); }
.p-plan__filter { font-size: .88rem; }
.p-programm__fehlt { display: flex; align-items: center; gap: 6px; }
.p-plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-variant-numeric: tabular-nums; }
.p-plan__row--zeit { --p-cols: 4.2rem 3.4rem minmax(0, 1.5fr) minmax(0, 1fr); }
.p-plan__row--liste { --p-cols: 3.4rem minmax(0, 1.5fr) minmax(0, 1fr); }
.p-plan__head, .p-plan__pause, .p-plan__link { display: grid; grid-template-columns: var(--p-cols); gap: 4px 14px; align-items: center; }
.p-plan__head { padding: 0 12px 6px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.p-plan__link { padding: 9px 12px; border-radius: 12px; color: inherit; text-decoration: none; border: 1px solid transparent; }
.p-plan__start:nth-child(even) .p-plan__link { background: var(--p-soft); }
a.p-plan__link:hover { border-color: var(--neon); color: inherit; }
a.p-plan__link:focus-visible { outline: 3px solid var(--sky); outline-offset: 1px; }
.p-plan__zeit { font-weight: 800; color: var(--white); }
.p-plan__nr { font-weight: 800; color: var(--p-pink-ink); }
.p-plan__main { display: grid; min-width: 0; }
.p-plan__gruppe { font-weight: 800; color: var(--white); overflow-wrap: anywhere; }
.p-plan__eigen { margin-left: 8px; vertical-align: 2px; }
.p-plan__inst { font-size: .86rem; color: var(--muted); overflow-wrap: anywhere; }
.p-plan__kat { font-size: .88rem; color: var(--text); }
.p-plan__start.is-eigen .p-plan__link { background: rgba(255,94,201,.10); border-color: rgba(255,94,201,.45); box-shadow: inset 4px 0 0 var(--neon); }
.p-plan__block { margin-top: 14px; }
.p-plan__block:nth-child(2) { margin-top: 0; }
.p-plan__blocktitel { display: flex; align-items: baseline; gap: 14px; margin: 0; padding: 10px 12px; border-radius: 12px; font-family: var(--body); font-size: 1.05rem; font-weight: 800; color: var(--white); background: var(--p-soft-2); border-left: 4px solid var(--sky-deep); }
.p-plan__blocktitel .p-plan__zeit { min-width: 3.6rem; color: var(--p-sky-ink); }
.p-plan__pause { padding: 8px 12px; border-radius: 12px; border: 1px dashed var(--line-strong); color: var(--muted); }
.p-plan__pausetxt { grid-column: 2 / -1; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.p-plan__pause .p-plan__zeit { color: var(--muted); }
.p-plan__dauer { font-weight: 500; }
.p-plan.is-nur-eigen .p-plan__start:not(.is-eigen), .p-plan.is-nur-eigen .p-plan__pause { display: none; }
@media (max-width: 640px) {
  .p-plan__head { display: none; }
  .p-plan__link { grid-template-columns: 3.4rem minmax(0, 1fr) auto; grid-template-areas: "zeit main nr" "zeit kat kat"; gap: 2px 10px; align-items: start; }
  .p-plan__row--liste > .p-plan__link { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main nr" "kat kat"; }
  .p-plan__link > .p-plan__zeit { grid-area: zeit; }
  .p-plan__link > .p-plan__nr { grid-area: nr; justify-self: end; padding: .05em .55em; border-radius: 999px; background: rgba(255,94,201,.12); font-size: .85rem; }
  .p-plan__link > .p-plan__main { grid-area: main; }
  .p-plan__link > .p-plan__kat { grid-area: kat; font-size: .82rem; color: var(--muted); }
  .p-plan__pause { grid-template-columns: 3.4rem minmax(0, 1fr); gap: 10px; }
  .p-plan__blocktitel { gap: 10px; font-size: 1rem; }
  .p-plan__blocktitel .p-plan__zeit { min-width: 3.4rem; }
  .p-plan__eigen { display: inline-flex; margin: 2px 0 0; }
  .p-plan__gruppe { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; }
}

/* Eigene Starts (Team) */
.p-eigen { border-color: rgba(255,94,201,.45); background: linear-gradient(140deg, rgba(255,94,201,.10), transparent 65%), var(--surface); }
.p-eigen__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.p-eigen__item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--p-soft); color: inherit; text-decoration: none; }
.p-eigen__item:hover { border-color: var(--neon); color: inherit; }
.p-eigen__item small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.p-eigen__nr { min-width: 3rem; text-align: center; font-family: var(--head); font-size: 1.6rem; line-height: 1.05; color: var(--p-pink-ink); }
.p-eigen__main { display: grid; min-width: 0; }
.p-eigen__main strong { color: var(--white); overflow-wrap: anywhere; }
.p-eigen__main small { text-transform: none; letter-spacing: 0; font-size: .85rem; font-weight: 500; }
.p-eigen__zeit { text-align: right; font-weight: 800; color: var(--white); font-variant-numeric: tabular-nums; white-space: nowrap; }
.p-eigen .p-hint { margin-top: 12px; }
.p-pdfknopf { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.p-pdfknopf .p-hint { margin: 0; }
.p-pdfknopf .p-hint:empty { display: none; }

/* Programm: Orga-Planung */
.p-progadmin__side > * + * { margin-top: var(--p-gap); }
.p-progadmin .p-settings + .p-planer, .p-progadmin .p-planer + .p-vorschau-karte { margin-top: var(--p-gap); }
.p-progeinst .p-radios { grid-column: 1 / -1; }
.p-progeinst .p-radio { flex-basis: 120px; }
.p-sichthilfe { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--p-soft); border: 1px solid var(--line); font-size: .88rem; }
.p-sichthilfe p { margin: 0; }
.p-sichthilfe .p-icon { margin-top: 3px; color: var(--p-sky-ink); }
.p-planer { display: grid; gap: var(--p-gap); align-items: start; }
.p-planer > * { min-width: 0; }
.p-planer .p-card + .p-card { margin-top: 0; }
@media (min-width: 1000px) {
  .p-planer { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
  .p-offen-karte { position: sticky; top: 96px; max-height: calc(100dvh - 190px); overflow-y: auto; }
}
.p-ze__summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 10px; }
.p-ze__hilfe { margin: 0 0 12px; }
.p-ze__warnungen:empty { display: none; }
.p-ze__warnungen .p-warn { margin: 0 0 12px; }
.p-ze__warnliste { margin: 4px 0 0; padding-left: 1.1em; }
.p-ze { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; position: relative; }
.p-ze__item { position: relative; display: grid; grid-template-columns: 22px 3.3rem minmax(0, 1fr) 4.4rem auto; align-items: center; gap: 8px 12px; padding: 9px 10px 9px 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--p-soft); transition: opacity .15s, border-color .15s, background .3s; }
.p-ze__item:not(:has(.p-ze__grip)) { grid-template-columns: 3.3rem minmax(0, 1fr) 4.4rem; padding-left: 12px; }
.p-ze__item--block { background: rgba(79,182,239,.10); border-color: rgba(79,182,239,.35); }
.p-ze__item--block .p-ze__titel { font-size: 1.02rem; }
.p-ze__item--pause { border-style: dashed; border-color: var(--line-strong); background: transparent; }
.p-ze__item.is-fehlt { border-color: rgba(248,113,113,.5); background: var(--st-abgelehnt-bg); }
.p-ze__item.is-fehlt .p-ze__titel, .p-ze__item.is-fehlt .p-ze__sub { color: var(--st-abgelehnt-fg); }
.p-ze__item.is-warn { border-color: rgba(251,146,60,.6); box-shadow: inset 4px 0 0 var(--st-rueckfrage-fg); }
.p-ze__item.is-ziehen { opacity: .4; }
.p-ze__item.is-neu { border-color: var(--neon); background: rgba(255,94,201,.12); }
.p-ze__item.is-drop-vor::before, .p-ze.is-drop-ende::after { content: ''; position: absolute; left: 6px; right: 6px; height: 3px; border-radius: 3px; background: var(--neon); box-shadow: 0 0 10px rgba(255,94,201,.6); pointer-events: none; }
.p-ze__item.is-drop-vor::before { top: -5px; }
.p-ze.is-drop-ende::after { bottom: -5px; }
.p-ze__grip { display: grid; place-items: center; width: 22px; height: 36px; border-radius: 6px; color: var(--muted); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.p-ze__grip:hover { color: var(--white); background: var(--p-soft-2); }
.p-ze.is-ziehend, .p-ze.is-ziehend * { cursor: grabbing; }
.p-ze__zeit { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--white); }
.p-ze__item--block .p-ze__zeit { color: var(--p-sky-ink); }
.p-ze__item--pause .p-ze__zeit { color: var(--muted); }
.p-ze__main { display: grid; min-width: 0; }
.p-ze__titel { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-weight: 800; color: var(--white); overflow-wrap: anywhere; }
.p-ze__titel .p-icon { color: var(--muted); }
.p-ze__nr { padding: .05em .55em; border-radius: 999px; font-size: .78rem; background: rgba(255,94,201,.14); color: var(--p-pink-ink); white-space: nowrap; }
.p-ze__sub { font-size: .83rem; color: var(--muted); overflow-wrap: anywhere; }
.p-ze__dauer { display: grid; justify-items: end; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); line-height: 1.2; }
.p-ze__dauer small { font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.p-ze__dauer.is-manuell, .p-ze__dauer.is-manuell small { color: var(--p-pink-ink); }
.p-ze__akt { display: flex; gap: 4px; }
.p-ze__akt .p-iconbtn { width: 34px; height: 34px; border-radius: 9px; }
.p-iconbtn:disabled { opacity: .35; cursor: not-allowed; }
.p-iconbtn:disabled:hover { border-color: var(--line-strong); color: var(--text); background: transparent; }
.p-iconbtn:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.p-ze__leer { padding: 20px; border-radius: 12px; border: 1px dashed var(--line-strong); text-align: center; color: var(--muted); }
.p-ze__add { margin-top: 14px; }
@media (max-width: 640px) {
  .p-ze__item { grid-template-columns: 22px 3.3rem minmax(0, 1fr); grid-template-areas: "grip zeit main" "grip dauer akt"; row-gap: 6px; }
  .p-ze__item:not(:has(.p-ze__grip)) { grid-template-columns: 3.3rem minmax(0, 1fr); grid-template-areas: "zeit main" "dauer akt"; }
  .p-ze__grip { grid-area: grip; height: 100%; min-height: 44px; }
  .p-ze__zeit { grid-area: zeit; align-self: start; }
  .p-ze__main { grid-area: main; }
  .p-ze__dauer { grid-area: dauer; justify-items: start; align-self: center; }
  .p-ze__akt { grid-area: akt; justify-self: end; }
  .p-ze__akt .p-iconbtn { width: 38px; height: 38px; }
}
.p-offen__alle { margin: 0 0 12px; }
.p-offen__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.p-offen__item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--p-soft); }
.p-offen__main { display: grid; min-width: 0; }
.p-offen__main strong { color: var(--white); overflow-wrap: anywhere; }
.p-offen__main small { font-size: .82rem; color: var(--muted); }
.p-offen__item .btn { flex: none; }
.p-nr-msg:empty { display: none; }
.p-nr-msg .p-ul-msg__ok { margin-top: 12px; }
.p-vorschau { padding: clamp(14px, 3vw, 22px); border-radius: 14px; border: 1px solid var(--line-strong); background: var(--bg); }
.p-vorschau__titel { margin: 0 0 12px; font-family: var(--head); font-size: 1.35rem; color: var(--white); }
.p-vorschau-karte .p-phase { font-weight: 600; align-items: flex-start; }
.p-vorschau-karte .p-phase__dot { margin-top: 7px; }

/* Speicherleiste (klebt unten, solange die Planung sichtbar ist) */
.p-savebar { position: sticky; bottom: 0; z-index: 30; margin-top: var(--p-gap); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; background: var(--surface-2); border: 1px solid var(--line-strong); border-bottom: 0; box-shadow: 0 -12px 32px rgba(0,0,0,.35); }
.p-savebar.is-dirty { border-color: rgba(255,94,201,.6); }
.p-savebar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.p-savebar__status { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 700; font-size: .93rem; color: var(--p-ok); }
.p-savebar__status.is-dirty { color: var(--p-warn); }
.p-savebar__status:focus { outline: none; }
.p-savebar__btns { display: flex; gap: 8px; margin-left: auto; }
.p-savebar__fehler { margin-top: var(--p-gap); }
.p-savebar__fehler:not(.show) { display: none; }
.p-savebar__fehler ul { margin: 6px 0 0; padding-left: 1.2em; }

@media (prefers-color-scheme: light) {
  .p-install { background: #f2f9fe; border-color: rgba(79,182,239,.5); }
  .p-teaser { background: linear-gradient(120deg, #fff0f9, #f2f9fe); }
  .p-teaser__icon { color: #fff; }
  .p-eigen { background: linear-gradient(140deg, #fff0f9, #fff 65%); }
  .p-plan__start.is-eigen .p-plan__link { background: #fff0f9; }
  .p-plan__blocktitel { background: #eef8fe; }
  .p-ze__item--block { background: #eef8fe; }
  .p-ze__item.is-neu { background: #fff0f9; }
  .p-vorschau { background: #fbf8fc; }
  .p-savebar { background: #fff; box-shadow: 0 -10px 28px rgba(40,15,55,.12); }
  .p-news-editor, .p-offen-karte { box-shadow: 0 6px 24px rgba(40,15,55,.05); }
}
@media (prefers-reduced-motion: reduce) {
  .p-ze__item, .p-teaser { transition: none; }
}
.p-eigen__main strong { line-height: 1.35; }
.p-eigen__nr small { font-family: var(--body); }
.p-eigen__zeit--offen { font-weight: 600; font-size: .85rem; color: var(--muted); }
@media (max-width: 480px) {
  .p-eigen__item { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "nr main" "nr zeit"; row-gap: 4px; }
  .p-eigen__nr { grid-area: nr; } .p-eigen__main { grid-area: main; }
  .p-eigen__zeit { grid-area: zeit; text-align: left; }
  .p-eigen__zeit small { display: inline; margin-right: 4px; }
}

/* ---------- Installations-Abfrage (Bottom-Sheet + Pfeil auf die Browser-Leiste) ---------- */
.p-inst { position: fixed; inset: auto 0 0 0; margin: 0 auto; width: min(560px, 100%); max-width: 100%; max-height: 88vh; overflow: auto;
  padding: 10px 22px calc(22px + env(safe-area-inset-bottom)); border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 22px 22px 0 0;
  background: var(--bg); color: var(--text); box-shadow: 0 -18px 50px rgba(0,0,0,.35); }
.p-inst--oben { inset: 0 0 auto 0; max-height: calc(100dvh - 100px - env(safe-area-inset-bottom)); border-radius: 0 0 22px 22px; border-top: 0; border-bottom: 1px solid var(--line-strong); padding-top: calc(14px + env(safe-area-inset-top)); padding-bottom: 22px; }
.p-inst[open] { animation: p-inst-rein .28s ease-out; }
.p-inst--oben[open] { animation-name: p-inst-rein-oben; }
@keyframes p-inst-rein { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes p-inst-rein-oben { from { transform: translateY(-40px); opacity: 0; } to { transform: none; opacity: 1; } }
.p-inst::backdrop { background: rgba(8,6,12,.55); backdrop-filter: blur(2px); }
.p-inst__griff { width: 44px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 2px auto 14px; }
.p-inst--oben .p-inst__griff { display: none; }
.p-inst__app { display: flex; gap: 14px; align-items: center; }
.p-inst__app img { width: 56px; height: 56px; border-radius: 13px; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.p-inst__app strong { display: block; font-size: 1.1rem; color: var(--white); }
.p-inst__app span { color: var(--muted); font-size: .9rem; }
.p-inst__titel { margin: 16px 0 10px; font-size: 1.35rem; }
.p-inst__schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.p-inst__schritte li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--p-soft-2); line-height: 1.4; }
.p-inst__nr { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; background: var(--pink); color: var(--ink, #111); }
.p-inst__sym { flex: none; width: 26px; height: 26px; color: var(--sky, #4aa3ff); }
.p-inst__klein { margin: 12px 2px 0; color: var(--muted); font-size: .88rem; }
.p-inst__knoepfe { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.p-inst__haupt { flex: 1 1 auto; justify-content: center; }
.p-inst__nie { background: none; border: 0; padding: 8px 4px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font: inherit; font-size: .9rem; cursor: pointer; }
.p-inst__pfeil { position: fixed; z-index: 2; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--pink); color: var(--ink, #111); box-shadow: 0 8px 24px rgba(255,94,201,.45); animation: p-inst-wipp 1.1s ease-in-out infinite; pointer-events: none; }
.p-inst__pfeilsym { width: 30px; height: 30px; }
.p-inst__pfeil--unten { left: calc(50% - 27px); bottom: calc(14px + env(safe-area-inset-bottom)); }
.p-inst__pfeil--unten-rechts { right: 18px; bottom: calc(14px + env(safe-area-inset-bottom)); }
.p-inst__pfeil--oben-rechts { right: 18px; top: calc(14px + env(safe-area-inset-top)); animation-name: p-inst-wipp-oben; }
@keyframes p-inst-wipp { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes p-inst-wipp-oben { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .p-inst[open], .p-inst__pfeil { animation: none; } }
@media (max-height: 760px) { .p-inst__klein { display: none; } .p-inst__titel { margin-top: 10px; font-size: 1.2rem; } .p-inst__schritte li { padding: 8px 10px; } }
.p-inst__eins { margin: 0; line-height: 1.5; }

/* ---------- Konzept §17: Gebühr, Hinweise oben, Auswahl der Tänzer/innen, Rechnungen ---------- */
/* Gebühr mit Art (vorläufig / final / von der Orga festgelegt) */
.p-geb { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 1px; line-height: 1.25; }
.p-geb__betrag { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--white); }
.p-geb__art { font-size: .74rem; font-weight: 700; color: var(--muted); }
.p-geb--vorlaeufig .p-geb__art { color: var(--st-eingereicht-fg); }
.p-geb--final .p-geb__art { color: var(--st-bestaetigt-fg); }
.p-geb--manuell .p-geb__art { color: var(--p-sky-ink); }
.p-geb--offen .p-geb__art { color: var(--st-rueckfrage-fg); }
.p-dl .p-geb, .p-verw-geb .p-geb { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.p-dl .p-geb__art, .p-verw-geb .p-geb__art { font-size: .85rem; }
.p-geb--zelle { align-items: flex-end; }
.p-start__fee.p-geb { color: inherit; }
.p-geb__art--sum { display: inline-block; margin-left: 8px; padding: .1em .55em; border-radius: 999px; font-size: .72rem; font-weight: 800; vertical-align: middle; background: var(--st-eingereicht-bg); color: var(--st-eingereicht-fg); }
.p-sum > span { min-width: 0; }
.p-sum small a { color: inherit; font-weight: 700; }
@media (max-width: 520px) { .p-start__side .p-geb { flex-direction: row; align-items: baseline; gap: 6px; } }
.p-hint--warn { color: var(--st-rueckfrage-fg); font-weight: 600; }

/* Dauerhafter Hinweis unter der Navigation (nur Teams) */
.p-hinw { background: rgba(251,146,60,.09); border-bottom: 1px solid rgba(251,146,60,.4); }
.p-hinw__inner { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0 11px; }
.p-hinw__icon { flex: none; width: 28px; height: 28px; margin-top: 1px; border-radius: 9px; display: grid; place-items: center; background: #fdba74; color: var(--ink, #17131d); }
.p-hinw__main { min-width: 0; flex: 1; }
.p-hinw__titel { margin: 0 0 2px; font-family: var(--body); font-size: .95rem; font-weight: 800; line-height: 1.35; color: var(--white); }
.p-hinw__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: .9rem; line-height: 1.45; }
.p-hinw__item { position: relative; padding-left: 14px; overflow-wrap: anywhere; }
.p-hinw__item::before { content: ''; position: absolute; left: 2px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: #fb923c; }
.p-hinw__item--rueck::before { background: #f87171; }
.p-hinw__item--entwurf::before { background: var(--muted); }
.p-hinw__item--geld::before { background: var(--p-sky-ink); }
.p-hinw__was { font-weight: 700; }
.p-hinw__link { font-weight: 800; color: var(--white); text-decoration: underline; text-decoration-color: rgba(251,146,60,.7); text-underline-offset: 3px; }
.p-hinw__link:hover { text-decoration-color: currentColor; }
.p-hinw__frist { color: var(--muted); }
.p-hinw__mehr { margin-top: 4px; padding: 2px 0; border: 0; background: none; font: inherit; font-size: .86rem; font-weight: 800; color: var(--p-pink-ink); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 520px) { .p-hinw__icon { width: 24px; height: 24px; } .p-hinw__liste { font-size: .86rem; } }

/* Auswahl der Tänzer/innen (Startformular, Tänzerliste) */
.p-pick__fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.p-pick__msg { margin: 0; font-size: .9rem; font-weight: 600; color: var(--text); }
.p-pick__msg:empty { display: none; }
.p-pick__count { display: inline-block; }
.p-tw-feld .p-picker { margin-top: 6px; }
.p-tw-feld .p-pick { max-height: min(40vh, 340px); }
.p-tw-feld.invalid .p-pick { border-color: var(--p-err-line); }
.p-tw-feld .p-ages { margin-top: 12px; }
.p-tl-stand { display: grid; gap: 6px; justify-items: start; margin-bottom: 12px; }
.p-tl-stand .p-pick__count { margin: 0; }
.p-picker-wrap > * + * { margin-top: 14px; }

/* Rechnungsadresse */
.p-rechadr-wrap { display: grid; gap: 12px; }
.p-rechadr { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--p-soft); }
.p-rechadr-box { border-radius: 14px; border: 1px dashed var(--line-strong); }
.p-rechadr-box > summary { display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-weight: 800; color: var(--p-pink-ink); cursor: pointer; list-style: none; }
.p-rechadr-box > summary::-webkit-details-marker { display: none; }
.p-rechadr-box[open] > summary { border-bottom: 1px solid var(--line); }
.p-rechadr-box__body { display: grid; gap: 12px; padding: 14px 16px 16px; }

/* Rechnungen (Team) */
.p-rg { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--p-gap); }
.p-rg__karte { display: grid; gap: 14px; }
.p-rg__karte.is-storniert { opacity: .7; }
.p-rg__karte.is-ueber { border-color: rgba(248,113,113,.55); }
.p-rg__kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.p-rg__titel { margin: 0; font-family: var(--body); font-size: 1.15rem; font-weight: 800; }
.p-rg__daten { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 16px; }
.p-rg__daten dt { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.p-rg__daten dd { margin: 2px 0 0; font-weight: 700; color: var(--white); font-variant-numeric: tabular-nums; }
.p-rg__summe { font-family: var(--head); font-size: 1.5rem; line-height: 1.1; color: var(--p-pink-ink) !important; }
@media (max-width: 420px) { .p-rg__daten { grid-template-columns: 1fr 1fr; } .p-rg__daten > div:last-child { grid-column: 1 / -1; } }
.p-rg__details > summary { cursor: pointer; font-weight: 700; font-size: .92rem; color: var(--p-sky-ink); }
.p-rg__details--klein > summary { font-size: .82rem; margin-top: 2px; }
.p-rg__posten { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.p-rg__posten li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 10px; background: var(--p-soft-2); font-size: .9rem; }
.p-rg__pname { display: grid; min-width: 0; }
.p-rg__pname small { color: var(--muted); }
.p-rg__phinweis { font-style: italic; }
.p-rg__nr { font-size: .78rem; font-weight: 800; color: var(--muted); }
.p-rg__pbetrag { flex: none; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--white); }
.p-rg__sub { display: block; margin-top: 3px; font-size: .78rem; color: var(--muted); overflow-wrap: anywhere; }
.p-rg-msg:empty { display: none; }

/* Rechnungen (Orga) */
.p-rg-summen { list-style: none; margin: 0 0 var(--p-gap); padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.p-rg-summen li { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.p-rg-summen span { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.p-rg-summen strong { font-family: var(--head); font-size: 1.5rem; line-height: 1.1; color: var(--white); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .p-rg-summen { gap: 8px; } .p-rg-summen li { padding: 10px 12px; } .p-rg-summen strong { font-size: 1.15rem; } .p-rg-summen span { font-size: .66rem; letter-spacing: .06em; } }
.p-rg__akt { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.p-rgtab td { vertical-align: top; }
.p-rgrow--storniert td { opacity: .65; }
@media (max-width: 640px) { .p-rg__aktzelle { justify-content: flex-start !important; } .p-rg__akt { justify-content: flex-start; } }
.p-rg-bericht:empty { display: none; }
.p-rg-bericht { margin-bottom: var(--p-gap); }
.p-rg-bericht__box { display: grid; gap: 8px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--p-soft); }
.p-rg-bericht__box p { margin: 0; }
.p-rg-bericht__box ul { margin: 4px 0 0; padding-left: 1.2em; }
.p-rg-bericht__box.is-ok { border-color: rgba(74,222,128,.45); }
.p-rg-bericht__box.is-warn { border-color: rgba(251,146,60,.55); background: rgba(251,146,60,.07); }

/* Orga: fehlt noch, Gebühr in der Verwaltung, Rechnungsdaten-Checkliste */
.p-fehlt { font-size: .85rem; color: var(--st-rueckfrage-fg); font-weight: 600; white-space: nowrap; }
.p-verw-geb { display: grid; gap: 8px; padding: 12px 14px; border-radius: 14px; background: var(--p-soft); border: 1px solid var(--line); }
.p-verw-geb .p-hint { margin: 0; }
.p-rd-check { margin-bottom: 18px; padding: 14px 16px; border-radius: 14px; border: 1px solid; }
.p-rd-check.is-offen { background: rgba(251,146,60,.07); border-color: rgba(251,146,60,.5); }
.p-rd-check.is-ok { background: rgba(74,222,128,.06); border-color: rgba(74,222,128,.45); }
.p-rd-check__titel { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-weight: 800; color: var(--white); }
.p-rd-check__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px 18px; font-size: .92rem; }
@media (min-width: 760px) { .p-rd-check__liste { grid-template-columns: 1fr 1fr; } }
.p-rd-check__liste li { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.p-sub.full { grid-column: 1 / -1; margin: 10px 0 0; }

@media (prefers-color-scheme: light) {
  .p-hinw { background: #fff7ed; border-bottom-color: #fdba74; }
  .p-hinw__link { text-decoration-color: #fb923c; }
  .p-rg-summen li { background: #fff; }
}
.p-tl-stand .p-pick__count, .p-tw-feld .p-pick__count { border-radius: 14px; }
