/* meinFahrer Magazin – WordPress-Theme 1.0.0 (aus dem Prototyp vom 2026-11-09)
   Marke: FahrerApp laut brand.bethesna.de/fahrerapp (freigegeben, Stand 12.10.2026).
   Farben: Weiß 60 % Grund · Hellgrau 20 % Karten/Listen/Felder · Anthrazit 12 % Text/dunkle Flächen
           · App-Blau 6 % Buttons/Links/aktive Zustände · Logo-Blau 2 % nur Zeichen/Markenflächen (Kennzeichen-Band).
   Schrift: nur Manrope. Display 800 56/60 −2 % · Heading 700 32/40 −1 % · Subheading 600 20/28 · Body 400 16/26 · Label 600 13/18.
   Radius-Regel: Kennzeichen 4px · Buttons/Felder 8px · Karten/Titelflächen/Kästen 14px.
   Signatur: das „Kennzeichen“ (Kürzel mit Logo-blauem Band) markiert jede Rubrik.
   Ausnahme: Die LernApp-Box nutzt die Farben aus brand.bethesna.de/lernapp, nur in der Box selbst. */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #FFFFFF;
  --grey: #F5F5F5;
  --ink: #292D32;
  --ink-2: #5A5F66;           /* aufgehelltes Anthrazit für Metadaten: 6,4:1 auf Weiß, 5,9:1 auf Hellgrau */
  --action: #0305CA;
  --action-hover: #0204A8;    /* App-Blau, eine Stufe dunkler für Hover */
  --logo: #104EDF;
  --line: rgba(41, 45, 50, 0.12);
  --line-strong: rgba(41, 45, 50, 0.24);

  /* LernApp (nur in der LernApp-Box) */
  --la-blue: #1473E6;
  --la-night: #0F1520;
  --la-panel: #141B27;
  --la-light: #F5F6F8;
  --la-cream: #F3EAD6;

  --font: "Manrope", Inter, system-ui, sans-serif;

  --r-plate: 4px;
  --r-ctl: 8px;
  --r-card: 14px;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  --gutter: 16px;
  --maxw: 1240px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --z-header: 20;
  --z-pop: 30;

  color-scheme: light;
}

@media (min-width: 720px) { :root { --gutter: 32px; } }

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; accent-color: var(--action); scrollbar-color: #C4C6C9 var(--white); }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--font); font-size: 1rem; line-height: 1.625; font-weight: 400;
  overflow-x: hidden; caret-color: var(--action);
  font-feature-settings: "ss01" 0;
}
::selection { background: rgba(3, 5, 202, 0.14); color: var(--ink); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
time, .num, .meta { font-variant-numeric: tabular-nums; }

:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; border-radius: 4px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--gutter); top: -60px; z-index: 50; background: var(--action); color: var(--white); padding: 10px 16px; border-radius: var(--r-ctl); font-weight: 600; text-decoration: none; transition: top 0.2s var(--ease-out); }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* Label-Rolle: Manrope 600 13/18, für Kennzeichen und Rubrik-Labels in Versalien */
.label, .caps { font-size: 0.8125rem; line-height: 1.385; font-weight: 600; }
.caps { text-transform: uppercase; letter-spacing: 0.08em; }
.label { color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.08em; }

.icon { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Kopfzeile ---------- */
.site-header { position: relative; z-index: var(--z-header); background: var(--white); border-bottom: 1px solid var(--line); }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 68px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.wordmark__name { font-weight: 800; font-size: 1.375rem; letter-spacing: -0.02em; line-height: 1; color: var(--ink); }
.wordmark__tag {
  display: inline-flex; align-items: stretch; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--r-plate);
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1; color: var(--ink);
}
.wordmark__tag::before { content: ""; width: 4px; background: var(--logo); }
.wordmark__tag span { padding: 4px 6px 3px 6px; }

.masthead__tools { display: flex; align-items: center; gap: 0; margin-right: -10px; }
@media (min-width: 720px) { .masthead__tools { gap: var(--s-2); margin-right: 0; } }
.tool-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px;
  background: transparent; border: 1px solid transparent; border-radius: var(--r-ctl); cursor: pointer;
  color: var(--ink); font-size: 0.9375rem; font-weight: 600; text-decoration: none;
  transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.tool-btn:hover { background: var(--grey); }
.tool-btn[aria-expanded="true"] { background: var(--grey); border-color: var(--line-strong); }
.tool-btn[aria-expanded="true"] .icon--caret { transform: rotate(180deg); }
.icon--caret { transition: transform 0.25s var(--ease-out); width: 0.9em; height: 0.9em; }
.tool-btn__text { display: none; }
@media (min-width: 720px) { .tool-btn__text { display: inline; } }
@media (max-width: 400px) { .tool-btn { padding: 0 10px; } }

.apps-menu { position: relative; display: none; }
.tool-btn--menu { display: inline-flex; }
@media (min-width: 960px) { .apps-menu { display: block; } .tool-btn--menu { display: none; } }

.popover {
  position: absolute; right: 0; top: calc(100% + 8px); width: 370px; z-index: var(--z-pop);
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--r-card); padding: var(--s-2);
  box-shadow: 0 16px 36px -18px rgba(41, 45, 50, 0.35);
}
.popover[hidden] { display: none; }
.app-link { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 10px; text-decoration: none; transition: background-color 0.2s var(--ease-out); }
.app-link:hover { background: var(--grey); }
.app-link img { width: 44px; height: 44px; border-radius: 10px; object-fit: contain; }
.app-link strong { display: block; font-weight: 700; font-size: 1rem; line-height: 1.4; }
.app-link span { display: block; font-size: 0.875rem; color: var(--ink-2); line-height: 1.45; }
.app-link .icon { color: var(--ink-2); }

