/* Marketing-Site: Ratgeber-Uebersicht, Artikel, Cookie-Banner.
 *
 * Baut auf den Variablen von /static/willkommen/css/style.css auf (--ink,
 * --blue, --radius-*, --font). Hier stehen nur die Bausteine, die es dort noch
 * nicht gibt. Die Farbwelt ist die der bisherigen Framer-Seiten: Grundton
 * #040a14 (identisch mit --ink), Karten #0f121c, Linien #293248.
 */

.mk-body {
  background: var(--ink);
  color: var(--dark-text);
  font-family: var(--font);
  margin: 0;
}

.mk-body .nav.is-solid {
  background: rgba(4, 10, 20, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(41, 50, 72, .6);
}

/* Lesefortschritt am oberen Rand */
.mk-progress {
  position: fixed; inset: 0 auto auto 0; height: 2px; width: 100%;
  z-index: 60; pointer-events: none;
}
.mk-progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--blue-soft));
  transition: width .1s linear;
}

.mk-wrap { width: min(100% - 40px, 1180px); margin-inline: auto; }

/* ── Seitenkopf ─────────────────────────────────────────────── */

.mk-head {
  position: relative; overflow: clip;
  padding: clamp(130px, 17vh, 190px) 0 clamp(40px, 6vh, 64px);
}
.mk-head::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 65% 60% at 50% 25%, black, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 65% 60% at 50% 25%, black, transparent 78%);
  pointer-events: none;
}
.mk-head > * { position: relative; }

.mk-krumen {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: .82rem; color: var(--dark-muted); margin-bottom: 18px;
}
.mk-krumen a { color: var(--dark-muted); text-decoration: none; }
.mk-krumen a:hover { color: #fff; }
.mk-krumen span[aria-hidden] { opacity: .5; }

.mk-titel {
  font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.12;
  letter-spacing: -.02em; color: #fff; margin: 0 0 18px; max-width: 20ch;
}
.mk-head-lead {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem); line-height: 1.65;
  color: var(--dark-muted); max-width: 62ch; margin: 0;
}

.mk-meta {
  display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center;
  margin-top: 22px; font-size: .88rem; color: var(--dark-muted);
}
.mk-meta strong { color: rgba(241, 245, 249, .92); font-weight: 600; }
.mk-meta-punkt { opacity: .45; }

/* ── Artikel ────────────────────────────────────────────────── */

.mk-artikel { padding-bottom: clamp(48px, 7vh, 80px); }

.mk-artikel-grid {
  display: grid; gap: clamp(32px, 5vw, 64px);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1060px) {
  .mk-artikel-grid { grid-template-columns: minmax(0, 1fr) 290px; align-items: start; }
}

