/*! Plug&Playce Anfrageformular – alles ist unter .pp-form gekapselt (keine globalen Styles). */
.pp-form {
  --stage: #000000;
  --stage-dim: rgba(0, 0, 0, 0.55);
  --panel: #f0f0f5;
  --paper: #ffffff;
  --paper-soft: #f8f9fa;
  --ink: #000000;
  --ink-body: #212529;
  --ink-muted: #5f636b;
  --card: rgba(0, 0, 0, 0.95);
  --on-card: #ffffff;
  --on-card-body: rgba(255, 255, 255, 0.8);
  --on-card-muted: rgba(255, 255, 255, 0.55);
  --line-on-card: rgba(255, 255, 255, 0.4);
  --fill-on-card: rgba(255, 255, 255, 0.08);
  --field-ink: #000000;
  --field-placeholder: #6b6f76;
  --accent: #5377d2;
  --accent-fill: #4f71ca;
  --on-accent: #ffffff;
  --signal: #b4410f;
  --signal-on-card: #ff9e6b;
  --inactive: #d4d4dc;
  --on-inactive: #3d4047;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 25px;
  --space-7: 30px;
  --space-8: 40px;
  --space-9: 45px;
  --space-10: 48px;
  --space-11: 50px;
  --space-12: 70px;
  --radius-pill: 999px;
  --radius-button: 50px;
  --radius-panel: 30px;
  --radius-tile: 25px;
  --radius-card: 20px;
  --shadow-float: 0 10px 25px rgba(0, 0, 0, 0.18);
  --font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--font-sans); color-scheme: light;
}
.pp-form *, .pp-form *::before, .pp-form *::after { box-sizing: border-box; }

/* Plug&Playce – Komponenten. Werte aus tokens.json (tokens.css); Literale nur, wo die Website sie so setzt. */
.pp-root, .pp-root * { box-sizing: border-box; }
.pp-root { font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }

/* ---------- Button ---------- */
.pp-btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 38px; padding: 6px var(--space-10); border: 1px solid transparent; border-radius: var(--radius-button); font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color .15s ease-in-out, color .15s ease-in-out, border-color .15s ease-in-out; }
.pp-btn--lg { min-height: 48px; padding: 8px var(--space-10); font-size: 20px; line-height: 30px; }
.pp-btn--primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pp-btn--light { background: var(--paper-soft); border-color: var(--paper-soft); color: var(--ink); }
.pp-btn--ghost { background: transparent; border-color: var(--line-on-card); color: var(--on-card); }
.pp-btn--ghost:hover { border-color: var(--on-card); }
.pp-btn[aria-disabled="true"] { background: var(--inactive); border-color: var(--inactive); color: var(--on-inactive); }
.pp-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pp-btn__arrow { display: inline-block; transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
.pp-btn:hover .pp-btn__arrow { transform: translateX(4px); }

/* ---------- PillNav (Website-Navigation) ---------- */
.pp-nav { position: relative; display: inline-flex; margin: 0; padding: 0; list-style: none; background: var(--paper); border: 1px solid var(--paper); border-radius: var(--radius-pill); box-shadow: var(--shadow-float); }
.pp-nav__indicator { position: absolute; top: 0; bottom: 0; border-radius: var(--radius-pill); background: var(--ink); transition: left .45s cubic-bezier(.16, 1, .3, 1), width .45s cubic-bezier(.16, 1, .3, 1); }
.pp-nav__link { position: relative; z-index: 1; display: block; padding: 7.2px 8px; border-radius: var(--radius-pill); font-size: 15.2px; line-height: 22.8px; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; transition: color .25s; }
.pp-nav li:first-child .pp-nav__link { padding-left: 9px; }
.pp-nav__link[aria-current="page"] { color: var(--paper); }
.pp-nav__link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- SectionTabs (wie Case-Navigation) ---------- */
.pp-tabs { position: relative; display: inline-flex; align-items: stretch; max-width: 100%; overflow-x: auto; scrollbar-width: none; background: var(--card); border: 4px solid var(--stage); border-radius: var(--radius-pill); box-shadow: var(--shadow-float); }
.pp-tabs::-webkit-scrollbar { display: none; }
.pp-tabs__indicator { position: absolute; top: 0; bottom: 0; border-radius: var(--radius-pill); background: var(--accent-fill); transition: left .45s cubic-bezier(.16, 1, .3, 1), width .45s cubic-bezier(.16, 1, .3, 1); }
.pp-tabs__tab { position: relative; z-index: 1; appearance: none; display: inline-flex; align-items: baseline; gap: 6px; padding: 7.2px 12px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--on-card); font-family: var(--font-sans); font-size: 14.4px; line-height: 21.6px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.pp-tabs__num { font-variant-numeric: tabular-nums; color: var(--on-card-muted); }
.pp-tabs__tab[aria-current="step"] .pp-tabs__num { color: var(--on-accent); }
.pp-tabs__tab:focus-visible { outline: 2px solid var(--paper); outline-offset: -4px; }
.pp-tabs--compact .pp-tabs__label { display: none; }

/* ---------- FormPanel ---------- */
.pp-panel { background: var(--panel); color: var(--ink); border-radius: var(--radius-panel); padding: 0 0 var(--space-6); color-scheme: light; }
.pp-panel__head { padding: var(--space-5) var(--space-12); } /* wie «Warum mit uns?»: 70px links, 20px oben/unten */
.pp-panel__eyebrow { margin: 0 0 14px; font-size: 11px; line-height: 16.5px; font-weight: 700; letter-spacing: .88px; text-transform: uppercase; color: var(--ink-muted); }
.pp-panel__title { margin: 0; font-size: 50px; line-height: 45px; font-weight: 700; letter-spacing: -1.5px; text-wrap: balance; }
.pp-panel__intro { margin: var(--space-5) 0 0; max-width: 60ch; font-size: 18px; line-height: 28.8px; color: var(--ink-body); }
.pp-panel__meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: var(--space-4) 0 0; padding: 0; list-style: none; font-size: 13px; line-height: 16px; font-weight: 600; color: var(--ink-muted); }
.pp-panel__foot { padding: var(--space-5) var(--space-6) 0; }

