/* =====================================================================
   arbeitsrechner.com (Tenant an) — Voll-Custom-Theme.
   Eigenstaendiges Arbeitsrecht-Rechner-Portal. Erbt NICHT site-weloveurlaub;
   alles unter .an gescoped. Seriös, ruhig, vertrauenswürdig (YMYL).
   Schriften: Source Sans 3 (UI), Source Serif 4 (Ratgeber-Longread) — lokal.
   ===================================================================== */

/* ---------- Lokale Schriften (Variable Fonts, DSGVO: selbst gehostet) ---------- */
@font-face {
  font-family: 'Source Sans 3';
  src: url('fonts/source-sans-3-var.woff2') format('woff2');
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('fonts/source-serif-4-var.woff2') format('woff2');
  font-weight: 400 600; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
.an {
  --an-bg: #f6f5f1;
  --an-surface: #ffffff;
  --an-ink: #16263d;
  --an-ink-2: #1d3557;
  --an-text: #3a4350;
  --an-muted: #5c6673;
  --an-faint: #8a8678;
  --an-border: #e6e3db;
  --an-border-strong: #cdd4dc;
  --an-accent: #457b9d;        /* Arbeitnehmer-Akzent (wärmer) */
  --an-accent-dark: #2f5d78;
  --an-accent-soft: #eef3f6;
  --an-accent-line: #d6e2ea;
  --an-cta: #4a7c45;           /* Berechnen/CTA-Grün */
  --an-cta-dark: #3f6b3b;
  --an-ok: #4a7c59;
  --an-ok-ink: #1f5135;
  --an-ok-soft: #eef5ef;
  --an-ok-line: #bcd8c4;
  --an-warn: #c99a3c;
  --an-warn-ink: #a8742a;
  --an-warn-soft: #fbf7ee;
  --an-warn-line: #ecdcb8;
  --an-footer: #16263d;
  --an-r-sm: 8px; --an-r-md: 10px; --an-r-lg: 12px; --an-r-xl: 14px;
  --an-max: 1180px;
  font-family: 'Source Sans 3', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--an-text);
}
.an[data-mode="ag"] {
  --an-accent: #3d5a80;        /* Arbeitgeber/HR-Akzent (kühler) */
  --an-accent-dark: #34465e;
  --an-accent-soft: #f0f3f7;
  --an-accent-line: #cdd6df;
}

/* ---------- Base ---------- */
body.an-page { margin: 0; background: var(--an-bg); color: var(--an-text); }
.an *, .an *::before, .an *::after { box-sizing: border-box; }
.an img { max-width: 100%; height: auto; display: block; }
.an a { color: var(--an-accent-dark); text-decoration: none; }
.an a:hover { text-decoration: underline; }
.an h1, .an h2, .an h3, .an h4 { color: var(--an-ink); margin: 0; line-height: 1.2; }
.an p { margin: 0 0 1em; }
.an :focus-visible { outline: 3px solid var(--an-accent); outline-offset: 2px; border-radius: 4px; }
.an .an-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.an-wrap { max-width: var(--an-max); margin: 0 auto; padding: 0 24px; }
.an-section { padding: 48px 0; }

