/* ════════════════════════════════════════════════════════════
 * v8-tier1.css — Apple HIG für Tier-1 Rechner
 * Self-contained: keine Abhängigkeit von v8-design.css.
 * ════════════════════════════════════════════════════════════ */

:root {
  --ap-ink:   #1d1d1f;
  --ap-mid:   #515154;
  --ap-muted: #8e8e93;
  --ap-line:  #d2d2d7;
  --ap-bg:    #f5f5f7;
  --ap-white: #fff;
  --ap-teal:  #00afa3;
}

.nav {
  background: rgba(255,255,255,.85) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: .5px solid var(--ap-line) !important;
  box-shadow: none !important;
}
body {
  background: var(--ap-bg) !important;
  color: var(--ap-ink) !important;
  font-family: system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
}

/* Presets bar (Apple Segmented, inside tab) */
.ap-presets {
  display: flex; gap: 3px;
  background: rgba(118,118,128,.10);
  border-radius: 9px; padding: 3px;
  margin: 0 0 22px;
  overflow-x: auto; scrollbar-width: none;
}
.ap-presets::-webkit-scrollbar { display: none; }
.ap-preset-btn {
  flex: 1 1 auto; min-width: max-content;
  padding: 7px 14px;
  background: transparent; border: none; border-radius: 7px;
  font-family: inherit; font-size: 12px; font-weight: 600;
  color: var(--ap-mid); cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s;
}
.ap-preset-btn:hover { color: var(--ap-ink); }
.ap-preset-btn.active {
  background: var(--ap-white); color: var(--ap-ink);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

/* Inline note inside a tab */
.ap-hint {
  margin-top: 18px;
  padding: 12px 14px;
  background: rgba(0,175,163,.05);
  border-left: 2px solid var(--ap-teal);
  border-radius: 0 8px 8px 0;
  font-size: 13px; line-height: 1.55;
  color: var(--ap-ink);
}
.ap-hint strong { color: var(--ap-ink); font-weight: 700; }

/* Hide deploy legacy widgets we don't carry to Tier-1 */
.shock-box, .chart-wrap, .info-hint, .preset-bar { display: none !important; }
[id$="_mindest_hint"], [id$="_betrag_disp"] { display: none !important; }
[id$="_zins_label"] {
  display: inline-block; margin-left: 8px;
  font-size: 11px; font-weight: 700; color: #c2410c;
}

/* ── Reset & Basis ── */
.ap-calc, .ap-how, .ap-explainer, .ap-faq, .ap-related {
  font-family: system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
.ap-calc *, .ap-how *, .ap-faq * { box-sizing: border-box; }

/* ── Mobile Score Bar (Sticky-Top, nur Mobile) ── */
#mob-score-bar {
  display: none;
  position: fixed;
  top: 59px; left: 0; right: 0;
  z-index: 300;
  height: 52px;
  padding: 0 16px;
  background: var(--ap-ink);
  border-bottom: .5px solid rgba(255,255,255,.12);
  box-shadow: 0 4px 20px rgba(0,0,0,.35);
  align-items: center;
  justify-content: space-between;
}
@media (max-width: 640px) {
  #mob-score-bar { display: flex; }
}
#mob-score-bar .msb-label {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255,255,255,.55);
}
#mob-score-bar .msb-right { display: flex; align-items: center; gap: 10px; }
#mob-score-bar .msb-num {
  font-size: 18px; font-weight: 800; color: #fff;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}

/* ── Hero ── */
.ap-mast {
  background: var(--ap-white);
  padding: 48px 0 32px;
  border-bottom: .5px solid var(--ap-line);
}
.ap-mast-inner { max-width: 760px; }
.ap-breadcrumb {
  font-size: 12px; color: var(--ap-muted);
  margin-bottom: 14px; letter-spacing: .01em;
}
.ap-breadcrumb a { color: var(--ap-muted); text-decoration: none; }
.ap-breadcrumb a:hover { color: var(--ap-ink); }
.ap-cat-label {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ap-teal);
  margin-bottom: 12px;
}
.ap-mast h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800; line-height: 1.08;
  letter-spacing: -.03em; color: var(--ap-ink);
  margin: 0 0 14px;
}
.ap-mast-lead {
  font-size: 1.05rem; line-height: 1.55;
  color: var(--ap-mid); margin: 0 0 16px;
  max-width: 640px;
}
.ap-mast-rating {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--ap-muted);
}
.ap-mast-stars { color: #f59e0b; letter-spacing: 1px; }
.ap-mast-score { font-weight: 700; color: var(--ap-ink); }
.ap-mast-count { color: var(--ap-muted); }

/* ── How Section ── */
.ap-how {
  background: var(--ap-bg);
  padding: 28px 0;
}
.ap-how__overline {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ap-teal);
  margin: 0 0 16px;
}
.ap-how__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 18px;
}
@media (max-width: 720px) {
  .ap-how__grid { grid-template-columns: 1fr; }
}
.ap-how__card {
  background: var(--ap-white);
  border: .5px solid var(--ap-line);
  border-radius: 12px;
  padding: 22px 24px;
}
.ap-how__nr {
  font-size: 36px; font-weight: 800;
  color: rgba(0,175,163,.22);
  letter-spacing: -.04em; line-height: 1;
  margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
}
.ap-how__card h3 {
  font-size: 15px; font-weight: 700;
  color: var(--ap-ink); margin: 0 0 8px;
  letter-spacing: -.005em;
}
.ap-how__card p {
  font-size: 13px; line-height: 1.55;
  color: var(--ap-mid); margin: 0;
}
.ap-how__result {
  background: rgba(0,175,163,.05);
  border-left: 2px solid var(--ap-teal);
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  font-size: 13px; line-height: 1.6;
  color: var(--ap-ink);
  margin: 0;
}
.ap-how__result-arrow {
  color: var(--ap-teal); font-weight: 700; margin-right: 6px;
}

/* ── Calc Body ── */
.ap-calc {
  background: var(--ap-bg);
  padding: 0 0 56px;
}
.ap-calc .container { max-width: 740px; }

/* ── Tab Navigation (Apple Segmented Control) ── */
.ap-tab-nav {
  display: flex;
  gap: 3px;
  background: rgba(118,118,128,.12);
  border-radius: 9px;
  padding: 3px;
  margin: 0 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ap-tab-nav::-webkit-scrollbar { display: none; }
.ap-tab-btn {
  flex: 1 1 auto; min-width: max-content;
  padding: 8px 16px;
  background: transparent; border: none;
  border-radius: 7px;
  font-family: inherit;
  font-size: 13px; font-weight: 600;
  color: var(--ap-mid);
  cursor: pointer;
  white-space: nowrap; letter-spacing: -.01em;
  transition: background .15s, color .15s;
}
.ap-tab-btn:hover { color: var(--ap-ink); }
.ap-tab-btn.active {
  background: var(--ap-white);
  color: var(--ap-ink);
  box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 0 0 .5px rgba(0,0,0,.04);
}

/* ── Tab Panel ── */
.ap-tab-panel {
  display: none;
  background: var(--ap-white);
  border: .5px solid var(--ap-line);
  border-radius: 14px;
  padding: 28px 30px;
}
.ap-tab-panel.active { display: block; }
@media (max-width: 640px) {
  .ap-tab-panel { padding: 22px 18px; border-radius: 12px; }
}

/* ── Input-Row (Slider mit großem Wert oben) ── */
.ap-input-row {
  padding: 18px 0;
  border-top: .5px solid var(--ap-line);
}
.ap-input-row:first-child { border-top: none; padding-top: 4px; }
.ap-input-row__head { margin-bottom: 10px; }
.ap-input-row__label {
  font-size: 13px; font-weight: 600;
  color: var(--ap-ink); display: block;
  letter-spacing: -.005em;
}
.ap-input-row__sub {
  display: block; margin-top: 3px;
  font-size: 12px; font-weight: 400;
  color: var(--ap-muted);
}
.ap-input-row__value {
  display: flex; align-items: baseline;
  gap: 4px; margin-bottom: 4px;
}
.ap-input-row__num {
  border: none; background: transparent;
  font-family: inherit;
  font-size: 30px; font-weight: 800;
  color: var(--ap-ink);
  letter-spacing: -.025em; line-height: 1;
  font-variant-numeric: tabular-nums;
  outline: none; padding: 0; margin: 0;
  width: auto; max-width: 220px;
  -moz-appearance: textfield;
  caret-color: var(--ap-teal);
}
.ap-input-row__num::-webkit-outer-spin-button,
.ap-input-row__num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ap-input-row__unit {
  font-size: 17px; font-weight: 500;
  color: var(--ap-muted);
}

/* Slider */
.ap-input-row__range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 24px;
  background: transparent;
  margin: 6px 0 0; cursor: pointer;
}
.ap-input-row__range::-webkit-slider-runnable-track {
  height: 4px; border-radius: 999px;
  background: linear-gradient(to right,
    var(--ap-teal) 0%, var(--ap-teal) var(--pct, 50%),
    rgba(118,118,128,.24) var(--pct, 50%), rgba(118,118,128,.24) 100%);
}
.ap-input-row__range::-moz-range-track {
  height: 4px; border-radius: 999px;
  background: rgba(118,118,128,.24);
}
.ap-input-row__range::-moz-range-progress {
  height: 4px; border-radius: 999px; background: var(--ap-teal);
}
.ap-input-row__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px; height: 26px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 50%;
  margin-top: -11px; cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.1),
              0 4px 12px rgba(0,0,0,.25),
              0 0 0 .5px rgba(0,0,0,.06);
  position: relative;
  z-index: 2;
}
.ap-input-row__range:hover::-webkit-slider-thumb {
  box-shadow: 0 2px 4px rgba(0,0,0,.15),
              0 6px 16px rgba(0,0,0,.3);
}
.ap-input-row__range::-moz-range-thumb {
  width: 26px; height: 26px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.1), 0 4px 12px rgba(0,0,0,.25);
}