.mk-inhalt { max-width: 74ch; font-size: 1.055rem; line-height: 1.78; color: rgba(241, 245, 249, .88); }
.mk-inhalt > *:first-child { margin-top: 0; }
.mk-inhalt p { margin: 0 0 1.15em; }
.mk-inhalt h2 {
  font-size: clamp(1.42rem, 2.4vw, 1.85rem); line-height: 1.25; letter-spacing: -.015em;
  color: #fff; margin: 2.1em 0 .65em; scroll-margin-top: 100px;
}
.mk-inhalt h3 {
  font-size: clamp(1.12rem, 1.8vw, 1.32rem); line-height: 1.35;
  color: #fff; margin: 1.7em 0 .5em; scroll-margin-top: 100px;
}
.mk-inhalt h4 { font-size: 1.04rem; color: #fff; margin: 1.5em 0 .45em; }
.mk-inhalt a { color: var(--blue-soft); text-decoration: underline; text-underline-offset: 3px; }
.mk-inhalt a:hover { color: #fff; }
.mk-inhalt strong { color: #fff; font-weight: 650; }
.mk-inhalt ul, .mk-inhalt ol { margin: 0 0 1.25em; padding-left: 1.35em; }
.mk-inhalt li { margin-bottom: .5em; }
.mk-inhalt li::marker { color: var(--blue-soft); }
.mk-inhalt img {
  max-width: 100%; height: auto; display: block;
  margin: 1.6em 0; border-radius: var(--radius-md);
  border: 1px solid rgba(41, 50, 72, .8);
}
.mk-inhalt blockquote {
  margin: 1.6em 0; padding: 2px 0 2px 20px;
  border-left: 3px solid var(--blue); color: var(--dark-muted); font-style: italic;
}
.mk-inhalt hr { border: 0; border-top: 1px solid rgba(41, 50, 72, .8); margin: 2.2em 0; }

/* Tabellen scrollen auf schmalen Schirmen statt die Seite zu sprengen */
.mk-inhalt table {
  width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .945rem;
  display: block; overflow-x: auto; white-space: nowrap;
}
@media (min-width: 760px) {
  .mk-inhalt table { display: table; white-space: normal; }
}
.mk-inhalt th, .mk-inhalt td {
  border: 1px solid rgba(41, 50, 72, .9); padding: 10px 13px;
  text-align: left; vertical-align: top;
}
.mk-inhalt th { background: rgba(41, 50, 72, .38); color: #fff; font-weight: 620; }
.mk-inhalt tbody tr:nth-child(even) { background: rgba(41, 50, 72, .14); }

/* ── Inhaltsverzeichnis (Randspalte) ────────────────────────── */

.mk-toc {
  position: sticky; top: 96px; align-self: start;
  border: 1px solid rgba(41, 50, 72, .8); border-radius: var(--radius-lg);
  background: #0f121c; padding: 20px 22px; font-size: .9rem;
}
.mk-toc h2 {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--dark-muted); margin: 0 0 12px; font-weight: 600;
}
.mk-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.mk-toc a { color: var(--dark-muted); text-decoration: none; line-height: 1.4; display: block; }
.mk-toc a:hover { color: #fff; }
@media (max-width: 1059px) { .mk-toc { display: none; } }

/* ── FAQ ────────────────────────────────────────────────────── */

.mk-faq { margin-top: 3em; }
.mk-faq h2 { font-size: clamp(1.42rem, 2.4vw, 1.85rem); color: #fff; margin: 0 0 .8em; }
.mk-faq details {
  border: 1px solid rgba(41, 50, 72, .8); border-radius: var(--radius-md);
  background: #0f121c; margin-bottom: 10px; overflow: hidden;
}
.mk-faq summary {
  cursor: pointer; list-style: none; padding: 15px 46px 15px 18px;
  font-weight: 600; color: #fff; position: relative;
}
.mk-faq summary::-webkit-details-marker { display: none; }
.mk-faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; font-weight: 400; color: var(--blue-soft); line-height: 1;
}
.mk-faq details[open] summary::after { content: "–"; }
.mk-faq details > p { margin: 0; padding: 0 18px 16px; color: var(--dark-muted); line-height: 1.7; }

/* ── Lead-Magnet im Artikel ─────────────────────────────────── */

/* Abstand wie Autorenbox und FAQ, damit der Artikel einen Rhythmus behaelt.
   Die Karte selbst kommt aus .mk-formular-karte (siehe Formular-Block). */
.mk-leitfaden { margin-top: 3em; }
.mk-leitfaden .mk-formular-karte { margin-inline: 0; }

/* ── Autorenbox ─────────────────────────────────────────────── */

.mk-autor {
  margin-top: 3em; display: flex; gap: 18px; flex-wrap: wrap;
  border: 1px solid rgba(41, 50, 72, .8); border-radius: var(--radius-lg);
  background: #0f121c; padding: 22px;
}
.mk-autor-bild {
  width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex: none;
  background: rgba(41, 50, 72, .5);
}
.mk-autor-text { flex: 1 1 260px; min-width: 0; }
.mk-autor-text h2 { font-size: 1.02rem; color: #fff; margin: 0 0 3px; }
.mk-autor-rolle { font-size: .87rem; color: var(--blue-soft); margin: 0 0 9px; }
.mk-autor-text p { font-size: .92rem; line-height: 1.65; color: var(--dark-muted); margin: 0 0 8px; }
.mk-autor-hinweis { font-size: .82rem; opacity: .8; }
.mk-autor a { color: var(--blue-soft); }

/* ── CTA ────────────────────────────────────────────────────── */

.mk-cta {
  margin-top: 3em; text-align: center;
  border: 1px solid rgba(41, 50, 72, .8); border-radius: var(--radius-xl);
  background: linear-gradient(160deg, rgba(23, 103, 255, .16), rgba(15, 18, 28, .9));
  padding: clamp(28px, 5vw, 44px);
}
.mk-cta h2 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); color: #fff; margin: 0 0 12px; }
.mk-cta p { color: var(--dark-muted); max-width: 56ch; margin: 0 auto 22px; line-height: 1.7; }
.mk-cta-knoepfe { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Artikel-Karten (Uebersicht + "Ähnliche Beiträge") ──────── */

.mk-karten {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.mk-karte {
  display: flex; flex-direction: column; gap: 9px;
  border: 1px solid rgba(41, 50, 72, .8); border-radius: var(--radius-lg);
  background: #0f121c; padding: 22px; text-decoration: none;
  transition: border-color .18s var(--ease-out), transform .18s var(--ease-out);
}
.mk-karte:hover { border-color: rgba(23, 103, 255, .55); transform: translateY(-2px); }
.mk-karte h2, .mk-karte h3 {
  font-size: 1.06rem; line-height: 1.4; color: #fff; margin: 0; font-weight: 620;
}
.mk-karte p { font-size: .92rem; line-height: 1.6; color: var(--dark-muted); margin: 0; }
.mk-karte-meta {
  margin-top: auto; padding-top: 6px; font-size: .8rem; color: var(--light-soft);
  display: flex; gap: 10px; align-items: center;
}

.mk-aehnlich { margin-top: 3.5em; }
.mk-aehnlich > h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); color: #fff; margin: 0 0 18px; }

.mk-liste { padding-bottom: clamp(60px, 9vh, 100px); }
.mk-liste-zahl { color: var(--dark-muted); font-size: .9rem; margin: 0 0 20px; }

/* ── Cookie-Banner ──────────────────────────────────────────── */

.mk-consent {
  position: fixed; inset: auto 0 0 0; z-index: 80;
  padding: 16px; display: flex; justify-content: center;
}
.mk-consent[hidden] { display: none; }
.mk-consent-card {
  width: min(100%, 640px);
  background: #0f121c; border: 1px solid rgba(41, 50, 72, .95);
  border-radius: var(--radius-lg); padding: 20px 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
}
.mk-consent-card h2 { font-size: 1.02rem; color: #fff; margin: 0 0 8px; }
.mk-consent-card p { font-size: .89rem; line-height: 1.6; color: var(--dark-muted); margin: 0 0 14px; }
.mk-consent-card a { color: var(--blue-soft); }
.mk-consent-detail { display: grid; gap: 10px; margin: 0 0 14px; }
/* display:grid/flex schlaegt das hidden-Attribut des Browsers — sonst stehen
   die Detail-Schalter und "Auswahl speichern" von Anfang an offen. */
.mk-consent [hidden] { display: none !important; }
.mk-consent-row { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--dark-muted); }
.mk-consent-row strong { color: #fff; font-weight: 600; }
.mk-consent-row input { margin-top: 3px; flex: none; accent-color: var(--blue); }
.mk-consent-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.mk-body .btn-ghost {
  background: transparent; color: var(--dark-muted);
  border: 1px solid rgba(41, 50, 72, .95);
}
.mk-body .btn-ghost:hover { color: #fff; border-color: rgba(120, 187, 255, .5); }

/* ── 404 ────────────────────────────────────────────────────── */

.mk-404 { text-align: center; padding: clamp(140px, 22vh, 220px) 0 clamp(80px, 12vh, 130px); }
.mk-404 p { color: var(--dark-muted); max-width: 52ch; margin: 0 auto 26px; line-height: 1.7; }

/* ── Gestaltete Seiten (Produkt-, Vertriebs-, Webinar-Seiten) ────── */

.mk-eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue-soft);
  background: rgba(23, 103, 255, .12); border: 1px solid rgba(120, 187, 255, .28);
  border-radius: var(--radius-pill); padding: 5px 13px;
}

.mk-hero .mk-titel { max-width: 22ch; }
.mk-hero-cta { margin: 28px 0 0; }
.mk-belege {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin: 26px 0 0; padding: 0; font-size: .9rem; color: var(--dark-muted);
}
.mk-belege li::before { content: "★ "; color: var(--orange); }
.mk-hinweis { margin: 14px 0 0; font-size: .86rem; color: var(--light-soft); }

.mk-abschnitt { padding: clamp(48px, 7vh, 84px) 0; }
.mk-abschnitt h2 {
  font-size: clamp(1.5rem, 2.9vw, 2.25rem); line-height: 1.2; letter-spacing: -.018em;
  color: #fff; margin: 0 0 16px; max-width: 26ch;
}
.mk-abschnitt p { color: var(--dark-muted); line-height: 1.75; max-width: 68ch; }
.mk-abschnitt-lead { font-size: 1.04rem; margin-bottom: 30px; }
.mk-abschnitt-schluss { margin-top: 26px; font-size: .95rem; }

.mk-split { display: grid; gap: clamp(28px, 4vw, 54px); align-items: center; }
@media (min-width: 900px) { .mk-split { grid-template-columns: 1fr 1fr; } }
.mk-split-bild img {
  width: 100%; height: auto; border-radius: var(--radius-lg);
  border: 1px solid rgba(41, 50, 72, .8);
}
.mk-haken { list-style: none; margin: 20px 0; padding: 0; display: grid; gap: 11px; }
.mk-haken li { position: relative; padding-left: 30px; color: var(--dark-muted); line-height: 1.6; }
.mk-haken li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--green); font-weight: 700;
}
.mk-schluss { color: rgba(241, 245, 249, .92); font-weight: 600; margin-top: 20px; }

.mk-karte-statisch { cursor: default; }
.mk-karte-statisch:hover { transform: none; border-color: rgba(41, 50, 72, .8); }

.mk-schritte { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 14px; }
@media (min-width: 860px) { .mk-schritte { grid-template-columns: repeat(3, 1fr); } }
.mk-schritte li {
  border: 1px solid rgba(41, 50, 72, .8); border-radius: var(--radius-lg);
  background: #0f121c; padding: 20px 22px;
}
.mk-schritt-marke {
  display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue-soft); margin-bottom: 8px;
}
.mk-schritt-text { color: var(--dark-muted); line-height: 1.6; font-size: .94rem; }

.mk-stimme { font-style: normal; }
.mk-stimme-kopf { color: #fff !important; font-weight: 650; margin: 0 0 6px; }
.mk-stimme footer { margin-top: auto; padding-top: 10px; font-size: .85rem; color: var(--light-soft); }
.mk-stimme footer strong { color: rgba(241, 245, 249, .92); }

/* ── Lead-Formulare ─────────────────────────────────────────────── */

.mk-formular-karte {
  max-width: 620px; margin-inline: auto;
  border: 1px solid rgba(41, 50, 72, .8); border-radius: var(--radius-xl);
  background: #0f121c; padding: clamp(24px, 4vw, 38px);
}
.mk-formular-karte h2 { max-width: none; }
.mk-formular { display: grid; gap: 15px; margin-top: 24px; }
.mk-feld-reihe { display: grid; gap: 15px; }
@media (min-width: 620px) { .mk-feld-reihe { grid-template-columns: 1fr 1fr; } }
.mk-formular label { display: grid; gap: 6px; font-size: .88rem; color: var(--dark-muted); }
.mk-formular input[type="text"], .mk-formular input[type="email"] {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .96rem;
  color: rgba(241, 245, 249, .92);
  background: rgba(4, 10, 20, .6);
  border: 1px solid rgba(41, 50, 72, .95); border-radius: var(--radius-md);
}
.mk-formular input:focus-visible {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23, 103, 255, .22);
}
.mk-einwilligung { grid-template-columns: auto 1fr; align-items: start; gap: 10px; font-size: .84rem; }
.mk-einwilligung input { margin-top: 3px; accent-color: var(--blue); }
.mk-honigtopf { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mk-formular-hinweis { margin: 0; font-size: .88rem; min-height: 1.2em; }
.mk-formular-hinweis.ist-erfolg { color: var(--green); }
.mk-formular-hinweis.ist-fehler { color: #ff8080; }

/* .btn aus style.css bringt kein eigenes Padding mit — das steckt dort nur in
   .btn-sm/.btn-lg/.btn-xl. Ohne Groessenklasse sieht ein Button deshalb aus
   wie ein blau hinterlegter Textschnipsel. Hier eine Vorgabe, damit auch ein
   schlichtes <a class="btn btn-primary"> richtig aussieht. */
.mk-body .btn:not(.btn-sm):not(.btn-lg):not(.btn-xl) {
  padding: 14px 26px; font-size: .97rem;
}
.mk-body .btn { justify-content: center; text-decoration: none; }

/* ── Interaktive Rechner ────────────────────────────────────────── */

.mk-rechner {
  margin: 2.2em 0; padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(120, 187, 255, .28); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(23, 103, 255, .12), rgba(15, 18, 28, .95));
}
.mk-rechner-kopf h3 { margin: 0 0 4px !important; font-size: 1.16rem; color: #fff; }
.mk-rechner-kopf p { margin: 0 0 20px; font-size: .89rem; color: var(--dark-muted); }
.mk-rechner-felder { display: grid; gap: 16px; }
.mk-rechner-feld { display: grid; gap: 8px; }
.mk-rechner-label { font-size: .9rem; color: var(--dark-muted); }
.mk-rechner-label strong { color: #fff; font-weight: 650; }

.mk-rechner input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; border-radius: 2px; background: rgba(41, 50, 72, .95);
  outline: none; cursor: pointer;
}
.mk-rechner input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue); border: 2px solid #fff; cursor: pointer;
}
.mk-rechner input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--blue); border: 2px solid #fff; cursor: pointer;
}
.mk-rechner input[type="range"]:focus-visible { box-shadow: 0 0 0 3px rgba(23, 103, 255, .3); }