/* ---------- Akkordeon (gestapelte Karten wie «Warum mit uns?») ---------- */
.pp-acc { display: flex; flex-direction: column; }

/* Start: Button sichtbar, Formular eingeklappt – Aufklappen wie die Akkordeon-Abschnitte (grid-rows 0fr → 1fr) */
.pp-start, .pp-reveal { display: grid; transition: grid-template-rows .55s ease; }
.pp-start { grid-template-rows: 1fr; }
.pp-start[data-open="false"] { grid-template-rows: 0fr; }
.pp-reveal { grid-template-rows: 0fr; }
.pp-reveal[data-open="true"] { grid-template-rows: 1fr; }
.pp-start__clip, .pp-reveal__clip { min-height: 0; overflow: hidden; }
.pp-reveal[data-done="true"] .pp-reveal__clip { overflow: visible; }
.pp-start__inner { padding: 0 var(--space-12) var(--space-2); transition: opacity .3s ease, transform .4s ease; }
.pp-start[data-open="false"] .pp-start__inner { opacity: 0; transform: translateY(-8px); }
.pp-reveal__inner { opacity: 0; transform: translateY(16px); transition: opacity .45s ease .1s, transform .55s ease .05s; }
.pp-reveal[data-open="true"] .pp-reveal__inner { opacity: 1; transform: none; }
.pp-acc__item { position: relative; margin-bottom: calc(var(--space-9) * -1); padding-bottom: var(--space-8); background: linear-gradient(var(--card), var(--card)), var(--panel); color: var(--on-card); border: 1px solid var(--paper); border-radius: var(--radius-panel); scroll-margin-top: 96px; }
.pp-acc__item:last-child { margin-bottom: 0; padding-bottom: 0; }
.pp-acc__heading { margin: 0; font: inherit; }
.pp-acc__head { appearance: none; display: flex; align-items: center; gap: 16px; width: 100%; padding: var(--space-5) var(--space-6); border: 0; border-radius: var(--radius-panel); background: transparent; color: inherit; font-family: var(--font-sans); text-align: left; cursor: pointer; }
.pp-acc__head:focus-visible { outline: 2px solid var(--accent); outline-offset: -6px; }
.pp-acc__num { flex: none; display: inline-grid; place-items: center; min-width: 46px; height: 30px; padding: 0 10px; border: 1px solid var(--line-on-card); border-radius: var(--radius-pill); font-size: 14.4px; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--on-card-muted); transition: background-color .25s, border-color .25s, color .25s; }
.pp-acc__title { flex: 1; min-width: 0; font-size: 28px; line-height: 33.6px; font-weight: 600; letter-spacing: -.56px; color: var(--on-card); text-wrap: balance; }
.pp-acc__stop { display: inline-block; transform-origin: 0 85%; transition: transform .45s cubic-bezier(.16, 1, .3, 1), opacity .25s; }
.pp-acc__stop[data-on="false"] { opacity: 0; transform: scale(0); }
.pp-acc__item[data-status="missing"] .pp-acc__meta { color: var(--on-card); }
.pp-acc__meta { flex: none; font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: .13px; font-variant-numeric: tabular-nums; color: var(--on-card-muted); }
.pp-acc__arrow { flex: none; width: 26px; text-align: center; font-size: 28px; line-height: 1; font-weight: 400; color: var(--on-card); transition: transform .3s; }
.pp-acc__item[data-open="true"] .pp-acc__arrow { transform: rotate(180deg); }
/* Auf- und Zuklappen wie das Bootstrap-Collapse der Website: Höhe, 0.35s ease */
.pp-acc__collapse { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .35s ease, visibility 0s .35s; }
.pp-acc__collapse[data-open="true"] { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .35s ease, visibility 0s; }
.pp-acc__clip { min-height: 0; overflow: hidden; }
.pp-acc__body { padding: 6px var(--space-11) var(--space-6) calc(var(--space-6) + 46px + 16px); }