.rubric-nav { display: none; border-top: 1px solid var(--line); }
@media (min-width: 960px) { .rubric-nav { display: block; } }
.rubric-nav ul { list-style: none; display: flex; gap: var(--s-6); }
.rubric-nav a { display: inline-flex; align-items: center; min-height: 48px; text-decoration: none; font-weight: 600; font-size: 0.9375rem; color: var(--ink); position: relative; white-space: nowrap; }
.rubric-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--action); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease-out); }
.rubric-nav a:hover { color: var(--action); }
.rubric-nav a:hover::after { transform: scaleX(0.4); }
.rubric-nav a[aria-current="page"] { color: var(--action); }
.rubric-nav a[aria-current="page"]::after { transform: scaleX(1); }
.rubric-nav .is-new { font-size: 0.625rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--action); margin-left: 8px; }

.search-panel { border-top: 1px solid var(--line); padding-block: var(--s-4); background: var(--white); }
.search-panel[hidden] { display: none; }
.search-form { display: flex; gap: var(--s-2); flex-wrap: wrap; align-items: end; }
.search-form .field { flex: 1 1 260px; }

.mobile-nav { border-top: 1px solid var(--line); padding-block: var(--s-4) var(--s-5); background: var(--white); }
.mobile-nav[hidden] { display: none; }
@media (min-width: 960px) { .mobile-nav { display: none !important; } }
.mobile-nav ul { list-style: none; }
.mobile-nav li + li { border-top: 1px solid var(--line); }
.mobile-nav__rubrics a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; text-decoration: none; font-size: 1.125rem; font-weight: 600; }
.mobile-nav__rubrics a[aria-current="page"] { color: var(--action); }
.mobile-nav__apps { margin-top: var(--s-5); display: grid; gap: var(--s-2); }
.mobile-nav__apps .app-link { background: var(--grey); }

/* ---------- Formularfelder & Buttons ---------- */
.field { display: grid; gap: 6px; }
.field label { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.input {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: var(--r-ctl);
  background: var(--grey); border: 1px solid var(--line-strong); color: var(--ink); font: inherit; font-size: 1rem;
  transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}
.input::placeholder { color: var(--ink-2); }
.input:hover { border-color: rgba(41, 45, 50, 0.45); }
.input:focus-visible { outline: 2px solid var(--action); outline-offset: 1px; border-color: var(--action); background: var(--white); }
.input[aria-invalid="true"] { border-color: var(--ink); border-width: 2px; }
.field__hint { font-size: 0.8125rem; line-height: 1.385; color: var(--ink-2); }
.field__error { font-size: 0.875rem; font-weight: 600; color: var(--ink); display: flex; gap: 6px; }
.field__error::before { content: "!"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); color: var(--white); font-size: 0.75rem; font-weight: 800; flex: none; margin-top: 2px; }
.field__error:empty { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px;
  border-radius: var(--r-ctl); border: 1.5px solid transparent; font-weight: 700; font-size: 1rem; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.18s var(--ease-out), background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.btn:active { transform: translateY(1px) scale(0.985); }
.btn--primary { background: var(--action); color: var(--white); }
.btn--primary:hover { background: var(--action-hover); }
.btn--secondary { background: var(--white); border-color: var(--ink); color: var(--ink); }
.btn--secondary:hover { background: var(--grey); }
.btn .icon { width: 1em; height: 1em; }

.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--action); font-weight: 700; text-decoration: none; min-height: 44px; }
.text-link .icon { transition: transform 0.3s var(--ease-out); width: 1em; height: 1em; }
.text-link:hover { text-decoration: underline; }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Kennzeichen (Signatur) ---------- */
.plate {
  display: inline-flex; align-items: stretch; overflow: hidden; flex: none;
  border: 1px solid var(--line-strong); border-radius: var(--r-plate); background: var(--white);
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; line-height: 1;
}
.plate::before { content: ""; width: 5px; background: var(--logo); }
.plate__code { padding: 5px 7px 4px 8px; font-size: 0.6875rem; color: var(--ink); }

.rubric-tag { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; position: relative; z-index: 2; }
.rubric-tag__name { font-size: 0.8125rem; line-height: 1.385; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
a.rubric-tag:hover .rubric-tag__name { color: var(--action); text-decoration: underline; }

/* ---------- Titelflächen (Platzhalter für Beitragsbilder) ---------- */
.cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-card); background: var(--grey); isolation: isolate; container-type: inline-size; }
.cover::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--motif) right center / cover no-repeat; transition: transform 0.7s var(--ease-out); }
.cover--recht { --motif: url("../img/motiv-recht.svg"); }
.cover--betrieb { --motif: url("../img/motiv-betrieb.svg"); }
.cover--gruendung { --motif: url("../img/motiv-gruendung.svg"); }
.cover--fahrer { --motif: url("../img/motiv-fahrer.svg"); }
.cover--wirtschaft { --motif: url("../img/motiv-wirtschaft.svg"); }
.cover--plattformen { --motif: url("../img/motiv-plattformen.svg"); }
.cover__mark {
  position: absolute; left: 5%; bottom: 9%;
  display: inline-flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; background: var(--white);
  font-weight: 800; letter-spacing: 0.08em; line-height: 1; color: var(--ink);
  font-size: clamp(1.25rem, 5.5cqi, 4.5rem);
}
.cover__mark::before { content: ""; width: 0.26em; background: var(--logo); }
.cover__mark span { padding: 0.22em 0.32em 0.18em 0.36em; }
.cover__slot { position: absolute; right: 12px; top: 10px; font-size: 0.625rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.has-hover:hover .cover::before { transform: scale(1.035) translateX(-1%); }

/* ---------- Karten & Listen ---------- */
.card { position: relative; display: grid; gap: var(--s-4); align-content: start; }
.card > *, .row-card > * { min-width: 0; }
.card__title { hyphens: auto; overflow-wrap: break-word; font-weight: 700; letter-spacing: -0.01em; line-height: 1.4; font-size: 1.25rem; }
.card__title a { text-decoration: none; background-image: linear-gradient(var(--action), var(--action)); background-size: 0% 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size 0.4s var(--ease-out), color 0.2s var(--ease-out); }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-card); }
.card:hover .card__title a { background-size: 100% 2px; color: var(--action); }
.card__title a:focus-visible { outline: none; }
.card:has(.card__title a:focus-visible) { outline: 2px solid var(--action); outline-offset: 6px; border-radius: var(--r-card); }
.card__teaser { color: var(--ink); font-size: 1rem; line-height: 1.625; }
.card__body { display: grid; gap: var(--s-3); min-width: 0; }
.card__body > .rubric-tag, .rubric-hero > .plate, .article-head > .rubric-tag { justify-self: start; }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 0.8125rem; line-height: 1.385; font-weight: 600; color: var(--ink-2); }
.meta > * + *::before { content: ""; display: inline-block; width: 1px; height: 0.9em; background: var(--line-strong); margin-right: 14px; vertical-align: -0.1em; }