/* ---------- Header ---------- */
.an-header { background: #fff; border-bottom: 1px solid var(--an-border); position: sticky; top: 0; z-index: 50; }
.an-header__inner { display: flex; align-items: center; gap: 28px; height: 70px; max-width: 1320px; margin: 0 auto; padding: 0 28px; }
.an-logo { display: flex; align-items: center; gap: 10px; flex: none; }
.an-logo__mark { width: 34px; height: 34px; border-radius: 8px; background: var(--an-ink-2); display: flex; align-items: center; justify-content: center; }
.an-logo__text { font-size: 18px; font-weight: 700; color: var(--an-ink-2); letter-spacing: -0.01em; }
.an-logo__text b { color: var(--an-accent); font-weight: 700; }
.an-logo__text span { color: #b4b0a6; font-weight: 600; }
.an-nav { display: flex; gap: 24px; font-size: 15px; font-weight: 500; }
.an-nav a { color: #3a4350; }
.an-nav a.is-active { color: var(--an-ink-2); border-bottom: 2px solid var(--an-accent); padding-bottom: 23px; }
.an-header__search { margin-left: auto; display: flex; align-items: center; gap: 8px; width: 230px; height: 40px; padding: 0 14px; background: var(--an-bg); border: 1px solid var(--an-border); border-radius: var(--an-r-sm); color: var(--an-faint); font-size: 14px; }
.an-header__search svg { flex: none; }
.an-burger { display: none; margin-left: auto; background: none; border: 0; padding: 6px; cursor: pointer; color: #3a4350; }

/* ---------- Mobile nav (toggled) ---------- */
.an-mobnav { display: none; background: #fff; border-bottom: 1px solid var(--an-border); padding: 8px 18px 16px; }
.an-mobnav.is-open { display: block; }
.an-mobnav a { display: block; padding: 12px 4px; font-size: 16px; font-weight: 600; color: var(--an-ink); border-bottom: 1px solid var(--an-border); }
.an-mobnav a:last-child { border-bottom: 0; }

/* ---------- Hero ---------- */
.an-hero { background: linear-gradient(180deg, #fff 0%, var(--an-bg) 100%); padding: 64px 0 52px; text-align: center; }
.an-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; background: var(--an-accent-soft); border: 1px solid var(--an-accent-line); border-radius: 100px; font-size: 13px; font-weight: 600; color: var(--an-accent-dark); margin-bottom: 22px; }
.an-hero h1 { font-size: 46px; line-height: 1.1; font-weight: 700; margin: 0 auto 16px; max-width: 760px; letter-spacing: -0.02em; }
.an-hero__lead { font-size: 19px; line-height: 1.5; color: var(--an-muted); margin: 0 auto 30px; max-width: 600px; }
.an-searchbar { display: flex; align-items: center; gap: 0; max-width: 620px; margin: 0 auto; background: #fff; border: 1.5px solid var(--an-border-strong); border-radius: var(--an-r-lg); padding: 6px; box-shadow: 0 4px 16px rgba(22,38,61,.06); }
.an-searchbar svg { margin: 0 8px 0 14px; flex: none; color: var(--an-faint); }
.an-searchbar input { flex: 1; border: 0; background: none; font: inherit; font-size: 17px; color: var(--an-ink); padding: 0; min-width: 0; }
.an-searchbar input::placeholder { color: var(--an-faint); }
.an-searchbar button { flex: none; height: 48px; padding: 0 28px; background: var(--an-cta); color: #fff; font: inherit; font-size: 16px; font-weight: 600; border: 0; border-radius: var(--an-r-sm); cursor: pointer; }
.an-searchbar button:hover { background: var(--an-cta-dark); }
.an-trustdots { display: flex; justify-content: center; gap: 28px; margin-top: 26px; font-size: 14px; color: #6b7480; flex-wrap: wrap; }
.an-trustdots span { display: inline-flex; align-items: center; gap: 7px; }
.an-trustdots i { width: 8px; height: 8px; border-radius: 50%; }

/* ---------- Section headings ---------- */
.an-h2 { font-size: 24px; font-weight: 700; }
.an-secthead { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; gap: 16px; flex-wrap: wrap; }
.an-secthead .an-count { font-size: 14px; color: #6b7480; }

/* ---------- Cards: Kategorien ---------- */
.an-grid { display: grid; gap: 20px; }
.an-grid--4 { grid-template-columns: repeat(4, 1fr); }
.an-grid--3 { grid-template-columns: repeat(3, 1fr); }
.an-grid--2 { grid-template-columns: 1fr 1fr; }
.an-cat { background: #fff; border: 1px solid var(--an-border); border-radius: var(--an-r-lg); padding: 24px; display: block; color: inherit; transition: box-shadow .15s, transform .15s; }
.an-cat:hover { text-decoration: none; box-shadow: 0 6px 20px rgba(22,38,61,.08); transform: translateY(-2px); }
.an-cat__icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.an-cat__title { font-size: 17px; font-weight: 600; color: var(--an-ink); margin-bottom: 6px; }
.an-cat p { font-size: 14px; line-height: 1.5; color: var(--an-muted); margin: 0; }
/* icon tints per accent */
.an-ic--blue { background: #eef3f6; color: var(--an-ink-2); }
.an-ic--green { background: #f1f4ea; color: #5f7d3a; }
.an-ic--cyan { background: #eef3f6; color: var(--an-accent); }
.an-ic--amber { background: #f6eee6; color: #a86a2e; }

/* ---------- Cards: Tools ---------- */
.an-toolcard { background: #fff; border: 1px solid var(--an-border); border-radius: var(--an-r-lg); padding: 22px; display: flex; flex-direction: column; color: inherit; transition: box-shadow .15s, transform .15s; }
.an-toolcard:hover { text-decoration: none; box-shadow: 0 6px 20px rgba(22,38,61,.08); transform: translateY(-2px); }
.an-toolcard__kicker { font-size: 13px; font-weight: 600; color: var(--an-accent); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.an-toolcard__title { font-size: 17px; font-weight: 600; color: var(--an-ink); margin-bottom: 6px; }
.an-toolcard p { font-size: 14px; line-height: 1.5; color: var(--an-muted); margin: 0 0 16px; flex: 1; }
.an-toolcard__cta { font-size: 14px; font-weight: 600; color: var(--an-cta); display: inline-flex; align-items: center; gap: 6px; }
.an-toolcard.is-soon { opacity: .92; }
.an-soonbadge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--an-warn-ink); background: var(--an-warn-soft); border: 1px solid var(--an-warn-line); border-radius: 6px; padding: 2px 8px; }
/* compact list-style toolcard (mobile / search) */
.an-toolrow { background: #fff; border: 1px solid var(--an-border); border-radius: var(--an-r-lg); padding: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: inherit; }
.an-toolrow:hover { text-decoration: none; box-shadow: 0 4px 14px rgba(22,38,61,.07); }
.an-toolrow__kicker { font-size: 12px; font-weight: 600; color: var(--an-accent); text-transform: uppercase; letter-spacing: .05em; }
.an-toolrow__title { font-size: 16px; font-weight: 600; color: var(--an-ink); margin-top: 2px; }
.an-toolrow__sub { font-size: 13px; color: var(--an-muted); margin-top: 2px; }
.an-toolrow svg { color: var(--an-cta); flex: none; }

/* ---------- Dual-Zielgruppen ---------- */
.an-dual { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1000px; margin: 0 auto; }
.an-dual__card { border: 1.5px solid; border-radius: var(--an-r-xl); padding: 32px; }
.an-dual__card--an { border-color: #cfe0ea; background: #f7fafc; }
.an-dual__card--ag { border-color: #cdd6df; background: #f6f7f9; }
.an-dual__tag { display: inline-flex; padding: 6px 12px; color: #fff; border-radius: 100px; font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.an-dual__card--an .an-dual__tag { background: var(--an-accent); }
.an-dual__card--ag .an-dual__tag { background: #3d5a80; }
.an-dual h3 { font-size: 20px; font-weight: 700; margin: 0 0 10px; }
.an-dual p { font-size: 15px; line-height: 1.55; color: var(--an-muted); margin: 0 0 18px; }
.an-dual__link { font-size: 15px; font-weight: 600; }

/* ---------- Trust block ---------- */
.an-trust { display: flex; gap: 40px; align-items: center; max-width: 1040px; margin: 0 auto; }
.an-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--an-ink-2); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 600; flex: none; }
.an-avatar--sm { width: 40px; height: 40px; font-size: 14px; }
.an-avatar--lg { width: 88px; height: 88px; font-size: 30px; }
.an-trust__kicker { font-size: 13px; font-weight: 600; color: var(--an-ok); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }

/* ---------- Footer ---------- */
.an-footer { background: var(--an-footer); color: #c4cdd8; padding: 48px 0 32px; }
.an-footer__cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid #2a3c54; }
.an-footer__brand { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.an-footer p { font-size: 14px; line-height: 1.55; color: #93a1b2; margin: 0; max-width: 280px; }
.an-footer h4 { font-size: 14px; font-weight: 600; color: #fff; margin: 0 0 12px; }
.an-footer__links a { display: block; font-size: 14px; line-height: 2; color: #93a1b2; }
.an-footer__links a:hover { color: #fff; }
.an-footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 13px; color: #7889a0; gap: 16px; flex-wrap: wrap; }

/* ---------- Breadcrumb ---------- */
.an-crumb { font-size: 14px; color: var(--an-faint); margin-bottom: 18px; }
.an-crumb a { color: var(--an-faint); }
.an-crumb a:hover { color: var(--an-muted); }
.an-crumb i { margin: 0 8px; font-style: normal; }
.an-crumb .is-current { color: var(--an-muted); }

/* ---------- Tool page ---------- */
.an-toolhead h1 { font-size: 38px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.02em; }
.an-toolhead__lead { font-size: 18px; line-height: 1.5; color: var(--an-muted); margin: 0 0 26px; max-width: 680px; }

/* Dual-Modus-Umschalter */
.an-modeswitch { display: inline-flex; padding: 5px; background: #eceae3; border-radius: var(--an-r-lg); gap: 4px; margin-bottom: 14px; }
.an-modeswitch button { display: flex; align-items: center; gap: 8px; padding: 11px 22px; background: transparent; color: var(--an-muted); border: 0; border-radius: 9px; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.an-modeswitch button[aria-pressed="true"] { background: var(--an-accent); color: #fff; box-shadow: 0 1px 4px rgba(69,123,157,.4); }
.an-modenote { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--an-accent-dark); background: var(--an-accent-soft); border: 1px solid var(--an-accent-line); border-radius: var(--an-r-sm); padding: 8px 14px; margin-bottom: 28px; }
.an-modenote svg { flex: none; }
.an-mode-an, .an-mode-ag { display: none; }
.an[data-mode="an"] .an-mode-an { display: inline; }
.an[data-mode="ag"] .an-mode-ag { display: inline; }

/* Calc layout */
.an-calc { display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; align-items: start; }
.an-widget { background: #fff; border: 1px solid var(--an-border); border-radius: var(--an-r-xl); padding: 28px; }
.an-widget__kicker { font-size: 13px; font-weight: 600; color: var(--an-accent); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 18px; }
.an-field { margin-bottom: 18px; }
.an-field > label { display: block; font-size: 15px; font-weight: 600; color: #34465e; margin-bottom: 7px; }
.an-field__hint { font-size: 13px; color: var(--an-faint); margin-top: 6px; }
.an-input { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; background: #fff; border: 1.5px solid var(--an-border-strong); border-radius: var(--an-r-md); }
.an-input svg { flex: none; color: var(--an-accent); }
.an-input input, .an-input select { flex: 1; border: 0; background: none; font: inherit; font-size: 17px; color: var(--an-ink); font-weight: 500; min-width: 0; padding: 0; }
.an-input input:focus, .an-input select:focus { outline: none; }
.an-input:focus-within { border-color: var(--an-accent); box-shadow: 0 0 0 3px var(--an-accent-soft); }
/* Segmented toggle (ja/nein etc.) */
.an-seg { display: inline-flex; padding: 4px; background: #f0eee7; border-radius: 9px; gap: 4px; }
.an-seg button { padding: 9px 20px; background: transparent; color: var(--an-faint); border: 0; border-radius: 7px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.an-seg button[aria-pressed="true"] { background: #fff; color: var(--an-ink); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.an-btn { width: 100%; height: 54px; background: var(--an-cta); color: #fff; border: 0; border-radius: var(--an-r-md); font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; }
.an-btn:hover { background: var(--an-cta-dark); }

/* Result block */
.an-result { border: 1.5px solid var(--an-ok-line); border-radius: var(--an-r-xl); overflow: hidden; animation: an-resin .4s ease; }
@keyframes an-resin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.an-result__head { background: var(--an-ok-soft); padding: 20px 26px; border-bottom: 1px solid #d2e4d6; display: flex; align-items: center; gap: 10px; }
.an-result__check { width: 32px; height: 32px; border-radius: 50%; background: var(--an-ok); display: flex; align-items: center; justify-content: center; flex: none; color: #fff; }
.an-result__title { font-size: 18px; font-weight: 700; color: var(--an-ok-ink); }
.an-result__tag { margin-left: auto; font-size: 13px; color: var(--an-muted); background: #fff; border: 1px solid #d2e4d6; border-radius: 6px; padding: 4px 10px; }
.an-result__body { padding: 26px; background: #fff; }
.an-result__lead { font-size: 21px; line-height: 1.45; color: var(--an-ink); margin: 0 0 6px; font-weight: 600; }
.an-result__lead b { color: var(--an-ok-ink); font-weight: 700; }
.an-result__sub { font-size: 17px; line-height: 1.5; color: var(--an-muted); margin: 0 0 22px; }
.an-result__sub b { color: #34465e; }
.an-result__empty { color: var(--an-muted); font-size: 16px; padding: 8px 0; }

/* Timeline (responsive: horizontal Desktop, vertikal Mobil) */
.an-tl { display: flex; gap: 8px; background: var(--an-bg); border: 1px solid var(--an-border); border-radius: var(--an-r-lg); padding: 30px 22px 18px; margin-bottom: 22px; position: relative; }
.an-tl__step { flex: 1; position: relative; text-align: center; padding-top: 22px; }
.an-tl__step::before { content: ""; position: absolute; top: 5px; left: -50%; width: 100%; height: 3px; background: #dcd9d0; z-index: 0; }
.an-tl__step:first-child::before { display: none; }
.an-tl__dot { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 14px; height: 14px; border-radius: 50%; background: var(--an-faint); border: 2px solid #fff; box-shadow: 0 0 0 2px #dcd9d0; z-index: 1; }
.an-tl__step.is-now .an-tl__dot { background: var(--an-accent); box-shadow: 0 0 0 2px var(--an-accent); }
.an-tl__step.is-due .an-tl__dot { background: var(--an-warn); box-shadow: 0 0 0 2px var(--an-warn); }
.an-tl__step.is-end .an-tl__dot { background: var(--an-ok); box-shadow: 0 0 0 2px var(--an-ok); }
.an-tl__lbl { font-size: 13px; font-weight: 600; color: var(--an-muted); }
.an-tl__step.is-now .an-tl__lbl { color: var(--an-accent); }
.an-tl__step.is-due .an-tl__lbl { color: var(--an-warn-ink); font-weight: 700; }
.an-tl__step.is-end .an-tl__lbl { color: var(--an-ok-ink); }
.an-tl__date { font-size: 13px; color: var(--an-ink); font-weight: 600; margin-top: 2px; }
.an-tl__note { font-size: 12px; color: var(--an-faint); margin-top: 2px; }

/* Legal note (amber) */
.an-note { display: flex; gap: 10px; padding: 14px 16px; background: var(--an-warn-soft); border: 1px solid var(--an-warn-line); border-radius: var(--an-r-md); margin-bottom: 18px; }
.an-note svg { flex: none; margin-top: 1px; color: var(--an-warn-ink); }
.an-note p { font-size: 14px; line-height: 1.5; color: #6b5325; margin: 0; }

/* Trust row inside result */
.an-result__trust { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid #eceae3; }
.an-result__trust .an-bio { font-size: 13px; line-height: 1.4; color: var(--an-muted); }
.an-result__trust .an-basis { margin-left: auto; font-size: 13px; color: var(--an-muted); background: var(--an-bg); border: 1px solid var(--an-border); border-radius: 6px; padding: 5px 10px; white-space: nowrap; }

/* ---------- Longread / Ratgeber-content blocks ---------- */
.an-content { background: #fff; border-top: 1px solid var(--an-border); }
.an-prose { max-width: 720px; }
.an-prose h2 { font-family: 'Source Serif 4', Georgia, serif; font-size: 27px; font-weight: 600; margin: 36px 0 14px; }
.an-prose h3 { font-family: 'Source Serif 4', Georgia, serif; font-size: 21px; font-weight: 600; margin: 28px 0 12px; }
.an-prose p { font-family: 'Source Serif 4', Georgia, serif; font-size: 18px; line-height: 1.7; color: #3a4350; margin: 0 0 16px; }
.an-prose ul, .an-prose ol { font-family: 'Source Serif 4', Georgia, serif; font-size: 18px; line-height: 1.7; color: #3a4350; padding-left: 22px; margin: 0 0 16px; }
.an-prose li { margin-bottom: 6px; }
.an-prose a { color: var(--an-accent-dark); font-weight: 600; }

/* §-Referenztabelle */
.an-table { border: 1px solid var(--an-border); border-radius: var(--an-r-lg); overflow: hidden; margin: 0 0 28px; }
.an-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.an-table caption { caption-side: top; text-align: left; padding: 14px 18px; background: var(--an-ink); color: #fff; font-weight: 600; font-size: 15px; }
.an-table th { text-align: left; padding: 12px 18px; font-weight: 600; color: #34465e; border-bottom: 1px solid var(--an-border); background: #f1f0ea; }
.an-table td { padding: 11px 18px; color: #3a4350; }
.an-table tbody tr:nth-child(even) { background: #faf9f6; }
.an-table tr.is-hl { background: var(--an-ok-soft) !important; }
.an-table tr.is-hl td { color: var(--an-ok-ink); font-weight: 600; }
.an-table--scroll { overflow-x: auto; }
.an-table--scroll table { min-width: 360px; }

/* Infobox / Merksatz */
.an-info { display: flex; gap: 14px; padding: 20px 22px; background: var(--an-accent-soft); border-left: 4px solid var(--an-accent); border-radius: 0 var(--an-r-md) var(--an-r-md) 0; margin: 0 0 28px; }
.an-info__kicker { font-size: 14px; font-weight: 700; color: var(--an-accent-dark); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.an-info p { font-family: inherit; font-size: 16px; line-height: 1.55; color: #34465e; margin: 0; }
.an-info--warn { background: var(--an-warn-soft); border-left-color: var(--an-warn); }
.an-info--warn .an-info__kicker { color: var(--an-warn-ink); }
.an-info--warn p { color: #6b5325; }

/* Beispielrechnung */
.an-example { border: 1px dashed #c4cdb8; background: #fafbf6; border-radius: var(--an-r-lg); padding: 22px; margin: 0 0 28px; }
.an-example__row { display: flex; justify-content: space-between; gap: 16px; font-size: 16px; color: #3a4350; padding: 10px 0; border-top: 1px solid var(--an-border); }
.an-example__row:first-child { border-top: 0; padding-top: 0; }
.an-example__row b { color: var(--an-ink); text-align: right; }

/* Gesetzes-Zitat */
.an-quote { margin: 0 0 32px; padding: 18px 22px; background: var(--an-bg); border: 1px solid var(--an-border); border-radius: var(--an-r-md); font-family: 'Source Serif 4', Georgia, serif; }
.an-quote__kicker { font-size: 13px; font-weight: 600; color: var(--an-faint); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.an-quote p { font-size: 17px; line-height: 1.6; color: #3a4350; margin: 0; font-style: italic; }

/* FAQ */
.an-faq { border: 1px solid var(--an-border); border-radius: var(--an-r-lg); overflow: hidden; margin: 0 0 28px; }
.an-faq__item { border-bottom: 1px solid var(--an-border); background: #fff; }
.an-faq__item:last-child { border-bottom: 0; }
.an-faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; padding: 18px 20px; background: none; border: 0; font: inherit; text-align: left; }
.an-faq__q span { font-size: 17px; font-weight: 600; color: var(--an-ink); }
.an-faq__q svg { flex: none; color: var(--an-accent); transition: transform .2s; }
.an-faq__item.is-open .an-faq__q svg { transform: rotate(180deg); }
.an-faq__a { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease; }
.an-faq__item.is-open .an-faq__a { padding: 0 20px 18px; max-height: 600px; }
.an-faq__a p { font-size: 16px; line-height: 1.55; color: var(--an-muted); margin: 0; }

/* Sidebar */
.an-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 90px; }
.an-side__card { border: 1px solid var(--an-border); border-radius: var(--an-r-lg); padding: 20px; background: #fff; }
.an-side__card h4 { font-size: 14px; font-weight: 600; color: #34465e; margin: 0 0 14px; }
.an-side__links { display: flex; flex-direction: column; gap: 12px; }
.an-side__links a { font-size: 15px; font-weight: 600; color: var(--an-accent-dark); display: inline-flex; align-items: center; gap: 8px; }

/* Author / sources / disclaimer */
.an-meta-grid { max-width: 1180px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--an-border); display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.an-authorbox { display: flex; gap: 16px; }
.an-authorbox__name { font-size: 16px; font-weight: 700; color: var(--an-ink); }
.an-authorbox__role { font-size: 14px; color: var(--an-muted); margin-bottom: 8px; }
.an-authorbox p { font-size: 14px; line-height: 1.55; color: var(--an-muted); margin: 0; max-width: 440px; }
.an-sources__kicker { font-size: 13px; font-weight: 600; color: var(--an-faint); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.an-sources__list { font-size: 14px; line-height: 1.9; color: var(--an-muted); }
.an-stand { font-size: 13px; color: var(--an-faint); margin-top: 14px; }
.an-disclaimer { max-width: 1180px; margin-top: 28px; padding: 18px 22px; background: var(--an-bg); border: 1px solid var(--an-border); border-radius: var(--an-r-md); }
.an-disclaimer p { font-size: 14px; line-height: 1.6; color: #6b7480; margin: 0; }

/* Ad / Lead slots (klar gekennzeichnet) */
.an-ad { display: flex; justify-content: center; margin: 0 auto; }
.an-ad__inner { position: relative; display: flex; align-items: center; justify-content: center; }
.an-lead { border: 1px solid #e0ddd4; border-radius: var(--an-r-lg); padding: 18px; background: #faf9f6; }
.an-lead__tag, .an-ad__tag { font-size: 11px; font-weight: 700; color: #a39e90; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; display: block; }
.an-lead h4 { font-size: 15px; font-weight: 600; color: var(--an-ink); margin: 0 0 6px; }
.an-lead p { font-size: 14px; line-height: 1.5; color: var(--an-muted); margin: 0 0 12px; }
.an-lead a { font-size: 14px; font-weight: 600; color: var(--an-accent-dark); }

/* Embedded Rechner-CTA (im Ratgeber-Fließtext) */
.an-toolcta { background: var(--an-ok-soft); border: 1.5px solid var(--an-ok-line); border-radius: var(--an-r-xl); padding: 24px; display: flex; align-items: center; gap: 20px; margin: 0 0 28px; }
.an-toolcta__icon { width: 48px; height: 48px; border-radius: 11px; background: var(--an-ok); display: flex; align-items: center; justify-content: center; flex: none; color: #fff; }
.an-toolcta__body { flex: 1; }
.an-toolcta__body strong { display: block; font-size: 17px; font-weight: 700; color: var(--an-ok-ink); margin-bottom: 4px; }
.an-toolcta__body p { font-size: 15px; line-height: 1.5; color: #3a5840; margin: 0; }
.an-toolcta a.an-btn { width: auto; height: 46px; padding: 0 22px; flex: none; font-size: 15px; text-decoration: none; }

/* TOC */
.an-toc { position: sticky; top: 90px; align-self: start; }
.an-toc__kicker { font-size: 13px; font-weight: 700; color: var(--an-faint); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.an-toc__list { display: flex; flex-direction: column; gap: 10px; font-size: 15px; border-left: 2px solid var(--an-border); padding-left: 16px; }
.an-toc__list a { color: var(--an-muted); }
.an-toc__list a.is-active { color: var(--an-accent-dark); font-weight: 600; }

/* Ratgeber header */
.an-artmeta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid var(--an-border); margin-bottom: 32px; }
.an-artmeta__chip { font-size: 13px; color: var(--an-faint); display: flex; align-items: center; gap: 6px; }
.an-arttitle { font-family: 'Source Serif 4', Georgia, serif; font-size: 42px; line-height: 1.15; font-weight: 600; margin: 0 0 18px; letter-spacing: -0.01em; }
.an-artlede { font-family: 'Source Serif 4', Georgia, serif; font-size: 20px; line-height: 1.6; color: #34465e; margin: 0 0 28px; font-weight: 500; }
.an-kicker { display: inline-block; font-size: 13px; font-weight: 600; color: var(--an-accent); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; }

/* Ratgeber-Hub article cards */
.an-artcard { background: #fff; border: 1px solid var(--an-border); border-radius: var(--an-r-lg); overflow: hidden; display: flex; flex-direction: column; color: inherit; }
.an-artcard:hover { text-decoration: none; box-shadow: 0 6px 20px rgba(22,38,61,.08); }
.an-artcard__img { aspect-ratio: 16 / 9; background: #e9ebec center/cover; }
.an-artcard__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.an-artcard__cat { font-size: 12px; font-weight: 600; color: var(--an-accent); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.an-artcard__title { font-size: 18px; font-weight: 600; color: var(--an-ink); line-height: 1.3; margin-bottom: 8px; }
.an-artcard p { font-size: 14px; line-height: 1.5; color: var(--an-muted); margin: 0 0 16px; flex: 1; }
.an-artcard__foot { font-size: 13px; color: var(--an-faint); display: flex; justify-content: space-between; }
.an-filterbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.an-chip { font-size: 14px; font-weight: 600; color: #3a4350; background: #fff; border: 1px solid var(--an-border); border-radius: 100px; padding: 9px 18px; }
.an-chip.is-active { color: #fff; background: var(--an-ink-2); border-color: var(--an-ink-2); }

/* 404 */
.an-404 { text-align: center; padding: 72px 0; }
.an-404__num { font-size: 96px; font-weight: 700; color: var(--an-ink-2); letter-spacing: -0.03em; line-height: 1; margin-bottom: 8px; }
.an-404 h1 { font-size: 30px; margin: 0 0 12px; }
.an-404 p { font-size: 18px; line-height: 1.5; color: var(--an-muted); margin: 0 auto 32px; max-width: 480px; }
.an-pillrow { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.an-pill { font-size: 15px; font-weight: 600; color: var(--an-accent-dark); background: #fff; border: 1px solid var(--an-border); border-radius: 100px; padding: 11px 20px; }

/* Surfaces */
.an-bg-surface { background: #fff; }
.an-bg-soft { background: var(--an-bg); }
.an-divider { border-top: 1px solid var(--an-border); border-bottom: 1px solid var(--an-border); }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 980px) {
  .an-grid--4 { grid-template-columns: 1fr 1fr; }
  .an-footer__cols { grid-template-columns: 1fr 1fr; }
  .an-meta-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 860px) {
  .an-nav, .an-header__search { display: none; }
  .an-burger { display: block; }
  .an-calc { grid-template-columns: 1fr; }
  .an-dual { grid-template-columns: 1fr; }
  .an-trust { flex-direction: column; text-align: center; gap: 18px; }
  .an-grid--3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .an-wrap { padding: 0 18px; }
  .an-section { padding: 30px 0; }
  .an-hero { padding: 32px 0 34px; }
  .an-hero h1 { font-size: 30px; }
  .an-hero__lead { font-size: 17px; }
  .an-searchbar { flex-wrap: wrap; gap: 8px; padding: 12px; }
  .an-searchbar input { width: 100%; flex-basis: 100%; }
  .an-searchbar button { width: 100%; }
  .an-toolhead h1 { font-size: 27px; }
  .an-arttitle { font-size: 28px; }
  .an-grid--4, .an-grid--3, .an-grid--2 { grid-template-columns: 1fr; }
  .an-footer__cols { grid-template-columns: 1fr; gap: 24px; }
  .an-modeswitch { display: flex; width: 100%; }
  .an-modeswitch button { flex: 1; justify-content: center; padding: 13px 8px; font-size: 14px; }
  .an-widget { padding: 20px; }
  .an-result__lead { font-size: 19px; }
  .an-result__head, .an-result__body { padding: 18px; }
  .an-tl { flex-direction: column; gap: 0; padding: 18px 16px; }
  .an-tl__step { flex: none; text-align: left; padding: 0 0 22px 26px; }
  .an-tl__step::before { top: 14px; left: 6px; width: 3px; height: 100%; }
  .an-tl__step:first-child::before { display: block; top: -8px; height: 22px; }
  .an-tl__dot { top: 2px; left: 0; transform: none; }
  .an-prose h2 { font-size: 22px; }
  .an-toolcta { flex-direction: column; align-items: flex-start; gap: 14px; }
  .an-toolcta a.an-btn { width: 100%; }
}

/* =====================================================================
   CMP-Banner/Modal — arbeitsrechner-Branding & WCAG-AA-Kontrast.
   Der Consent-Layer liegt AUSSERHALB des .an-Wrappers und erbt sonst die
   globalen design_tokens — die machten die --equal-Buttons navy-bg mit
   blauem Text (~2:1, durchgefallen). Hier explizit auf die an-Palette mit
   gepruefter AA-Lesbarkeit. Button-Klassen: --equal (beide Hauptaktionen,
   gleichgestellt nach DSK/CNIL) + --ghost (Einstellungen).
   Kontraste: #fff auf #16263D ~13:1, #2F5D78 auf #fff ~6:1. */
/* .cmp-btn.cmp-btn--equal: zwei Klassen -> höhere Spezifität als die Basis-
   .cmp-btn-Regel weiter unten (sonst gewänne die spätere weiße Basisregel). */
body.site-arbeitsrechner .cmp-btn.cmp-btn--equal,
body.site-arbeitsrechner .cmp-btn.cmp-btn--primary {
  background: #16263D; color: #fff; border: 1px solid #16263D;
}
body.site-arbeitsrechner .cmp-btn.cmp-btn--equal:hover,
body.site-arbeitsrechner .cmp-btn.cmp-btn--primary:hover {
  background: #2F5D78; color: #fff; border-color: #2F5D78;
}
body.site-arbeitsrechner .cmp-btn,
body.site-arbeitsrechner .cmp-btn--ghost {
  background: #fff; color: #16263D; border: 1px solid #CDD4DC;
}
body.site-arbeitsrechner .cmp-btn--ghost:hover {
  background: #F6F5F1; color: #16263D; border-color: #16263D;
}
body.site-arbeitsrechner .cmp-btn:focus-visible {
  outline: 2px solid #457B9D; outline-offset: 2px;
}
/* Banner-/Modal-Links: an-Blau statt Magazin-Pink (--link) */
body.site-arbeitsrechner .cmp-banner__links a,
body.site-arbeitsrechner .cmp-banner__text a,
body.site-arbeitsrechner .cmp-modal__links a,
body.site-arbeitsrechner .cmp-kv a { color: #2F5D78; }
/* Schalter aktiv = CTA-Grün; Tabs/Filter aktiv = an-Blau */
body.site-arbeitsrechner .cmp-switch input:checked ~ .cmp-switch__track { background: #4A7C45; }
body.site-arbeitsrechner .cmp-tab.is-active { color: #2F5D78; border-bottom-color: #2F5D78; }
body.site-arbeitsrechner .cmp-filter__btn.is-active { border-color: #2F5D78; color: #2F5D78; }