.ap-input-row__ticks {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--ap-muted);
  margin-top: 6px; letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

/* ── Results ── */
.ap-results {
  margin: 24px 0 8px;
  padding: 20px;
  background: var(--ap-bg);
  border-radius: 12px;
}
.ap-result {
  display: flex; align-items: baseline;
  justify-content: space-between;
  padding: 8px 0;
  border-top: .5px solid var(--ap-line);
}
.ap-result:first-child { border-top: none; padding-top: 0; }
.ap-result__label {
  font-size: 13px; color: var(--ap-mid);
  letter-spacing: -.005em;
}
.ap-result__value {
  font-size: 18px; font-weight: 700;
  color: var(--ap-ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.ap-result--primary { padding-bottom: 18px; margin-bottom: 6px; border-bottom: .5px solid var(--ap-line); }
.ap-result--primary .ap-result__label {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ap-muted);
}
.ap-result--primary .ap-result__value {
  font-size: 36px; font-weight: 800;
  color: var(--ap-teal);
  letter-spacing: -.025em;
}

/* ── Inline CTA ── */
.ap-calc-cta {
  margin-top: 24px;
  padding-top: 22px;
  border-top: .5px solid var(--ap-line);
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 8px;
}
.ap-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 26px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px; font-weight: 600;
  text-decoration: none;
  border: none; cursor: pointer;
  letter-spacing: -.005em;
}
.ap-btn--primary {
  background: var(--ap-teal); color: #fff;
}
.ap-btn--primary:hover { background: #00897b; }
.ap-calc-cta__note {
  font-size: 12px; color: var(--ap-muted); margin: 0;
}

/* ── Explainer Disclosure ── */
.ap-explainer { padding: 28px 0 16px; }
.ap-explainer .container { max-width: 740px; }
.ap-disclosure {
  background: var(--ap-white);
  border: .5px solid var(--ap-line);
  border-radius: 12px;
  overflow: hidden;
}
.ap-disclosure-summary {
  padding: 18px 22px;
  font-size: 1rem; font-weight: 700;
  color: var(--ap-ink);
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; letter-spacing: -.01em;
  user-select: none;
}
.ap-disclosure-summary::-webkit-details-marker { display: none; }
.ap-disclosure-summary::after {
  content: '';
  width: 9px; height: 9px;
  border-right: 1.5px solid var(--ap-mid);
  border-bottom: 1.5px solid var(--ap-mid);
  transform: rotate(45deg);
  transition: transform .2s;
  flex-shrink: 0;
}
.ap-disclosure[open] .ap-disclosure-summary::after {
  transform: rotate(-135deg); margin-top: 5px;
}
.ap-disclosure-body {
  padding: 4px 22px 22px;
  border-top: .5px solid var(--ap-line);
  font-size: .95rem; line-height: 1.65;
  color: var(--ap-mid);
}
.ap-disclosure-body p { margin: 12px 0; }
.ap-disclosure-body strong { color: var(--ap-ink); }

/* ── FAQ ── */
.ap-faq {
  padding: 32px 0 48px;
  background: var(--ap-white);
  border-top: .5px solid var(--ap-line);
}
.ap-faq .container { max-width: 740px; }
.ap-faq__title {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 800; color: var(--ap-ink);
  letter-spacing: -.025em; margin: 0 0 24px;
}
.ap-faq__list {
  border-top: .5px solid var(--ap-line);
}
.ap-faq__item {
  border-bottom: .5px solid var(--ap-line);
  padding: 18px 0;
}
.ap-faq__item summary {
  font-size: 16px; font-weight: 600;
  color: var(--ap-ink); cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between;
  align-items: center; gap: 12px;
  letter-spacing: -.005em;
}
.ap-faq__item summary::-webkit-details-marker { display: none; }
.ap-faq__item summary::after {
  content: '+';
  font-size: 1.3rem; font-weight: 400;
  color: var(--ap-teal); flex-shrink: 0;
  line-height: 1;
}
.ap-faq__item[open] summary::after { content: '−'; }
.ap-faq__answer {
  padding-top: 12px;
  font-size: .95rem; line-height: 1.7;
  color: var(--ap-mid);
}
.ap-faq__answer p { margin: 12px 0; }
.ap-faq__answer p:first-child { margin-top: 0; }

/* ── Related ── */
.ap-related {
  padding: 32px 0 56px;
  background: var(--ap-bg);
}
.

/* ════════════════════════════════════════════════════════════
 * Apple Type Scale — final pass (must override styles.css h1/h2/h3 + var(--font-display))
 * ════════════════════════════════════════════════════════════ */

.ap-mast h1, .ap-mast-lead,
.ap-how__overline, .ap-how__card h3, .ap-how__result,
.ap-faq__title, .ap-faq__item summary, .ap-faq__answer,
.ap-related__title, .ap-related__card,
.ap-disclosure-summary, .ap-disclosure-body,
.ap-result__label, .ap-result__value,
.ap-input-row__label, .ap-input-row__num, .ap-input-row__unit, .ap-input-row__ticks,
.ap-tab-btn, .ap-cat-label, .ap-breadcrumb,
.ap-presets, .ap-preset-btn, .ap-hint,
.ap-btn, .ap-calc-cta__note {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif !important;
}

/* Hero H1 — confident but quieter */
.ap-mast h1 {
  font-size: clamp(2rem, 4.5vw, 2.8rem) !important;
  font-weight: 700 !important;
  line-height: 1.08 !important;
  letter-spacing: -.028em !important;
  color: var(--ap-ink) !important;
  margin: 0 0 12px !important;
}
.ap-mast-lead {
  font-size: 1rem !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  color: var(--ap-mid) !important;
  margin: 0 0 16px !important;
  max-width: 580px !important;
}

/* Section headings (Apple-restrained) */
.ap-faq__title, .ap-related__title {
  font-size: clamp(1.4rem, 2.5vw, 1.6rem) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: -.022em !important;
  color: var(--ap-ink) !important;
  margin: 0 0 18px !important;
}

/* How-card titles (small) */
.ap-how__card h3 {
  font-size: .94rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  letter-spacing: -.005em !important;
  color: var(--ap-ink) !important;
  margin: 0 0 6px !important;
}

/* FAQ items + Disclosure summary — restrained */
.ap-faq__item summary,
.ap-disclosure-summary {
  font-size: .95rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  letter-spacing: -.005em !important;
}

/* Related card text */
.ap-related__card {
  font-size: .88rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  letter-spacing: -.005em !important;
}

/* Force the related grid actually does grid (defeat any inline-link override) */
.ap-related__grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 10px !important;
}
.ap-related__card {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-decoration: none !important;
}