/* ---------- Abschnitte ---------- */
.section { padding-block: var(--s-8); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-3) var(--s-5); margin-bottom: var(--s-6); }
.section-head__title { display: grid; gap: var(--s-3); }
.section-title { font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; font-size: clamp(1.625rem, 1.3rem + 1vw, 2rem); }
.section-desc { color: var(--ink-2); max-width: 60ch; }
.section-title-row { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }

/* ---------- Startseite ---------- */
.intro { padding-block: var(--s-7) var(--s-6); }
.intro__title { font-weight: 600; font-size: 1.25rem; line-height: 1.4; max-width: 52ch; }
@media (min-width: 720px) { .intro__title { font-size: 1.5rem; line-height: 1.4; letter-spacing: -0.01em; } }
.intro__title span { color: var(--ink-2); font-weight: 400; }

.lead-story { display: grid; gap: var(--s-5); padding-bottom: var(--s-8); }
@media (min-width: 900px) { .lead-story { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-7); align-items: end; } }
.lead-story .cover { border-radius: 18px; }
.lead-story__body { display: grid; gap: var(--s-4); align-content: end; }
.lead-story__title { font-weight: 800; letter-spacing: -0.02em; line-height: 1.07; font-size: clamp(2.125rem, 1.4rem + 2.4vw, 3.5rem); }
.lead-story .card__title a { background-size: 0% 3px; }
.lead-story:hover .card__title a { background-size: 100% 3px; }
.lead-story__teaser { font-size: 1.125rem; line-height: 1.625; color: var(--ink); max-width: 46ch; }
.lead-story .card__title a::after { border-radius: 18px; }

.lead-motif { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .lead-motif .draw { stroke-dasharray: var(--len, 1400); stroke-dashoffset: var(--len, 1400); animation: draw 1.8s var(--ease-out) 0.15s forwards; }
  .lead-motif .draw--2 { animation-delay: 0.45s; }
  .lead-motif .pop { opacity: 0; animation: fade 0.8s var(--ease-out) 1.2s forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
.cover--inline::before { display: none; }

.grid-new { display: grid; gap: var(--s-6); }
@media (min-width: 640px) { .grid-new { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid-new { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); } }
.grid-new .card__title { font-size: 1.125rem; line-height: 1.45; }
@media (max-width: 639px) {
  .grid-new .card { grid-template-columns: 42% 1fr; gap: var(--s-4); align-items: start; }
  .grid-new .card .cover { aspect-ratio: 4 / 3; border-radius: 10px; }
  .grid-new .card .card__teaser, .grid-new .card .cover__slot { display: none; }
  .grid-new .card .card__title { font-size: 1.0625rem; }
  .grid-new .card .cover__mark { font-size: 0.9rem; }
}

.rubric-block { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .rubric-block { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s-7); } }
.stack-list { list-style: none; display: grid; align-content: start; }
.stack-list > li { position: relative; padding-block: var(--s-5); border-bottom: 1px solid var(--line); }
.stack-list > li:first-child { padding-top: 0; }
.stack-list .card { gap: var(--s-3); }

.pending { align-self: start; display: grid; gap: var(--s-3); align-content: start; padding: var(--s-5); border-radius: var(--r-card); background: var(--grey); }
.pending__label { font-size: 0.8125rem; line-height: 1.385; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--action); }
.pending p { color: var(--ink); }
.topic-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.topic-list li { font-size: 0.875rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line-strong); color: var(--ink); }

.empty-rubric { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .empty-rubric { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s-7); align-items: center; } }

