/* FLX Development – Komponenten (gemeinsam für flx-development.com und shop.flx-development.com)
   Benötigt: tokens.css (vorher laden). JS: components.js (defer). Vorschau aller Zustände: shared/testseite/.

   Regeln: Akzentblau nur für die Hauptaktion einer Ansicht. Schatten nur unter Dialogen und Menüs.
   Keine Verläufe, kein Glow, kein Weichzeichner, keine Icon-Kacheln, keine Deko-Pills, keine Eyebrows.
   Fokus: immer sichtbar per :focus-visible mit var(--focus-ring). Handy = max-width 640px, Kopfzeile mobil ab 760px.

   ÜBERSICHT (Präfix c- = Komponente, t- = Schrift, u- = Hilfsklasse)
   Layout      .c-container  .c-skip (Sprunglink)  .u-sr (nur Screenreader)  .u-num (tabular-nums)
   Schrift     .t-display .t-h1 .t-h2 .t-h2s .t-h3 .t-lead .t-body .t-small .t-tiny .t-muted .t-faint .t-mono
   Wortmarke   .c-wordmark > b(FLX) + span(Development)   Kurzform: .c-wordmark-short
   Kopfzeile   .c-header  __inner __brand __nav (a[aria-current=page]) __right __lang __login __account __avatar
               __mobile (Konto-/Menü-Symbol 44x44)   Handy-Menü: .c-mmenu (Vollbild-Screen)
   Footer      .c-footer  __inner __brand __text __cols __col __title
   Buttons     .c-btn + --primary | --secondary | --ghost | --danger   Größen --s (32) | Standard (40) | --l (50)
               --block (volle Breite)  --touch (auf dem Handy 50 px + volle Breite)
               Zustände: :hover :active :focus-visible  [aria-busy=true] (Spinner, gleiche Breite)  :disabled/[aria-disabled=true]
               .c-iconbtn (+ --bare, --l = 44x44) immer mit aria-label   .c-link-ext (Pfeil ↗)
               Knopfgruppe: .c-actions (Handy: gestapelt 12 px, zum folgenden Bild ≥ 32 px – Regel am Dateiende)
   Cookie      .c-cookie (Hinweis unten, JS: cookie-hinweis.js, Markup: _shared/php/footer.php)
   Felder      .c-field > .c-label + .c-input | .c-textarea | .c-inputwrap(.c-inputwrap__icon) + .c-hint | .c-error
               Fehler: .c-field--error oder [aria-invalid=true]
   Auswahl     .c-check (Checkbox/Radio: label > input + span)  .c-check__sub  .c-switch  .c-seg (Segment)
               .c-otp (2FA, 6 Felder)  .c-plan (Plan-Karte, ganze Karte klickbar)
   Dropdown    .c-select [data-c-select] > input[type=hidden] + .c-select__btn + .c-select__list(li[role=option])
               .c-select__prefix  .c-select__value  .c-select__opt-title  .c-select__opt-desc
   Menü        .c-menuwrap > [data-c-menu] + .c-menu  __item  __item--danger  __sep  __kbd  (Haken: [aria-checked=true])
   Dialog      .c-modal (hidden) > .c-modal__scrim + .c-dialog  __close __title __text __body __actions
               --wide (880 px)  --sheet (immer als Sheet). Auf dem Handy wird jeder Dialog zum Sheet.
   Toast       .c-toasts > .c-toast --success | --error | --info   (per JS: FLX.toast)
   Hinweise    .c-note --info | --warn | --error  __title __text __action
   Status      .c-status --ok | --warn | --danger | --off     .c-spinner  .c-progress  .c-skel  .c-empty
   Akkordeon   .c-acc > .c-acc__item > .c-acc__btn[aria-expanded] + .c-acc__panel
   Code        .c-code  __head __file __body  (Zeilen: span.c-code__ln)  Farben .tk-c .tk-s .tk-k .tk-p
   Kopieren    [data-c-copy="Text"] oder [data-c-copy-target="#id"]   .c-copyfield  __value __btn
   Tooltip     [data-c-tip="Text"] (CSS, zusätzlich aria-label setzen)
   Navigation  .c-tabs (Reiter)  .c-steps (Schritte)  .c-crumbs (Pfad)  .c-pages (Seitenzahlen)
   Daten       .c-table (+ .c-table-wrap)  .c-kv (Schlüssel-Wert)  .c-glist (gruppierte Liste, Handy)
               .c-subrow (Abo-Zeile)  .c-price  .c-download
*/

/* ---------- Basis ---------- */
html { -webkit-text-size-adjust: 100%; }
body { font-size: var(--fs-body); line-height: var(--lh-body); }
:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); }
a:focus-visible { border-radius: 4px; }
img, svg { display: block; max-width: 100%; }
svg { flex: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.c-container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-8); }
.u-sr { position: absolute !important; margin: -1px; padding: 0; border: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.u-num { font-variant-numeric: tabular-nums; }
.c-skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--surface-2); color: var(--text-1); padding: 8px 12px; border-radius: var(--r-control); }
.c-skip:focus-visible { top: 10px; }

/* ---------- Schrift ---------- */
.t-display { font-size: var(--fs-display); line-height: var(--lh-display); letter-spacing: var(--ls-display); font-weight: 600; margin: 0; }
.t-h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); font-weight: 600; margin: 0; }
.t-h2 { font-size: var(--fs-h2); line-height: 1.12; letter-spacing: var(--ls-h2); font-weight: 600; margin: 0; }
.t-h2s { font-size: var(--fs-h2-s); line-height: 1.15; letter-spacing: var(--ls-h2); font-weight: 600; margin: 0; }
.t-h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: var(--ls-h3); font-weight: 600; margin: 0; }
.t-lead { font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--text-2); margin: 0; }
.t-body { font-size: var(--fs-body); line-height: var(--lh-body); }
.t-small { font-size: var(--fs-small); line-height: 1.5; }
.t-tiny { font-size: var(--fs-tiny); line-height: 1.5; }
.t-muted { color: var(--text-2); }
.t-faint { color: var(--text-3); }
.t-mono { font-family: var(--font-mono); }