/* ---------- Felder ---------- */
.pp-stack { display: grid; gap: 30px; }
.pp-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
.pp-field { display: grid; gap: 8px; min-width: 0; align-content: start; }
.pp-label { display: block; font-size: 15px; line-height: 20px; font-weight: 600; color: var(--on-card); }
.pp-req { margin-left: 3px; color: var(--on-card-muted); font-weight: 400; }
.pp-opt { margin-left: 6px; color: var(--on-card-muted); font-size: 13px; font-weight: 400; }
.pp-help { margin: 0; font-size: 14px; line-height: 20px; color: var(--on-card-body); text-wrap: pretty; }
.pp-error { margin: 0; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--signal-on-card); }
.pp-control { position: relative; display: flex; align-items: center; }
.pp-input { appearance: none; width: 100%; min-height: 48px; margin: 0; padding: 10px var(--space-7); border: 0; border-radius: var(--radius-pill); background: var(--paper); color: var(--field-ink); font-family: var(--font-sans); font-size: 16px; line-height: 24px; color-scheme: light; transition: box-shadow .2s; }
.pp-input::placeholder { color: var(--field-placeholder); opacity: 1; }
.pp-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Fehlende Pflichtangabe: neutrale «Fehlt»-Pille am rechten Rand des Feldes (Gruppen: am Label).
   Text pro Sprache via --pp-missing (gesetzt in site/snippets/anfrage-form.php aus «anfrage.ui.missing») */
.pp-control:has(> [aria-invalid="true"])::after { content: var(--pp-missing, "Fehlt"); position: absolute; right: 8px; top: 50%; transform: translateY(-50%); padding: 5px 11px; border-radius: var(--radius-pill); background: var(--ink); color: var(--paper); font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: .88px; text-transform: uppercase; pointer-events: none; animation: pp-fade .3s ease; }
.pp-control:has(> textarea[aria-invalid="true"])::after { top: 10px; transform: none; }
.pp-control:has(> [aria-invalid="true"]) > .pp-affix--suf { opacity: 0; }
.pp-control:has(> [aria-invalid="true"]) > .pp-input { padding-right: 84px; }
.pp-group[data-invalid="true"] > .pp-label::after { content: var(--pp-missing, "Fehlt"); display: inline-block; margin-left: 10px; padding: 2px 8px; border: 1px solid var(--on-card-muted); border-radius: var(--radius-pill); font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: .88px; text-transform: uppercase; color: var(--on-card); vertical-align: 1px; }
@keyframes pp-fade { from { opacity: 0; } }
textarea.pp-input { min-height: 140px; padding: 14px 22px; border-radius: var(--radius-card); resize: vertical; }
.pp-input--prefixed { padding-left: 64px; }
.pp-input--suffixed { padding-right: 52px; }
.pp-affix { position: absolute; top: 50%; transform: translateY(-50%); pointer-events: none; font-size: 15px; font-weight: 600; color: var(--field-placeholder); }
.pp-affix--pre { left: 26px; }
.pp-affix--suf { right: 22px; }
input[type="date"].pp-input { min-height: 48px; }
input[type="number"].pp-input { -moz-appearance: textfield; }
input[type="number"].pp-input::-webkit-inner-spin-button, input[type="number"].pp-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Masse */
.pp-dims { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: end; }
.pp-dims__cell { display: grid; gap: 6px; min-width: 0; }
.pp-dims__sub { font-size: 13px; line-height: 16px; color: var(--on-card-body); }
.pp-dims__x { padding-bottom: 12px; font-size: 18px; color: var(--on-card-muted); }