/* ── Save Banner + Result-Groups (Compare-Layouts) ── */
.ap-save-banner {
  margin: 0 0 18px;
  padding: 14px 18px;
  background: var(--ap-teal);
  color: #fff;
  border-radius: 10px;
  font-size: .94rem !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  letter-spacing: -.005em !important;
  font-family: system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif !important;
}
.ap-save-banner strong { font-weight: 700; }

.ap-result-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 22px 0 8px;
}
@media (max-width: 640px) {
  .ap-result-groups { grid-template-columns: 1fr; }
}
.ap-result-group {
  background: var(--ap-bg);
  border-radius: 12px;
  padding: 18px 18px 14px;
}
.ap-result-group__title {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase;
  color: var(--ap-muted) !important;
  margin: 0 0 10px !important;
  font-family: system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif !important;
}
.ap-result-group .ap-results {
  margin: 0; padding: 0; background: transparent;
}
.ap-result-group .ap-result { padding: 6px 0; }
.ap-result-group .ap-result__value {
  font-size: 16px;
}

/* ════════════════════════════════════════════════════════════
 * Layout v2 — Calc volle Breite, FAQ/Explainer linksbündig
 * ════════════════════════════════════════════════════════════ */

/* Calc: container full container width (was 740) */
.ap-calc .container {
  max-width: var(--max-w, 1160px) !important;
}

/* Tab-Nav: not full width — Apple keeps it inset, max ~600px, left-aligned */
.ap-tab-nav {
  max-width: 480px;
  margin-left: 0 !important;
  margin-right: auto;
}

/* Tab-Panel — 2-column on desktop: inputs left, results right sticky */
.ap-tab-panel {
  padding: 36px 40px !important;
}
@media (min-width: 920px) {
  .ap-tab-panel.active {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 48px;
    align-items: start;
  }
  .ap-tab-panel__inputs { min-width: 0; }
  .ap-tab-panel__results {
    position: sticky;
    top: 88px;
    min-width: 0;
    align-self: start;
  }
}
@media (max-width: 919px) {
  .ap-tab-panel__inputs { margin-bottom: 28px; }
}

/* FAQ + Explainer: linksbündig zum Logo (kein auto-center), schmale Lesebreite */
.ap-faq .container,
.ap-explainer .container {
  max-width: var(--max-w, 1160px) !important;
}
/* Apple Mittelweg: containers/borders full width, text content constrained to 720px */
.ap-faq__list,
.ap-disclosure,
.ap-explainer .container > * {
  max-width: none !important;
  margin-left: 0 !important;
}
.ap-faq__title,
.ap-faq__answer,
.ap-disclosure-body {
  max-width: 720px !important;
  margin-left: 0 !important;
}
/* Question summary keeps full container width so the +/− arrow sits at right edge */
.ap-faq__item summary,
.ap-disclosure-summary {
  max-width: none !important;
}
/* But the question text itself can be longer than 720 since it's only one line */
.ap-faq__item summary > :first-child {
  flex: 1 1 auto;
}

/* Related: also linksbündig + breite Auswahl-Karten */
.ap-related .container {
  max-width: var(--max-w, 1160px) !important;
}


/* ════════════════════════════════════════════════════════════
 * Validation / Schuldenfalle Banner — Apple Pure
 * ════════════════════════════════════════════════════════════ */
.ap-trap-banner {
  display: none;
  background: #fff8eb;
  border: .5px solid rgba(217, 119, 6, .4);
  border-left: 3px solid #d97706;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0 0 22px;
  font-size: .9rem !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  color: var(--ap-ink) !important;
  font-family: system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif !important;
}
.ap-trap-banner.show { display: block; }
.ap-trap-banner strong { font-weight: 700; }
.ap-trap-banner__cta {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  background: var(--ap-ink);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: -.005em;
  transition: opacity .15s;
}
.ap-trap-banner__cta:hover { opacity: .85; }

/* In trap mode the result column is muted */
.ap-tab-panel__results.in-trap .ap-result__value { color: var(--ap-muted); }
.ap-tab-panel__results.in-trap .ap-result--primary .ap-result__value { color: #d97706; font-size: 22px; }

/* Mindestrate hint below rate slider */
.ap-trap-hint {
  display: none;
  font-size: 11px;
  color: #b45309;
  font-weight: 600;
  letter-spacing: -.005em;
  margin-top: -2px;
  margin-bottom: 4px;
}
.ap-trap-hint.show { display: block; }

/* ════════════════════════════════════════════════════════════
 * Single-Form Template — Selects, Toggles, Breakdown, Period-Toggle
 * ════════════════════════════════════════════════════════════ */

/* Card holding the whole form */
.ap-form-card {
  background: var(--ap-white);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 0 0 .5px rgba(0,0,0,.06);
  padding: 36px 40px;
  margin-top: 8px;
}
@media (min-width: 920px) {
  .ap-form-card {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 48px;
    align-items: start;
  }
  .ap-form-card__inputs { min-width: 0; }
  .ap-form-card__results {
    position: sticky;
    top: 88px;
    min-width: 0;
    align-self: start;
  }
}
@media (max-width: 919px) {
  .ap-form-card__inputs { margin-bottom: 28px; }
}
@media (max-width: 640px) {
  .ap-form-card { padding: 22px 18px; border-radius: 12px; }
}

/* Period Toggle — Apple Segmented Control */
.ap-period-toggle {
  display: inline-flex;
  gap: 3px;
  background: rgba(118,118,128,.10);
  border-radius: 9px;
  padding: 3px;
  margin: 0 0 24px;
}
.ap-period-btn {
  flex: 0 0 auto;
  padding: 7px 18px;
  background: transparent; border: none; border-radius: 7px;
  font-family: system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif !important;
  font-size: 13px !important; font-weight: 600 !important;
  color: var(--ap-mid) !important;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.ap-period-btn:hover { color: var(--ap-ink) !important; }
.ap-period-btn.active {
  background: var(--ap-white) !important;
  color: var(--ap-ink) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

/* Select Row (Apple-style) */
.ap-select-row {
  padding: 18px 0;
  border-top: .5px solid var(--ap-line);
}
.ap-select-row__label {
  display: block;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--ap-ink) !important;
  margin-bottom: 8px;
  font-family: system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif !important;
  letter-spacing: -.005em;
}
.ap-select-row__wrap {
  position: relative;
}
.ap-select-row__wrap::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--ap-mid);
  border-bottom: 1.5px solid var(--ap-mid);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}
.ap-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: var(--ap-bg) !important;
  border: .5px solid var(--ap-line) !important;
  border-radius: 8px !important;
  padding: 10px 36px 10px 14px !important;
  font-family: system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--ap-ink) !important;
  cursor: pointer;
  outline: none;
}
.ap-select:focus {
  border-color: var(--ap-teal) !important;
  box-shadow: 0 0 0 3px rgba(0,175,163,.16) !important;
}

/* Toggle Switch (Apple iOS-style) */
.ap-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-top: .5px solid var(--ap-line);
  gap: 16px;
}
.ap-toggle-row__label {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--ap-ink) !important;
  font-family: system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif !important;
  flex: 1;
  letter-spacing: -.005em;
}
.ap-toggle-row__sub {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 400;
  color: var(--ap-muted);
}
.ap-toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px; height: 30px;
  flex-shrink: 0;
}
.ap-toggle-switch input {
  position: absolute;
  opacity: 0;
  width: 100%; height: 100%;
  cursor: pointer;
  margin: 0;
}
.ap-toggle-knob {
  position: absolute;
  inset: 0;
  background: rgba(118,118,128,.32);
  border-radius: 999px;
  transition: background .2s;
}
.ap-toggle-knob::before {
  content: '';
  position: absolute;
  width: 26px; height: 26px;
  top: 2px; left: 2px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 1px rgba(0,0,0,.04), 0 3px 8px rgba(0,0,0,.18);
  transition: transform .2s;
}
.ap-toggle-switch input:checked + .ap-toggle-knob {
  background: var(--ap-teal);
}
.ap-toggle-switch input:checked + .ap-toggle-knob::before {
  transform: translateX(20px);
}

