/* ============================================================
   FAZ OSC — Components
   Buttons · Fields · Cards · Abo-Card · Modal · Hinweis · Toast · Badge · Steps
   Depends on tokens.css + base.css
   ============================================================ */

/* -------------------- Buttons --------------------
   Verified 1:1 against the Figma styleguide Button component.
   Types:  Primary (default) · Primary on FAZ Grey (--brand) ·
           Secondary · Tertiary (--ghost) · Underline
   States: default · :hover · :active (pressed) · :disabled · .is-loading
   Sizes:  Medium (default, h40) · Small (--sm, h28)
   Figma:  radius 2px, px-20 gap-6, text 14 SemiBold tracking -0.1,
           icons 24px (icons/…), loading = Icons/Basic/Loading before the label.
   Markup: Tertiary carries a leading icon:  <button class="btn btn--ghost"><svg>…</svg>Label</button>
           Underline wraps its label:        <button class="btn btn--underline"><span>Label</span></button> */
.btn {
  --btn-bg: var(--c-btn-bg);
  --btn-fg: var(--c-btn-fg);
  --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: var(--t-button); letter-spacing: -.1px;
  height: 40px; padding: 0 20px;
  border: 1px solid var(--btn-bd); border-radius: var(--r-sm);
  background: var(--btn-bg); color: var(--btn-fg);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
/* Figma hover = fill at 70 % opacity (not a darker shade) */
.btn:hover { background: color-mix(in srgb, var(--btn-bg) 70%, transparent); }
.btn:active { background: var(--btn-bg); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
/* <a class="btn">: keep the button look against the base link style (.osc a) */
.osc a.btn { color: var(--btn-fg); text-decoration: none; }
.osc a.btn:hover { opacity: 1; }
.osc a.btn--secondary:hover, .osc a.btn--ghost:hover, .osc a.btn--underline:hover { opacity: .7; }

/* "Primary on FAZ Grey" — dark fill, for use on grey surfaces */
.btn--brand { --btn-bg: var(--c-btn-brand-bg); --btn-fg: var(--c-btn-brand-fg); }

.btn--secondary {
  --btn-bg: transparent; --btn-fg: var(--c-btn-line); --btn-bd: var(--c-btn-line);
}
.btn--secondary:hover { background: transparent; opacity: .7; }

/* Tertiary — leading icon + label, no fill; Figma padding 10/20 (small 4/12) */
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--c-btn-line); --btn-bd: transparent; padding: 0 20px 0 10px; }
.btn--ghost:hover { background: transparent; opacity: .7; }

/* Underline — keeps the full 40px (28px small) hit area with px-20 (12);
   only the label is underlined, 4px below the text. The loading icon
   sits outside the underline. */