/* App-Streifen */
.apps-strip { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .apps-strip { grid-template-columns: 1fr 1fr; gap: var(--s-5); } }
.app-panel { display: grid; gap: var(--s-4); align-content: start; padding: var(--s-6) var(--s-5); background: var(--grey); border-radius: var(--r-card); }
@media (min-width: 720px) { .app-panel { padding: var(--s-6); } }
.app-panel__head { display: flex; align-items: center; gap: var(--s-4); }
.app-panel__head img { width: 56px; height: 56px; object-fit: contain; }
.app-panel__name { font-weight: 700; font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1.2; }
.app-panel__kind { font-size: 0.8125rem; line-height: 1.385; font-weight: 600; color: var(--ink-2); margin-top: 2px; }
.app-panel p { max-width: 52ch; }
.app-panel__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-2); align-items: center; }
.facts { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); margin: 0; }
.facts div { display: grid; gap: 0; }
.facts dt { font-size: 0.8125rem; line-height: 1.385; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.facts dd { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; color: var(--ink); font-variant-numeric: tabular-nums; }
.facts .facts__price dd { font-size: 1rem; font-weight: 600; letter-spacing: 0; line-height: 1.625; }

/* LernApp-Variante (Farben laut brand.bethesna.de/lernapp, nur hier) */
.la-scope { background: var(--la-night); color: var(--la-light); }
.la-scope .app-panel__kind, .la-scope .product-box__kind, .la-scope .ad-label { color: #B8C0CC; }
.la-scope .btn--primary, .btn--la { background: var(--la-blue); color: #FFFFFF; }
.la-scope .btn--primary:hover, .btn--la:hover { background: #0F62C7; }
.la-scope :focus-visible { outline-color: var(--la-cream); }
.la-scope .product-box__lead, .la-scope .app-panel__name, .la-scope .product-box__name { color: #FFFFFF; }
.la-scope .product-box__text { color: var(--la-light); }

/* ---------- Brotkrumen ---------- */
.breadcrumb { padding-top: var(--s-6); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 0.8125rem; line-height: 1.385; font-weight: 600; color: var(--ink-2); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.breadcrumb li + li::before { content: "›"; color: var(--ink-2); }
.breadcrumb a { color: var(--action); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 52ch; }
@media (max-width: 639px) { .breadcrumb [aria-current] { max-width: 30ch; } }

/* ---------- Rubrikseite ---------- */
.rubric-hero { padding-block: var(--s-6) var(--s-7); display: grid; gap: var(--s-5); }
.rubric-hero__title { font-weight: 800; letter-spacing: -0.02em; line-height: 1.07; font-size: clamp(2.5rem, 1.6rem + 3vw, 3.5rem); }
.rubric-hero__intro { font-size: 1.125rem; line-height: 1.625; max-width: 62ch; }
.rubric-hero .plate__code { font-size: 0.8125rem; }


.rubric-layout { display: grid; gap: var(--s-7); padding-bottom: var(--s-8); }
@media (min-width: 1000px) { .rubric-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s-8); } }
.row-list { list-style: none; border-top: 1px solid var(--line); }
.row-list > li { border-bottom: 1px solid var(--line); }
.row-card { position: relative; display: grid; gap: var(--s-4); padding-block: var(--s-5); }
@media (min-width: 640px) { .row-card { grid-template-columns: 220px minmax(0, 1fr); gap: var(--s-5); align-items: start; } }
@media (max-width: 639px) { .row-card { grid-template-columns: 38% 1fr; } .row-card .card__teaser, .row-card .cover__slot { display: none; } .row-card .cover { aspect-ratio: 4 / 3; border-radius: 10px; } .row-card .cover__mark { font-size: 0.85rem; } .row-card .card__title { font-size: 1.0625rem; } }
.row-card--lead { padding-top: var(--s-6); }
@media (min-width: 640px) { .row-card--lead { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 639px) { .row-card--lead { grid-template-columns: 1fr; } .row-card--lead .cover { aspect-ratio: 16 / 9; } .row-card--lead .card__teaser { display: block; } .row-card--lead .cover__mark { font-size: 1.25rem; } }
.row-card--lead .card__title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.25; }

.side-stack { display: grid; gap: var(--s-5); align-content: start; }
@media (min-width: 1000px) { .side-stack--sticky { position: sticky; top: var(--s-5); } }
.side-title { font-size: 0.8125rem; line-height: 1.385; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: var(--s-3); }
.rubric-index { list-style: none; }
.rubric-index li + li { border-top: 1px solid var(--line); }
.rubric-index a { display: flex; align-items: center; gap: 12px; min-height: 48px; text-decoration: none; font-weight: 600; }
.rubric-index a:hover, .rubric-index a[aria-current="page"] { color: var(--action); }
.rubric-index .count { margin-left: auto; font-size: 0.8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ---------- Produktbox ---------- */
.product-box { display: grid; gap: var(--s-4); padding: var(--s-5); border-radius: var(--r-card); background: var(--grey); }
.product-box__head { display: flex; gap: var(--s-4); align-items: center; }
.product-box__head img { width: 48px; height: 48px; object-fit: contain; flex: none; }
.product-box__name { font-weight: 700; font-size: 1.25rem; line-height: 1.4; }
.product-box__kind { font-size: 0.8125rem; line-height: 1.385; font-weight: 600; color: var(--ink-2); }
.product-box__text { font-size: 1rem; line-height: 1.625; }
.product-box__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.product-box--inline { margin-block: var(--s-7); padding: var(--s-6); }
@media (min-width: 720px) { .product-box--inline { grid-template-columns: auto 1fr; column-gap: var(--s-5); } .product-box--inline .product-box__head { grid-row: span 3; align-items: start; } .product-box--inline .product-box__head img { width: 64px; height: 64px; } }
.product-box--inline .product-box__lead { font-weight: 600; font-size: 1.25rem; line-height: 1.4; }
.product-box--compact { gap: var(--s-3); }
.product-box--compact .btn { width: 100%; }
.ad-label { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- Artikelseite ---------- */
.article-head { display: grid; gap: var(--s-5); padding-block: var(--s-6); max-width: 920px; }
.article-title { font-weight: 800; letter-spacing: -0.02em; line-height: 1.07; font-size: clamp(2.125rem, 1.4rem + 2.6vw, 3.5rem); }
.article-teaser { font-size: 1.25rem; line-height: 1.4; font-weight: 600; color: var(--ink); max-width: 56ch; }
.byline { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.byline__avatar { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grey); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.06em; color: var(--ink); }
.byline__name { font-weight: 700; }

.article-cover { margin: 0 0 var(--s-7); }
.article-cover .cover { border-radius: 18px; }
.article-cover figcaption { margin-top: var(--s-3); font-size: 0.8125rem; line-height: 1.385; color: var(--ink-2); }

.article-layout { display: grid; gap: var(--s-6); padding-bottom: var(--s-8); }
@media (min-width: 1040px) { .article-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s-8); } }
.article-aside { display: none; }
@media (min-width: 1040px) { .article-aside { display: block; } }
.article-aside__inner { position: sticky; top: var(--s-5); display: grid; gap: var(--s-6); }

.toc ol { list-style: none; border-left: 1px solid var(--line-strong); }
.toc a { display: block; padding: 8px 0 8px 16px; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; color: var(--ink); font-size: 0.9375rem; line-height: 1.4; transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out); }
.toc a:hover { color: var(--action); }
.toc a[aria-current="true"] { color: var(--action); font-weight: 600; border-left-color: var(--action); }

.toc-mobile { border-radius: var(--r-card); background: var(--grey); margin-bottom: var(--s-6); }
@media (min-width: 1040px) { .toc-mobile { display: none; } }
.toc-mobile summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 52px; padding: 0 var(--s-4); font-weight: 700; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary .icon { transition: transform 0.25s var(--ease-out); }
.toc-mobile[open] summary .icon { transform: rotate(180deg); }
.toc-mobile .toc { padding: 0 var(--s-4) var(--s-4); }

/* Lesespalte: Body 17–18 px, Zeilenhöhe 1,625 wie im Portal */
.prose { max-width: 68ch; font-size: 1.0625rem; line-height: 1.625; color: var(--ink); }
@media (min-width: 720px) { .prose { font-size: 1.125rem; } }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; font-size: clamp(1.5rem, 1.25rem + 0.8vw, 2rem); margin-top: 2.2em; scroll-margin-top: 24px; }
.prose h2 + * { margin-top: 0.7em; }
.prose h3 { font-weight: 600; font-size: 1.25rem; line-height: 1.4; margin-top: 1.8em; }
.prose a:not(.btn) { color: var(--action); font-weight: 600; }
.prose a:not(.btn):hover { text-decoration-thickness: 2px; }
.prose strong { font-weight: 700; }
.cite { font-size: 0.8125rem; line-height: 1.385; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.summary-box { padding: var(--s-5); border-radius: var(--r-card); background: var(--grey); }
.summary-box__title { font-size: 0.8125rem; line-height: 1.385; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--s-3); }
.summary-box ul { list-style: none; display: grid; gap: var(--s-3); }
.summary-box li { display: grid; grid-template-columns: 14px 1fr; gap: 12px; }
.summary-box li::before { content: ""; width: 7px; height: 7px; margin-top: 0.7em; border-radius: 2px; background: var(--ink); }

.callout { display: grid; grid-template-columns: 24px 1fr; gap: 14px; padding: var(--s-5); border-radius: var(--r-card); }
.callout .icon { width: 22px; height: 22px; margin-top: 3px; }
.callout__title { font-weight: 700; margin-bottom: 4px; }
.callout p { margin: 0; }
.callout--warn { background: var(--white); border: 2px solid var(--ink); }
.callout--note { background: var(--grey); }
.callout--note .icon { color: var(--action); }

.table-wrap { margin-block: 1.6em; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.55; }
.data-table caption { text-align: left; font-size: 0.8125rem; line-height: 1.385; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding-bottom: var(--s-3); }
.data-table th { text-align: left; font-weight: 600; font-size: 0.8125rem; line-height: 1.385; color: var(--ink-2); padding: 0 var(--s-4) var(--s-3) 0; border-bottom: 2px solid var(--ink); }
.data-table td { padding: var(--s-4) var(--s-4) var(--s-4) 0; vertical-align: top; border-bottom: 1px solid var(--line); }
.data-table td:first-child { font-weight: 700; }
.data-table td.num { font-size: 0.875rem; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 639px) {
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table tr { display: block; padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
  .data-table td { display: grid; grid-template-columns: 8.5em 1fr; gap: 12px; padding: 4px 0; border: 0; }
  .data-table td::before { content: attr(data-label); font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); padding-top: 2px; }
  .data-table td:first-child { font-size: 1.0625rem; }
}

/* Fahrplan (Zeitleiste im Lernfall) */
.timetable { list-style: none; margin-block: 1.6em; position: relative; }
.timetable li { display: grid; grid-template-columns: 7.5em 1fr; gap: var(--s-4); padding-bottom: var(--s-4); position: relative; }
.timetable li::before { content: ""; position: absolute; left: calc(7.5em + 6px); top: 0.75em; bottom: -0.2em; width: 1px; background: var(--line-strong); }
.timetable li:last-child::before { display: none; }
.timetable time { font-size: 0.875rem; font-weight: 700; color: var(--action); padding-top: 0.2em; }
.timetable li > div { padding-left: var(--s-5); position: relative; }
.timetable li > div::before { content: ""; position: absolute; left: 1px; top: 0.55em; width: 11px; height: 11px; border-radius: 50%; background: var(--white); border: 2px solid var(--action); }
.timetable li.is-end time { color: var(--ink); }
.timetable li.is-end > div::before { border-color: var(--ink); background: var(--ink); }
@media (max-width: 479px) { .timetable li { grid-template-columns: 1fr; gap: 2px; padding-left: var(--s-5); } .timetable li::before { left: 6px; top: 0.9em; } .timetable li > div { padding-left: 0; } .timetable li > div::before { left: calc(-1 * var(--s-5)); top: -1.2em; } }

.quiz { border-radius: var(--r-card); background: var(--grey); padding: var(--s-5); }
.quiz__q { font-weight: 600; }
.quiz details { margin-top: var(--s-3); }
.quiz summary { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--action); font-weight: 700; list-style: none; }
.quiz summary::-webkit-details-marker { display: none; }
.quiz summary .icon { transition: transform 0.25s var(--ease-out); }
.quiz details[open] summary .icon { transform: rotate(180deg); }
.quiz details p { margin-top: var(--s-2); }

.sources { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); font-size: 0.875rem; line-height: 1.6; color: var(--ink-2); }
.sources strong { color: var(--ink); }