/* ---------- Wortmarke ---------- */
.c-wordmark { display: inline-flex; align-items: baseline; gap: .32em; font-size: 15px; line-height: 1; color: var(--text-1); white-space: nowrap; }
.c-wordmark b { font-weight: 700; letter-spacing: -0.035em; }
.c-wordmark span { font-weight: 400; color: var(--text-2); letter-spacing: -0.01em; }
a.c-wordmark:hover { color: var(--text-1); }
/* Logo vor der Wortmarke (seit 22.11.2026). width/height-Attribute 32x25 = Seitenverhältnis der Datei; Höhe fest, Breite folgt. */
.c-wordmark__logo { display: block; flex: none; align-self: center; height: 25px; width: auto; margin: -5px .2em -5px 0; } /* Minus-Rand: Zeile bleibt so hoch wie der Text, Logo mittig dazu */
.c-wordmark-short { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: var(--surface-2); color: var(--text-1); font-weight: 700; letter-spacing: -0.035em; font-size: 20px; }

/* ---------- Spinner ---------- */
.c-spinner { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor; border-right-color: transparent; animation: c-spin .7s linear infinite; vertical-align: middle; }
.c-spinner--l { width: 20px; height: 20px; border-width: 2px; }
@keyframes c-spin { to { transform: rotate(360deg); } }

/* ---------- Buttons ---------- */
.c-btn {
  --btn-bg: var(--surface-2); --btn-fg: var(--text-1); --btn-bd: var(--line-2);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h-control); padding: 0 16px; border: 1px solid var(--btn-bd); border-radius: var(--r-control);
  background: var(--btn-bg); color: var(--btn-fg); font-family: var(--font-sans); font-size: 14px; font-weight: 500; line-height: 1;
  white-space: nowrap; cursor: pointer; text-decoration: none; user-select: none; transition: background-color .12s, border-color .12s;
}
.c-btn:hover { color: var(--btn-fg); }
.c-btn--primary { --btn-bg: var(--accent); --btn-fg: #fff; --btn-bd: var(--accent); }
.c-btn--primary:hover { --btn-bg: var(--accent-hover); --btn-bd: var(--accent-hover); }
.c-btn--primary:active { --btn-bg: var(--accent-pressed); --btn-bd: var(--accent-pressed); }
.c-btn--secondary:hover, .c-btn--danger:hover { --btn-bg: #1d1d1d; --btn-bd: #383838; }
.c-btn--secondary:active, .c-btn--danger:active { --btn-bg: #141414; }
.c-btn--ghost { --btn-bg: transparent; --btn-bd: transparent; }
.c-btn--ghost:hover { --btn-bg: var(--surface-2); }
.c-btn--ghost:active { --btn-bg: #141414; }
.c-btn--danger { --btn-fg: var(--danger); }
.c-btn:focus-visible { box-shadow: var(--focus-ring); }
.c-btn:disabled, .c-btn[aria-disabled="true"]:not([aria-busy="true"]) { opacity: .4; cursor: not-allowed; pointer-events: none; }
.c-btn[aria-busy="true"] { cursor: progress; pointer-events: none; color: transparent; }
.c-btn[aria-busy="true"] > * { visibility: hidden; }
.c-btn[aria-busy="true"]::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; border: 1.5px solid var(--btn-fg); border-right-color: transparent; animation: c-spin .7s linear infinite;
}
.c-btn--s { height: var(--h-control-s); padding: 0 12px; font-size: 13px; }
.c-btn--l { height: var(--h-control-mobile); padding: 0 24px; font-size: 17px; font-weight: 600; border-radius: 12px; }
.c-btn--block { display: flex; width: 100%; }
.c-btn svg { width: 16px; height: 16px; }

.c-iconbtn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: var(--r-control);
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text-1); cursor: pointer; transition: background-color .12s;
}
.c-iconbtn:hover { background: #1d1d1d; color: var(--text-1); }
.c-iconbtn--s { width: 32px; height: 32px; }
.c-iconbtn--bare { border-color: transparent; background: transparent; color: var(--text-2); }
.c-iconbtn--bare:hover { background: var(--surface-2); color: var(--text-1); }
.c-iconbtn--l { width: 44px; height: 44px; }
.c-iconbtn svg { width: 16px; height: 16px; }
.c-iconbtn--l svg { width: 22px; height: 22px; }
.c-iconbtn:disabled { opacity: .4; cursor: not-allowed; }

.c-link-ext::after { content: "\2197"; display: inline-block; margin-left: .3em; font-size: .85em; }

/* ---------- Felder ---------- */
.c-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.c-label { font-size: var(--fs-small); color: var(--text-2); }
.c-input, .c-textarea {
  width: 100%; height: var(--h-control); padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-control);
  background: var(--surface-1); color: var(--text-1); font: 14px/1.4 var(--font-sans); transition: border-color .12s, box-shadow .12s;
}
.c-textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; display: block; }
.c-input::placeholder, .c-textarea::placeholder { color: var(--text-3); opacity: 1; }
.c-input:hover, .c-textarea:hover { border-color: #383838; }
.c-input:focus, .c-textarea:focus { border-color: var(--link); box-shadow: 0 0 0 3px rgba(154, 157, 255, .16); }
.c-input:disabled, .c-textarea:disabled { opacity: .45; cursor: not-allowed; }
.c-field:has(:disabled) .c-label { color: var(--text-3); opacity: .7; }
.c-input--mono { font-family: var(--font-mono); font-size: 13px; }
.c-field--error .c-input, .c-field--error .c-textarea, .c-input[aria-invalid="true"], .c-textarea[aria-invalid="true"] { border-color: var(--danger); }
.c-field--error .c-input:focus, .c-input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(242, 85, 90, .16); }
.c-hint { margin: 0; font-size: var(--fs-tiny); color: var(--text-3); }
.c-error { margin: 0; display: flex; align-items: center; gap: 6px; font-size: var(--fs-tiny); color: var(--danger); }
.c-error svg { width: 12px; height: 12px; }
.c-inputwrap { position: relative; }
.c-inputwrap__icon { position: absolute; left: 12px; top: 50%; width: 14px; height: 14px; margin-top: -7px; color: var(--text-3); pointer-events: none; }
.c-inputwrap .c-input { padding-left: 32px; }