.btn--underline {
  --btn-bg: transparent; --btn-fg: var(--c-btn-line); --btn-bd: transparent;
  border-radius: 0;
}
.btn--underline > span { border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.btn--underline:hover { background: transparent; opacity: .7; }

.btn svg { flex: none; width: 24px; height: 24px; }

/* Danger — NOT in the FAZ styleguide; project extension for destructive
   confirms. Review with FAZ design before shipping. */
.btn--danger { --btn-bg: var(--c-danger); --btn-fg: #fff; }
.btn--danger:hover { background: color-mix(in srgb, var(--c-danger) 85%, #000); }

.btn--sm { height: 28px; padding: 0 12px; gap: 4px; }
.btn--ghost.btn--sm { padding: 0 12px 0 4px; }
.btn--block { width: 100%; }

/* Loading state — Figma "Icons/Basic/Loading" (24px) before the label.
   Drawn as a mask so it takes the button's text colour in every type/theme.
   Figma shows it static; the slow turn is added feedback for the live UI. */
.btn.is-loading { pointer-events: none; }
.btn.is-loading > svg { display: none; }   /* Tertiary: loading icon replaces its own */
.btn.is-loading::before {
  content: ""; width: 24px; height: 24px; flex: none;
  background: currentColor;
  -webkit-mask: var(--icon-loading) center / contain no-repeat;
          mask: var(--icon-loading) center / contain no-repeat;
  animation: btn-spin 1.2s linear infinite;
}
:root {
  --icon-loading: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.07886 4.6661C7.30538 4.51886 7.5319 4.37162 7.76975 4.24704C11.1223 2.42353 15.4035 2.92188 18.2351 5.76473C21.0666 8.60758 21.5763 12.9115 19.7301 16.264'/%3E%3Cpath d='M23.1506 14.7915L19.7187 16.2525L18.0425 12.8887'/%3E%3Cpath d='M16.842 19.3791C16.6155 19.5263 16.3889 19.6622 16.1511 19.7868C12.7872 21.5876 8.50598 21.044 5.69711 18.1898C2.87691 15.3243 2.41254 11.0204 4.29267 7.6792'/%3E%3Cpath d='M0.849487 9.11761L4.29262 7.6792L5.94623 11.0657'/%3E%3C/svg%3E");
}
@keyframes btn-spin { to { transform: rotate(1turn); } }

/* -------------------- Form fields --------------------
   Verified 1:1 against Figma "Eingabefelder":
   Two variants — "Rahmen" (outline: 1px #8E8E8E, radius 2, for Login/Formulare)
   and "Unterstrichen" (underline only, subtle, e.g. Suchfeld).
   Box 40px, padding 8px 10px (with or without icon), gap 8px.
   Floating label: rests as 14px SemiBold #717171 placeholder, floats to
   10px SemiBold #717171 on focus/filled; value text 14px SemiBold #212529.
   Leading icon is #717171 while empty, #212529 once focused/filled.
   Focus: NO ring/shadow/border change — the caret + floated label indicate it.
   Error (.is-invalid): border + message #A85100 (FAZ-Error, orange).
   Confirmed (.is-valid, Figma "Mit Hinweis"): border + helper #478517.
   Plain helper text is MG-Dark. Icons 24px; helper 14px with 5px top gap.

   Markup:
   <div class="field">
     <label class="field__box">
       [<svg class="field__icon">]
       <span class="field__text">
         <span class="field__label">Label</span>
         <input class="input" placeholder=" ">
       </span>
       [<button class="field__clear">]
     </label>
     <span class="field__hint">Helper</span> | <span class="field__error">…</span>
   </div>
   Requires :has() (Baseline 2023) — fine for a customer-facing 2026 build. */

.field { display: flex; flex-direction: column; }

.field__box {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; height: 40px;   /* constant in ALL states */
  background: var(--c-field-bg);
  border: 1px solid var(--c-field-border); border-radius: var(--r-sm);
  cursor: text;
}
/* "Unterstrichen" — search-style, underline only */
.field--bare .field__box {
  border: 0; border-bottom: 1px solid var(--c-field-border);
  border-radius: 0; padding-inline: 0;
}

.field__icon, .field__clear { flex: none; width: 24px; height: 24px; color: var(--c-text); }
.field__icon { color: var(--c-text-subtle); transition: color var(--dur) var(--ease); }
.field__box:focus-within .field__icon,
.field__box:has(.input:not(:placeholder-shown)) .field__icon { color: var(--c-text); }
.field__clear {
  display: none; border: 0; background: transparent; padding: 0;
  cursor: pointer; place-items: center;
}

.field__text {
  flex: 1; min-width: 0; position: relative; height: 24px;
}
.field__label {
  font: 600 14px/1.4 var(--font-sans); color: var(--c-text-subtle);
  position: absolute; left: 0; top: 50%; translate: 0 -50%;
  pointer-events: none; white-space: nowrap;
  transition: font-size var(--dur) var(--ease), translate var(--dur) var(--ease),
              top var(--dur) var(--ease), font-weight var(--dur) var(--ease);
}
.field .input {
  font: 600 14px/1.4 var(--font-sans); color: var(--c-text);
  border: 0; outline: 0; background: transparent;
  padding: 0; width: 100%; height: 24px;
  transition: padding-top var(--dur) var(--ease);
}
.field .input::placeholder { color: transparent; }  /* label plays placeholder */

/* Focus: per Figma NO ring/border change on text fields — the caret is the
   indicator. (Text inputs match :focus-visible even on mouse click, so a
   :focus-visible ring here would contradict the design; revisit in the
   BFSG/a11y pass whether caret-only focus is acceptable.) */

/* Floated state (focus or filled), per Figma: the box does NOT resize —
   label (10px) sits directly above the value inside the same 24px text zone.
   Label occupies y 0–10, value text is pushed to y 10–24 via padding. */
.field__box:focus-within .field__label,
.field__box:has(input.input:not(:placeholder-shown):not([type="date"])) .field__label,
.field__box.is-filled .field__label {   /* date / select: no placeholder, osc-page.js sets is-filled */
  font-size: 10px; font-weight: 600; line-height: 1; top: 0; translate: 0 0;
}
.field__box:focus-within .input,
.field__box:has(input.input:not(:placeholder-shown):not([type="date"])) .input,
.field__box.is-filled .input {
  padding-top: 10px; line-height: 14px;
}
.field__box:has(.input:not(:placeholder-shown)) .field__clear { display: grid; }

/* helper / error line — below the box, 5px gap, 14px */
.field__hint  { font: var(--t-meta-2); color: var(--c-text); padding-top: 5px; }
.field__error { font: var(--t-meta-2); color: var(--c-warning); padding-top: 5px; display: none; }
.field.is-invalid .field__box { border-color: var(--c-warning); }
.field.is-invalid .field__error { display: block; }
.field.is-invalid .field__hint { display: none; }
.field.is-valid .field__box { border-color: var(--c-success); }
.field.is-valid .field__hint { color: var(--c-success); }

/* simple boxed controls without floating label (selects, textareas, date inputs: .osc-input) */
.select, .textarea, .osc-input {
  font: 600 14px/1.4 var(--font-sans); color: var(--c-text);
  background-color: var(--c-field-bg);
  border: 1px solid var(--c-field-border); border-radius: var(--r-sm);
  padding: 8px 10px; width: 100%;
}
.select, .osc-input { height: 40px; }
.textarea { min-height: 108px; resize: vertical; }
/* keyboard focus ring comes from base.css :focus-visible.
   Chevron = Figma "Icons/Navigation/Chevron_Down" (24px) in Grey-400,
   which reads on both the light and dark field background. */
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%238E8E8E' fill-rule='evenodd' d='M19.5303 7.96967C19.8232 8.26256 19.8232 8.73744 19.5303 9.03033L12.5303 16.0303C12.2374 16.3232 11.7626 16.3232 11.4697 16.0303L4.46967 9.03033C4.17678 8.73744 4.17678 8.26256 4.46967 7.96967C4.76256 7.67678 5.23744 7.67678 5.53033 7.96967L12 14.4393L18.4697 7.96967C18.7626 7.67678 19.2374 7.67678 19.5303 7.96967Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; padding-right: 42px;
}

/* -------------------- Checkbox · Radio · Toggle --------------------
   Verified against Figma (Buttons page, "Selected / Unselected"):
   Checkbox 16px, 1px #8E8E8E, radius 2, check in MG-Dark;
   Radio 18px, 1px #8E8E8E, 10px MG-Dark dot;
   Toggle 29×16, track MG-Dark (on) / Grey-300 (off), 12px white knob.
   Label: Meta 2, 10px after the control.
   Note: the checked-checkbox tick was drawn here — the Figma asset for
   that one variant could not be exported (MCP limit); compare in review.
   <label class="check"><input type="checkbox"> Ja, ich möchte teilnehmen.</label>
   <label class="check"><input type="radio" name="x"> Option</label>
   <label class="check"><input type="checkbox" class="switch" role="switch"> Label</label> */
.check { display: flex; width: fit-content; align-items: flex-start; gap: 10px;
  font: var(--t-meta-2); color: var(--c-text); cursor: pointer; }
.check input {
  appearance: none; margin: 2px 0 0; flex: none; cursor: pointer;
  width: 16px; height: 16px; display: grid; place-items: center;
  background: var(--c-field-bg);
  border: 1px solid var(--c-field-border); border-radius: var(--r-sm);
}
.check input::before { content: ""; }
.check input[type="checkbox"]:not(.switch):checked::before {
  width: 12px; height: 12px; background: var(--c-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.25l2.25 2.25 4.75-5'/%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' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.25l2.25 2.25 4.75-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.check input[type="radio"] { width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; }
.check input[type="radio"]:checked::before { width: 10px; height: 10px; border-radius: 50%; background: var(--c-text); }

.check input.switch {
  width: 29px; height: 16px; border: 0; border-radius: 8px;
  background: var(--c-text-subtle); place-items: center start; padding: 0 2px;
  transition: background var(--dur) var(--ease);
}
.check input.switch::before {
  width: 12px; height: 12px; border-radius: 50%; background: var(--c-bg);
  transition: transform var(--dur) var(--ease);
}
.check input.switch:checked { background: var(--c-text); }
.check input.switch:checked::before { transform: translateX(13px); }

/* choice controls */
.choice { display: flex; gap: var(--s-3); align-items: flex-start; cursor: pointer;
  padding: 12px 14px; border: 1px solid var(--c-border); border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.choice:hover { border-color: var(--c-primary); }
/* Verified: Checkbox = 16px, border #8E8E8E, radius 2px — for the exact
   Figma look put the input inside a .check label instead */
.choice input { margin-top: 3px; accent-color: var(--c-primary); width: 16px; height: 16px; flex: none; }
.choice:has(input:checked) { border-color: var(--c-primary); background: var(--c-surface-2); }
.choice__title { font: var(--t-subhead-3); }
.choice__desc  { font: var(--t-meta-2); color: var(--c-text-subtle); }

/* -------------------- Card -------------------- */
.card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: var(--s-5); box-shadow: var(--shadow-card);
}
.card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-4); margin-bottom: var(--s-4); }

/* ==================== OSC page layout ====================
   Figma "Neues OSC" (file 6R4UxLFt8Y689fFaJC7o3e, page "Startseite_neu", sections "Startseite" and
   "Abo Deail"; final for the start page and the subscription detail, F.A.Z. 2026-11-11). Grey area
   below the F.A.Z. header. From 1000px: the menu as a white sidebar next to a 688px content column
   (1000px together, 28px gap, 32px above). Below 1000px: a "Menü" bar over the full width with the
   current page; the list opens below it over the content. Content at most 688px, 40px (tablet) /
   20px (mobile) side margins.
   <div class="osc-app"><div class="container osc-app__grid">
     <nav class="osc-nav" …>…</nav>
     <div class="osc-app__content">…</div>
   </div></div> */
.osc-app { background: var(--c-surface-grey); padding-block: 0 40px; }
.osc .osc-app__grid { display: grid; grid-template-columns: minmax(0, 1fr); max-width: none; padding-inline: 0; }
.osc-app__content { width: 100%; min-width: 0; margin-inline: auto; padding: 16px 20px 0; }
.osc-app__heading {
  width: 100%; min-height: 29px;
  font: 700 24px/29px var(--font-sans); color: var(--c-primary);
}
@media (min-width: 768px) {
  .osc-app { padding-bottom: 32px; }
  .osc-app__content { max-width: 768px; padding: 32px 40px 0; }   /* 688px inside */
}
@media (min-width: 1000px) {
  .osc-app { padding-top: 32px; }
  .osc .osc-app__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 688px); gap: 28px; align-items: start;
    width: min(1000px, 100% - 40px); margin-inline: auto;
  }
  .osc-app__content { max-width: none; padding: 0; }
}
/* Not logged in: no OSC navigation (every item would lead to the login), content only */
.osc-app--no-nav .osc-nav { display: none; }
.osc-app--no-nav .osc-app__content { padding-top: 24px; }
@media (min-width: 1000px) {
  .osc-app--no-nav .osc-app__grid { grid-template-columns: minmax(0, 688px); justify-content: center; }
  .osc-app--no-nav .osc-app__content { padding-top: 0; }
}
/* Menu items only some customers get (NOSC-81; the pages listed in SERVICES in osc-data.js, keep both
   in step): hidden unless <html data-osc-menu> names them. osc-menu.js sets it before the first paint
   (menu of the previous page), osc-page.js from the loaded data. Without JS the attribute is missing
   and every item shows. */
html[data-osc-menu]:not([data-osc-menu~="rechnungen"]) .osc .osc-nav__list > li:has(> .osc-nav__link[href="rechnungen.html"]),
html[data-osc-menu]:not([data-osc-menu~="zahlarten"]) .osc .osc-nav__list > li:has(> .osc-nav__link[href="zahlarten.html"]),
html[data-osc-menu]:not([data-osc-menu~="einzelkaufartikel"]) .osc .osc-nav__list > li:has(> .osc-nav__link[href="einzelkaufartikel.html"]),
html[data-osc-menu]:not([data-osc-menu~="abo-verknuepfen"]) .osc .osc-nav__list > li:has(> .osc-nav__link[href="abo-verknuepfen.html"]),
html[data-osc-menu]:not([data-osc-menu~="urlaubsservice"]) .osc .osc-nav__list > li:has(> .osc-nav__link[href="urlaubsservice.html"]),
html[data-osc-menu]:not([data-osc-menu~="zustellreklamation"]) .osc .osc-nav__list > li:has(> .osc-nav__link[href="zustellreklamation.html"]),
html[data-osc-menu]:not([data-osc-menu~="nutzer"]) .osc .osc-nav__list > li:has(> .osc-nav__link[href="nutzer.html"]),
html[data-osc-menu]:not([data-osc-menu~="abo-pausieren"]) .osc .osc-nav__list > li:has(> .osc-nav__link[href="abo-pausieren.html"]) { display: none; }

/* -------------------- OSC icons ("Neues OSC") --------------------
   The Figma icons (assets/icons/osc/) as CSS masks, so they take the text colour (light + dark mode).
   <span class="osc-icon osc-icon--subscriptions" aria-hidden="true"></span> — 24px unless sized. */
.osc-icon {
  display: block; flex: none; width: 24px; height: 24px; background: currentColor;
  -webkit-mask: none center / contain no-repeat; mask: none center / contain no-repeat;
}
.osc-icon--subscriptions      { -webkit-mask-image: url("../icons/osc/nav-subscriptions.svg"); mask-image: url("../icons/osc/nav-subscriptions.svg"); }
.osc-icon--personal-data      { -webkit-mask-image: url("../icons/osc/nav-personal-data.svg"); mask-image: url("../icons/osc/nav-personal-data.svg"); }
.osc-icon--invoices           { -webkit-mask-image: url("../icons/osc/nav-invoices.svg"); mask-image: url("../icons/osc/nav-invoices.svg"); }
.osc-icon--payment-methods    { -webkit-mask-image: url("../icons/osc/nav-payment-methods.svg"); mask-image: url("../icons/osc/nav-payment-methods.svg"); }
.osc-icon--link-subscription  { -webkit-mask-image: url("../icons/osc/nav-link-subscription.svg"); mask-image: url("../icons/osc/nav-link-subscription.svg"); }
.osc-icon--vacation-service   { -webkit-mask-image: url("../icons/osc/nav-vacation-service.svg"); mask-image: url("../icons/osc/nav-vacation-service.svg"); }
.osc-icon--delivery-complaint { -webkit-mask-image: url("../icons/osc/nav-delivery-complaint.svg"); mask-image: url("../icons/osc/nav-delivery-complaint.svg"); }
.osc-icon--users              { -webkit-mask-image: url("../icons/osc/nav-users.svg"); mask-image: url("../icons/osc/nav-users.svg"); }
.osc-icon--single-purchase    { -webkit-mask-image: url("../icons/osc/nav-single-purchase.svg"); mask-image: url("../icons/osc/nav-single-purchase.svg"); }
.osc-icon--pause-subscription { -webkit-mask-image: url("../icons/osc/nav-pause-subscription.svg"); mask-image: url("../icons/osc/nav-pause-subscription.svg"); }
.osc-icon--contact            { -webkit-mask-image: url("../icons/osc/nav-contact.svg"); mask-image: url("../icons/osc/nav-contact.svg"); }
.osc-icon--gift               { -webkit-mask-image: url("../icons/osc/gift.svg"); mask-image: url("../icons/osc/gift.svg"); }
.osc-icon--cancel             { -webkit-mask-image: url("../icons/osc/cancel.svg"); mask-image: url("../icons/osc/cancel.svg"); }
.osc-icon--plus               { -webkit-mask-image: url("../icons/osc/plus-circle.svg"); mask-image: url("../icons/osc/plus-circle.svg"); }
.osc-icon--chevron-right      { -webkit-mask-image: url("../icons/osc/chevron-right-20.svg"); mask-image: url("../icons/osc/chevron-right-20.svg"); }

/* -------------------- OSC navigation -------------------- */
/* Same markup on every page; osc-ui.js marks the current page (aria-current), shows it in the
   "Menü" bar and opens/closes the list below 1000px. Without JS the list simply shows. */
.osc-nav { position: relative; background: var(--c-surface); color: var(--c-text); --osc-nav-pad: 20px; }
.osc-nav__list { list-style: none; margin: 0; padding: 8px 0; display: flex; flex-direction: column; gap: 4px; }
.osc .osc-nav__link {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 12px var(--osc-nav-pad); font: 400 14px/1.4 var(--font-sans); color: var(--c-text); text-decoration: none;
}
.osc .osc-nav__link:hover { opacity: 1; background: var(--c-surface-2); }
.osc .osc-nav__link[aria-current="page"] { font-weight: 700; background: var(--c-surface-2); }
.osc-nav__link > span:not(.osc-icon) { flex: 1; min-width: 0; }
.osc-nav__divider { height: 1px; margin: 8px var(--osc-nav-pad); background: var(--c-divider); }

/* "Menü" bar (below 1000px): icon of the current page, "MENÜ" + page name, chevron */
.osc-nav__toggle {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 68px;
  padding: 12px var(--osc-nav-pad); border: 0; background: none; color: var(--c-text); text-align: left; cursor: pointer;
}
.osc-nav__toggle-icon { -webkit-mask-size: 20px; mask-size: 20px; }   /* 20px icon in a 24px box (Figma) */
.osc-nav__toggle-text { display: flex; flex: 1; min-width: 0; flex-direction: column; }
.osc-nav__toggle-label { padding-bottom: 4px; font: 400 11px/1.1 var(--font-sans); letter-spacing: .1px; text-transform: uppercase; }
.osc-nav__current { font: 700 15px/1.3 var(--font-sans); overflow-wrap: anywhere; }
.osc-nav__toggle-chevron {
  width: 20px; height: 20px; transform: rotate(180deg); transition: transform var(--dur) var(--ease);
  -webkit-mask-image: url("../icons/osc/chevron-up-20.svg"); mask-image: url("../icons/osc/chevron-up-20.svg");
}
.osc-nav.is-open .osc-nav__toggle-chevron { transform: none; }
@media (min-width: 768px) and (max-width: 999.98px) {
  .osc-nav { --osc-nav-pad: 56px; }
}
@media (max-width: 999.98px) {
  .osc-nav:not(.is-ready) .osc-nav__toggle { display: none; }   /* no JS: the list stays open */
  .osc-nav.is-ready .osc-nav__list {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
    padding-top: 0; background: var(--c-surface);
  }
  .osc-nav.is-ready:not(.is-open) .osc-nav__list { display: none; }
  /* open menu: only our own area (.osc-app) is dimmed with the dialog overlay, never the F.A.Z. header;
     a tap there closes the menu without reaching what is under it (the click lands on .osc-app). The page
     does not scroll meanwhile (osc-ui.js), so the list never slides under or over the fixed header; a list
     longer than the screen scrolls on its own (--osc-nav-max, set by osc-ui.js). */
  .osc-app:has(.osc-nav.is-open) { position: relative; }
  /* z-index kept low on purpose: just above the content (cards use 1–2), below any fixed template header */
  .osc-app:has(.osc-nav.is-open)::after { content: ""; position: absolute; inset: 0; z-index: 3; background: var(--c-overlay); }
  .osc-nav.is-open { z-index: 4; }
  .osc-nav.is-open .osc-nav__list {
    max-height: var(--osc-nav-max, none); overflow-y: auto; overscroll-behavior: contain;
    box-shadow: 0 14px 18px -8px rgba(0, 0, 0, .18);   /* downwards only, not onto the bar */
  }
  /* divider between the bar and the open list (Figma) */
  .osc-nav.is-ready .osc-nav__list::before { content: ""; height: 1px; margin: 8px var(--osc-nav-pad); background: var(--c-divider); }
  .osc .osc-nav__link::after {
    content: ""; flex: none; width: 20px; height: 20px; margin-left: auto; background: currentColor;
    -webkit-mask: url("../icons/osc/chevron-right-20.svg") center / contain no-repeat;
            mask: url("../icons/osc/chevron-right-20.svg") center / contain no-repeat;
  }
}
@media (min-width: 1000px) {
  .osc-nav .osc-nav__toggle { display: none; }
  /* stays in view while scrolling, below the F.A.Z. header (osc-ui.js: --osc-top, is-sticky when it fits) */
  .osc-nav.is-sticky { position: sticky; top: calc(var(--osc-top, 0px) + 32px); }
  /* the first card on the height of the sidebar (Sophie, NOSC-81): nothing that is not shown (the start page's
     heading for screen readers, a notice area without a visible notice, hidden boxes before the cards) adds space
     above the content; the margins of these would collapse into one 16px gap. A visible heading keeps its gap. */
  .osc .osc-app__content > .visually-hidden + [data-osc-notices],
  .osc .osc-app__content > [data-osc-notices]:not(:has(> :not([hidden]))) + *,
  .osc .osc-app__content > [data-osc-body] > :not(:not([hidden]) ~ *) { margin-top: 0; }
}

/* -------------------- Abo card ("OSC / Subscription Card") -------------------- */
/* Title, status (icon + text) and chevron; delivery days, customer number and the role ("Lieferung an …");
   a grey strip for a planned or running service (Urlaubsservice, pause); a note for a cancelled one.
   The title link is stretched over the whole card, so the card is one big link (start.js builds it).
   Former subscriptions: muted, "Beendet", no detail, "Wieder lesen" instead.
   <article class="abo-card">
     <div class="abo-card__head">
       <h2 class="abo-card__title"><a class="abo-card__link" href="#abo/…" aria-describedby="…">…</a></h2>
       <span class="abo-status abo-status--active" id="…">Aktiv</span><span class="abo-card__chevron osc-icon"></span>
     </div>
     <div class="abo-card__info"><div class="abo-card__meta"><p>…</p></div><p class="abo-card__role">…</p></div>
     <div class="abo-card__service">…</div> | <p class="abo-card__note">…</p>
   </article> */
.abo-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.abo-card {
  position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0;
  padding: 12px 16px; background: var(--c-surface); color: var(--c-text);
  /* at least a standard card (title + two lines: 12 + 27 + 8 + 2 × 20 + 12): a digital subscription without
     Erscheinungstage is as tall as a print one; only extra information (service strip, note) makes a card
     taller (decision 2026-11-12; the Figma card hugs its content) */
  min-height: 99px;
}
.abo-card__head { display: flex; align-items: center; gap: 6px; min-width: 0; }
.osc .abo-card__title { flex: 1; min-width: 0; font: 700 17px/1.6 var(--font-sans); color: var(--c-text); overflow-wrap: anywhere; }
.osc .abo-card__link { color: inherit; text-decoration: none; }
.osc .abo-card__link:hover { opacity: 1; }
.abo-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* whole card clickable */
.abo-card:has(.abo-card__link):hover .abo-card__title { text-decoration: underline; text-underline-offset: 2px; }
/* keyboard focus: ring around the card instead of the title text */
.osc .abo-card__link:focus-visible { outline: none; }
.abo-card:has(.abo-card__link:focus-visible) { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.abo-card__chevron { width: 20px; height: 20px; -webkit-mask-image: url("../icons/osc/chevron-right-20.svg"); mask-image: url("../icons/osc/chevron-right-20.svg"); }
.abo-card__info { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 16px; font: 400 14px/1.4 var(--font-sans); }
.abo-card__meta { display: flex; flex: 1 1 0; flex-direction: column; min-width: 220px; overflow-wrap: anywhere; }
.osc .abo-card__role { min-width: 0; overflow-wrap: anywhere; }
.abo-card__role strong { font-weight: 700; }
.abo-card__service {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px;
  background: var(--c-surface-2); font: 400 14px/1.4 var(--font-sans);
}
.abo-card__service-label { display: flex; flex: 1 1 0; align-items: center; gap: 6px; min-width: 150px; font-weight: 700; }
.abo-card__service-label .osc-icon { width: 20px; height: 20px; }
.osc-icon--service-urlaub   { -webkit-mask-image: url("../icons/osc/service-sun.svg"); mask-image: url("../icons/osc/service-sun.svg"); }
.osc-icon--service-paused   { -webkit-mask-image: url("../icons/osc/service-calendar.svg"); mask-image: url("../icons/osc/service-calendar.svg"); }
.osc-icon--service-planned  { -webkit-mask-image: url("../icons/osc/service-clock.svg"); mask-image: url("../icons/osc/service-clock.svg"); }
.abo-card__service-dates { margin-left: auto; text-align: right; white-space: nowrap; }
.osc .abo-card__note { font: 400 14px/1.4 var(--font-sans); }
.osc .abo-card__note--cancelled { color: var(--c-warning); }
/* Former subscriptions */
.abo-card--former { color: var(--c-text-disabled); }
.osc .abo-card--former .abo-card__title { color: var(--c-text-disabled); }
/* "Wieder lesen" always bottom right (Sophie, NOSC-81): the info area fills the card, the lines stay at the top */
.abo-card--former .abo-card__info { flex: 1 1 auto; }
.abo-card--former .abo-card__meta { align-self: flex-start; }
.osc .abo-card__again {
  align-self: flex-end;
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; flex: none; margin-left: auto;
  font: 700 15px/16px var(--font-sans); color: var(--c-text); text-decoration: none;
}
.abo-card__again::after {
  content: ""; width: 20px; height: 20px; background: currentColor;
  -webkit-mask: url("../icons/osc/chevron-right-20.svg") center / contain no-repeat;
          mask: url("../icons/osc/chevron-right-20.svg") center / contain no-repeat;
}

/* Status of a subscription (card and detail): icon + bold text */
.abo-status { display: inline-flex; flex: none; align-items: center; gap: 8px; font: 700 14px/1.4 var(--font-sans); white-space: nowrap; }
.abo-status::before {
  content: ""; flex: none; width: 24px; height: 24px; background: currentColor;
  -webkit-mask: url("../icons/osc/status-active.svg") center / contain no-repeat;
          mask: url("../icons/osc/status-active.svg") center / contain no-repeat;
}
/* the text 1px lower: Source Sans sets the capitals slightly above the middle of the line, so next to the
   24px icon it looked too high (measured 2026-11-12) */
.abo-status__text { position: relative; top: 1px; }
.abo-status--active { color: var(--c-success); }
.abo-status--cancelled { color: var(--c-warning); }
.abo-status--former { color: var(--c-text-disabled); }
.abo-status--cancelled::before, .abo-status--former::before {
  -webkit-mask-image: url("../icons/osc/status-cancelled.svg"); mask-image: url("../icons/osc/status-cancelled.svg");
}

/* "Ehemalige Abonnements" accordion: plus/minus icon, the muted cards below */
.osc .stack > .osc-former { margin-top: 32px; }
.osc .osc-former__summary {
  display: flex; align-items: center; gap: 14px; width: max-content; max-width: 100%; list-style: none; cursor: pointer;
  font: 700 15px/1.3 var(--font-sans); color: var(--c-text);
}
.osc-former__summary::-webkit-details-marker { display: none; }
.osc-former__summary::before {
  content: ""; flex: none; width: 24px; height: 24px; background: currentColor;
  -webkit-mask: url("../icons/osc/plus-circle.svg") center / contain no-repeat;
          mask: url("../icons/osc/plus-circle.svg") center / contain no-repeat;
}
.osc-former[open] > .osc-former__summary::before { -webkit-mask-image: url("../icons/osc/minus-circle.svg"); mask-image: url("../icons/osc/minus-circle.svg"); }
.osc-former > .abo-grid { margin-top: 16px; }

/* -------------------- Subscription detail ("Abo Detailseite") -------------------- */
/* "‹ Zurück zur Übersicht", then one white panel: title + status, label/value rows with dividers
   (Kundennummer, Lieferadresse, Erscheinungstage, Zahlungsart …), "Laufzeiten", and the sections
   "Urlaubsservice" (bzu-detail.js) and "Aktionen" (list with chevrons). */
.abo-detail { display: grid; }
.osc .abo-detail__back {
  display: inline-flex; align-items: center; justify-self: start; padding: 8px 0 20px; border: 0; background: none; cursor: pointer;
  font: 600 14px/1.1 var(--font-sans); letter-spacing: -.1px; color: var(--c-text);
}
.abo-detail__back::before {
  content: ""; flex: none; width: 24px; height: 24px; background: currentColor;
  -webkit-mask: url("../icons/osc/chevron-left-24.svg") center / contain no-repeat;
          mask: url("../icons/osc/chevron-left-24.svg") center / contain no-repeat;
}
.abo-detail__back:hover { text-decoration: underline; text-underline-offset: 2px; }
.abo-detail__panel { display: grid; gap: 32px; padding: 16px; background: var(--c-surface); color: var(--c-text); }
.abo-detail__header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.osc .abo-detail__title { min-width: 0; font: 700 20px/1.6 var(--font-sans); color: var(--c-text); overflow-wrap: anywhere; }
/* focused by start.js (tabindex="-1") so screen readers start at the title; no visible ring needed */
.osc .abo-detail__title:focus { outline: none; }
/* label/value rows, divided by lines with 16px on each side */
.abo-detail__rows { display: grid; gap: 16px; margin: 0; }
.abo-detail__rows > * + * { padding-top: 16px; border-top: 1px solid var(--c-divider); }
.osc .abo-detail__field { display: flex; align-items: flex-start; gap: 8px; margin: 0; }   /* a <dl> per row: no default margin */
.osc .abo-detail__label { flex: 1 1 0; min-width: 0; font: 700 15px/1.3 var(--font-sans); color: var(--c-text); }
.osc .abo-detail__value {
  display: flex; flex: 1 1 0; justify-content: flex-end; gap: 8px; min-width: 0; margin: 0;
  font: 400 15px/16px var(--font-sans); color: var(--c-text); text-align: right; white-space: pre-line; overflow-wrap: anywhere;
}
.osc .abo-detail__value--lines { line-height: 1.7; margin-top: -4px; }   /* multi-line (address): 15/1.7 */
.osc .abo-detail__value a { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.osc .abo-detail__value a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 2px; }
.abo-detail__value a::after {
  content: ""; flex: none; width: 20px; height: 20px; background: currentColor;
  -webkit-mask: url("../icons/osc/chevron-right-20.svg") center / contain no-repeat;
          mask: url("../icons/osc/chevron-right-20.svg") center / contain no-repeat;
}
/* "Laufzeiten": overline header, rows of 15px text, the current row bold with a bar on the left */
.abo-detail__runtime { display: grid; gap: 16px; }
.osc .abo-detail__runtime-title { font: 700 15px/1.3 var(--font-sans); }
.abo-detail__table { width: 100%; border-collapse: separate; border-spacing: 0 8px; margin: -8px 0; font: 400 15px/1.3 var(--font-sans); color: var(--c-text); }
.abo-detail__table th {
  padding: 0 4px 4px 6px; text-align: left; vertical-align: top;
  font: 400 11px/1.1 var(--font-sans); letter-spacing: .1px; text-transform: uppercase;
}
.abo-detail__table td { padding: 2px 4px 2px 6px; vertical-align: middle; }   /* 24px rows, 8px apart (Figma) */
.abo-detail__table td:first-child { box-shadow: inset 2px 0 0 transparent; }
.abo-detail__table :is(th, td).is-price { width: 80px; padding-right: 0; text-align: right; white-space: nowrap; }
.abo-detail__table tr.is-current td { font-weight: 700; }
.abo-detail__table tr.is-current td:first-child { box-shadow: inset 2px 0 0 currentColor; }
/* "Jetzt auch digital lesen" (Figma "upsale", dark band at the top of the panel; light in dark mode). No target yet. */
.abo-upsell {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: -16px -16px -8px; padding: 8px 16px;
  background: var(--c-btn-strong-bg); color: var(--c-btn-strong-fg);
}
.abo-upsell__main { display: flex; align-items: center; gap: 20px; min-width: 0; }
.osc .abo-upsell__image { flex: none; width: 72px; height: 60px; object-fit: cover; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .1)); }
.osc .abo-upsell__text { font: 700 22px/1.6 var(--font-sans); color: inherit; }
.abo-upsell__arrow { width: 32px; height: 32px; -webkit-mask-image: url("../icons/osc/arrow-right-32.svg"); mask-image: url("../icons/osc/arrow-right-32.svg"); }
@media (max-width: 420px) {
  .abo-upsell__main { gap: 12px; }
  .osc .abo-upsell__text { font-size: 19px; line-height: 1.3; }
}
/* section headers ("Urlaubsservice", "Aktionen"): 17px bold above a divider */
.abo-detail__section { display: grid; }
.osc .abo-detail__section-title { padding-bottom: 10px; margin-bottom: 20px; border-bottom: 1px solid var(--c-divider); font: 700 17px/1.3 var(--font-sans); color: var(--c-text); }
.osc .abo-detail__section--actions .abo-detail__section-title { margin-bottom: 8px; }
/* Existing holiday pauses (bzu-detail.js): one grey box per BZU; actions and the open form inside */
.abo-detail__section .abo-bzu + .abo-bzu { margin-top: 8px; }
/* "wird geladen / wird übernommen" line and the note when a change did not show in time (bzu-detail.js);
   focused by start.js like the section title, without a ring */
