/* Blog "Wissen" auf vision-ml.de. Grundlagen (Farben, Kopfzeile, Knoepfe, Fuss) wie auf der Startseite,
   dort stehen sie direkt in index.html. Aendert sich die Startseite, hier mitziehen. */

:root {
  --ink: #1d1d1f;
  --muted: #5f5f64;
  --paper: #f5f5f7;
  --white: #ffffff;
  --navy: #0c1421;
  --cyan: #04a9d4;
  --cyan-dunkel: #03799a;
  --cyan-hell: #e6f7fb;
  --line: rgba(12, 20, 33, 0.12);
  --radius: 8px;
  --content: 1200px;
  --lesen: 700px;
  --page-pad: clamp(18px, 5vw, 72px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(4, 169, 212, 0.10), transparent 36%),
    linear-gradient(90deg, rgba(12, 20, 33, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(12, 20, 33, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, var(--paper) 46%, #ffffff 100%);
  background-size: auto, 42px 42px, 42px 42px, auto;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

::selection { background: var(--cyan-hell); color: var(--navy); }

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

.w-sprung {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
}
.w-sprung:focus { top: 12px; }

/* Kopfzeile wie auf der Startseite */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 6px max(var(--page-pad), calc((100vw - var(--content)) / 2));
  border-bottom: 1px solid rgba(12, 20, 33, 0.08);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { width: auto; height: clamp(26px, 2.6vw, 32px); }
.nav { display: flex; align-items: center; justify-content: center; gap: 24px; font-size: 14px; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { font-weight: 800; box-shadow: inset 0 -2px 0 var(--cyan); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
  box-shadow: 6px 6px 0 var(--cyan);
  transition: transform 160ms ease, box-shadow 160ms ease;
  cursor: pointer;
}
.btn:hover { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--cyan); }
.btn.secondary { background: var(--white); color: var(--ink); box-shadow: none; }
.btn.secondary:hover { transform: none; background: var(--paper); }
.topbar > .btn { justify-self: end; min-height: 40px; padding: 0 16px; font-size: 14px; box-shadow: 4px 4px 0 var(--cyan); }
.topbar > .btn:hover { box-shadow: 2px 2px 0 var(--cyan); }

/* Seite */
.w-seite {
  width: min(calc(100% - 2 * var(--page-pad)), var(--content));
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) 0 0;
}

h1, h2, h3 { margin: 0; letter-spacing: -0.01em; text-wrap: balance; }

h1 {
  font-size: clamp(36px, 4.6vw, 60px);
  font-weight: 800;
  line-height: 1.04;
}

.w-kopf { max-width: 780px; margin-bottom: clamp(36px, 5vw, 56px); }
.w-kopf h1 { margin-bottom: 20px; }

.w-lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
  text-wrap: pretty;
}

.w-meta {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Filter */
.w-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.w-filter a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 14px;
  font-weight: 700;
  transition: border-color 160ms ease, background 160ms ease;
}
.w-filter a:hover { border-color: var(--ink); }
.w-filter a[aria-current="page"] { border-color: var(--ink); background: var(--ink); color: var(--white); }

.w-leer { max-width: 640px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.w-leer a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 4px; }

/* Titelbild aus Kategorie und Bildzeile */
.w-bild {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: clamp(18px, 3vw, 36px);
  border-radius: var(--radius);
  color: var(--white);
  background:
    radial-gradient(circle at 86% 22%, transparent 0 17%, rgba(4, 169, 212, 0.9) 17.4% 18.6%, transparent 19%),
    radial-gradient(circle at 86% 22%, rgba(4, 169, 212, 0.95) 0 5.5%, transparent 6%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    var(--navy);
  background-size: auto, auto, 42px 42px, 42px 42px, auto;
  isolation: isolate;
}
.w-siegel {
  position: absolute;
  top: clamp(14px, 2.4vw, 28px);
  left: clamp(18px, 3vw, 36px);
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--cyan);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.w-bildzeile {
  max-width: 13ch;
  font-size: clamp(30px, 4.4vw, 60px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.w-bildmarke {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 700;
}
.w-bild--gross { aspect-ratio: 16 / 10; }
.w-bild--breit { aspect-ratio: 21 / 9; margin: clamp(32px, 4vw, 48px) 0; }
.w-bild--klein {
  aspect-ratio: 4 / 3;
  padding: 14px;
  background-size: auto, auto, 21px 21px, 21px 21px, auto;
}
.w-bild--klein .w-siegel { top: 10px; left: 12px; padding: 3px 7px; font-size: 9px; }
.w-bild--klein .w-bildzeile { font-size: 17px; line-height: 1.08; letter-spacing: -0.01em; }
.w-bild--klein .w-bildmarke { display: none; }

/* Aufmacher */
.w-aufmacher-link {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  padding: clamp(14px, 1.6vw, 20px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--white);
  box-shadow: 0 1px 0 var(--line), 0 18px 50px -30px rgba(12, 20, 33, 0.35);
  transition: box-shadow 200ms ease, transform 200ms ease;
}
.w-aufmacher-link:hover { transform: translateY(-2px); box-shadow: 0 1px 0 var(--line), 0 28px 60px -30px rgba(12, 20, 33, 0.45); }
.w-aufmacher-text { padding-right: clamp(0px, 2vw, 20px); }
.w-aufmacher-text h2 {
  margin: 12px 0 14px;
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 800;
  line-height: 1.1;
}
.w-aufmacher-text p:not(.w-meta) { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.w-weiter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-weight: 800;
  color: var(--cyan-dunkel);
}
.w-weiter svg { transition: transform 200ms ease; }
.w-aufmacher-link:hover .w-weiter svg { transform: translateX(4px); }

/* Liste */
.w-liste { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; }
.w-liste li + li { border-top: 1px solid var(--line); }
.w-zeile {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 32px);
  align-items: center;
  padding: 22px 0;
}
.w-zeile-text { display: grid; gap: 8px; max-width: 72ch; }
.w-zeile-titel {
  font-size: clamp(19px, 1.7vw, 23px);
  font-weight: 800;
  line-height: 1.3;
  text-wrap: balance;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: text-decoration-color 160ms ease;
}
.w-zeile:hover .w-zeile-titel { text-decoration-color: var(--cyan); }
.w-zeile-beschreibung { color: var(--muted); font-size: 16px; line-height: 1.55; }

.w-blaettern { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Artikel */
.w-artikel-kopf, .w-text { max-width: var(--lesen); margin: 0 auto; }
.w-artikel .w-bild--breit { max-width: 1000px; margin-left: auto; margin-right: auto; }
.w-pfad { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; color: var(--muted); font-size: 14px; font-weight: 700; }
.w-pfad a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.w-pfad a:hover { color: var(--ink); text-decoration-color: var(--cyan); }
.w-artikel-kopf h1 { margin-bottom: 22px; font-size: clamp(34px, 4.2vw, 54px); }
.w-artikel-kopf .w-lead { color: var(--ink); }
.w-artikel-kopf .w-meta { margin-top: 20px; }

.w-text { font-size: 18px; line-height: 1.72; }
.w-text > h2 {
  margin: 2.4em 0 0.6em;
  font-size: clamp(23px, 2.2vw, 28px);
  font-weight: 800;
  line-height: 1.2;
}
.w-text > h2:first-child { margin-top: 0; }
.w-text > p { margin: 0 0 1.1em; text-wrap: pretty; }
.w-text a { text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Selbsttest */
.w-test {
  margin: 2.6em 0;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.w-test h2 { margin: 0 0 18px; font-size: 22px; font-weight: 800; line-height: 1.25; }
.w-test-liste { margin: 0; padding: 0; list-style: none; counter-reset: frage; }
.w-test-liste li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  counter-increment: frage;
}
.w-test-frage { flex: 1 1 320px; font-size: 17px; line-height: 1.5; font-weight: 600; }
.w-test-frage::before { content: counter(frage) ". "; color: var(--cyan-dunkel); font-weight: 800; }
.w-test-wahl { display: inline-flex; border: 1px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.w-test-wahl[hidden] { display: none; }
.w-test-wahl button {
  min-width: 64px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}
.w-test-wahl button + button { border-left: 1px solid var(--ink); }
.w-test-wahl button:hover { background: var(--paper); }
.w-test-wahl button[data-antwort="ja"][aria-pressed="true"] { background: var(--cyan); color: var(--navy); }
.w-test-wahl button[data-antwort="nein"][aria-pressed="true"] { background: var(--ink); color: var(--white); }
.w-test-ergebnis { margin: 18px 0 0; font-size: 16px; line-height: 1.6; font-weight: 600; }
.w-test-ergebnis a { color: var(--cyan-dunkel); font-weight: 800; }

/* Fragen */
.w-fragen { border-top: 1px solid var(--line); }
.w-fragen details { border-bottom: 1px solid var(--line); }
.w-fragen summary {
  position: relative;
  padding: 18px 44px 18px 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.w-fragen summary::-webkit-details-marker { display: none; }
.w-fragen summary::before,
.w-fragen summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 16px;
  height: 2px;
  background: var(--ink);
  transition: transform 200ms ease;
}
.w-fragen summary::after { transform: rotate(90deg); }
.w-fragen details[open] summary::after { transform: rotate(0deg); }
.w-fragen summary:hover { color: var(--cyan-dunkel); }
.w-fragen details p { margin: 0 0 20px; color: var(--muted); }

.w-fazit {
  margin: 2.2em 0 0 !important;
  padding-top: 1.2em;
  border-top: 2px solid var(--ink);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 800;
  line-height: 1.4;
}

.w-quellen { margin: 0; padding-left: 1.2em; font-size: 16px; line-height: 1.55; }
.w-quellen li { margin-bottom: 10px; }
.w-quellen li::marker { color: var(--muted); font-weight: 700; }
.w-quellen span { display: block; color: var(--muted); font-size: 14px; }
.w-ki-hinweis { margin-top: 28px !important; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* Beratung */
.w-beratung { max-width: 940px; margin: clamp(72px, 9vw, 112px) auto 0; }
.w-beratung-karte {
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 12px 12px 0 var(--cyan);
}
.w-beratung-karte h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; line-height: 1.08; }
.w-beratung-karte p { max-width: 58ch; margin: 16px 0 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
.w-aktionen { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.w-passend {
  display: grid;
  gap: 6px;
  margin-top: 28px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  transition: border-color 160ms ease, background 160ms ease;
}
.w-passend:hover { border-color: var(--ink); background: var(--white); }
.w-passend-titel { font-size: 13px; font-weight: 800; color: var(--cyan-dunkel); }
.w-passend-text { font-size: 16px; line-height: 1.55; }
.w-passend-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.w-passend svg { transition: transform 200ms ease; }
.w-passend:hover svg { transform: translateX(4px); }

.w-weitere { max-width: var(--lesen); margin: clamp(72px, 9vw, 112px) auto 0; }
.w-weitere h2 { font-size: 24px; font-weight: 800; }
.w-weitere .w-liste { margin-top: 12px; }
.w-weitere .w-zeile { grid-template-columns: 120px minmax(0, 1fr); padding: 18px 0; }
.w-weitere .w-zeile-titel { font-size: 18px; }
.w-weitere .w-bild--klein .w-bildzeile { font-size: 13px; }

/* Fuss wie auf der Startseite */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: clamp(72px, 9vw, 112px);
  padding: 34px var(--page-pad);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-nav a { color: var(--muted); border-bottom: 1px solid transparent; }
.footer-nav a:hover, .footer-nav a:focus-visible { color: var(--ink); border-bottom-color: var(--cyan); }

@media (max-width: 1080px) {
  .topbar { grid-template-columns: auto 1fr auto; }
}

@media (max-width: 860px) {
  .w-aufmacher-link { grid-template-columns: 1fr; }
  .w-aufmacher-text { padding: 0 6px 10px; }
  .w-bild--breit { aspect-ratio: 16 / 10; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .topbar { grid-template-columns: 1fr auto; }
  .topbar > .btn { min-height: 42px; padding: 0 14px; box-shadow: none; }
  .brand-logo { height: 26px; }
  .w-zeile { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: start; }
  .w-bild--klein { padding: 9px; }
  .w-bild--klein .w-siegel { top: 7px; left: 8px; font-size: 8px; padding: 2px 5px; }
  .w-bild--klein .w-bildzeile { font-size: 12px; }
  .w-zeile-beschreibung { display: none; }
  .w-text { font-size: 17px; }
  .w-beratung-karte { box-shadow: 8px 8px 0 var(--cyan); }
  .w-aktionen .btn { flex: 1 1 100%; }
  .w-weitere .w-zeile { grid-template-columns: 96px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