/* ---------- Checkbox, Radio ---------- */
.c-check { display: inline-grid; grid-template-columns: 16px 1fr; column-gap: 10px; align-items: start; font-size: 14px; line-height: 20px; color: var(--text-1); cursor: pointer; }
.c-check input {
  appearance: none; -webkit-appearance: none; margin: 2px 0 0; width: 16px; height: 16px; border: 1px solid #3a3a3a; border-radius: 4px;
  background: var(--surface-1) center / 12px no-repeat; cursor: pointer; transition: background-color .12s, border-color .12s;
}
.c-check input[type="radio"] { border-radius: 50%; }
.c-check input:checked, .c-check input:indeterminate { background-color: var(--accent); border-color: var(--accent); }
.c-check input[type="checkbox"]:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.c-check input[type="checkbox"]:indeterminate { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6h6' stroke='%23fff' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.c-check input[type="radio"]:checked { background: var(--accent); box-shadow: inset 0 0 0 3.5px var(--accent), inset 0 0 0 8px #fff; }
.c-check input[type="radio"]:checked:focus-visible { box-shadow: inset 0 0 0 3.5px var(--accent), inset 0 0 0 8px #fff, var(--focus-ring); }
.c-check input:disabled { opacity: .4; cursor: not-allowed; }
.c-check:has(input:disabled) { color: var(--text-3); cursor: not-allowed; }
.c-check__sub { grid-column: 2; font-size: var(--fs-tiny); color: var(--text-3); line-height: 1.5; }
.c-checks { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Schalter ---------- */
.c-switch { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.c-switch input {
  appearance: none; -webkit-appearance: none; position: relative; margin: 0; width: 32px; height: 20px; border-radius: 10px;
  background: #2e2e2e; cursor: pointer; transition: background-color .15s;
}
.c-switch input::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.c-switch input:checked { background: var(--accent); }
.c-switch input:checked::after { transform: translateX(12px); }
.c-switch input:disabled { opacity: .4; cursor: not-allowed; }
.c-switch:has(input:disabled) { color: var(--text-3); cursor: not-allowed; }

/* ---------- Segment ---------- */
.c-seg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line-2); border-radius: var(--r-control); background: var(--surface-1); }
.c-seg > a, .c-seg > button, .c-seg > label > span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 56px; height: 28px; padding: 0 14px; border-radius: 6px;
  border: 0; background: transparent; color: var(--text-2); font-size: 13px; cursor: pointer; text-decoration: none; transition: background-color .12s;
}
.c-seg > label { display: flex; flex: 1; position: relative; }
.c-seg > label > span { flex: 1; }
.c-seg > label > input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.c-seg > a:hover, .c-seg > button:hover, .c-seg > label > span:hover { color: var(--text-1); }
.c-seg > a[aria-current], .c-seg > button[aria-pressed="true"], .c-seg > label > input:checked + span { background: #262626; color: var(--text-1); }
.c-seg > label > input:focus-visible + span { box-shadow: var(--focus-ring); }
.c-seg--block { display: flex; }
.c-seg--block > * { flex: 1; }

/* ---------- 2FA-Code ---------- */
.c-otp { display: flex; gap: 8px; }
.c-otp input {
  width: 44px; height: 50px; padding: 0; text-align: center; border: 1px solid var(--line-2); border-radius: var(--r-control);
  background: var(--surface-1); color: var(--text-1); font: 500 20px/1 var(--font-mono); caret-color: var(--text-1);
}
.c-otp input:nth-child(4) { margin-left: 10px; }
.c-otp input:focus { border-color: var(--link); box-shadow: 0 0 0 3px rgba(154, 157, 255, .16); }
.c-otp--error input { border-color: var(--danger); }

/* ---------- Plan-Karten ---------- */
.c-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.c-plan { position: relative; display: block; padding: 18px 18px 20px; border: 1px solid var(--line-2); border-radius: var(--r-card); background: var(--surface-1); cursor: pointer; transition: border-color .12s; }
.c-plan:hover { border-color: #3a3a3a; }
.c-plan:has(input:checked) { border-color: var(--link); }
.c-plan:has(input:focus-visible) { box-shadow: var(--focus-ring); }
.c-plan > input { position: absolute; right: 18px; top: 18px; margin: 0; }
.c-plan > input.u-check { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; border: 1px solid #3a3a3a; background: var(--surface-1); }
.c-plan > input.u-check:checked { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 3.5px var(--accent), inset 0 0 0 8px #fff; }
.c-plan__name { font-size: 15px; font-weight: 600; }
.c-plan__desc { font-size: var(--fs-small); color: var(--text-3); margin-top: 2px; }
.c-plan__price { margin-top: 18px; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.c-plan__price small { font-size: 13px; font-weight: 400; color: var(--text-3); }
.c-plan ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; font-size: var(--fs-small); color: var(--text-2); }
.c-plan li { display: flex; gap: 8px; align-items: center; }
.c-plan li svg { width: 12px; height: 12px; color: var(--text-2); }

/* ---------- Dropdown (eigenes, Listbox) ---------- */
.c-select { position: relative; display: inline-block; min-width: 180px; }
.c-select--block { display: block; width: 100%; }
.c-select__btn {
  display: flex; align-items: center; gap: 6px; width: 100%; height: var(--h-control); padding: 0 10px 0 12px;
  border: 1px solid var(--line-2); border-radius: var(--r-control); background: var(--surface-1); color: var(--text-1);
  font-size: 14px; text-align: left; cursor: pointer; transition: border-color .12s;
}
.c-select__btn:hover { border-color: #383838; }
.c-select__btn[aria-expanded="true"] { border-color: var(--link); box-shadow: 0 0 0 3px rgba(154, 157, 255, .16); }
.c-select__btn:focus-visible { border-color: var(--link); box-shadow: var(--focus-ring); }
.c-select__btn:disabled { opacity: .45; cursor: not-allowed; }
.c-select--s .c-select__btn { height: var(--h-control-s); font-size: 13px; }
.c-select__prefix { color: var(--text-3); }
.c-select__value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-select__value.is-placeholder { color: var(--text-3); }
.c-select__chev { width: 14px; height: 14px; color: var(--text-2); transition: transform .15s; }
.c-select__btn[aria-expanded="true"] .c-select__chev { transform: rotate(180deg); }
.c-field--error .c-select__btn { border-color: var(--danger); }
.c-select__list, .c-menu {
  position: absolute; z-index: 40; margin: 0; padding: 4px; list-style: none; border: 1px solid var(--line-2); border-radius: var(--r-menu);
  background: var(--surface-1); box-shadow: var(--shadow-menu); max-height: 320px; overflow-y: auto;
}
.c-select__list { left: 0; right: 0; top: calc(100% + 6px); }
.c-select__list.is-up { top: auto; bottom: calc(100% + 6px); }
.c-select__list [role="option"], .c-menu__item {
  position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 34px; padding: 7px 32px 7px 10px;
  border-radius: 6px; font-size: 14px; line-height: 1.35; color: var(--text-1); cursor: pointer;
}
.c-select__list [role="option"].is-active, .c-select__list [role="option"]:hover { background: var(--surface-2); }
.c-select__list [role="option"][aria-disabled="true"] { color: var(--text-3); cursor: not-allowed; background: none; }
.c-select__list [role="option"][aria-selected="true"]::after, .c-menu__item[aria-checked="true"]::after {
  content: ""; position: absolute; right: 10px; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.c-select__opt-desc { font-size: var(--fs-tiny); color: var(--text-3); }

/* ---------- Menü (Konto, Zeile, Kontext, Sprache) ---------- */
.c-menuwrap { position: relative; display: inline-block; }
.c-menu { min-width: 200px; top: calc(100% + 6px); right: 0; }
.c-menu--left { right: auto; left: 0; }
.c-menu--static { position: static; display: block; box-shadow: var(--shadow-menu); }
.c-menu__item { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding-right: 10px; width: 100%; border: 0; background: none; text-align: left; text-decoration: none; font-family: inherit; }
.c-menu__item[aria-checked] { padding-right: 32px; }
.c-menu__item:hover, .c-menu__item:focus-visible, .c-menu__item.is-active { background: var(--surface-2); color: var(--text-1); box-shadow: none; }
.c-menu__item--danger, .c-menu__item--danger:hover, .c-menu__item--danger:focus-visible { color: var(--danger); }
.c-menu__kbd { font-size: var(--fs-tiny); color: var(--text-3); }
.c-menu__sep { height: 1px; margin: 4px -4px; background: var(--line-2); list-style: none; }
.c-menu > li { list-style: none; }
.c-menu form { margin: 0; }

/* ---------- Kopfzeile ---------- */
.c-header { position: sticky; top: 0; z-index: 30; height: var(--h-header); background: var(--bg); border-bottom: 1px solid var(--line-1); }
.c-header__inner { display: flex; align-items: center; height: 100%; gap: 40px; }
.c-header__nav { display: flex; align-items: center; gap: 28px; }
.c-header__nav a { font-size: 14px; color: var(--text-2); }
.c-header__nav a:hover, .c-header__nav a[aria-current] { color: var(--text-1); }
.c-header__right { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.c-header__lang { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 6px; border: 0; border-radius: 6px; background: none; color: var(--text-2); font-size: 13px; cursor: pointer; }
.c-header__lang:hover, .c-header__lang[aria-expanded="true"] { color: var(--text-1); }
.c-header__lang svg { width: 10px; height: 10px; }
.c-header__login { font-size: 14px; font-weight: 500; color: var(--text-1); }
.c-header__login:hover { color: var(--text-1); text-decoration: underline; text-underline-offset: 3px; }
.c-header__account { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px 0 4px; border: 1px solid var(--line-2); border-radius: var(--r-control); background: var(--surface-1); font-size: 13px; cursor: pointer; }
.c-header__account:hover, .c-header__account[aria-expanded="true"] { background: var(--surface-2); }
.c-header__account svg { width: 10px; height: 10px; color: var(--text-2); }
.c-header__avatar { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: #262626; font-size: 10px; font-weight: 600; letter-spacing: .02em; }
.c-header__account .c-header__avatar svg { width: 12px; height: 12px; color: var(--text-1); } /* Verwaltung: Symbol statt Initialen (24.11.2026) */
.c-header__mobile { display: none; margin-left: auto; align-items: center; gap: 0; margin-right: -10px; }
.c-header__mobile .c-iconbtn { color: var(--text-1); }

@media (max-width: 760px) {
  .c-header { height: 52px; }
  .c-header__nav, .c-header__right { display: none; }
  .c-header__mobile { display: flex; }
  .c-header .c-wordmark { font-size: 17px; }
  .c-header .c-menu { right: 0; }
}
/* Mittlere Breiten (seit 22.11.2026, Punkt „Client-Mods“): Bis zu sieben Punkte passen erst ab 1024 px neben
   Wortmarke und Anmelden. Darunter gilt die Handy-Kopfzeile mit Menü, darüber etwas engere Abstände. */
.c-header__nav a { white-space: nowrap; }
@media (min-width: 761px) and (max-width: 1180px) {
  .c-header__inner { gap: 28px; }
  .c-header__nav { gap: 20px; }
}
@media (min-width: 761px) and (max-width: 1023px) {
  .c-header__nav, .c-header__right { display: none; }
  .c-header__mobile { display: flex; }
}

/* ---------- Handy-Menü (Vollbild-Screen) ---------- */
.c-mmenu { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: var(--bg); overflow-y: auto; padding: 0 16px calc(24px + env(safe-area-inset-bottom)); }
.c-mmenu__top { display: flex; align-items: center; justify-content: space-between; height: 52px; padding-left: 4px; margin-right: -6px; flex: none; }
.c-mmenu__top .c-wordmark { font-size: 17px; }
.c-mmenu__top .c-iconbtn { color: var(--text-1); }
.c-mmenu .c-glist { margin-top: 16px; }
.c-mmenu .c-glist + .c-glist { margin-top: 24px; }
.c-mmenu__bottom { margin-top: auto; padding-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.c-mmenu__legal { text-align: center; font-size: 13px; color: var(--text-3); }
.c-mmenu__legal a { color: var(--text-3); }
.c-mmenu__legal a:hover { color: var(--text-2); }

/* ---------- Gruppierte Liste (Handy, iOS-Stil) ---------- */
.c-glist { list-style: none; margin: 0; padding: 0; background: var(--surface-1); border-radius: var(--r-card); overflow: hidden; }
.c-glist > li { position: relative; }
.c-glist > li + li::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--line-1); }
.c-glist__row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 16px; color: var(--text-1); font-size: 17px; text-decoration: none; }
a.c-glist__row:hover { color: var(--text-1); background: #141414; }
a.c-glist__row:focus-visible { box-shadow: inset 0 0 0 2px var(--link); border-radius: var(--r-card); }
.c-glist__main { flex: 1; min-width: 0; }
.c-glist__title { display: flex; justify-content: space-between; gap: 12px; }
.c-glist__sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; color: var(--text-2); margin-top: 2px; }
.c-glist__meta { color: var(--text-3); font-size: 15px; }
.c-glist__chev { width: 16px; height: 16px; color: var(--text-3); }
.c-glist__row .c-seg { margin-left: auto; }
.c-glist__row .c-seg > a { min-width: 46px; height: 32px; font-size: 15px; }

/* ---------- Footer ---------- */
.c-footer { border-top: 1px solid var(--line-1); padding: 64px 0 72px; font-size: 13px; }
.c-footer__inner { display: flex; justify-content: space-between; gap: 48px; }
.c-footer__brand { max-width: 380px; }
.c-footer__text { margin: 16px 0 0; color: var(--text-3); line-height: 1.65; }
.c-footer__copy { margin: 8px 0 0; color: var(--text-3); font-size: .875em; }
.c-footer__cols { display: flex; gap: 64px; }
.c-footer__title { margin: 0 0 12px; font-size: 13px; font-weight: 500; color: var(--text-1); }
.c-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.c-footer__col a { color: var(--text-3); }
.c-footer__col a:hover { color: var(--text-1); }
@media (max-width: 760px) {
  .c-footer { padding: 40px 0 48px; }
  .c-footer__inner { flex-direction: column; gap: 32px; }
  .c-footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .c-footer__col a { display: inline-block; padding: 3px 0; font-size: 15px; }
}

/* ---------- Dialog und Sheet ---------- */
.c-modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 24px; overflow-y: auto; }
.c-modal__scrim { position: fixed; inset: 0; background: var(--scrim); }
.c-dialog {
  position: relative; width: 100%; max-width: 440px; padding: 24px; border: 1px solid var(--line-2); border-radius: var(--r-dialog);
  background: var(--surface-1); box-shadow: var(--shadow-dialog);
}
.c-dialog--wide { max-width: 880px; }
.c-dialog--static { position: relative; z-index: auto; }
.c-dialog__close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; }
.c-dialog__title { margin: 4px 40px 0 0; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.c-dialog__text { margin: 8px 0 0; font-size: 14px; color: var(--text-2); line-height: 1.55; }
.c-dialog__body { margin-top: 20px; display: grid; gap: 16px; }
.c-dialog__actions { margin-top: 24px; display: flex; justify-content: flex-end; gap: 8px; }
.c-dialog.is-nudge { animation: c-nudge .25s; }
@keyframes c-nudge { 30% { transform: translateX(-4px); } 60% { transform: translateX(4px); } }
.c-dialog--sheet, .c-dialog--sheet-demo { border-radius: var(--r-sheet) var(--r-sheet) 0 0; }
.c-modal:has(.c-dialog--sheet) { place-items: end center; padding: 0; }
.c-dialog--sheet { max-width: none; border-bottom: 0; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.c-dialog--sheet::before, .c-dialog--sheet-demo::before { content: ""; display: block; width: 36px; height: 5px; margin: -12px auto 14px; border-radius: 3px; background: #3a3a3a; }
body.c-noscroll { overflow: hidden; }
@media (max-width: 640px) {
  .c-modal { place-items: end center; padding: 0; }
  .c-dialog:not(.c-dialog--static) { max-width: none; max-height: 92vh; overflow-y: auto; border-radius: var(--r-sheet) var(--r-sheet) 0 0; border-bottom: 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); }
  .c-dialog:not(.c-dialog--static)::before { content: ""; display: block; width: 36px; height: 5px; margin: -8px auto 14px; border-radius: 3px; background: #3a3a3a; }
  .c-dialog:not(.c-dialog--static) .c-dialog__actions { flex-direction: column-reverse; }
  .c-dialog:not(.c-dialog--static) .c-dialog__actions .c-btn { height: var(--h-control-mobile); border-radius: 12px; font-size: 17px; width: 100%; }
}

/* ---------- Toast ---------- */
.c-toasts { position: fixed; right: 24px; bottom: 24px; z-index: 80; display: flex; flex-direction: column; gap: 10px; width: 360px; max-width: calc(100vw - 32px); pointer-events: none; }
.c-toast {
  position: relative; display: grid; grid-template-columns: 16px 1fr; column-gap: 12px; padding: 14px 40px 14px 14px; pointer-events: auto;
  border: 1px solid var(--line-2); border-radius: var(--r-menu); background: var(--surface-1); box-shadow: var(--shadow-menu); font-size: 14px;
  animation: c-toast-in .18s ease-out;
}
.c-toast.is-out { animation: c-toast-out .15s ease-in forwards; }
@keyframes c-toast-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes c-toast-out { to { opacity: 0; transform: translateY(8px); } }
.c-toast__icon { width: 16px; height: 16px; margin-top: 2px; color: var(--text-2); }
.c-toast--success .c-toast__icon { color: var(--ok); }
.c-toast--error .c-toast__icon { color: var(--danger); }
.c-toast__title { font-weight: 500; color: var(--text-1); line-height: 20px; }
.c-toast__text { grid-column: 2; font-size: 13px; color: var(--text-2); margin-top: 2px; }
.c-toast__action { grid-column: 2; justify-self: start; margin-top: 10px; padding: 0; border: 0; background: none; color: var(--text-1); font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.c-toast__action:hover { color: var(--text-1); }
.c-toast__close { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; }
.c-toast__close svg { width: 12px; height: 12px; }
.c-toasts--static { position: static; width: auto; max-width: none; pointer-events: auto; flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 20px; }
.c-toasts--static .c-toast { width: 360px; max-width: 100%; animation: none; }
@media (max-width: 640px) { .c-toasts:not(.c-toasts--static) { left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: auto; max-width: none; } }

/* ---------- Hinweise im Inhalt ---------- */
.c-note { display: grid; grid-template-columns: 16px 1fr; column-gap: 12px; padding: 16px; border: 1px solid var(--line-1); border-radius: var(--r-card); background: var(--surface-1); font-size: 14px; }
.c-note > svg { width: 16px; height: 16px; margin-top: 2px; color: var(--text-2); }
.c-note--warn > svg { color: var(--warn); }
.c-note--error > svg { color: var(--danger); }
.c-note__title { font-weight: 500; line-height: 20px; }
.c-note__text { grid-column: 2; margin: 4px 0 0; font-size: 13px; color: var(--text-2); }
.c-note__action { grid-column: 2; margin-top: 12px; justify-self: start; }

/* ---------- Status, Fortschritt, Platzhalter, leer, Tooltip ---------- */
.c-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-1); white-space: nowrap; }
.c-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); flex: none; }
.c-status--ok::before { background: var(--ok); }
.c-status--warn::before { background: var(--warn); }
.c-status--danger::before { background: var(--danger); }
.c-progress { display: grid; gap: 8px; font-size: 13px; }
.c-progress__head { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.c-progress__head span:last-child { color: var(--text-2); }
.c-progress__bar { height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.c-progress__bar > span { display: block; height: 100%; background: var(--text-1); border-radius: 2px; }
.c-skel { display: block; height: 12px; border-radius: 4px; background: var(--surface-2); animation: c-pulse 1.4s ease-in-out infinite; }
@keyframes c-pulse { 50% { opacity: .55; } }
.c-skel-list { border-top: 1px solid var(--line-1); }
.c-skel-row { display: flex; align-items: center; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line-1); }
.c-skel-row > div { flex: 1; display: grid; gap: 10px; }
.c-empty { padding: 40px 24px; border: 1px dashed var(--line-2); border-radius: var(--r-card); text-align: center; }
.c-empty__title { margin: 0; font-size: 15px; font-weight: 600; }
.c-empty__text { max-width: 400px; margin: 8px auto 20px; font-size: 14px; color: var(--text-2); }
[data-c-tip] { position: relative; }
[data-c-tip]::after {
  content: attr(data-c-tip); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); z-index: 50;
  padding: 5px 8px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface-2); color: var(--text-1);
  font: 500 12px/1.3 var(--font-sans); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s .25s;
}
[data-c-tip]:hover::after, [data-c-tip]:focus-visible::after, [data-c-tip].is-tip::after { opacity: 1; }

/* ---------- Akkordeon ---------- */
.c-acc { border-top: 1px solid var(--line-1); }
.c-acc__item { border-bottom: 1px solid var(--line-1); }
.c-acc__btn { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 18px 0; border: 0; background: none; color: var(--text-1); font-size: 15px; font-weight: 500; text-align: left; cursor: pointer; }
.c-acc__btn:focus-visible { border-radius: 4px; }
.c-acc__btn svg { width: 14px; height: 14px; color: var(--text-2); }
.c-acc__btn .i-minus, .c-acc__btn[aria-expanded="true"] .i-plus { display: none; }
.c-acc__btn[aria-expanded="true"] .i-minus { display: block; }
.c-acc__panel { padding: 0 32px 20px 0; font-size: 14px; color: var(--text-2); }
.c-acc__panel > :first-child { margin-top: 0; }
.c-acc__panel > :last-child { margin-bottom: 0; }

/* ---------- Code-Block und Kopieren ---------- */
.c-code { border: 1px solid var(--line-1); border-radius: var(--r-card); background: var(--surface-1); overflow: hidden; }
.c-code__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 40px; padding: 0 8px 0 14px; border-bottom: 1px solid var(--line-1); }
.c-code__file { font: 12px var(--font-mono); color: var(--text-3); }
.c-code__body { margin: 0; padding: 16px 0; overflow-x: auto; font: 13px/1.75 var(--font-mono); color: var(--text-1); tab-size: 2; }
.c-code__body code { display: block; min-width: max-content; padding: 0 16px; font: inherit; }
.c-code__ln { display: inline-block; width: 2ch; margin-right: 16px; text-align: right; color: #4f4f4f; user-select: none; }
.tk-c { color: var(--text-3); } .tk-s { color: #b9bbff; } .tk-k { color: var(--text-1); } .tk-p { color: var(--text-2); }
.c-copybtn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; border: 0; border-radius: 6px; background: none; color: var(--text-2); font-size: 12px; cursor: pointer; }
.c-copybtn:hover { background: var(--surface-2); color: var(--text-1); }
.c-copybtn svg { width: 14px; height: 14px; }
.c-copybtn.is-copied, .c-copyfield__btn.is-copied { color: var(--ok); }
.c-copyfield { display: flex; align-items: center; height: var(--h-control); padding: 0 6px 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-control); background: var(--surface-1); }
.c-copyfield__value { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font: 13px var(--font-mono); color: var(--text-1); scrollbar-width: none; }
.c-copyfield__btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; min-width: 28px; justify-content: center; padding: 0 6px; border: 0; border-radius: 6px; background: none; color: var(--text-2); font-size: 12px; cursor: pointer; }
.c-copyfield__btn:hover { background: var(--surface-2); color: var(--text-1); }
.c-copyfield__btn svg { width: 14px; height: 14px; }

/* ---------- Reiter, Schritte, Pfad, Seiten ---------- */
.c-tabs { position: relative; display: flex; gap: 28px; border-bottom: 1px solid var(--line-1); overflow-x: auto; scrollbar-width: none; }
.c-tabs > a, .c-tabs > button { position: relative; flex: none; padding: 0 0 12px; border: 0; background: none; color: var(--text-2); font-size: 14px; cursor: pointer; white-space: nowrap; }
.c-tabs > a:hover, .c-tabs > button:hover { color: var(--text-1); }
.c-tabs > [aria-selected="true"], .c-tabs > [aria-current] { color: var(--text-1); font-weight: 500; }
.c-tabs > [aria-selected="true"]::after, .c-tabs > [aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--text-1); }
.c-tabs > :focus-visible { border-radius: 4px; }
.c-steps { display: flex; align-items: center; gap: 12px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.c-steps li { display: flex; align-items: center; gap: 10px; color: var(--text-3); white-space: nowrap; }
.c-steps li + li::before { content: ""; width: 64px; height: 1px; margin-right: 2px; background: var(--line-2); }
.c-steps__n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.c-steps__n svg { width: 12px; height: 12px; }
.c-steps .is-done { color: var(--text-1); }
.c-steps .is-done .c-steps__n { background: var(--text-1); border-color: var(--text-1); color: var(--bg); }
.c-steps [aria-current] { color: var(--text-1); }
.c-steps [aria-current] .c-steps__n { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (max-width: 640px) { .c-steps li + li::before { width: 16px; } .c-steps li:not([aria-current]) .c-steps__label { display: none; } }
.c-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--text-3); }
.c-crumbs a { color: var(--text-3); }
.c-crumbs a:hover { color: var(--text-1); }
.c-crumbs li + li::before { content: "\203A"; margin-right: 8px; color: var(--text-3); }
.c-crumbs [aria-current] { color: var(--text-1); }
.c-pages { display: flex; align-items: center; gap: 4px; font-size: 13px; font-variant-numeric: tabular-nums; }
.c-pages a, .c-pages span { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 6px; border-radius: var(--r-control); color: var(--text-2); }
.c-pages a:hover { background: var(--surface-2); color: var(--text-1); }
.c-pages [aria-current] { background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text-1); }
.c-pages svg { width: 14px; height: 14px; }