.abo-detail__section > .osc-loading,
.abo-detail__section > .abo-detail__status { margin-bottom: 12px; }
.osc .abo-detail__section-title:focus,
.osc .abo-detail__status:focus { outline: none; }
.abo-bzu { display: grid; gap: 8px; padding: 8px; background: var(--c-surface-2); }
.osc .abo-bzu__title { display: flex; align-items: flex-start; gap: 14px; font: 700 15px/1.3 var(--font-sans); color: var(--c-text); }
.abo-bzu__title::before {
  content: ""; flex: none; width: 20px; height: 20px; background: currentColor;
  -webkit-mask: url("../icons/osc/wetter.svg") center / contain no-repeat;
          mask: url("../icons/osc/wetter.svg") center / contain no-repeat;
}
.osc .abo-bzu__dates { padding-left: 34px; font: 400 15px/16px var(--font-sans); color: var(--c-text); }
.osc .abo-bzu__meta { padding-left: 34px; font: var(--t-meta-2); color: var(--c-text-muted); }
/* one that may be changed: the whole box is a button with a chevron, it opens the dialog */
.osc .abo-bzu--action {
  grid-template-columns: minmax(0, 1fr) 20px; width: 100%; border: 0; border-radius: 0; cursor: pointer;
  font: inherit; color: var(--c-text); text-align: left;
}
.abo-bzu--action > * { grid-column: 1; }
.abo-bzu--action::after {
  content: ''; grid-column: 2; grid-row: 1; width: 20px; height: 20px; background: currentColor;
  -webkit-mask: url('../icons/osc/chevron-right-20.svg') center / contain no-repeat;
          mask: url('../icons/osc/chevron-right-20.svg') center / contain no-repeat;
}
.abo-bzu--action:hover .abo-bzu__title { text-decoration: underline; text-underline-offset: 2px; }
/* "Urlaubsservice bearbeiten" dialog (bzu-detail.js, F.A.Z. prototype): title, question, grey summary box,
   options as boxes (radios without the dot, the chosen one framed), "Abbrechen" left and "Weiter" right */