/* ---------- Auswahl ---------- */
.pp-group { display: grid; gap: 10px; min-width: 0; }
.pp-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pp-chip { appearance: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 1px solid var(--line-on-card); border-radius: var(--radius-pill); background: var(--fill-on-card); color: var(--on-card); font-family: var(--font-sans); font-size: 15px; line-height: 20px; font-weight: 600; text-align: left; cursor: pointer; transition: background-color .25s, border-color .25s, color .25s; }
.pp-chip:hover { border-color: var(--on-card); }
.pp-chip[aria-pressed="true"] { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); }
.pp-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }


.pp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pp-card { appearance: none; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 18px; min-height: 116px; padding: var(--space-5); border: 1px solid var(--line-on-card); border-radius: var(--radius-card); background: var(--fill-on-card); color: var(--on-card); font-family: var(--font-sans); text-align: left; cursor: pointer; transition: background-color .25s, border-color .25s, color .25s; }
.pp-card:hover { border-color: var(--on-card); }
.pp-card svg { width: 26px; height: 26px; fill: currentColor; }
.pp-card__label { font-size: 16px; line-height: 20px; font-weight: 600; }
.pp-card[aria-pressed="true"] { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); }
.pp-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.pp-options { display: grid; gap: 16px; }
.pp-options__group { display: grid; gap: 8px; }
.pp-options__title { margin: 0; font-size: 13px; line-height: 16px; font-weight: 600; color: var(--on-card-muted); }
.pp-options__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pp-option { position: relative; display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 12px 18px; border: 1px solid var(--line-on-card); border-radius: var(--radius-card); background: var(--fill-on-card); color: var(--on-card); cursor: pointer; transition: background-color .25s, border-color .25s; }
.pp-option:hover { border-color: var(--on-card); }
.pp-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pp-option__dot { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border: 2px solid var(--on-card-body); border-radius: 50%; }
.pp-option__text { display: grid; gap: 2px; font-size: 15px; line-height: 20px; }
.pp-option__label { font-weight: 600; }
.pp-option__hint { color: var(--on-card-body); font-size: 14px; }
.pp-option.is-checked { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); }
.pp-option.is-checked .pp-option__dot { border-color: var(--on-accent); }
.pp-option.is-checked .pp-option__dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--on-accent); }
.pp-option.is-checked .pp-option__hint { color: var(--on-accent); }
.pp-option:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }

.pp-check { display: inline-flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 22px; color: var(--on-card); cursor: pointer; }
.pp-check--panel { color: var(--ink-body); }
.pp-check input { appearance: none; flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin: 0; border: 2px solid currentColor; border-radius: 6px; background: transparent; cursor: pointer; }
.pp-check input:checked { background: var(--accent-fill); border-color: var(--accent-fill); }
.pp-check input:checked::after { content: ""; width: 10px; height: 5px; margin-top: -3px; border: 2px solid var(--on-accent); border-top: 0; border-right: 0; transform: rotate(-45deg); }
.pp-check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pp-check input[aria-invalid="true"] { border-color: var(--signal); }
.pp-check a { color: inherit; }