/* Hero Result (top of results column) */
.ap-form-results__hero {
  background: var(--ap-bg);
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 22px;
}
.ap-form-results__label {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ap-muted) !important;
  font-family: system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif !important;
}
.ap-form-results__value {
  font-size: clamp(36px, 5vw, 48px) !important;
  font-weight: 800 !important;
  color: var(--ap-teal) !important;
  letter-spacing: -.025em !important;
  line-height: 1.05 !important;
  font-variant-numeric: tabular-nums;
  margin: 8px 0 6px;
  font-family: system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif !important;
}
.ap-form-results__sub {
  font-size: 13px !important;
  color: var(--ap-mid) !important;
  font-weight: 500 !important;
}
.ap-form-results__sub span:first-child { font-weight: 600; color: var(--ap-ink); }

/* Breakdown */
.ap-breakdown__title {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase;
  color: var(--ap-muted) !important;
  margin: 0 0 12px !important;
  font-family: system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif !important;
}
.ap-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ap-breakdown__row {
  padding: 10px 0;
  border-bottom: .5px solid var(--ap-line);
}
.ap-breakdown__row:last-child { border-bottom: none; }
.ap-breakdown__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}
.ap-breakdown__label {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--ap-mid) !important;
  font-family: system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif !important;
}
.ap-breakdown__value {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--ap-ink) !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.005em;
  font-family: system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif !important;
}
.ap-breakdown__track {
  height: 4px;
  background: rgba(118,118,128,.16);
  border-radius: 999px;
  overflow: hidden;
}
.ap-breakdown__bar {
  height: 100%;
  background: var(--ap-teal);
  border-radius: 999px;
  width: 0;
  transition: width .25s ease-out;
}

/* First row = Bruttogehalt = visual anchor (slightly stronger) */
.ap-breakdown__row:first-child .ap-breakdown__label,
.ap-breakdown__row:first-child .ap-breakdown__value,
.ap-breakdown__row:last-child .ap-breakdown__label,
.ap-breakdown__row:last-child .ap-breakdown__value {
  color: var(--ap-ink) !important;
  font-weight: 700 !important;
}
.ap-breakdown__row:last-child .ap-breakdown__value {
  color: var(--ap-teal) !important;
}

/* ── Date Input (Apple-pure) ── */
.ap-date-row {
  padding: 18px 0;
  border-top: .5px solid var(--ap-line);
}
.ap-date-row .ap-select-row__label { display: block; margin-bottom: 8px; }
.ap-date {
  width: 100%;
  background: var(--ap-bg);
  border: .5px solid var(--ap-line);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ap-ink);
  outline: none;
}
.ap-date:focus {
  border-color: var(--ap-teal);
  box-shadow: 0 0 0 3px rgba(0,175,163,.16);
}

/* Text-only input row (no slider) — slightly tighter than slider row */
.ap-input-row--text { padding: 16px 0; }
.ap-input-row--text .ap-input-row__num { font-size: 24px; }