.modal--bzu { max-width: 480px; padding-top: var(--s-5); }
.modal--bzu .modal__body { display: grid; gap: 16px; }
.modal--bzu .modal__body > div:empty { display: none; }   /* the error slot of the confirmation, until needed */
.osc .modal--bzu .modal__title:focus { outline: none; }
.modal__foot.modal__foot--split { justify-content: space-between; }   /* beats .modal__foot--row (later in the file) */
.abo-bzu__summary { display: grid; gap: 4px; padding: 16px; background: var(--c-surface-grey); }
.osc .abo-bzu__summary-range { font: 700 15px/1.3 var(--font-sans); color: var(--c-text); }
.osc .abo-bzu__summary-text { font: var(--t-meta-2); color: var(--c-text); }
.osc-choices--tiles .check.osc-choice { position: relative; gap: 0; padding: 16px; }
.osc-choices--tiles .osc-choice input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.osc-choices--tiles .osc-choice:has(input:checked) { border-color: var(--c-text); box-shadow: inset 0 0 0 1px var(--c-text); }
.osc-choices--tiles .osc-choice:has(input:focus-visible) { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.osc-choices--tiles .osc-choice__title { font: 700 15px/1.3 var(--font-sans); }
.osc-choices--tiles .osc-choice__meta { margin-top: 4px; color: var(--c-text); }
.abo-bzu__box:empty { display: none; }
/* "Aktionen": icon, label, chevron (links; a button where there is no target yet) */
.abo-detail__actions { display: grid; }
.osc .abo-detail__action {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 0; border: 0; background: none; cursor: pointer;
  font: 400 14px/1.4 var(--font-sans); color: var(--c-text); text-align: left; text-decoration: none;
}
.osc .abo-detail__action:hover { opacity: 1; }
.osc .abo-detail__action:hover > span:not(.osc-icon) { text-decoration: underline; text-underline-offset: 2px; }
.abo-detail__action > .osc-icon { width: 20px; height: 20px; }
.abo-detail__action > span:not(.osc-icon) { flex: 1; min-width: 0; }
.abo-detail__action::after {
  content: ""; flex: none; width: 20px; height: 20px; background: currentColor;
  -webkit-mask: url("../icons/osc/chevron-right-20.svg") center / contain no-repeat;
          mask: url("../icons/osc/chevron-right-20.svg") center / contain no-repeat;
}
@media (max-width: 767.98px) {
  /* the detail uses the full width (8px margins, Figma) */
  .osc-app__content:has(> [data-osc-body] > .abo-detail:not([hidden])) { padding-inline: 8px; padding-top: 0; }
  .osc .abo-detail__back { padding: 20px 0 20px 10px; }
}
/* Info icon upside down = "!" — the Figma set has no exclamation icon (project extension) */
.icon--flip { transform: rotate(180deg); }

/* -------------------- Promo (no subscription yet) -------------------- */
/* From the project-lead mock "02_NoAbo": permanent dark FAZ-Grey panel with
   the F+ mark, headline, text and a primary button. The F+ badge itself was
   never exported from Figma; the Fraktur F stands in for it. */
.osc-promo {
  display: grid; justify-items: center; gap: var(--s-3); text-align: center;
  padding: var(--s-6) var(--s-5); border-radius: var(--r-lg);
  background: var(--faz-grey-dark); color: var(--white);
}
.osc-promo__mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-sm);
  background: var(--faz-grey); color: var(--faz-darkblue);
}
.osc-promo__mark svg { width: 24px; height: 24px; }
.osc .osc-promo__title { font: var(--t-subhead-3); text-transform: uppercase; letter-spacing: .04em; }
.osc .osc-promo__text { font: var(--t-meta-2); color: var(--grey-700); }
.osc-promo .btn { margin-top: var(--s-2); }