/* ---------- Stückzahl ---------- */
.pp-stepper { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: var(--radius-pill); background: var(--paper); }
.pp-stepper__btn { appearance: none; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--panel); color: var(--ink); cursor: pointer; }
.pp-stepper__btn svg { width: 16px; height: 16px; fill: currentColor; }
.pp-stepper__btn:disabled { color: var(--field-placeholder); cursor: default; }
.pp-stepper__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pp-stepper input { width: 76px; min-height: 40px; border: 0; background: transparent; color: var(--field-ink); font-family: var(--font-sans); font-size: 18px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.pp-stepper input::-webkit-inner-spin-button, .pp-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pp-stepper input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

/* ---------- Dateien ---------- */
.pp-drop { position: relative; display: grid; justify-items: center; gap: 6px; padding: 28px 20px; border: 1px dashed var(--line-on-card); border-radius: var(--radius-card); background: var(--fill-on-card); color: var(--on-card-body); font-size: 14px; line-height: 20px; text-align: center; cursor: pointer; transition: border-color .25s; }
.pp-drop:hover, .pp-drop.is-over { border-color: var(--accent); border-style: solid; }
.pp-drop:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.pp-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pp-drop svg { width: 28px; height: 28px; margin-bottom: 4px; fill: var(--on-card); }
.pp-drop__title { font-size: 16px; line-height: 22px; font-weight: 600; color: var(--on-card); }
.pp-drop__title u { text-underline-offset: 3px; }
.pp-files { display: grid; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.pp-file { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 4px 4px 4px 16px; border: 1px solid var(--line-on-card); border-radius: var(--radius-pill); background: var(--fill-on-card); font-size: 14px; line-height: 20px; }
.pp-file svg { flex: none; width: 16px; height: 16px; fill: var(--on-card-body); }
.pp-count { margin: 6px 4px 0 0; text-align: right; font-size: 12px; line-height: 16px; color: var(--on-card-muted); font-variant-numeric: tabular-nums; }
.pp-count[data-full="true"] { color: var(--on-card); font-weight: 600; }
.pp-file__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--on-card); }
.pp-file__size { flex: none; color: var(--on-card-muted); font-variant-numeric: tabular-nums; }
.pp-file__remove { appearance: none; flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--on-card); cursor: pointer; }
.pp-file__remove svg { fill: currentColor; width: 14px; height: 14px; }
.pp-file__remove:hover { background: var(--fill-on-card); }
.pp-file__remove:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }

/* ---------- Hinweis ---------- */
.pp-hint { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; border-radius: var(--radius-card); background: var(--fill-on-card); color: var(--on-card-body); font-size: 14px; line-height: 20px; }
.pp-hint svg { flex: none; width: 18px; height: 18px; margin-top: 1px; fill: var(--accent); }
.pp-hint--warn svg { fill: var(--on-card); }
.pp-hint strong { font-weight: 600; color: var(--on-card); }