/* ── Aufteilungsbar (Apple horizontal stacked bar) ── */
.ap-bar-widget {
  margin: 20px 0 8px;
  padding: 18px 20px;
  background: var(--ap-bg);
  border-radius: 12px;
}
.ap-bar-widget__title {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase;
  color: var(--ap-muted) !important;
  margin: 0 0 12px !important;
  font-family: system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif !important;
}
.ap-bar-widget__bar {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(118,118,128,.16);
  margin-bottom: 12px;
}
.ap-bar-widget__seg {
  height: 100%;
  transition: width .25s ease-out;
}
.ap-bar-widget__seg--p { background: var(--ap-teal); }
.ap-bar-widget__seg--i { background: #f59e0b; }
.ap-bar-widget__legend {
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: var(--ap-mid);
}
.ap-bar-widget__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ap-bar-widget__legend-item strong {
  color: var(--ap-ink);
  font-weight: 700;
  margin-left: 4px;
  font-variant-numeric: tabular-nums;
}
.ap-bar-widget__dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ap-bar-widget__dot--p { background: var(--ap-teal); }
.ap-bar-widget__dot--i { background: #f59e0b; }

/* ── Tilgungsplan table ── */
.ap-tplan-disclosure { margin-top: 22px; }
.ap-tplan {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-family: system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
.ap-tplan thead th {
  position: sticky;
  top: 0;
  background: var(--ap-bg);
  padding: 10px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ap-muted);
  border-bottom: .5px solid var(--ap-line);
}
.ap-tplan tbody td {
  padding: 8px 12px;
  border-bottom: .5px solid var(--ap-line);
  color: var(--ap-ink);
  font-variant-numeric: tabular-nums;
}
.ap-tplan .tplan-year-row td {
  background: var(--ap-bg);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ap-mid);
}
.ap-tplan .tplan-summary td {
  font-weight: 700;
  background: rgba(0,175,163,.04);
  color: var(--ap-ink);
}
.ap-tplan .tplan-mini-bar {
  display: flex;
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(118,118,128,.16);
  min-width: 80px;
}
.ap-tplan .tplan-mini-bar__p { background: var(--ap-teal); }
.ap-tplan .tplan-mini-bar__i { background: #f59e0b; }
.ap-tplan-toggle {
  position: sticky; bottom: 0;
  width: 100%;
  padding: 10px;
  background: var(--ap-white);
  border: none;
  border-top: .5px solid var(--ap-line);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ap-teal);
  cursor: pointer;
}
.ap-tplan-toggle:hover { color: #00897b; }

/* ── Budget Bar (3-segment) ── */
.ap-bar-widget__seg--fix { background: var(--ap-teal); }
.ap-bar-widget__seg--var { background: #f59e0b; }
.ap-bar-widget__seg--spar { background: #22c55e; }
.ap-bar-widget__dot--fix { background: var(--ap-teal); }
.ap-bar-widget__dot--var { background: #f59e0b; }
.ap-bar-widget__dot--spar { background: #22c55e; }

/* ── Progress Bar (Notgroschen) ── */
.ap-progress {
  margin: 20px 0 8px;
  padding: 16px 18px;
  background: var(--ap-bg);
  border-radius: 12px;
}
.ap-progress__head {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--ap-mid);
  font-weight: 600; margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.ap-progress__head span:last-child { color: var(--ap-teal); font-weight: 700; }
.ap-progress__track {
  height: 8px; background: rgba(118,118,128,.16);
  border-radius: 999px; overflow: hidden;
}
.ap-progress__fill {
  height: 100%; background: var(--ap-teal);
  border-radius: 999px; width: 0;
  transition: width .25s ease-out;
}

/* ── Milestones ── */
.ap-milestones { margin: 20px 0 8px; }
.ap-milestone {
  display: grid;
  grid-template-columns: 50px 1fr 1fr;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: .5px solid var(--ap-line);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.ap-milestone:last-child { border-bottom: none; }
.ap-milestone__pct {
  font-weight: 700; color: var(--ap-teal);
}
.ap-milestone__amount {
  font-weight: 700; color: var(--ap-ink);
}
.ap-milestone__date {
  color: var(--ap-mid); text-align: right;
}

/* ── Live Result Pill (Sticky in input column) ── */
.ap-live-pill {
  position: sticky;
  top: 72px;
  z-index: 5;
  background: var(--ap-white);
  border: .5px solid var(--ap-line);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 0 0 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08), 0 0 0 .5px rgba(0,0,0,.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.ap-live-pill__label {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ap-muted) !important;
  margin-bottom: 4px;
}
.ap-live-pill__value {
  font-size: 32px !important;
  font-weight: 800 !important;
  color: var(--ap-teal) !important;
  letter-spacing: -.025em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ap-live-pill__sub {
  font-size: 13px;
  color: var(--ap-mid);
  margin-top: 6px;
  font-weight: 500;
}

/* Text-Input Sichtbarkeits-Fix */
.ap-input-row--text .ap-input-row__num {
  display: inline-block;
  min-width: 100px;
  width: 100px;
  color: var(--ap-ink) !important;
}

/* === Footer (Apple-style dark 4-col) === */
.ap-footer { background: #0d1420; color: rgba(255,255,255,.85); padding: 60px 24px 32px; margin-top: 80px; }
.ap-footer-grid { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.08); }
.ap-footer-col h4 { color: #fff; font-size: .92rem; font-weight: 600; margin: 0 0 14px; letter-spacing: -.005em; }
.ap-footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ap-footer-col ul li a { font-size: .88rem; color: rgba(255,255,255,.7); text-decoration: none; transition: color .2s; }
.ap-footer-col ul li a:hover { color: var(--ap-teal, #00afa3); }
.ap-footer-bottom { max-width: 1140px; margin: 24px auto 0; display: flex; justify-content: space-between; gap: 16px; font-size: .78rem; color: rgba(255,255,255,.5); padding-top: 8px; }
@media(max-width:768px){ .ap-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } .ap-footer-bottom { flex-direction: column; gap: 6px; } }
@media(max-width:480px){ .ap-footer-grid { grid-template-columns: 1fr; gap: 24px; } }

/* === TLDR Badge (Pill with clock icon) === */
.ap-tldr-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: rgba(0,175,163,.12); color: var(--ap-teal, #00afa3); border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1; align-self: flex-start; }
.ap-tldr-badge svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }

/* === Apple Components imported from blog-v8.css (for rechner pages) === */
.ap-tldr {
  background: var(--ap-white);
  border: .5px solid var(--ap-line);
  border-radius: var(--ap-rl);
  padding: 40px 44px 36px;
  margin: 40px 0 48px;
  position: relative;
}
.ap-tldr::before {
  content: '';
  position: absolute; left: 0; top: 32px; bottom: 32px;
  width: 4px; border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--ap-teal), var(--ap-teal-dark));
}
.ap-tldr-head {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: .5px solid var(--ap-line);
}
.ap-tldr-badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--ap-teal); color: #fff;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0,175,163,.25);
}
.ap-tldr-title {
  font-size: 1.05rem !important; font-weight: 800 !important; color: var(--ap-ink) !important;
  letter-spacing: -.015em !important; margin: 0 !important; padding: 0 !important;
  border: none !important; line-height: 1.25 !important;
}
.ap-tldr-sub {
  font-size: .78rem; color: var(--ap-muted);
  letter-spacing: .02em; margin-top: 2px;
}
.ap-tldr-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.ap-tldr-list li {
  display: block; position: relative;
  padding-left: 26px;
  font-size: 1rem; line-height: 1.6; color: var(--ap-mid);
  margin: 0;
}
.ap-tldr-list li::before {
  content: ''; position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  border-radius: 50%; background: var(--ap-teal);
  box-shadow: 0 0 0 3px rgba(0,175,163,.15);
}
.ap-tldr-list li strong {
  color: var(--ap-ink); font-weight: 700;
  display: inline; letter-spacing: -.005em;
}
.ap-tldr { padding: 28px 26px 24px; margin: 28px 0 36px; }
.ap-tldr-badge { padding: 6px 12px; font-size: .68rem; }
.ap-tldr-title { font-size: .98rem !important; }
.ap-tldr-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: rgba(0,175,163,.12); color: var(--ap-teal, #00afa3); border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1; align-self: flex-start; }
.ap-tldr-badge svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.ap-defcard-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px; margin: 32px 0;
}
.ap-defcard {
  background: var(--ap-white);
  border: .5px solid var(--ap-line);
  border-radius: var(--ap-rl);
  padding: 24px 26px;
  display: flex; gap: 18px; align-items: flex-start;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.ap-defcard:hover { border-color: var(--ap-teal); transform: translateY(-2px); box-shadow: var(--ap-shadow); }
.ap-defcard-letter {
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; color: var(--ap-teal);
  background: rgba(0,175,163,.1);
  border: 1.5px solid var(--ap-teal);
}
.ap-defcard-body { flex: 1; min-width: 0; }
.ap-defcard-title {
  font-size: 1.05rem; font-weight: 700; color: var(--ap-ink);
  margin: 4px 0 8px;
  letter-spacing: -.01em; line-height: 1.3;
}
.ap-defcard-text { font-size: .95rem; line-height: 1.6; color: var(--ap-mid); }
.ap-defcard-text p { margin: 0 0 10px; font-size: .95rem; line-height: 1.6; }
.ap-defcard-text p:last-child { margin-bottom: 0; }
.ap-defcard-text strong { color: var(--ap-ink); font-weight: 700; }
.ap-defcard-grid { grid-template-columns: 1fr; gap: 12px; }
.ap-defcard { padding: 20px 22px; gap: 14px; }
.ap-defcard-letter { flex-basis: 34px; width: 34px; height: 34px; font-size: .92rem; }
.ap-anchor { opacity: 0; margin-left: 8px; color: var(--ap-muted); text-decoration: none; font-weight: 400; transition: opacity .15s; }
.ap-anchor { opacity: 1; }
.ap-callout { display: flex; gap: 14px; padding: 20px 24px; margin: 32px 0; border-radius: var(--ap-rl); border: .5px solid var(--ap-line); background: var(--ap-white); }
.ap-callout-icon { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 700; background: var(--ap-bg); color: var(--ap-mid); }
.ap-callout-body { flex: 1; min-width: 0; }
.ap-callout-body p:last-child { margin-bottom: 0; }
.ap-callout-body strong:first-child { display: block; margin-bottom: 4px; font-size: .95rem; }
.ap-callout--tip { background: rgba(0,175,163,.04); border-color: rgba(0,175,163,.25); }
.ap-callout--tip .ap-callout-icon { background: var(--ap-teal); color: #fff; }
.ap-callout--warn { background: rgba(245,158,11,.05); border-color: rgba(245,158,11,.3); }
.ap-callout--warn .ap-callout-icon { background: var(--ap-amber); color: #fff; }
.ap-callout--info { background: var(--ap-bg); }
.ap-steps {
  display: flex; flex-direction: column; gap: 20px;
  margin: 32px 0;
  counter-reset: step;
}
.ap-step {
  display: grid; grid-template-columns: 52px 1fr; gap: 20px;
  align-items: start;
}
.ap-step-num {
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 800; color: var(--ap-teal);
  background: rgba(0,175,163,.08);
  border: 2px solid var(--ap-teal);
  letter-spacing: -.02em;
}
.ap-step-body { padding-top: 6px; }
.ap-step-head { font-size: 1.05rem; font-weight: 700; color: var(--ap-ink); margin-bottom: 4px; letter-spacing: -.01em; }
.ap-step-body p { font-size: .98rem; line-height: 1.6; color: var(--ap-mid); margin: 0; }
.ap-related {
  max-width: 1140px; margin: 80px auto 0; padding: 64px 24px 72px;
  border-top: .5px solid var(--ap-line);
}
.ap-related-head { margin-bottom: 32px; }
.ap-related-sub {
  font-size: .95rem; color: var(--ap-mid);
  margin: 6px 0 0; max-width: 640px; line-height: 1.55;
}
.ap-related { margin-top: 56px; padding: 48px 20px 56px; }
.ap-related-head { margin-bottom: 24px; }
.ap-author {
  display: flex; gap: 22px; align-items: flex-start;
  background: var(--ap-white); border: .5px solid var(--ap-line);
  border-radius: var(--ap-rl);
  padding: 32px 36px;
  margin: 56px 0 0;
}
.ap-author-body { flex: 1; min-width: 0; }
.ap-author-label {
  display: block; font-size: 10px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ap-muted); margin-bottom: 6px;
}
.ap-author-name { font-size: 1.15rem; font-weight: 800; color: var(--ap-ink); letter-spacing: -.015em; }
.ap-author-role { font-size: .9rem; font-weight: 600; color: var(--ap-teal); margin: 2px 0 12px; letter-spacing: -.005em; }
.ap-author-bio { font-size: .95rem; line-height: 1.6; color: var(--ap-mid); margin: 0; }
.ap-author-focus { margin-top: 18px; padding-top: 18px; border-top: .5px solid var(--ap-line); }
.ap-author-focus-label {
  display: block; font-size: 10px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ap-muted); margin-bottom: 10px;
}
.ap-author-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ap-author-chip {
  display: inline-block; padding: 5px 11px;
  background: var(--ap-bg); border-radius: 980px;
  font-size: .78rem; color: var(--ap-mid); font-weight: 500;
}
.ap-author { padding: 24px 22px; gap: 16px; margin-top: 40px; }
.ap-author-name { font-size: 1.05rem; }
.ap-toc { background: var(--ap-white); border: .5px solid var(--ap-line); border-radius: var(--ap-rl); padding: 22px 24px; font-size: .88rem; }
.ap-toc-title { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ap-muted); margin: 0 0 14px; }
.ap-toc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.ap-toc-list a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--ap-mid); text-decoration: none; line-height: 1.4; border-left: 2px solid transparent; transition: color .15s, border-color .15s, background .15s; }
.ap-toc-list a:hover { color: var(--ap-ink); background: var(--ap-bg); }
.ap-toc-list a.active { color: var(--ap-teal); font-weight: 600; border-left-color: var(--ap-teal); background: rgba(0,175,163,.04); }
.ap-toc-mobile { display: none; background: var(--ap-white); border: .5px solid var(--ap-line); border-radius: var(--ap-rl); margin-bottom: 32px; overflow: hidden; }
.ap-toc-mobile summary { list-style: none; padding: 14px 18px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: .9rem; color: var(--ap-ink); }
.ap-toc-mobile summary::-webkit-details-marker { display: none; }
.ap-toc-mobile summary::after { content: '+'; font-size: 1.2rem; color: var(--ap-mid); }
.ap-toc-mobile .ap-toc-list { padding: 0 14px 14px; }
.ap-toc-mobile { display: block; }
.ap-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--ap-teal), var(--ap-teal-dark));
  z-index: 9999; transition: width .1s linear;
}
.ap-breadcrumb { font-size: 12px; color: var(--ap-muted); margin-bottom: 16px; }
.ap-breadcrumb a { color: var(--ap-muted); text-decoration: none; }
.ap-breadcrumb a:hover { color: var(--ap-ink); }
.ap-cat-label { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ap-teal); margin-bottom: 14px; }
.ap-hero-meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: .85rem; color: var(--ap-muted);
  padding-top: 22px; border-top: .5px solid var(--ap-line);
}
.ap-hero-meta-author { display: flex; align-items: center; gap: 8px; color: var(--ap-ink); font-weight: 600; }
.ap-hero-meta-sep { color: var(--ap-line); }
.ap-avatar-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #00afa3, #006c66);
  color: #fff; font-weight: 700; font-size: 11px; letter-spacing: .02em;
  flex-shrink: 0; overflow: hidden;
}
.ap-avatar-photo { background: var(--ap-bg); padding: 0; }
.ap-avatar-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.ap-side-card { background: var(--ap-white); border: .5px solid var(--ap-line); border-radius: var(--ap-rl); padding: 22px; }
.ap-side-card-cta { background: linear-gradient(135deg, #001a18, #003330); color: #fff; border: none; }
.ap-side-card h3, .ap-side-card h4 { font-size: .95rem; font-weight: 700; margin: 0 0 8px; letter-spacing: -.005em; }
.ap-side-card-cta h3 { color: #fff; }
.ap-side-card p { font-size: .85rem; line-height: 1.5; color: var(--ap-mid); margin: 0 0 16px; }
.ap-side-card-cta p { color: rgba(255,255,255,.75); }
.ap-side-card-cta a.primary { display: block; text-align: center; background: var(--ap-teal); color: #fff; padding: 11px; border-radius: 980px; font-weight: 600; font-size: .85rem; text-decoration: none; margin-bottom: 10px; transition: background .15s; }
.ap-side-card-cta a.primary:hover { background: var(--ap-teal-dark); }
.ap-side-card-cta a.secondary { display: block; text-align: center; color: rgba(255,255,255,.8); padding: 4px; font-size: .8rem; text-decoration: none; }
.ap-side-card-cta a.secondary:hover { color: #fff; }
.ap-side-card ul { list-style: none; padding: 0; margin: 0; }
.ap-side-card li a { display: block; padding: 9px 0; font-size: .88rem; color: var(--ap-ink); text-decoration: none; border-bottom: .5px solid var(--ap-line); }
.ap-side-card li:last-child a { border-bottom: none; }
.ap-side-card li a:hover { color: var(--ap-teal); }
.ap-myth-card {
  background: var(--ap-white);
  border: .5px solid var(--ap-line);
  border-radius: var(--ap-rl);
  padding: 22px 24px; margin: 20px 0;
  display: flex; flex-direction: column; gap: 14px;
}
.ap-myth-row { display: flex; gap: 12px; align-items: flex-start; }
.ap-myth-tag {
  flex: 0 0 76px; font-size: 10px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 980px;
  text-align: center; line-height: 1.5;
}
.ap-myth-row--myth .ap-myth-tag { background: rgba(245,158,11,.12); color: #92400e; }
.ap-myth-row--truth .ap-myth-tag { background: rgba(0,175,163,.12); color: var(--ap-teal-dark); }
.ap-myth-text { flex: 1; min-width: 0; font-size: .95rem; line-height: 1.55; color: var(--ap-ink); }
.ap-myth-card { padding: 20px 22px; gap: 14px; }
.ap-myth-tag { flex-basis: 70px; }
.ap-myth-row { flex-direction: column; align-items: flex-start; gap: 6px; }
.ap-myth-tag { flex-basis: auto; }
.ap-compare-col {
  background: var(--ap-white); border: .5px solid var(--ap-line);
  border-radius: var(--ap-rl); padding: 18px 20px;
}
.ap-compare-col--yes { border-top: 3px solid var(--ap-teal); }
.ap-compare-col--no { border-top: 3px solid var(--ap-amber); }
.ap-compare-col { padding: 18px 20px; }
.ap-stores-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.ap-stores-compare { grid-template-columns: 1fr; gap: 14px; }
.ap-crit-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px; margin: 36px 0;
}
.ap-crit-card {
  background: var(--ap-white);
  border: .5px solid var(--ap-line);
  border-radius: var(--ap-rl);
  padding: 26px 28px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  display: flex; flex-direction: column; gap: 18px;
}
.ap-crit-card:hover { border-color: var(--ap-teal); transform: translateY(-2px); box-shadow: var(--ap-shadow); }
.ap-crit-head { display: flex; gap: 16px; align-items: center; }
.ap-crit-icon {
  flex: 0 0 52px; width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(0,175,163,.12), rgba(0,143,134,.08));
  border: 1px solid rgba(0,175,163,.2);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.ap-crit-meta { flex: 1; min-width: 0; }
.ap-crit-name {
  font-size: 1.1rem; font-weight: 700; color: var(--ap-ink);
  letter-spacing: -.015em; line-height: 1.25;
}
.ap-crit-num {
  font-size: .76rem; color: var(--ap-muted); font-weight: 600;
  letter-spacing: .04em; margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.ap-crit-signals { display: flex; flex-direction: column; gap: 10px; }
.ap-crit-tip {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: .88rem; color: var(--ap-mid); line-height: 1.5;
  padding: 12px 14px;
  background: rgba(0,175,163,.04);
  border-left: 3px solid var(--ap-teal);
  border-radius: 0 var(--ap-r) var(--ap-r) 0;
}
.ap-crit-tip-icon {
  flex-shrink: 0; color: var(--ap-teal); margin-top: 3px;
}
.ap-crit-tip strong { color: var(--ap-teal-dark); margin-right: 4px; }
.ap-crit-card { padding: 22px 22px; }
.ap-crit-icon { width: 44px; height: 44px; font-size: 1.3rem; flex-basis: 44px; }
.ap-crit-name { font-size: 1.05rem; }
.ap-scoreband {
  background: var(--ap-white);
  border: .5px solid var(--ap-line);
  border-radius: var(--ap-rl);
  padding: 32px 32px 28px;
  margin: 36px 0;
}
.ap-scoreband { padding: 22px 22px 20px; }
.ap-sr-bar-vis {
  display: flex; gap: 0;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.06);
}
.ap-sr-seg { flex: 1; transition: filter .2s; }
.ap-sr-seg--red { background: linear-gradient(90deg, #dc2626, #ef4444); }
.ap-sr-seg--amber { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.ap-sr-seg--lime { background: linear-gradient(90deg, #84cc16, #a3e635); }
.ap-sr-seg--emerald { background: linear-gradient(90deg, #10b981, #34d399); }
.ap-sr-markers {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 22px;
}
.ap-sr-marker {
  position: relative;
  padding-left: 14px;
}
.ap-sr-marker::before {
  content: '';
  position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 4px; border-radius: 2px;
}
.ap-sr-marker--red::before { background: #dc2626; }
.ap-sr-marker--amber::before { background: #f59e0b; }
.ap-sr-marker--lime::before { background: #84cc16; }
.ap-sr-marker--emerald::before { background: #10b981; }
.ap-sr-marker-range {
  font-size: 1.4rem; font-weight: 800; color: var(--ap-ink);
  letter-spacing: -.02em; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.ap-sr-marker-label {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; margin: 6px 0 6px;
}
.ap-sr-marker--red .ap-sr-marker-label { color: #b91c1c; }
.ap-sr-marker--amber .ap-sr-marker-label { color: #b45309; }
.ap-sr-marker--lime .ap-sr-marker-label { color: #4d7c0f; }
.ap-sr-marker--emerald .ap-sr-marker-label { color: #047857; }
.ap-sr-marker-desc {
  font-size: .8rem; color: var(--ap-mid); line-height: 1.5;
}
.ap-sr-bar-vis { height: 12px; margin-bottom: 22px; }
.ap-sr-markers { grid-template-columns: 1fr 1fr; gap: 16px; }
.ap-sr-marker-range { font-size: 1.2rem; }
.ap-sr-markers { grid-template-columns: 1fr; gap: 14px; }

/* === Responsive overrides === */
@media(max-width:960px) { .ap-toc-mobile { display: block; } }
@media(max-width:640px) {
  .ap-tldr { padding: 28px 26px 24px; margin: 28px 0 36px; }
  .ap-tldr-badge { padding: 6px 12px; font-size: .68rem; }
  .ap-tldr-title { font-size: .98rem !important; }
}
@media(max-width:640px) {
  .ap-author { padding: 24px 22px; gap: 16px; margin-top: 40px; }
  .ap-author-name { font-size: 1.05rem; }
}
@media(max-width:640px) {
  .ap-related { margin-top: 56px; padding: 48px 20px 56px; }
  .ap-related-head { margin-bottom: 24px; }
}
@media(max-width: 640px) {
  .ap-scoreband { padding: 22px 22px 20px; }
  .ap-sr-bar-vis { height: 12px; margin-bottom: 22px; }
  .ap-sr-markers { grid-template-columns: 1fr 1fr; gap: 16px; }
  .ap-sr-marker-range { font-size: 1.2rem; }
}
@media(max-width: 420px) {
  .ap-sr-markers { grid-template-columns: 1fr; gap: 14px; }
}
@media(max-width: 720px) {
  .ap-crit-grid, .ap-stores-compare { grid-template-columns: 1fr; gap: 14px; }
  .ap-crit-card { padding: 22px 22px; }
  .ap-crit-icon { width: 44px; height: 44px; font-size: 1.3rem; flex-basis: 44px; }
  .ap-crit-name { font-size: 1.05rem; }
  .ap-compare-col { padding: 18px 20px; }
  .ap-myth-card { padding: 20px 22px; gap: 14px; }
  .ap-myth-tag { flex-basis: 70px; }
}
@media(max-width: 480px) {
  .ap-myth-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .ap-myth-tag { flex-basis: auto; }
}
@media(max-width: 720px) {
  .ap-defcard-grid { grid-template-columns: 1fr; gap: 12px; }
  .ap-defcard { padding: 20px 22px; gap: 14px; }
  .ap-defcard-letter { flex-basis: 34px; width: 34px; height: 34px; font-size: .92rem; }
}

/* === ap-nav (unified navigation, imported from blog-v8.css) === */
.ap-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: .5px solid var(--ap-line);
}
.ap-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 52px; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ap-nav-logo img { display: block; height: 28px; }
.ap-nav-links { display: flex; gap: 24px; }
.ap-nav-links a { color: var(--ap-ink); text-decoration: none; font-size: .88rem; font-weight: 500; transition: color .15s; }
.ap-nav-links a:hover { color: var(--ap-teal); }
.ap-nav-cta a { background: var(--ap-teal); color: #fff; padding: 8px 16px; border-radius: 980px; font-size: .82rem; font-weight: 600; text-decoration: none; }
.ap-nav-cta a:hover { background: var(--ap-teal-dark); }
.ap-nav-links { display: none; }

/* === ap-nav override — wins over legacy .nav rules === */
nav.ap-nav { display: block !important; margin: 0 !important; gap: 0 !important; position: sticky !important; top: 0 !important; z-index: 100 !important; background: rgba(255,255,255,.85) !important; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: .5px solid #d2d2d7 !important; padding: 0 !important; }
nav.ap-nav .ap-nav-inner { display: flex !important; align-items: center !important; justify-content: space-between !important; height: 52px !important; max-width: 1200px !important; margin: 0 auto !important; padding: 0 24px !important; }
nav.ap-nav .ap-nav-logo img { display: block !important; height: 28px !important; width: auto !important; }
nav.ap-nav .ap-nav-links { display: flex !important; gap: 24px !important; flex-direction: row !important; margin: 0 !important; }
nav.ap-nav .ap-nav-links a { color: #1d1d1f !important; text-decoration: none !important; font-size: .88rem !important; font-weight: 500 !important; }
nav.ap-nav .ap-nav-links a:hover { color: #00afa3 !important; }
nav.ap-nav .ap-nav-cta a { background: #00afa3 !important; color: #fff !important; padding: 8px 16px !important; border-radius: 980px !important; font-size: .82rem !important; font-weight: 600 !important; text-decoration: none !important; }
nav.ap-nav .ap-nav-cta a:hover { background: #008a82 !important; }

/* Anchor # hidden until hover */
h2 .ap-anchor, h3 .ap-anchor { opacity: 0 !important; margin-left: 8px; color: #86868b; text-decoration: none; font-weight: 400; transition: opacity .15s; }
h2:hover .ap-anchor, h3:hover .ap-anchor { opacity: .5 !important; }

/* Mobile: hide nav-links (replaced with hamburger if any) */
@media(max-width:768px){ nav.ap-nav .ap-nav-links { display: none !important; } }

/* === Apple Style — Missing Component CSS === */

/* FAQ — Apple Disclosure Pattern */
.ap-faq { margin: 32px 0; }
.ap-faq-item { background: var(--ap-white, #fff); border: .5px solid var(--ap-line, #d2d2d7); border-radius: 14px; margin-bottom: 10px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.ap-faq-item[open] { border-color: rgba(0,175,163,.3); box-shadow: 0 4px 16px rgba(0,0,0,.04); }
.ap-faq-item summary { cursor: pointer; padding: 18px 56px 18px 24px; font-size: 1.02rem; font-weight: 600; color: var(--ap-ink, #1d1d1f); letter-spacing: -.012em; line-height: 1.4; position: relative; list-style: none; transition: background .15s; }
.ap-faq-item summary::-webkit-details-marker { display: none; }
.ap-faq-item summary::marker { display: none; }
.ap-faq-item summary:hover { background: rgba(0,0,0,.02); }
.ap-faq-item summary::after { content: ''; position: absolute; right: 24px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%) rotate(0deg); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%2386868b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; transition: transform .25s; }
.ap-faq-item[open] summary::after { transform: translateY(-50%) rotate(180deg); }
.ap-faq-body { padding: 0 24px 22px; font-size: .96rem; line-height: 1.6; color: var(--ap-mid, #515154); }
.ap-faq-body p { margin: 0 0 12px; }
.ap-faq-body p:last-child { margin-bottom: 0; }

/* Related Articles Grid + Cards — Apple Apple-Style */
.ap-related-head { margin-bottom: 36px; }
.ap-related-head h2 { font-size: 2rem; font-weight: 800; letter-spacing: -.022em; color: var(--ap-ink, #1d1d1f); margin: 0 0 8px; }
.ap-related-sub { font-size: 1rem; color: var(--ap-mid, #515154); margin: 0; line-height: 1.55; }
.ap-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.ap-related-card { display: flex !important; flex-direction: column; background: var(--ap-white, #fff); border: .5px solid var(--ap-line, #d2d2d7); border-radius: 18px; padding: 24px 26px 22px; text-decoration: none !important; color: var(--ap-ink, #1d1d1f) !important; transition: border-color .25s, transform .25s, box-shadow .25s; }
.ap-related-card:hover { border-color: var(--ap-teal, #00afa3); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.06); }
.ap-related-card-cat { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ap-teal, #00afa3); margin: 0 0 12px; display: block; }
.ap-related-card-title { font-size: 1.08rem; font-weight: 700; line-height: 1.32; letter-spacing: -.012em; color: var(--ap-ink, #1d1d1f); margin: 0 0 10px; }
.ap-related-card-desc { font-size: .92rem; line-height: 1.55; color: var(--ap-mid, #515154); margin: 0 0 18px; flex: 1; }
.ap-related-card-arrow { font-size: .88rem; font-weight: 600; color: var(--ap-ink, #1d1d1f); display: inline-flex; align-items: center; gap: 4px; margin-top: auto; transition: color .2s, gap .2s; }
.ap-related-card:hover .ap-related-card-arrow { color: var(--ap-teal, #00afa3); gap: 6px; }
.ap-related-card-arrow span { display: inline-block; transition: transform .2s; }
.ap-related-card:hover .ap-related-card-arrow span { transform: translateX(2px); }
@media(max-width:640px) {
  .ap-related-grid { grid-template-columns: 1fr; gap: 14px; }
  .ap-related-head h2 { font-size: 1.6rem; }
}

/* Inline rechner-card pattern (when blog mentions a rechner) — Apple call-out */
.ap-rcard, .ap-inline-rechner { display: flex; align-items: center; gap: 16px; padding: 20px 22px; background: linear-gradient(135deg, #f4fbfa, #ffffff); border: .5px solid rgba(0,175,163,.18); border-radius: 16px; margin: 24px 0; text-decoration: none !important; color: var(--ap-ink, #1d1d1f) !important; transition: border-color .2s, transform .2s; }
.ap-rcard:hover, .ap-inline-rechner:hover { border-color: var(--ap-teal, #00afa3); transform: translateY(-1px); }
.ap-rcard-icon { width: 40px; height: 40px; background: rgba(0,175,163,.12); color: var(--ap-teal, #00afa3); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 700; }
.ap-rcard-body { flex: 1; }
.ap-rcard-title { font-size: 1rem; font-weight: 700; letter-spacing: -.01em; color: var(--ap-ink, #1d1d1f); margin: 0 0 2px; }
.ap-rcard-desc { font-size: .88rem; color: var(--ap-mid, #515154); margin: 0; }
.ap-rcard-arrow { font-size: .88rem; font-weight: 600; color: var(--ap-teal, #00afa3); }

/* Generic article-body anchor styling — make non-card links look refined */
.ap-article a:not(.ap-related-card):not(.ap-rcard):not(.ap-tldr-list a):not(.ap-side-card a):not(.ap-card):not(.ap-anchor):not(.ap-author a) {
  color: var(--ap-ink, #1d1d1f);
  text-decoration: underline;
  text-decoration-color: rgba(0,175,163,.4);
  text-underline-offset: 3px;
  transition: text-decoration-color .15s, color .15s;
}
.ap-article a:not(.ap-related-card):not(.ap-rcard):not(.ap-card):not(.ap-anchor):not(.ap-author a):hover {
  color: var(--ap-teal, #00afa3);
  text-decoration-color: var(--ap-teal, #00afa3);
}

/* === ap-anwendung wrapper (Apple section style) === */
.ap-anwendung { padding: 64px 0 48px; }
.ap-anwendung > .container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.ap-anwendung > .container > h2 { font-size: 2rem; letter-spacing: -.022em; font-weight: 800; color: var(--ap-ink, #1d1d1f); margin: 0 0 8px; }
.ap-anwendung > .container > p { font-size: 1.05rem; color: var(--ap-mid, #515154); margin: 0 0 32px; line-height: 1.55; }
@media(max-width:640px){ .ap-anwendung { padding: 40px 0 32px; } .ap-anwendung > .container { padding: 0 20px; } .ap-anwendung > .container > h2 { font-size: 1.55rem; } }

/* === ap-sticky-cta: hidden by default, conditional via JS+mobile === */
.ap-sticky-cta { display: none !important; }
@media (max-width: 720px) {
  .ap-sticky-cta.visible { display: flex !important; position: fixed; bottom: 12px; left: 12px; right: 12px; z-index: 90; background: var(--ap-ink, #1d1d1f); color: #fff; padding: 12px 14px; border-radius: 14px; align-items: center; gap: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
  .ap-sticky-cta.visible p { margin: 0; flex: 1; font-size: .88rem; }
  .ap-sticky-cta.visible a { background: var(--ap-teal, #00afa3); color: #fff; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: .82rem; font-weight: 600; }
  .ap-sticky-cta.visible button { background: transparent; border: 0; color: rgba(255,255,255,.6); width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 1rem; }
}

/* === ap-related spacing override (Apple-tight) === */
.ap-related { margin-top: 40px !important; padding: 40px 24px 56px !important; }
.ap-author { margin-top: 32px !important; }
.ap-anwendung { padding: 40px 0 32px !important; }
@media(max-width:640px) {
  .ap-related { margin-top: 28px !important; padding: 28px 20px 40px !important; }
  .ap-author { margin-top: 24px !important; padding: 22px 22px !important; }
}

/* === FAQ Apple-Style (hairline list, +/- icon) === */
.ap-faq { margin: 32px 0; border-top: .5px solid var(--ap-line, #d2d2d7); }
.ap-faq-item { background: transparent !important; border: none !important; border-bottom: .5px solid var(--ap-line, #d2d2d7) !important; border-radius: 0 !important; margin: 0 !important; overflow: visible !important; transition: none !important; box-shadow: none !important; }
.ap-faq-item summary { cursor: pointer; padding: 22px 56px 22px 0 !important; font-size: 1.02rem; font-weight: 600; color: var(--ap-ink, #1d1d1f); letter-spacing: -.012em; line-height: 1.4; position: relative; list-style: none !important; transition: color .15s; background: transparent !important; }
.ap-faq-item summary::-webkit-details-marker { display: none !important; }
.ap-faq-item summary::marker { display: none !important; content: "" !important; }
.ap-faq-item summary:hover { background: transparent !important; color: var(--ap-teal, #00afa3); }
.ap-faq-item summary::before { display: none !important; content: "" !important; background: none !important; }
.ap-faq-item summary::after {
  display: block !important; content: "+" !important;
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; font-size: 1.4rem; font-weight: 300;
  color: var(--ap-muted, #86868b); line-height: 1; text-align: center;
  transition: transform .25s, color .15s;
  background: none !important;
}
.ap-faq-item[open] summary::after { content: "\2212" !important; color: var(--ap-teal, #00afa3); transform: translateY(-50%); }
.ap-faq-item summary:hover::after { color: var(--ap-teal, #00afa3); }
.ap-faq-item[open] summary { color: var(--ap-ink, #1d1d1f); }
.ap-faq-body { padding: 0 56px 22px 0 !important; font-size: .96rem; line-height: 1.6; color: var(--ap-mid, #515154); border-top: none !important; }
.ap-faq-body p { margin: 0 0 12px; }
.ap-faq-body p:last-child { margin-bottom: 0; }

/* same treatment for general details-summary elements */
details.faq-item, details[class*="faq"] {
  background: transparent !important; border: none !important;
  border-bottom: .5px solid var(--ap-line, #d2d2d7) !important;
  border-radius: 0 !important; margin: 0 !important; padding: 0 !important;
}