/* -------------------- Badge / status pill -------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font: var(--t-meta-1); padding: 3px 10px; border-radius: var(--r-pill);
  background: var(--c-neutral-bg); color: var(--c-text-muted);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--active  { background: var(--c-success-bg); color: var(--c-success); }
.badge--paused  { background: var(--c-warning-bg); color: var(--c-warning); }
.badge--ended   { background: var(--c-danger-bg);  color: var(--c-danger); }
.badge--digital { background: var(--c-info-bg); color: var(--c-info); }
.badge--print   { background: var(--c-neutral-bg); color: var(--c-text-muted); }
.badge.no-dot::before { display: none; }

/* -------------------- Hinweis (dynamic notice) -------------------- */
/* Data-driven notice band — used for price-increase comms etc. */
.hinweis {
  display: flex; gap: var(--s-3); align-items: flex-start;
  padding: 14px 16px; border-radius: var(--r-md);
  border: 1px solid var(--c-border);
  background: var(--c-info-bg); color: var(--c-text);
  border-left: 4px solid var(--c-info);
}
.hinweis--success { background: var(--c-success-bg); border-left-color: var(--c-success); }
.hinweis--warning { background: var(--c-warning-bg); border-left-color: var(--c-warning); }
.hinweis--danger  { background: var(--c-danger-bg);  border-left-color: var(--c-danger); }
.hinweis__icon { flex: none; width: 22px; height: 22px; color: var(--c-info); }
.hinweis--success .hinweis__icon { color: var(--c-success); }
.hinweis--warning .hinweis__icon { color: var(--c-warning); }
.hinweis--danger .hinweis__icon  { color: var(--c-danger); }
.hinweis__title { font: var(--t-subhead-3); margin-bottom: 2px; }
.hinweis__text  { font: var(--t-meta-2); color: var(--c-text-muted); }

/* ==================== OSC pages: generic building blocks ====================
   Structure from the F.A.Z. prototype (figma.site), look kept plain: the F.A.Z.
   redesign ("greenfield") follows. Built by osc-page.js helpers. Project extension. */

/* main action in flows and forms (prototype: dark button; light in dark mode) */
.btn--strong { --btn-bg: var(--c-btn-strong-bg); --btn-fg: var(--c-btn-strong-fg); }

/* panels: white areas on the grey page */
.osc-panel { background: var(--c-surface); border: 1px solid var(--c-border); padding: 24px 28px; }
.osc .osc-panel__title { font: var(--t-subhead-2); color: var(--c-text); }
.osc-panel > * + * { margin-top: var(--s-5); }
@media (max-width: 767.98px) { .osc-panel { padding: 20px 16px; } }
/* grey inner box for the question of a step */
.osc-subpanel { background: var(--c-surface-2); border: 1px solid var(--c-border); padding: 20px; }
.osc-subpanel > * + * { margin-top: var(--s-3); }
/* A postal address as lines (e.g. where the Urlaubsgutscheine are sent) */
.osc .osc-address { margin: 0; white-space: pre-line; font: var(--t-meta-1); color: var(--c-text-muted); }
/* A short list inside a notice (e.g. subscriptions that cannot get a holiday service, with the reason) */
.osc .osc-list { margin: 0; padding-left: var(--s-5); font: var(--t-meta-2); color: var(--c-text); }
.osc .osc-list li + li { margin-top: var(--s-1); }
/* split action row under a divider: secondary left, main action right */
.osc-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.osc-actions--split { justify-content: space-between; padding-top: var(--s-5); border-top: 1px solid var(--c-border); }
.osc-actions--split > :only-child { margin-left: auto; }
/* single form like Abo verknüpfen (prototype): narrow panel, button on the left, short field for the postcode */
.osc-panel--narrow { max-width: 520px; }
.osc-actions--split.osc-actions--start > :only-child { margin-left: 0; }
.osc-field--short { max-width: 200px; }
/* small uppercase field labels (prototype) */
.osc-label { display: block; margin-bottom: 8px; font: 700 12px/1.5 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--c-text-muted); }
.osc-intro { font: var(--t-meta-2); color: var(--c-text); }
.osc-hint { font: var(--t-meta-2); color: var(--c-text-muted); }
.osc-backlink { display: inline-flex; align-items: center; gap: 4px; font: var(--t-meta-2); }
.osc .osc-backlink { color: var(--c-text-muted); text-decoration: none; }