.mk-rechner-ergebnis {
  display: grid; gap: 10px; margin: 24px 0 0;
  padding-top: 20px; border-top: 1px solid rgba(41, 50, 72, .8);
}
.mk-rechner-zeile { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.mk-rechner-zeile dt { color: var(--dark-muted); font-size: .92rem; margin: 0; }
.mk-rechner-zeile dd { margin: 0; color: rgba(241, 245, 249, .92); font-weight: 600; font-variant-numeric: tabular-nums; }
.mk-rechner-zeile.ist-gross { padding-top: 8px; border-top: 1px solid rgba(41, 50, 72, .6); }
.mk-rechner-zeile.ist-gross dt { color: #fff; font-weight: 600; }
.mk-rechner-zeile.ist-gross dd { font-size: 1.32rem; color: var(--blue-soft); }

.mk-rechner-hinweis {
  margin: 18px 0 0; font-size: .8rem; line-height: 1.55; color: var(--light-soft);
}

.mk-rechner-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-chip {
  font: inherit; font-size: .85rem; cursor: pointer;
  padding: 7px 14px; border-radius: var(--radius-pill);
  color: var(--dark-muted);
  background: rgba(4, 10, 20, .5); border: 1px solid rgba(41, 50, 72, .95);
  transition: color .15s, border-color .15s, background .15s;
}
.mk-chip:hover { color: #fff; border-color: rgba(120, 187, 255, .5); }
.mk-chip.ist-aktiv {
  color: #fff; background: rgba(23, 103, 255, .22); border-color: var(--blue);
}

.mk-split-bild video {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius-lg); border: 1px solid rgba(41, 50, 72, .8);
  background: #0f121c;
}

/* Auf schmalen Schirmen bricht die Meta-Zeile um und die Trennpunkte landen
   am Zeilenanfang ("• Stand: …"). Dort werden sie ausgeblendet, die Zeile
   trennt sich dann ueber den Umbruch selbst. */
@media (max-width: 560px) {
  .mk-meta { gap: 4px 12px; }
  .mk-meta .mk-meta-punkt { display: none; }
}
.mk-formular-fussnote { margin: 0; font-size: .78rem; line-height: 1.5; color: var(--light-soft); }

/* ── Titel- und Vorschaubilder der Ratgeber ─────────────────────── */

.mk-titelbild {
  margin: 0 0 clamp(28px, 4vh, 44px);
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid rgba(41, 50, 72, .8); background: #0f121c;
}
.mk-titelbild img { display: block; width: 100%; height: auto; }

/* Karte mit Vorschaubild: Bild randlos oben, Text darunter */
.mk-karte-bild { padding: 0; overflow: hidden; }
.mk-karte-bild > :not(.mk-karte-vorschau) { margin-inline: 22px; }
.mk-karte-bild > :first-child:not(.mk-karte-vorschau) { margin-top: 22px; }
.mk-karte-bild > :last-child { margin-bottom: 22px; }
.mk-karte-vorschau {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 1;
  object-fit: cover; margin: 0 0 16px;
  border-bottom: 1px solid rgba(41, 50, 72, .8);
}