.author-box { display: flex; gap: var(--s-4); align-items: center; margin-top: var(--s-6); padding: var(--s-5); border-radius: var(--r-card); background: var(--grey); }
.author-box .byline__avatar { width: 56px; height: 56px; font-size: 0.9375rem; background: var(--white); }
.author-box p { font-size: 0.9375rem; }

/* Weiterlesen */
.related { padding-block: var(--s-8); border-top: 1px solid var(--line); }
.grid-3 { display: grid; gap: var(--s-6); }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); } }
@media (max-width: 719px) {
  .grid-3 .card { grid-template-columns: 40% 1fr; gap: var(--s-4); }
  .grid-3 .card .cover { aspect-ratio: 4 / 3; border-radius: 10px; }
  .grid-3 .card .card__teaser, .grid-3 .card .cover__slot { display: none; }
  .grid-3 .card .card__title { font-size: 1.0625rem; }
  .grid-3 .card .cover__mark { font-size: 0.85rem; }
}
.cross-list { list-style: none; display: grid; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .cross-list { grid-template-columns: 1fr 1fr; column-gap: var(--s-7); } }
.cross-list li { border-bottom: 1px solid var(--line); }
.cross-list .card { padding-block: var(--s-5); gap: var(--s-3); }


/* ---------- Fußzeile (dunkle Anthrazit-Fläche) ---------- */
.site-footer { background: var(--ink); color: var(--grey); padding-block: var(--s-8) var(--s-6); margin-top: var(--s-6); }
.site-footer .wordmark__name { color: var(--white); }
.site-footer .wordmark__tag { color: var(--white); border-color: rgba(245, 245, 245, 0.4); }
.site-footer .wordmark__tag::before { background: var(--white); }
.site-footer :focus-visible { outline-color: var(--white); }
.footer-grid { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: var(--s-7); } }
.footer-about p { margin-top: var(--s-4); max-width: 38ch; }
.footer-col h2 { font-size: 0.8125rem; line-height: 1.385; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); margin-bottom: var(--s-3); }
.footer-col ul { list-style: none; display: grid; gap: 2px; }
.footer-col a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; text-decoration: none; color: var(--grey); }
.footer-col a:hover { color: var(--white); text-decoration: underline; }
.footer-col a .icon { width: 0.9em; height: 0.9em; }
.footer-bottom { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid rgba(245, 245, 245, 0.2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); font-size: 0.8125rem; line-height: 1.385; color: var(--grey); }