/* label/value list */
.osc-fields { margin: 0; }
.osc-field {
  display: grid; grid-template-columns: minmax(140px, 1fr) 2fr; gap: var(--s-4);
  padding: 10px 0; border-bottom: 1px solid var(--c-border);
}
.osc-field:last-child { border-bottom: 0; }
.osc-field__label { font: var(--t-meta-2); color: var(--c-text-subtle); }
.osc-field__value { margin: 0; font: 600 15px/1.5 var(--font-sans); color: var(--c-text); white-space: pre-line; overflow-wrap: anywhere; }
@media (max-width: 767.98px) { .osc-field { grid-template-columns: 1fr; gap: 2px; } }
/* stacked label/value blocks in two columns (Persönliche Daten) */
.osc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s-5) var(--s-6); margin: 0; }
.osc-fact dt { font: 700 12px/1.5 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--c-text-muted); margin-bottom: 6px; }
.osc-fact dd { margin: 0; font: var(--t-meta-2); color: var(--c-text); white-space: pre-line; overflow-wrap: anywhere; }
.osc-fact dd.is-empty { font-style: italic; color: var(--c-text-muted); }
.osc-facts .osc-facts { grid-template-columns: 1fr; }   /* a column inside the two-column layout */

/* two-column form grid (address etc.); single column on phones */
.osc-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3) var(--s-4); }
.osc-grid2 > .is-wide { grid-column: 1 / -1; }
@media (max-width: 767.98px) { .osc-grid2 { grid-template-columns: 1fr; } }
.osc-form { display: grid; gap: var(--s-5); }

/* tables */
.osc-table-wrap { overflow-x: auto; }
.osc-table { width: 100%; border-collapse: collapse; font: var(--t-meta-2); }
.osc-table th, .osc-table td { text-align: left; vertical-align: middle; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--c-border); }
.osc-table th { font: 700 12px/1.5 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--c-text-muted); }
.osc-table td { color: var(--c-text); }
.osc-table .is-actions { text-align: right; white-space: nowrap; }
.osc-filters { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.osc-filters .osc-input:first-child { flex: 1 1 240px; }
.osc-filters .osc-input[type="date"] { flex: 0 0 160px; }

/* flow progress: numbered dots on a line; done = check mark, current = filled */
.osc-stepper { display: flex; margin: 0; padding: 0; list-style: none; }
.osc-stepper li { position: relative; flex: 1; display: grid; justify-items: center; gap: 6px; text-align: center; }
.osc-stepper li::before {  /* line to the previous step */
  content: ""; position: absolute; top: 11px; right: 50%; width: 100%; height: 3px; background: var(--c-border);
}
.osc-stepper li:first-child::before { display: none; }
.osc-stepper li.is-done::before, .osc-stepper li.is-current::before { background: var(--c-text); }
.osc-stepper__dot {  /* z-index: above the line that the next step draws back to this one */
  position: relative; z-index: 1; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--c-border); color: var(--c-text-muted); font: 700 11px/1 var(--font-sans);
}
.osc-stepper .is-done .osc-stepper__dot, .osc-stepper .is-current .osc-stepper__dot { background: var(--c-text); color: var(--c-surface); }
.osc-stepper__label { font: 700 11px/1.4 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--c-text-subtle); }
.osc-stepper .is-done .osc-stepper__label { color: var(--c-text-muted); }
.osc-stepper .is-current .osc-stepper__label { color: var(--c-text); }
@media (max-width: 767.98px) {
  .osc-stepper__label { display: none; }
  .osc-stepper .is-current .osc-stepper__label { display: block; }
}

/* selectable rows (radio / checkbox), with optional badges and meta lines */
.osc-choices { display: grid; gap: var(--s-3); margin: 0; padding: 0; border: 0; min-width: 0; }
.osc-choices legend { padding: 0; margin-bottom: var(--s-3); font: var(--t-meta-1); color: var(--c-text); }
.check.osc-choice { width: auto; padding: 16px 20px; background: var(--c-surface); border: 1px solid var(--c-border); cursor: pointer; align-items: center;}
.check.osc-choice:has(input:checked) { border-color: var(--c-text); background: var(--c-surface-2); }
.osc-choice__title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: var(--t-meta-1); color: var(--c-text); }
.osc-choice__meta { display: block; font: var(--t-meta-2); color: var(--c-text-muted); }

/* option tiles (e.g. Ersatzleistung): a button per option */
.osc-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s-3); }
.osc-tile {
  display: grid; gap: 6px; align-content: start; padding: 16px; text-align: left; cursor: pointer;
  background: var(--c-surface); border: 1px solid var(--c-border); color: var(--c-text); font: inherit;
}
.osc-tile:hover { border-color: var(--c-text); }
.osc-tile__title { font: var(--t-meta-1); }
.osc-tile__text { font: 400 13px/1.5 var(--font-sans); color: var(--c-text-muted); }
.osc-tile.is-selected { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); border: 2px solid var(--c-text); cursor: default; }

/* list rows that open a detail (Nutzer verwalten) */
.osc-rows { display: grid; gap: var(--s-3); }
.osc .osc-row {
  display: flex; align-items: center; gap: var(--s-4); padding: 20px 24px; text-decoration: none; color: var(--c-text);
  background: var(--c-surface); border: 1px solid var(--c-border);
}
.osc .osc-row:hover { border-color: var(--c-text); opacity: 1; }
.osc-row__main { flex: 1; min-width: 0; }
.osc-row__title { display: block; font: var(--t-meta-1); }
.osc-row__meta { display: block; font: var(--t-meta-2); color: var(--c-text-muted); }
.osc-row__side { display: flex; align-items: center; gap: var(--s-3); }
.osc-row__chevron {
  width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("../icons/navigation/chevron-right.svg") center / contain no-repeat;
          mask: url("../icons/navigation/chevron-right.svg") center / contain no-repeat;
}
.osc-chip { padding: 6px 12px; background: var(--c-surface-2); font: var(--t-meta-1); color: var(--c-text); }
.osc-progress { height: 6px; background: var(--c-border); }
.osc-progress > span { display: block; height: 100%; background: var(--c-text); }
/* notice without title (info boxes in flows): body text only */
.hinweis__title--plain { font: var(--t-meta-2); color: var(--c-text); margin-bottom: 0; }
/* info icon in short hints (page.hint), as in the prototype */
.hinweis__icon--info {
  width: 18px; height: 18px; margin-top: 1px; background: currentColor;
  -webkit-mask: url("../icons/basic/info.svg") center / contain no-repeat;
          mask: url("../icons/basic/info.svg") center / contain no-repeat;
}

/* Text fields on OSC pages as in the F.A.Z. prototype: once filled, the small label has its own
   14px line above the value (the styleguide field puts the label directly on the value in 40px) */
.osc-app .field__box { height: 47px; padding-block: 0; }
.osc-app .field__text, .osc-app .field .input { height: 35px; }
.osc-app .field__box:focus-within .field__label,
.osc-app .field__box:has(input.input:not(:placeholder-shown):not([type="date"])) .field__label,
.osc-app .field__box.is-filled .field__label { line-height: 14px; }
.osc-app .field__box:focus-within .input,
.osc-app .field__box:has(input.input:not(:placeholder-shown):not([type="date"])) .input,
.osc-app .field__box.is-filled .input { padding-top: 14px; line-height: 21px; }

/* File upload (page.fileField): the native input stays focusable but hidden, the label is the button */
.osc-file__btn { align-self: flex-start; cursor: pointer; }
.osc-file__icon {
  flex: none; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("../icons/basic/share-ios.svg") center / contain no-repeat;
          mask: url("../icons/basic/share-ios.svg") center / contain no-repeat;
}
.osc .osc-file__input:focus-visible + .osc-file__btn { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.osc-file__list { margin-top: var(--s-2); }

/* ==================== Flows ("Neues OSC") ====================
   Figma "Neues OSC", page "Urlaubsservice_neu", section "Urlaubsservice Flow" (desktop 1280 / tablet 768 /
   mobile 375); built by the flow helpers in osc-page.js (flow, options, chosenOption, reviewGroup).
   Design status in Figma: "In Arbeit" (2026-11-16). One white panel per step: tabs per subscription, the
   step as an overline ("2/4 ZEITRAUM"), the question, the content, "Zurück" left and the main action right.
   Below 768px the tabs become one tab with arrows on the grey above the panel.
   <div class="osc-flow">
     <nav class="osc-flow-tabs">‹ <ul class="osc-flow-tabs__list"><li><button class="osc-flow-tabs__tab">…</button></li></ul> ›</nav>
     <section class="osc-flow__panel"><h2 class="osc-flow__step">…</h2><form class="osc-flow__form">…</form></section>
   </div> */
/* the panel level with the menu (Figma): no stack gap below the visually hidden page heading */
.osc .osc-app__content:has(> [data-osc-body]:not([hidden]) .osc-flow) > * + * { margin-top: 0; }
.osc-flow {
  display: grid; gap: 24px; min-width: 0; padding: 20px;
  background: var(--c-surface); border: 1px solid var(--c-surface-grey); color: var(--c-text);
}
.osc-flow__panel { display: grid; gap: 16px; min-width: 0; }
.osc .osc-flow__step { font: var(--t-overline); letter-spacing: .2px; text-transform: uppercase; color: var(--c-text); }
.osc .osc-flow__step:focus { outline: none; }   /* focus target on a change of step (tabindex -1) */
.osc-flow__form { display: grid; gap: 24px; min-width: 0; }
.osc-flow__form > [aria-live]:empty { position: absolute; }   /* error slot, until needed: out of the grid, no extra gap */
.osc .osc-flow__question { font: var(--t-meta-2); color: var(--c-text); }
.osc-flow__group { display: grid; gap: 24px; min-width: 0; }
.osc-flow .hinweis > .stack-sm { flex: 1; min-width: 0; }   /* full width for the dividers below */
.osc-flow .osc-grid2 { gap: 16px; }
/* "Zurück" left, main action right, 32px below the content (24 gap + 8) */
.osc-flow__actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 8px; }
.osc-flow__actions > :only-child { margin-left: auto; }
.osc-flow__actions > .btn--strong { margin-left: auto; }   /* the main action stays right, also when "Zurück" is hidden */
.osc-flow .btn { padding: 0 18px; }
.osc-flow .btn--secondary { border-width: 1.25px; }
.osc-flow .btn--strong:disabled,
.osc-flow .btn--strong:disabled:hover { opacity: 1; background: var(--c-btn-strong-disabled); }