/* ---------- Abschnitt-Fuss & Senden ---------- */
.pp-sec-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; padding-top: 6px; }
.pp-sec-foot__note { align-self: center; margin: 0 auto 0 0; color: var(--on-card-muted); font-size: 13px; line-height: 18px; }
.pp-sec-foot__note .pp-req { margin-left: 0; }
.pp-send { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
/* Hinweis über dem Button: klein, gedämpft; der Punkt wird dunkel, sobald alles vollständig ist */
.pp-send__count { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-muted); font-variant-numeric: tabular-nums; transition: color .2s ease; }
.pp-send__count::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-muted); opacity: .5; }
.pp-send__count[data-state="ready"] { color: var(--ink); }
.pp-send__count[data-state="ready"]::before { background: var(--ink); opacity: 1; }
.pp-send__count[data-state="error"] { color: var(--signal); }
.pp-send__count[data-state="error"]::before { display: none; }
/* Noch nicht bereit: gedämpfter Button ohne Pfeil-Bewegung – klickbar bleibt er (springt zur ersten offenen Angabe) */
.pp-send .pp-btn { transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease; }
.pp-send .pp-btn[aria-disabled="true"] { background: rgba(0, 0, 0, .05); border-color: rgba(0, 0, 0, .12); color: var(--ink-muted); }
.pp-send .pp-btn[aria-disabled="true"] .pp-btn__arrow { opacity: .4; transform: none; }
.pp-send[data-ready="true"] .pp-btn { animation: pp-ready .5s cubic-bezier(.16, 1, .3, 1); }
@keyframes pp-ready { 40% { transform: scale(1.03); } }
.pp-send__legal { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.pp-send__legal a { color: inherit; text-underline-offset: 3px; }
.pp-send__legal a:hover { color: var(--ink); }
.pp-send .pp-btn { min-width: 280px; white-space: nowrap; }
.pp-start .pp-btn { white-space: nowrap; }

/* Inhalte einer geöffneten Karte erscheinen leicht gestaffelt: nur Deckkraft und Versatz, gleiche Dauer wie das Aufklappen */
.pp-acc__collapse[data-open="true"] .pp-acc__body > .pp-stack > * { animation: pp-rise .35s ease both; }
.pp-acc__collapse[data-open="true"] .pp-acc__body > .pp-stack > :nth-child(2) { animation-delay: .04s; }
.pp-acc__collapse[data-open="true"] .pp-acc__body > .pp-stack > :nth-child(n+3) { animation-delay: .08s; }
@keyframes pp-rise { from { opacity: 0; transform: translateY(8px); } }
/* Geöffnete Karte in den Vordergrund: kurzes Anheben, übrige Köpfe treten leicht zurück */
.pp-acc__item[data-open="true"] { animation: pp-lift .6s cubic-bezier(.16, 1, .3, 1); }
@keyframes pp-lift { 35% { transform: translateY(-3px); } }
.pp-acc__head { transition: opacity .35s ease; }
.pp-acc:has(.pp-acc__item[data-open="true"]) .pp-acc__item:not([data-open="true"]) .pp-acc__head { opacity: .62; }
.pp-acc:has(.pp-acc__item[data-open="true"]) .pp-acc__item:not([data-open="true"]) .pp-acc__head:hover,
.pp-acc:has(.pp-acc__item[data-open="true"]) .pp-acc__item:not([data-open="true"]) .pp-acc__head:focus-visible { opacity: 1; }
.pp-acc__head:hover .pp-acc__arrow { transform: translateY(3px); }
.pp-acc__item[data-open="true"] .pp-acc__head:hover .pp-acc__arrow { transform: rotate(180deg) translateY(3px); }
.pp-acc__head:hover .pp-acc__num { border-color: var(--on-card); color: var(--on-card); }

/* Two-column rows stay aligned when a label wraps (subgrid) and stack when space is tight (container query). */
.pp-acc__body { container-type: inline-size; }
@supports (grid-template-rows: subgrid) {
  .pp-grid-2 > .pp-field { grid-row: span 3; grid-template-rows: subgrid; row-gap: 8px; align-content: normal; }
  .pp-grid-2 > .pp-field > .pp-label { align-self: end; }
}
@supports not (grid-template-rows: subgrid) {
  .pp-grid-2 { align-items: end; }
}
@container (max-width: 620px) {
  .pp-grid-2, .pp-options__row { grid-template-columns: 1fr; }
  .pp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 420px) {
  .pp-cards { grid-template-columns: 1fr; }
}
@media (min-width: 641px) and (max-width: 1100px) {
  .pp-acc__body { padding-left: calc(var(--space-6) + 16px); padding-right: var(--space-6); }
}

@media (max-width: 820px) {
  .pp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pp-start__inner { padding: 0 20px 4px; }
  .pp-start .pp-btn { width: 100%; min-width: 0; padding-left: 24px; padding-right: 24px; }
  .pp-panel { border-radius: 24px; padding-bottom: 18px; }
  .pp-panel__head { padding: 20px; }
  .pp-panel__title { font-size: 40px; line-height: 36px; letter-spacing: -1px; }
  .pp-panel__intro { font-size: 16px; line-height: 25.6px; }
  .pp-panel__foot { padding: 18px 16px 0; }
  .pp-acc__item { border-radius: 24px; }
  .pp-acc__head { gap: 12px; padding: 18px 16px; border-radius: 24px; }
  .pp-acc__num { min-width: 40px; height: 26px; padding: 0 8px; font-size: 13px; }
  .pp-acc__title { font-size: 22px; line-height: 26px; letter-spacing: -.44px; }
  .pp-acc__arrow { width: 20px; font-size: 22px; }
  /* Mobil: «x Angaben» unter den Titel, damit lange Titel nicht in die Meta-Angabe laufen */
  .pp-acc__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; }
  .pp-acc__num { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
  .pp-acc__title { grid-column: 2; grid-row: 1; overflow-wrap: break-word; }
  .pp-acc__meta { grid-column: 2; grid-row: 2; }
  .pp-acc__arrow { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
  .pp-acc__body { padding: 4px 16px 22px; }
  .pp-grid-2, .pp-options__row { grid-template-columns: 1fr; }
  .pp-dims { grid-template-columns: 1fr; }
  .pp-dims__x { display: none; }
  .pp-cards { grid-template-columns: 1fr; }
  .pp-card { flex-direction: row; align-items: center; justify-content: flex-start; min-height: 60px; padding: 14px 18px; }
  .pp-send .pp-btn { width: 100%; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pp-start, .pp-reveal, .pp-start__inner, .pp-reveal__inner { transition: none; }
  .pp-acc__collapse, .pp-acc__collapse[data-open="true"] { transition: none; }
  .pp-acc__collapse[data-open="true"] .pp-acc__body > .pp-stack > *, .pp-acc__item[data-open="true"] { animation: none; }
  .pp-nav__indicator, .pp-tabs__indicator, .pp-acc__stop, .pp-acc__arrow, .pp-btn__arrow { transition: none; }
  .pp-send[data-ready="true"] .pp-btn { animation: none; }
}
.pp-error--panel { color: var(--signal); }

/* Checkbox auf card: als Pille wie die Chips, damit sie klar sichtbar ist */
.pp-check:not(.pp-check--panel) { align-items: center; min-height: 44px; padding: 10px 20px 10px 14px; border: 1px solid var(--line-on-card); border-radius: var(--radius-pill); background: var(--fill-on-card); font-weight: 600; transition: background-color .25s, border-color .25s; }
.pp-check:not(.pp-check--panel):hover { border-color: var(--on-card); }
.pp-check:not(.pp-check--panel) input { width: 20px; height: 20px; border-color: var(--on-card); border-radius: 50%; }
.pp-check:not(.pp-check--panel):has(input:checked) { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); }
.pp-check:not(.pp-check--panel) input:checked { background: var(--paper); border-color: var(--paper); }
.pp-check:not(.pp-check--panel) input:checked::after { border-color: var(--accent-fill); }
.pp-check:not(.pp-check--panel):has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pp-check:not(.pp-check--panel) input:focus-visible { outline: none; }
.pp-field > .pp-check { justify-self: start; }

/* ---------- Formular-Seite (nur was das Formular braucht) ---------- */
.pp-form .pp-acc__body > .pp-stack { max-width: 900px; }
.pp-form .pp-panel__foot > .pp-send { max-width: none; }
.pp-form .pp-acc__item { scroll-margin-top: 120px; }
.pp-form .pp-panel__title, .pp-form [data-field] { scroll-margin-top: 140px; }
.pp-form .pp-error { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pp-form [data-field="dateien"] .pp-error { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
.pp-form .pp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.pp-form .sent-card { margin: 0; padding: 4px var(--space-12) 0; color: var(--ink); }
.pp-form .sent-note { margin: 0 0 14px; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.pp-form .sent-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin: 0; max-width: 900px; }
.pp-form .sent-row { display: grid; align-content: start; gap: 4px; padding: 16px 0; border-top: 1px solid rgba(0, 0, 0, .08); min-width: 0; }
.pp-form .sent-row dt { font-size: 11px; line-height: 16.5px; font-weight: 700; letter-spacing: .88px; text-transform: uppercase; color: var(--ink-muted); }
.pp-form .sent-row dd { margin: 0; font-size: 17px; line-height: 24px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.pp-form .sent-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pp-form .pp-panel__foot:has(.sent-actions) { padding-left: var(--space-12); }
.pp-form .sent-actions .pp-btn--light { background: transparent; border-color: var(--ink); color: var(--ink); }
.pp-form .pp-panel > .pp-hint { margin: 0 var(--space-12) var(--space-5); background: rgba(0, 0, 0, .05); color: var(--ink-body); }
.pp-form .pp-panel > .pp-hint svg { fill: var(--ink); }
@media (max-width: 760px) { .pp-form .sent-list { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .pp-form .sent-card { padding: 0 20px; }
  .pp-form .pp-panel > .pp-hint { margin: 0 20px var(--space-5); }
  .pp-form .pp-panel__foot:has(.sent-actions) { padding-left: 20px; }
  .pp-form .sent-actions .pp-btn { width: 100%; }
}