@media (max-width: 719px) {
  .row-card .meta > * + *::before, .grid-new .meta > * + *::before, .grid-3 .meta > * + *::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .has-hover:hover .cover::before { transform: none; }
}

/* LernApp-Box: Nacht-Fläche hat Vorrang vor dem Hellgrau der Produktbox */
.product-box.la-scope, .app-panel.la-scope { background: var(--la-night); color: var(--la-light); }


/* ================================================================
   WordPress-Ergänzungen
   ================================================================ */

/* Beitragsbild statt Motiv */
.cover--bild { background: var(--grey); }
.cover--bild::before { display: none; }
.cover__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.has-hover:hover .cover__img { transform: scale(1.035); }
.cover--neutral { --motif: none; }
.plate--neutral::before { background: var(--ink); }

/* Karte quer (Rubrik mit nur einem Artikel) */
@media (min-width: 720px) {
  .card--quer { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s-6); align-items: center; }
}

.btn--voll { width: 100%; }

/* Listen, Kopf kleiner Archive, Suche */
.list-wrap { padding-bottom: var(--s-8); max-width: 920px; }
.rubric-hero--klein { padding-top: var(--s-7); }
.rubric-hero--klein .rubric-hero__title { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.rubric-hero__intro p + p { margin-top: 0.8em; }
.search-again { max-width: 640px; }
.list-wrap > .rubric-index { max-width: 520px; margin-bottom: var(--s-6); }
.pending p + p { margin-top: var(--s-3); }
.pending .rubric-index { margin-top: var(--s-4); }
.author-hero { grid-template-columns: auto 1fr; align-items: center; }
.author-hero > div { display: grid; gap: var(--s-3); }
.section--more { padding-block: var(--s-6) var(--s-8); }

/* Avatar aus WordPress */
.byline__img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: var(--grey); }
.byline__img--gross { width: 56px; height: 56px; }
.author-hero .byline__img--gross { width: 80px; height: 80px; border-radius: 16px; }
.author-box > div { display: grid; gap: var(--s-2); }
.byline__name a { text-decoration: none; }
.byline__name a:hover { color: var(--action); text-decoration: underline; }

.article-layout--ohne-leiste { grid-template-columns: minmax(0, 1fr) !important; }

/* Seitenzahlen (the_posts_pagination, wp_link_pages) */
.pager { margin-top: var(--s-6); }
.pager .nav-links, .pager.post-nav-links { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.pager .page-numbers, .pager.post-nav-links > a, .pager.post-nav-links > .post-page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 var(--s-3);
  border: 1px solid var(--line-strong); border-radius: var(--r-ctl); text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums;
}
.pager a.page-numbers:hover, .pager.post-nav-links > a:hover { border-color: var(--action); color: var(--action); }
.pager .page-numbers.current, .pager .post-page-numbers.current { background: var(--action); border-color: var(--action); color: var(--white); }
.pager .page-numbers.dots { border-color: transparent; }