/* Text, date and select fields at 40px with the label inside (styleguide field; the 47px prototype field
   elsewhere on OSC pages) */
.osc-flow .field__box { height: 40px; padding-block: 8px; }
.osc-flow .field__text, .osc-flow .field .input { height: 24px; }
.osc-flow .field__box:focus-within .field__label,
.osc-flow .field__box:has(input.input:not(:placeholder-shown):not([type="date"])) .field__label,
.osc-flow .field__box.is-filled .field__label { line-height: 1; }
.osc-flow .field__box:focus-within .input,
.osc-flow .field__box:has(input.input:not(:placeholder-shown):not([type="date"])) .input,
.osc-flow .field__box.is-filled .input { padding-top: 10px; line-height: 14px; }
/* date: Figma calendar icon as the browser's picker button (Chrome/Edge; Firefox keeps its own, Safari has
   none). Empty and not focused, the browser's "tt.mm.jjjj" is hidden: the label stands in for it. */
/* mobile browsers (Android, iOS) draw the date as a centred value of their own: back to a plain left-aligned
   line, so it sits below the label like typed text */
.field--date .input { display: block; min-width: 0; padding-right: 32px; -webkit-appearance: none; appearance: none; text-align: left; }
.field--date .input::-webkit-date-and-time-value { margin: 0; text-align: left; line-height: inherit; }
.field--date .field__box:not(.is-filled):not(:focus-within) .input { color: transparent; }
.field--date .input::-webkit-calendar-picker-indicator {
  position: absolute; top: 0; right: 0; width: 24px; height: 24px; margin: 0; padding: 0; cursor: pointer;
  background: var(--c-text);
  -webkit-mask: url("../icons/osc/calendar-24.svg") center / contain no-repeat;
          mask: url("../icons/osc/calendar-24.svg") center / contain no-repeat;
}
.field--date .field__box:has(.input:disabled) { cursor: not-allowed; }
.field--date .field__box:has(.input:disabled) .field__label { color: var(--c-text-disabled); }
.field--date .input:disabled::-webkit-calendar-picker-indicator { background: var(--c-text-disabled); cursor: not-allowed; }
/* select: no browser arrow, the chevron of the menu instead */
.field--select .field__box { position: relative; cursor: pointer; }
.field--select .input { appearance: none; padding-right: 32px; cursor: pointer; }
.field--select .input option { color: var(--c-text); background: var(--c-field-bg); }
.field--select .field__box::after {
  content: ""; position: absolute; top: 50%; right: 10px; width: 20px; height: 20px; translate: 0 -50%; rotate: 180deg;
  background: var(--c-text); pointer-events: none;
  -webkit-mask: url("../icons/osc/chevron-up-20.svg") center / contain no-repeat;
          mask: url("../icons/osc/chevron-up-20.svg") center / contain no-repeat;
}

/* Tabs, one per chosen subscription ("Segmented Control"): "ABO 2 VON 3" + name; the current one bold with
   a 2px line, those not reached yet are disabled */
.osc-flow-tabs { display: flex; align-items: stretch; min-width: 0; }
.osc-flow-tabs__list { display: flex; flex: 1; min-width: 0; margin: 0; padding: 0; list-style: none; }
.osc-flow-tabs__list > li { display: flex; flex: 1 1 0; min-width: 0; }
.osc .osc-flow-tabs__tab {
  display: flex; flex: 1; flex-direction: column; align-items: center; gap: 6px; min-width: 0;
  padding: 12px 12px 10px; border: 0; border-bottom: 1px solid var(--c-divider); border-radius: 0; background: none; cursor: pointer;
  font: 400 15px/16px var(--font-sans); color: var(--c-text); text-align: center;
}
.osc-flow-tabs__count { font: var(--t-overline); letter-spacing: .2px; text-transform: uppercase; }
.osc-flow-tabs__name { max-width: 100%; overflow-wrap: anywhere; }
.osc .osc-flow-tabs__tab[aria-current] { font-weight: 700; border-bottom-color: var(--c-text); box-shadow: inset 0 -1px 0 var(--c-text); cursor: default; }
/* not reached yet: muted, so it does not look clickable (the next subscriptions while going through the steps) */
.osc .osc-flow-tabs__tab:disabled { cursor: default; color: var(--c-text-disabled); }
/* started, not finished (e.g. left with the Ersatzleistung incomplete): an orange dot after "Abo 1 von 2" */
.osc-flow-tabs__tab.is-incomplete .osc-flow-tabs__count::after {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%;
  background: var(--c-warning); vertical-align: 1px;
}
.osc .osc-flow-tabs__tab:not([aria-current]):not(:disabled):hover .osc-flow-tabs__name { text-decoration: underline; text-underline-offset: 2px; }
.osc-flow-tabs__arrow { display: none; }

/* Choice boxes (page.options): control, bold title, 15px text; chosen = grey with a dark frame. "more"
   (explanation, address) only while chosen. Rows: no boxes, dividers between (saved addresses). */