/* ---------- Tabellen ---------- */
.c-table-wrap { position: relative; border: 1px solid var(--line-1); border-radius: var(--r-card); background: var(--surface-1); overflow-x: auto; }
.c-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.c-table th { height: 40px; padding: 0 16px; text-align: left; font-size: 12px; font-weight: 400; color: var(--text-3); border-bottom: 1px solid var(--line-1); white-space: nowrap; }
.c-table td { height: 52px; padding: 0 16px; border-bottom: 1px solid var(--line-1); white-space: nowrap; }
.c-table tr:last-child td { border-bottom: 0; }
.c-table tbody tr:hover { background: #141414; }
.c-table .is-num { text-align: right; }
.c-table .is-mono { font-family: var(--font-mono); font-size: 12px; }
.c-table .is-muted { color: var(--text-2); }
.c-table .is-act { width: 1%; text-align: right; padding-right: 10px; }
.c-kv { margin: 0; padding: 0 16px; border: 1px solid var(--line-1); border-radius: var(--r-card); background: var(--surface-1); font-size: 13px; }
.c-kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; }
.c-kv > div + div { border-top: 1px solid var(--line-1); }
.c-kv dt { color: var(--text-2); }
.c-kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.c-subrow { display: flex; align-items: center; gap: 24px; padding: 16px; border: 1px solid var(--line-1); border-radius: var(--r-card); background: var(--surface-1); }
.c-subrow__main { flex: 1; min-width: 0; }
.c-subrow__name { font-size: 14px; font-weight: 500; }
.c-subrow__meta { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.c-subrow__price { font-size: 13px; font-variant-numeric: tabular-nums; }
.c-price { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.c-price small { font-size: 13px; font-weight: 400; color: var(--text-3); letter-spacing: 0; }
.c-price del { font-size: 14px; font-weight: 400; color: var(--text-3); margin-left: 6px; letter-spacing: 0; }
.c-price--free { color: var(--text-2); }
.c-price__note { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.c-download { display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 16px; border: 1px solid var(--line-1); border-radius: var(--r-card); background: var(--surface-1); }
.c-download > svg { width: 16px; height: 16px; color: var(--text-2); }
.c-download__main { flex: 1; min-width: 0; }
.c-download__name { font-size: 14px; }
.c-download__meta { font-size: 12px; color: var(--text-3); }

/* ---------- Demo-Screenshots (Gerätekombination, Kartenbild) ---------- */
.c-shot { margin: 0; border: 1px solid var(--line-1); border-radius: var(--r-card); background: var(--surface-1); overflow: hidden; }
.c-shot img { display: block; width: 100%; height: auto; }
.c-devices { position: relative; margin: 0; }
.c-devices--phone { padding: 0 12% 7% 0; }
.c-devices__screen { border: 1px solid var(--line-1); border-radius: var(--r-card); background: var(--surface-1); overflow: hidden; }
.c-devices__screen img, .c-devices__phone img { display: block; width: 100%; height: auto; }
.c-devices__phone { position: absolute; right: 0; bottom: 0; width: 21%; border: 1px solid var(--line-2); border-radius: 22px; background: var(--surface-1); overflow: hidden; }

/* ---------- Handy-Anpassungen ---------- */
@media (max-width: 640px) {
  .c-container { padding: 0 20px; }
  .c-btn--touch { display: flex; width: 100%; height: var(--h-control-mobile); padding: 0 20px; border-radius: 12px; font-size: 17px; font-weight: 600; }
  .c-input, .c-select__btn { height: 44px; font-size: 16px; }
  .c-textarea { font-size: 16px; }
  .c-devices--phone { padding: 0 16% 10% 0; }
  .c-devices__phone { width: 30%; border-radius: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .c-spinner, .c-btn[aria-busy="true"]::after { animation-duration: 1.4s !important; animation-iteration-count: infinite !important; }
}

/* Kopfzeile: Zurück-Link „‹ Start“ entfällt seit 23.11.2026 (Klicktest C5) – das Logo bleibt auch auf Unterseiten
   links stehen. header.php gibt den Link nicht mehr aus; die Regel bleibt nur für alte Kopien der Kopfzeile. */
.c-header__back { display: none !important; }
/* Große Sekundär-Buttons (Handy) ohne Rand, wie iOS */
.c-btn--l.c-btn--secondary { --btn-bd: transparent; }
@media (max-width: 640px) {
  .c-btn--touch.c-btn--secondary, .c-dialog:not(.c-dialog--static) .c-dialog__actions .c-btn--secondary, .c-dialog:not(.c-dialog--static) .c-dialog__actions .c-btn--danger { --btn-bd: transparent; }
}

/* ---------- Bildansicht (Lightbox) – seit 23.11.2026, Klicktest B3. JS: components.js, Markierung [data-c-zoom] ---------- */
.c-zoomable { cursor: zoom-in; }
.c-zoomable:focus-visible { outline: 2px solid var(--link); outline-offset: -2px; box-shadow: none; }
.c-modal.c-lightbox { z-index: 80; place-items: stretch; padding: 0; overflow: hidden; touch-action: pinch-zoom; overscroll-behavior: contain; }  /* Wischen blättert, statt die Seite zu verlassen */
.c-lightbox .c-modal__scrim { background: rgba(10, 10, 10, .97); }
.c-lightbox button { touch-action: manipulation; }
.c-lightbox__box { position: relative; z-index: 1; display: grid; place-items: center; min-height: 0; height: 100vh; height: 100dvh; padding: 64px 76px 20px; box-sizing: border-box; }
.c-lightbox__fig { margin: 0; display: grid; justify-items: center; align-content: center; gap: 12px; min-width: 0; max-width: 100%; }
.c-lightbox__img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); border: 1px solid var(--line-2); border-radius: var(--r-card); background: var(--surface-1); object-fit: contain; }
.c-lightbox__cap { max-width: 760px; font-size: 13px; line-height: 1.5; color: var(--text-2); text-align: center; }
.c-lightbox__count { margin-left: 10px; color: var(--text-3); white-space: nowrap; }
.c-lightbox__count:empty { display: none; }
.c-lightbox__close { position: absolute; top: 12px; right: 16px; }
.c-lightbox__prev, .c-lightbox__next { position: absolute; top: 50%; margin-top: -22px; }
.c-lightbox__prev { left: 16px; }
.c-lightbox__next { right: 16px; }
@media (max-width: 640px) {
  .c-lightbox__box { padding: 60px 12px calc(72px + env(safe-area-inset-bottom)); }
  .c-lightbox__img { max-height: calc(100dvh - 190px); border-radius: 10px; }
  .c-lightbox__cap { font-size: 14px; }
  .c-lightbox__close { top: 8px; right: 8px; }
  .c-lightbox__prev, .c-lightbox__next { top: auto; bottom: calc(14px + env(safe-area-inset-bottom)); margin-top: 0; }
  .c-lightbox__prev { left: 12px; }
  .c-lightbox__next { right: 12px; }
}

/* ==== Restpunkt 41 (24.11.2026): Handy-Tippflächen ≥ 44 px. Nur am Handy, Desktop unverändert. ==== */
@media (max-width: 760px) {
  /* Wortmarke (Kopf, Fußzeile, Menü): Tippfläche per Innenabstand, Zeilenhöhe bleibt */
  a.c-wordmark { padding: 15px 0; margin: -15px 0; }
  /* Fußzeilen-Links untereinander je 44 px hoch (vorher 29 px + 10 px Abstand) */
  .c-footer__col ul { gap: 0; }
  .c-footer__col a { display: flex; align-items: center; min-height: 44px; padding: 0; }
  .c-footer__copy { font-size: 12px; }
}
@media (max-width: 640px) {
  .c-btn { min-height: 44px; }
  .c-seg > a, .c-seg > button, .c-seg > label > span { min-height: 44px; }
  .c-glist__row .c-seg > a { height: 44px; }
  .c-tabs > a, .c-tabs > button { padding: 12px 0; }
  .c-tabs { gap: 24px; }
  /* Links mit Pfeil ↗ außerhalb von Fließtext: Tippfläche nach oben und unten erweitert, Abstände bleiben.
     Nicht für Knöpfe mit Pfeil (.c-btn.c-link-ext): Der Minus-Rand ließ sie am Handy an den Nachbarknopf
     kleben (Feinschliff 2, Punkt 1). */
  a.c-link-ext:not(.c-btn) { display: inline-block; padding: 12px 0; margin: -12px 0; }
}
/* ==== Restpunkt 41 – Ende ==== */

/* ==== Feinschliff 2, Punkt 1 (24.11.2026): Knopfgruppen am Handy – eine Regel für beide Domains ====
   Knopfgruppe = .c-actions (neu, für neue Seiten) oder eine der älteren Gruppen-Klassen der Seiten, die hier
   mit aufgenommen sind. Am Handy (≤ 640 px):
   - gestapelte Knöpfe 12 px Abstand (row-gap; nebeneinander bleibt der Abstand der Seite),
   - Knopfgruppe → direkt folgendes Bild/Medium mindestens 32 px (margin-bottom; zwischen Blöcken gilt der
     größere der beiden Ränder, ein größerer Abstand der Seite bleibt also stehen),
   - Geräte-Bild (.c-devices--phone): das Handy ragt nicht mehr über die Oberkante des Desktop-Bilds hinaus.
   Desktop unverändert. Neue Gruppen-Klassen bitte nicht pro Seite stylen, sondern .c-actions nehmen. */
.c-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
@media (max-width: 640px) {
  body :is(.c-actions, .p-actions, .chq-actions, .hero-actions, .actions, .card-actions, .form-actions, .pay-actions,
    .s-card__actions, .s-setting__actions, .s-404__actions, .f-page__actions, .sx-help__actions) { row-gap: 12px; }
  body :is(.c-actions, .p-actions, .chq-actions, .hero-actions, .actions, .card-actions, .form-actions, .pay-actions,
    .s-card__actions, .s-404__actions, .f-page__actions, .c-btn--touch):has(+ :is(figure, picture, img, video, iframe, .c-shot, .c-devices, [data-c-zoom])) { margin-bottom: 32px; }
  .c-devices__phone { width: 27%; }
}
/* ==== Feinschliff 2, Punkt 1 – Ende ==== */

/* ==== Feinschliff 2, Punkt 3 (24.11.2026): Cookie-Hinweis .c-cookie ====
   Markup: _shared/php/footer.php (hidden), JS: assets/js/cookie-hinweis.js (zeigt ihn, solange keine gültige
   Bestätigung im localStorage liegt, und setzt dann html.c-cookie-open + --c-cookie-h = Abstand Bannerkante → Fensterunterkante).
   Fixiert, nimmt keinen Platz im Fluss ein (kein Layout-Sprung). Desktop: Kasten unten links. Handy: unten, volle Breite.
   Solange er offen ist, rücken feste Leisten unten (Kaufleisten .cm-buybar, .sx-bar) und Toasts über ihn, und das
   Seitenende bekommt Platz in seiner Höhe, damit nichts dauerhaft verdeckt bleibt. */
.c-cookie { position: fixed; z-index: 50; left: 24px; bottom: 24px; width: 440px; max-width: calc(100vw - 48px); padding: 20px; border: 1px solid var(--line-2); border-radius: var(--r-card); background: var(--surface-1); color: var(--text-1); box-shadow: var(--shadow-menu); }
.c-cookie:focus { outline: none; }
.c-cookie__title { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.4; }
.c-cookie__text { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.c-cookie__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 16px; }
.c-cookie__link { font-size: 14px; color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
html.c-cookie-open body::after { content: ""; display: block; height: var(--c-cookie-h, 0px); }
html.c-cookie-open :is(.cm-buybar, .sx-bar) { bottom: var(--c-cookie-h, 0px); }
@media (max-width: 640px) {
  .c-cookie { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: auto; max-width: none; padding: 16px; }
  .c-cookie__text { font-size: 15px; }
  .c-cookie__actions { justify-content: space-between; margin-top: 14px; }
  .c-cookie__actions .c-btn { min-width: 140px; }
  .c-cookie__link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
  html.c-cookie-open .c-toasts:not(.c-toasts--static) { bottom: calc(var(--c-cookie-h, 0px) + 12px); }
  /* Kaufleiste über dem Hinweis: ohne eigenen Safe-Area-Rand und ohne Linie zum Hinweis hin */
  html.c-cookie-open :is(.cm-buybar, .sx-bar) { padding-bottom: 12px; }
  html.c-cookie-open .sx-bar { min-height: var(--sx-bar-h, 0px); }
}
@media print { .c-cookie { display: none !important; } }
/* ==== Feinschliff 2, Punkt 3 – Ende ==== */