/* Rank-Math-Brotkrumen im selben Look */
.breadcrumb--rm p, .breadcrumb--rm .rank-math-breadcrumb { font-size: 0.8125rem; line-height: 1.385; font-weight: 600; color: var(--ink-2); }
.breadcrumb--rm a { color: var(--action); text-decoration: none; }
.breadcrumb--rm a:hover { text-decoration: underline; }
.breadcrumb--rm .separator { margin-inline: 6px; }

/* WordPress-Kernklassen */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.alignleft { float: left; margin: 0.3em 1.5em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, .wp-element-caption { margin-top: var(--s-2); font-size: 0.8125rem; line-height: 1.385; color: var(--ink-2); }

/* Blöcke in der Lesespalte */
.prose img { height: auto; border-radius: var(--r-card); }
.prose figure { margin: 1.6em 0; }
.prose .wp-block-image img { width: 100%; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose blockquote, .prose .wp-block-quote { margin: 1.6em 0; padding: 0 0 0 var(--s-5); border-left: 3px solid var(--ink); font-size: 1.1em; font-weight: 600; }
.prose blockquote cite, .prose .wp-block-quote cite { display: block; margin-top: var(--s-2); font-size: 0.8125rem; font-style: normal; font-weight: 600; color: var(--ink-2); }
.prose hr, .prose .wp-block-separator { border: 0; border-top: 1px solid var(--line-strong); margin: 2em 0; }
.prose .wp-block-buttons { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.prose .wp-block-button__link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: var(--r-ctl); background: var(--action); color: var(--white); font-weight: 600; text-decoration: none; }
.prose .wp-block-button__link:hover { background: var(--action-hover); }
.prose .wp-block-embed iframe, .prose iframe { max-width: 100%; }
.prose .wp-block-embed__wrapper { position: relative; }
.prose .wp-block-details, .prose details { border-radius: var(--r-card); background: var(--grey); padding: var(--s-4) var(--s-5); }
.prose details summary { cursor: pointer; font-weight: 700; color: var(--action); min-height: 44px; display: flex; align-items: center; }
.prose code { font-size: 0.9em; background: var(--grey); padding: 0.1em 0.35em; border-radius: 4px; }
.prose .has-text-align-center { text-align: center; }

/* Tabellen (core/table) wie die Datentabelle im Prototyp */
.prose .wp-block-table { margin: 1.6em 0; overflow-x: auto; }
.prose .wp-block-table table, .prose > table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.55; }
.prose .wp-block-table thead th, .prose .wp-block-table thead td, .prose > table th {
  text-align: left; font-weight: 600; font-size: 0.8125rem; line-height: 1.385; color: var(--ink-2);
  padding: 0 var(--s-4) var(--s-3) 0; border: 0; border-bottom: 2px solid var(--ink);
}
.prose .wp-block-table td, .prose > table td { padding: var(--s-4) var(--s-4) var(--s-4) 0; vertical-align: top; border: 0; border-bottom: 1px solid var(--line); }
.prose .wp-block-table tbody td:first-child { font-weight: 700; }
.prose .wp-block-table thead { border-bottom: 0; }
.prose .wp-block-table figcaption { text-align: left; }
.prose .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: var(--grey); }
.prose .wp-block-table.is-style-stripes td:first-child { padding-left: var(--s-3); }

/* Blockstile (register_block_style in functions.php) */
.prose .is-style-mf-kurz { padding: var(--s-5); border-radius: var(--r-card); background: var(--grey); }
.prose .is-style-mf-kurz > :first-child:is(h2, h3, h4, p) { font-size: 0.8125rem; line-height: 1.385; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0; }
.prose .is-style-mf-kurz > * + * { margin-top: var(--s-3); }
.prose .is-style-mf-kurz ul { list-style: none; padding: 0; display: grid; gap: var(--s-3); }
.prose .is-style-mf-kurz ul li { display: grid; grid-template-columns: 14px 1fr; gap: 12px; margin: 0; }
.prose .is-style-mf-kurz ul li::before { content: ""; width: 7px; height: 7px; margin-top: 0.7em; border-radius: 2px; background: var(--ink); }