.osc-options { display: grid; gap: 16px; min-width: 0; }
.osc-option {
  display: grid; min-width: 0; padding: 12px;
  background: var(--c-surface); border: 1px solid var(--c-divider); border-radius: var(--r-sm); color: var(--c-text);
}
.osc-option:has(input:checked) { background: var(--c-surface-2); border-color: var(--c-text); }
.osc-option:has(input:focus-visible) { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.osc .check.osc-option__label { width: auto; gap: 12px; font: inherit; color: inherit; }
.osc .osc-option__label input { margin-top: 2px; }
.osc .osc-option__label input:focus-visible { outline: none; }   /* the box shows the focus */
.osc-option__body { display: grid; flex: 1; gap: 4px; min-width: 0; }
.osc .osc-option__title { font: 700 15px/1.3 var(--font-sans); color: var(--c-text); overflow-wrap: anywhere; }
.osc .osc-option__title--plain { font-weight: 400; line-height: 16px; }
.osc .osc-option__text { font: 400 15px/1.7 var(--font-sans); color: var(--c-text); overflow-wrap: anywhere; }
.osc-option__more { display: grid; gap: 8px; margin-top: 12px; padding-left: 30px; }   /* under the text (18px control + 12px) */
.osc-option:not(:has(input:checked)) > .osc-option__more { display: none; }
.osc .osc-option__explain { font: var(--t-meta-2); color: var(--c-text); }
.osc .osc-option__more .osc-address { font: var(--t-meta-2); color: var(--c-text); }
.osc-options--rows { gap: 12px; }
.osc-options--rows > .osc-option { padding: 0; border: 0; border-radius: 0; }
.osc-options--rows > .osc-option,
.osc-options--rows > .osc-option:has(input:checked) { background: none; }
.osc-options--rows > .osc-option + .osc-option,
.osc-options--rows > .osc-option + .osc-option:has(input:checked) { padding-top: 12px; border-top: 1px solid var(--c-divider); }
/* the chosen option folded, "Auswahl ändern ›" on the right (Reisenachsendung) */
.osc-option--chosen {
  display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: flex-start; gap: 12px;
  background: var(--c-surface-2); border-color: var(--c-text);
}
.osc-option--chosen:focus { outline: none; }
.osc-option--chosen > .osc-option__body { flex: 1 1 237px; }
.osc .osc-option__change {
  display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; cursor: pointer;
  font: 700 15px/16px var(--font-sans); color: var(--c-text); white-space: nowrap;
}
.osc-option__change::after {
  content: ""; flex: none; width: 20px; height: 20px; background: currentColor;
  -webkit-mask: url("../icons/osc/chevron-right-20.svg") center / contain no-repeat;
          mask: url("../icons/osc/chevron-right-20.svg") center / contain no-repeat;
}
.osc-option__change:hover { text-decoration: underline; text-underline-offset: 2px; }

/* Summary (page.reviewGroup): 20px title ("Entfernen" next to it), label/value rows, divider between. A value
   that can be changed is a button with a chevron (as the links in the subscription detail). */
.osc-reviews { display: grid; gap: 12px; min-width: 0; }
.osc-review { display: grid; gap: 12px; min-width: 0; }
.osc-review + .osc-review { padding-top: 12px; border-top: 1px solid var(--c-divider); }
.osc-review__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.osc .osc-review__title { min-width: 0; font: 700 20px/1.6 var(--font-sans); color: var(--c-text); overflow-wrap: anywhere; }
.osc .osc-review__title:focus { outline: none; }   /* focus target after a change (tabindex -1) */
.osc .osc-review__remove { flex: none; height: auto; padding: 0; }
.osc .osc-review__change {
  display: inline-flex; align-items: flex-start; justify-content: flex-end; gap: 8px; max-width: 100%; padding: 0;
  border: 0; background: none; cursor: pointer; font: inherit; color: inherit; text-align: right;
}
.osc-review__change::after {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: -2px; background: currentColor;
  -webkit-mask: url("../icons/osc/chevron-right-20.svg") center / contain no-repeat;
          mask: url("../icons/osc/chevron-right-20.svg") center / contain no-repeat;
}
.osc-review__value--lines .osc-review__change::after { margin-top: 3px; }
.osc-review__change:hover .osc-review__text { text-decoration: underline; text-underline-offset: 2px; }
.osc .osc-review__change:disabled, .osc .osc-review__remove:disabled { color: var(--c-text-disabled); cursor: default; }   /* while a booking runs */
.osc .osc-review__change.is-static { color: inherit; }   /* after a partly failed booking: plain values */
.osc-review__change.is-static::after { display: none; }
.osc-review > .hinweis { margin-top: 4px; }
.osc .osc-review__row { display: flex; align-items: flex-start; gap: 8px; margin: 0; }
/* the label as wide as it needs (at most half), the value the rest: words do not break in the middle on phones */
.osc .osc-review__label { flex: 0 1 auto; max-width: 50%; min-width: 0; font: 700 15px/1.3 var(--font-sans); color: var(--c-text); }
.osc .osc-review__value { flex: 1 1 0; min-width: 0; margin: 0; font: 400 15px/16px var(--font-sans); color: var(--c-text); text-align: right; overflow-wrap: break-word; }
.osc .osc-review__value--lines { margin-top: -4px; line-height: 1.7; }   /* wrapping values (address): 15/1.7 */

/* Booked (earlier Figma draft "Erfolgreiche Bestätigung"): check, title, text centred, then what was booked */
.osc-flow__panel.osc-flow-done { gap: 24px; }
.osc-flow-done__head { display: grid; justify-items: center; gap: 8px; text-align: center; }
.osc-flow-done__icon {
  width: 40px; height: 40px; color: var(--c-success);
  -webkit-mask-image: url("../icons/osc/status-active.svg"); mask-image: url("../icons/osc/status-active.svg");
}
.osc .osc-flow-done__title { font: 700 20px/1.3 var(--font-sans); color: var(--c-text); }
.osc .osc-flow-done__title:focus { outline: none; }
.osc-flow-done .osc-flow__actions { justify-content: center; }

@media (max-width: 767.98px) {
  .osc-app__content:has(> [data-osc-body] .osc-flow) { padding-inline: 8px; }   /* 8px margins (Figma) */
  .osc-flow { gap: 0; padding: 0; background: none; border: 0; }
  .osc-flow__panel { padding: 20px; background: var(--c-surface); }
  /* the current tab with arrows, on the grey */
  .osc-flow-tabs { align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px 12px; }
  .osc-flow-tabs__list > li:not(:has([aria-current])) { display: none; }
  .osc .osc-flow-tabs__tab,
  .osc .osc-flow-tabs__tab[aria-current] { gap: 4px; padding: 12px; border: 0; box-shadow: none; }
  .osc .osc-flow-tabs__arrow {
    display: grid; place-items: center; flex: none; width: 40px; height: 40px; margin: -10px; padding: 0;
    border: 0; background: none; color: var(--c-text); cursor: pointer;
  }
  .osc .osc-flow-tabs__arrow:disabled { color: var(--c-text-disabled); cursor: default; }
  .osc-flow-tabs__arrow .osc-icon {
    width: 20px; height: 20px;
    -webkit-mask-image: url("../icons/osc/chevron-right-20.svg"); mask-image: url("../icons/osc/chevron-right-20.svg");
  }
  .osc-flow-tabs__arrow--prev .osc-icon { transform: scaleX(-1); }
}

/* -------------------- Page loader --------------------
   Status line of osc-page.js while the customer data loads: the loading icon
   of the buttons (--icon-loading) before the text. osc-page.js shows it only
   when loading takes longer than LOADER_DELAY, so fast loads do not flash. */
.osc-loading { display: flex; align-items: center; gap: var(--s-2); color: var(--c-text-muted); }
.osc-loading::before {
  content: ""; width: 24px; height: 24px; flex: none;
  background: currentColor;
  -webkit-mask: var(--icon-loading) center / contain no-repeat;
          mask: var(--icon-loading) center / contain no-repeat;
  animation: btn-spin 1.2s linear infinite;
}

/* -------------------- Steps (flow progress) -------------------- */
/* Verified (OSC clickdummy): a centred text line — "Schritt 1 von 3",
   14px SemiBold with the numbers in Bold. No dots/bars. */
.steps {
  display: flex; align-items: center; justify-content: center;
  min-height: 36px; margin: 0;
  font: 600 14px/1.4 var(--font-sans); color: var(--c-text); text-align: center;
}
.steps b { font-weight: 700; }

/* -------------------- Modal / Overlay --------------------
   Verified against OSC clickdummy (US_1):
   floating dialog on all viewports (20px side margins on mobile),
   square corners, shadow 0 4px 37px, overlay rgba(0,0,0,.2),
   close row on top, centred step line, left-aligned title (Subhead 3),
   20px content inset, stacked centred buttons — no divider rules. */
.overlay {
  position: fixed; inset: 0; z-index: var(--z-overlay);
  background: var(--c-overlay);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 10vh 20px 20px; overflow-y: auto;
  opacity: 0; visibility: hidden;
  /* closing: fade out, THEN hide */
  transition: opacity var(--dur) var(--ease), visibility 0s linear var(--dur);
}
/* opening: visible immediately, so focus() can move into the dialog in the same tick */
.overlay.is-open { opacity: 1; visibility: visible; transition: opacity var(--dur) var(--ease), visibility 0s; }
.overlay[hidden] { display: none; }   /* [hidden] must beat display:flex */

.modal {
  position: relative; z-index: var(--z-modal);
  width: 100%; max-width: var(--modal-width);
  max-height: 85vh; display: flex; flex-direction: column;
  background: var(--c-surface); color: var(--c-text);
  border-radius: var(--r-modal);
  box-shadow: var(--shadow-modal);
  padding-bottom: var(--s-5);
  transform: translateY(12px); transition: transform var(--dur) var(--ease);
}
.overlay.is-open .modal { transform: none; }
.modal--wide { max-width: 760px; }

/* top row: only the close button, right-aligned */
.modal__head {
  display: flex; align-items: flex-start; justify-content: flex-end;
  padding: 10px 10px 0;
}
.modal__close {
  flex: none; width: 40px; height: 40px; border-radius: var(--r-sm);
  border: none; background: transparent; color: var(--c-text); cursor: pointer;
  display: grid; place-items: center;
}
.modal__close:hover { opacity: .7; }

/* title sits in the body, left-aligned — Subhead 3 (15px Bold);
   scales to Subhead 3 M (20) from the Figma "Desktop 812px+" cut (assumption
   — only the mobile clickdummy exists; confirm desktop modal type with FAZ) */
.modal__title { font: var(--t-subhead-3); color: var(--c-text); }
@media (min-width: 812px) {
  .modal__title { font: var(--t-subhead-3-m); }
}
.modal__intro { font: var(--t-meta-2); color: var(--c-text); }
.modal__body { padding: 0 var(--s-4) var(--s-4); overflow-y: auto; }

/* stacked, centred action buttons */
.modal__foot {
  display: flex; flex-direction: column; align-items: center; gap: var(--s-4);
  padding: var(--s-2) var(--s-4) 0;
}
.modal__foot .btn:not(.btn--underline) { align-self: stretch; }
/* confirmation dialog of the OSC pages ("Prozess abbrechen?", prototype): text only, buttons in a row on the right */
.modal--confirm { max-width: 420px; padding-top: var(--s-5); }
.modal__foot--row { flex-direction: row; justify-content: flex-end; gap: var(--s-3); }
.modal__foot--row .btn:not(.btn--underline) { align-self: auto; }

@media (min-width: 768px) {
  .overlay { align-items: center; padding: var(--s-5); }
  .modal__body, .modal__foot { padding-inline: var(--s-5); }
}

/* -------------------- "Nach oben" button --------------------
   F.A.Z. prototype: 44px circle, fixed 28px / 24px from the bottom right,
   darkblue with a white 16px arrow and a soft shadow; fades in after 300px
   of scrolling (osc-ui.js). Uses the strong button colours, so it turns light
   in dark mode. Below overlays and toasts. */
.osc-scroll-top {
  position: fixed; z-index: var(--z-header); bottom: 28px; right: 24px;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: var(--c-btn-strong-bg); color: var(--c-btn-strong-fg);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--faz-darkblue) 25%, transparent);
  cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility 0s linear .2s;
}
.osc-scroll-top.is-visible {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .2s, transform .2s;
}
.osc-scroll-top:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.osc-app__heading:focus { outline: none; }   /* focus target of "Nach oben" (tabindex -1) */

/* -------------------- Toast -------------------- */
.toast-wrap {
  position: fixed; z-index: var(--z-toast); bottom: var(--s-5); left: 50%;
  transform: translateX(-50%); display: flex; flex-direction: column; gap: var(--s-2);
  width: min(440px, calc(100vw - 32px));
}
.toast {
  display: flex; gap: var(--s-3); align-items: center;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-success);
  border-radius: var(--r-md); padding: 12px 16px; box-shadow: var(--shadow-card);
  font: var(--t-meta-1); color: var(--c-text);
}
.toast--error { border-left-color: var(--c-danger); }