.prose .is-style-mf-merk { padding: var(--s-5); border-radius: var(--r-card); background: var(--grey); }
.prose .is-style-mf-warn { padding: var(--s-5); border-radius: var(--r-card); background: var(--white); border: 2px solid var(--ink); }
.prose :is(.is-style-mf-merk, .is-style-mf-warn) > * + * { margin-top: var(--s-2); }
.prose :is(.is-style-mf-merk, .is-style-mf-warn) > :first-child { margin-top: 0; }
.prose p.is-style-mf-merk::before, .prose p.is-style-mf-warn::before { display: block; margin-bottom: 4px; font-size: 0.8125rem; line-height: 1.385; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.prose p.is-style-mf-merk::before { content: "Merke"; color: var(--action); }
.prose p.is-style-mf-warn::before { content: "Achtung"; color: var(--ink); }

/* Zeitleiste auf einer normalen Liste: <li><strong>Datum</strong> Text</li> */
.prose ul.is-style-mf-zeitleiste, .prose ol.is-style-mf-zeitleiste { list-style: none; padding: 0; margin-block: 1.6em; }
.prose .is-style-mf-zeitleiste > li { position: relative; margin: 0; padding: 0 0 var(--s-5) var(--s-6); }
.prose .is-style-mf-zeitleiste > li::before { content: ""; position: absolute; left: 5px; top: 0.9em; bottom: -0.5em; width: 1px; background: var(--line-strong); }
.prose .is-style-mf-zeitleiste > li:last-child::before { display: none; }
.prose .is-style-mf-zeitleiste > li::after { content: ""; position: absolute; left: 0; top: 0.45em; width: 11px; height: 11px; border-radius: 50%; background: var(--white); border: 2px solid var(--action); }
.prose .is-style-mf-zeitleiste > li:last-child::after { background: var(--ink); border-color: var(--ink); }
.prose .is-style-mf-zeitleiste > li > strong:first-child { display: block; font-size: 0.875rem; font-weight: 700; color: var(--action); font-variant-numeric: tabular-nums; }
.prose .is-style-mf-zeitleiste > li:last-child > strong:first-child { color: var(--ink); }

/* App-Box im Fließtext: Abstand innerhalb der Lesespalte */
.prose > .product-box--inline { margin-block: var(--s-7); }
.prose > .product-box--inline p { margin: 0; }

/* Lesespalte darf nie breiter als der Bildschirm werden (breite Tabellen scrollen in sich) */
@media (max-width: 1039px) { .article-layout { grid-template-columns: minmax(0, 1fr); } }
.article-layout > *, .rubric-layout > * { min-width: 0; }
.prose .wp-block-table { -webkit-overflow-scrolling: touch; }
@media (max-width: 639px) { .prose .wp-block-table table { min-width: 520px; } }
.article-aside__inner, .side-stack { grid-template-columns: minmax(0, 1fr); }
.btn--voll { white-space: normal; text-align: center; justify-content: center; line-height: 1.3; padding-block: 12px; }

/* Gruppenblock: klassische Themes legen einen inneren Container an */
.prose .wp-block-group__inner-container > * + * { margin-top: var(--s-3); }
.prose .is-style-mf-kurz > .wp-block-group__inner-container > :first-child:is(h2, h3, h4, p),
.prose .is-style-mf-kurz > :first-child:is(h2, h3, h4, p) { font-size: 0.8125rem; line-height: 1.385; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0; }
.prose :is(.is-style-mf-kurz, .is-style-mf-merk, .is-style-mf-warn) ul { padding-left: 0; }
.author-box { align-items: flex-start; }

/* ---------- Mobile first: lange deutsche Wörter (2026-11-09) ----------
   Grids ohne Spaltenangabe wachsen mit dem längsten Wort mit („Mietwagenunternehmen“ in 34 px
   ist breiter als ein 375-px-Handy). Darum feste Spalte minmax(0, 1fr) und Silbentrennung
   nur auf schmalen Bildschirmen; ab 720 px bleiben große Titel ungetrennt. */
.article-head, .lead-story__body, .card__body, .rubric-hero { grid-template-columns: minmax(0, 1fr); }
.article-title, .lead-story__title, .rubric-hero__title { hyphens: auto; overflow-wrap: break-word; }
@media (min-width: 720px) {
  .article-title, .lead-story__title, .rubric-hero__title { hyphens: manual; }
}
@media (min-width: 900px) {
  .lead-story__title { font-size: clamp(2.25rem, 1rem + 2vw, 3rem); }
}
.breadcrumb--rm .separator { color: var(--ink-2); }
.breadcrumb--rm .last { color: var(--ink); display: inline-block; max-width: 52ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
@media (max-width: 639px) { .breadcrumb--rm .last { max-width: 22ch; } }

/* ---------- Sechs Rubriken in der Kopfzeile (2026-11-09) ----------
   Mit „Plattformen“ passt die Rubrikleiste bei 32 px Abstand erst ab ca. 1010 px.
   Zwischen 960 und 1099 px darum enger setzen. */
@media (min-width: 960px) and (max-width: 1099px) {
  .rubric-nav ul { gap: var(--s-4); }
}

/* ---------- Mobil-Feinschliff 1.0.6 (2026-11-17) ----------
   Befunde der Prüfung bei 360/390 px (Berichte/2026-11-17-mobil-blog.md). Nur Abstände,
   Umbrüche und Tippflächen; Farben, Schrift und Texte bleiben. */

/* Kopfzeile: Wortmarke + Suche + Menü waren bei 360 px 3 px breiter als der Bildschirm. */
@media (max-width: 400px) {
  .masthead { gap: var(--s-2); }
  .wordmark__name { font-size: 1.25rem; }
}
.tool-btn { min-width: 44px; justify-content: center; }
.wordmark { min-height: 44px; }

/* Beitragstitel: kleinstes Maß so, dass Wörter wie „Mietwagenunternehmen“ bei 360 px in eine
   Zeile passen; ab ca. 1280 px wie bisher (3,5 rem). Silbentrennung bleibt nur das Netz
   und greift erst ab 14 Buchstaben („selbst-ständig“ wurde sonst ohne Not getrennt). */
.article-title { font-size: clamp(1.625rem, 0.95rem + 3.17vw, 3.5rem); hyphenate-limit-chars: 14 7 7; }

/* Tabellen ohne Tabellenblock (ältere Beiträge): scrollen im eigenen Rahmen statt die Seite zu verbreitern. */
@media (max-width: 639px) {
  .prose > table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* Knopf „Bei Google als bevorzugte Quelle hinzufügen“: darf umbrechen statt über den Rand zu laufen. */
.mf-bq__knopf { white-space: normal; text-align: center; justify-content: center; line-height: 1.3; padding-block: 12px; max-width: 100%; }
@media (max-width: 639px) { .mf-bq__knopf { width: 100%; } }

/* Rubrik-Kennzeichen in schmalen Listenkarten: Name darf unter das Kennzeichen rutschen
   („Wirtschaftlichkeit“ war in Such- und Rubriklisten bei 360 px breiter als die Karte). */
@media (max-width: 639px) { .row-card .rubric-tag { flex-wrap: wrap; row-gap: 6px; } }

/* Tippflächen mindestens 44 px. */
.rubric-tag::before { content: ""; position: absolute; inset: -11px -4px; }
.footer-col ul { gap: 0; }
.footer-col a { min-height: 44px; }
.toc-mobile .toc a { padding-block: 12px; }
.meinfahrer-footer-link a { display: inline-flex; align-items: center; min-height: 44px; }
