/* kindererziehung-tipps.de – Stylesheet
   Markenfarben aus dem Logo: Pink #e40b79, Blau #1e9bd8, Anthrazit #3c3c3b
   ------------------------------------------------------------------ */

@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Fallback mit angeglichenen Metriken gegen Layoutsprünge */
@font-face {
  font-family: "Fraunces Fallback";
  src: local("Georgia");
  size-adjust: 104%;
  ascent-override: 92%;
  descent-override: 24%;
}
@font-face {
  font-family: "Figtree Fallback";
  src: local("Arial");
  size-adjust: 98%;
  ascent-override: 96%;
  descent-override: 25%;
}

:root {
  /* Flächen */
  --bg: #fbf9f6;
  --surface: #ffffff;
  --surface-2: #f4f0ea;
  --surface-3: #ece6dd;
  --line: #e6e0d7;
  --line-strong: #d6cec2;

  /* Text */
  --ink: #2a2a29;
  --ink-2: #55534f;
  --ink-3: #6f6c66;

  /* Marke */
  --pink: #e40b79;
  --pink-ink: #b0085d;
  --pink-soft: #fce9f2;
  --blue: #1e9bd8;
  --blue-ink: #0b679b;
  --blue-soft: #e4f3fb;
  --teal: #52c0d4;
  --teal-ink: #17707f;
  --teal-soft: #e3f4f6;
  --anthracite: #3c3c3b;

  --accent: var(--blue-ink);
  --focus: #0b679b;

  /* Typografie */
  --font-sans: "Figtree", "Figtree Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Fraunces", "Fraunces Fallback", Georgia, "Times New Roman", serif;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  --step-1: clamp(1.15rem, 1.1rem + 0.3vw, 1.3rem);
  --step-2: clamp(1.35rem, 1.24rem + 0.55vw, 1.7rem);
  --step-3: clamp(1.65rem, 1.45rem + 1vw, 2.25rem);
  --step-4: clamp(2.05rem, 1.7rem + 1.75vw, 3.1rem);
  --step-5: clamp(2.45rem, 1.9rem + 2.8vw, 4.15rem);

  /* Raster & Abstände */
  --container: 1240px;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: clamp(3rem, 2.2rem + 3vw, 5rem);
  --space-9: clamp(4rem, 3rem + 4.5vw, 7rem);

  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;

  --shadow-s: 0 1px 2px rgb(60 52 40 / 0.06), 0 2px 6px rgb(60 52 40 / 0.04);
  --shadow-m: 0 2px 4px rgb(60 52 40 / 0.05), 0 12px 32px -8px rgb(60 52 40 / 0.14);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 76px;

  --z-header: 50;
  --z-menu: 60;
}

/* ---------------------------------------------------------------- Basis */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
main:focus { outline: none; }

:where(a, button, [tabindex], input, summary):focus-visible {
  outline: 2.5px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  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 {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-s);
  font-weight: 600;
}
.skip:focus { top: 0.75rem; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow { max-width: calc(760px + var(--gutter) * 2); }

.section { padding-block: var(--space-8); }

/* ---------------------------------------------------------------- Bausteine */

.eyebrow {
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}
.eyebrow a { position: relative; z-index: 2; }
.eyebrow a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tone-pink { color: var(--pink-ink); }
.tone-blue { color: var(--blue-ink); }
.tone-teal { color: var(--teal-ink); }
.tone-ink { color: var(--anthracite); }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-5);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--line);
}
.section-head .eyebrow { margin-bottom: 0.4rem; }
.section-title {
  font-family: var(--font-serif);
  font-size: var(--step-3);
  font-weight: 560;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: none;
  font-weight: 600;
  font-size: var(--step--1);
  color: var(--accent);
  padding-block: 0.35rem;
}
.text-link svg, .btn svg, .post-nav-label svg, .pg-step svg {
  width: 1.05em; height: 1.05em;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.25s var(--ease);
}
.text-link:hover svg, .btn:hover svg { transform: translateX(3px); }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.3rem;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: var(--step--1);
  line-height: 1.2;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease);
}
.btn:hover { background: var(--blue-ink); border-color: var(--blue-ink); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--ink); }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: var(--step--1);
  font-weight: 550;
  color: var(--ink-2);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.chip span {
  font-size: 0.78em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 0.05rem 0.45rem;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active, .chip[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.img-fallback { background: linear-gradient(135deg, var(--blue-soft), var(--pink-soft)); width: 100%; height: 100%; }

/* ---------------------------------------------------------------- Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
/* Hintergrund mit Weichzeichner als eigene Ebene: backdrop-filter auf dem Header selbst machte ihn zum
   Bezugsrahmen des fixierten mobilen Menüs, das dann nur so hoch wie der Header aufging */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(251 249 246 / 0.88);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  height: var(--header-h);
}
.brand { flex: none; display: block; padding-block: 0.25rem; }
.brand img { height: 58px; width: auto; transition: height 0.3s var(--ease); }
.site-header.is-scrolled .brand img { height: 48px; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 0.15rem; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  font-weight: 560;
  font-size: 0.97rem;
  color: var(--ink-2);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav-link:hover { color: var(--ink); background: var(--surface-2); }
.nav-link[aria-current="page"], .nav-item.is-section > .nav-link { color: var(--ink); background: var(--surface-2); }
.has-sub .nav-link { padding-right: 0.3rem; }
.sub-toggle {
  border: 0;
  background: none;
  width: 26px; height: 32px;
  display: grid; place-items: center;
  border-radius: 6px;
  color: var(--ink-3);
}
.sub-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: transform 0.2s var(--ease); }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.sub {
  list-style: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  padding: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-m);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0s linear 0.18s;
}
.sub a {
  display: block;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 520;
  color: var(--ink-2);
}
.sub a:hover, .sub a[aria-current] { background: var(--surface-2); color: var(--ink); }
.has-sub:hover .sub, .has-sub:focus-within .sub, .sub-toggle[aria-expanded="true"] + .sub {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0s;
}
.nav-meta { display: none; }

.header-actions { display: flex; align-items: center; gap: 0.35rem; margin-left: auto; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 44px;
  height: 44px;
  justify-content: center;
  padding: 0 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.icon-btn .kbd { font-size: 0.9rem; font-weight: 560; color: var(--ink-2); padding-right: 0.2rem; }
.menu-btn { display: none; }

@media (max-width: 1080px) {
  :root { --header-h: 66px; }
  .brand img, .site-header.is-scrolled .brand img { height: 42px; }
  .menu-btn { display: inline-flex; }
  .icon-btn .kbd { display: none; }
  .icon-btn { padding: 0; width: 44px; }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: var(--z-menu);
    display: block;
    background: var(--bg);
    padding: var(--space-5) var(--gutter) var(--space-8);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0s linear 0.22s;
  }
  .menu-open .main-nav {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0s;
  }
  .menu-open { overflow: hidden; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-link {
    flex: 1;
    padding: 1rem 0;
    border-radius: 0;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 520;
    color: var(--ink);
    background: none !important;
  }
  .nav-item.is-section > .nav-link { color: var(--blue-ink); }
  .sub-toggle { width: 48px; height: 48px; }
  .sub {
    position: static;
    flex-basis: 100%;
    min-width: 0;
    border: 0;
    box-shadow: none;
    background: none;
    padding: 0 0 0.8rem;
    display: none;
    opacity: 1; visibility: visible; transform: none;
  }
  .has-sub:hover .sub, .has-sub:focus-within .sub { display: none; }
  .sub-toggle[aria-expanded="true"] + .sub { display: block; }
  .sub a { padding: 0.7rem 0; font-size: 1.05rem; }
  .nav-meta { display: flex; gap: var(--space-5); list-style: none; margin-top: var(--space-6); font-size: var(--step--1); color: var(--ink-3); }
}

/* ---------------------------------------------------------------- Suche */

.search {
  width: min(720px, calc(100% - 2rem));
  max-height: min(80vh, 760px);
  margin: 10vh auto auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 80px -20px rgb(40 34 26 / 0.35);
}
.search::backdrop { background: rgb(42 42 41 / 0.32); backdrop-filter: blur(3px); }
.search[open] { animation: pop 0.22s var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(0.99); } }
.search-panel { display: flex; flex-direction: column; max-height: inherit; }
.search-form {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.7rem 0.7rem 1.2rem;
  border-bottom: 1px solid var(--line);
}
.search-form > svg { width: 22px; height: 22px; fill: none; stroke: var(--ink-3); stroke-width: 1.8; stroke-linecap: round; flex: none; }
.search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 1.15rem;
  padding: 0.6rem 0;
  color: var(--ink);
}
.search-form input:focus { outline: none; }
.search-form input::-webkit-search-cancel-button { display: none; }
.search-hint { padding: 0.9rem 1.2rem; font-size: var(--step--1); color: var(--ink-3); }
.search-results { list-style: none; overflow-y: auto; padding: 0 0.6rem 0.6rem; }
.search-results a {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.9rem;
  align-items: center;
  padding: 0.6rem;
  border-radius: var(--radius-m);
}
.search-results a:hover, .search-results a:focus-visible { background: var(--surface-2); }
.search-results img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; background: var(--surface-2); }
.search-results .sr-cat { font-size: 0.78rem; font-weight: 650; color: var(--ink-3); }
.search-results .sr-title { font-weight: 620; line-height: 1.3; }
.search-results mark { background: var(--blue-soft); color: inherit; border-radius: 2px; }

/* ---------------------------------------------------------------- Hero */

.hero { padding-block: clamp(1.25rem, 0.8rem + 2vw, 2.75rem) var(--space-8); }
.hero-title {
  font-family: var(--font-serif);
  font-size: var(--step-3);
  font-weight: 560;
  line-height: 1.15;
  letter-spacing: -0.015em;
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--line);
}

/* Themenbereiche */
.areas { padding-top: 0; }
.areas-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(1rem, 0.5rem + 1.2vw, 1.75rem);
}
.area { display: block; }
.area-media {
  display: block;
  aspect-ratio: 1;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--surface-2);
}
.area-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.area:hover .area-media img { transform: scale(1.04); }
.area-name {
  display: block;
  margin-top: 0.8rem;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 560;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.area:hover .area-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.area-count { display: block; margin-top: 0.15rem; font-size: 0.82rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .areas-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.5rem; } }
@media (max-width: 520px) { .areas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- Karten */

.card { position: relative; display: flex; flex-direction: column; }
.card-media {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-m);
  aspect-ratio: 3 / 2;
  background: var(--surface-2);
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transition: transform 0.6s var(--ease-out);
}
.card:hover .card-media img { transform: scale(1.035); }
.card-body { padding-top: 1rem; display: flex; flex-direction: column; flex: 1; }
.card .eyebrow { margin-bottom: 0.45rem; }
.card-title {
  font-family: var(--font-serif);
  font-size: var(--step-1);
  font-weight: 560;
  line-height: 1.25;
  letter-spacing: -0.008em;
}
.card-title a { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size 0.35s var(--ease); }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover .card-title a { background-size: 100% 1px; }
.card-excerpt { margin-top: 0.55rem; color: var(--ink-2); font-size: 0.97rem; line-height: 1.55; }
.card-meta {
  margin-top: auto;
  padding-top: 0.85rem;
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.82rem; color: var(--ink-3);
}
.card-meta svg, .post-meta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.card-lead .card-title { font-size: var(--step-3); line-height: 1.12; letter-spacing: -0.018em; }
.card-lead .card-excerpt { font-size: var(--step-0); max-width: 58ch; }
.card-lead .card-media { aspect-ratio: 16 / 9; border-radius: var(--radius-l); }

.card-feature .card-title { font-size: var(--step-2); line-height: 1.18; }
.card-feature .card-media { aspect-ratio: 16 / 9; }

.card-compact { display: grid; grid-template-columns: 132px 1fr; gap: 1.1rem; align-items: start; }
.card-compact .card-media { aspect-ratio: 1; border-radius: var(--radius-s); }
.card-compact .card-body { padding-top: 0; }
.card-compact .card-title { font-size: 1.08rem; line-height: 1.3; }
.card-compact .card-meta { padding-top: 0.5rem; }

.card-small .card-title { font-size: 1.05rem; line-height: 1.3; }
.card-small .card-meta { padding-top: 0.6rem; }

.card-horizontal { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: center; }
.card-horizontal .card-body { padding-top: 0; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 1.5rem + 1.5vw, 3rem) clamp(1.25rem, 1rem + 1vw, 2rem);
}

.row-item {
  position: relative;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1rem;
  align-items: center;
  padding-block: 1rem;
  border-top: 1px solid var(--line);
}
.row-media { display: block; aspect-ratio: 1; border-radius: var(--radius-s); overflow: hidden; background: var(--surface-2); }
.row-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.row-item:hover .row-media img { transform: scale(1.05); }
.row-item .eyebrow { margin-bottom: 0.3rem; font-size: 0.8rem; }
.row-title { font-family: var(--font-serif); font-size: 1.06rem; font-weight: 560; line-height: 1.3; }
.row-title a::after { content: ""; position: absolute; inset: 0; }
.row-item:hover .row-title { color: var(--blue-ink); }

/* ---------------------------------------------------------------- Startseite */

.latest-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 1rem + 3vw, 4rem);
}
.latest-list { display: flex; flex-direction: column; gap: 0; }
.latest-list .card-compact { padding-block: 1.15rem; border-top: 1px solid var(--line); }
.latest-list .card-compact:first-child { padding-top: 0; border-top: 0; }

.topics { padding-top: var(--space-6); background: linear-gradient(var(--bg), var(--surface-2) 12%, var(--surface-2) 88%, var(--bg)); }
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
}
.topic-block { padding-block: var(--space-7); }
.topic-block .rows { margin-top: 1.5rem; }
.topic-block .rows .row-item:last-child { border-bottom: 1px solid var(--line); }
.topic-block--wide { border-block: 1px solid var(--line-strong); padding-block: var(--space-8); margin-block: var(--space-5); }
.wide-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(1.5rem, 1rem + 2.5vw, 3.5rem); align-items: start; }
.wide-list { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 1rem + 1vw, 2rem) clamp(1rem, 0.5rem + 1vw, 1.5rem); align-content: start; }

.tags-sec .chips { gap: 0.6rem; }

.guide { border-top: 1px solid var(--line); }
.guide-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 1rem + 5vw, 6rem); }
.guide-aside { align-self: start; position: sticky; top: calc(var(--header-h) + 2rem); }
.guide-aside .section-title { font-size: var(--step-4); line-height: 1.06; letter-spacing: -0.022em; }
.guide-logo { width: 150px; margin-top: var(--space-6); opacity: 0.9; }
.guide-body { position: relative; }
.guide-body .guide-inner { position: relative; }
.guide-inner > :first-child { margin-top: 0; }
.guide-body.is-collapsed .guide-inner { max-height: 34rem; overflow: hidden; }
.guide-body.is-collapsed .guide-inner::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 9rem;
  background: linear-gradient(rgb(251 249 246 / 0), var(--bg));
  pointer-events: none;
}
.guide-more { margin-top: var(--space-5); display: none; }
.guide-body.is-collapsible .guide-more { display: inline-flex; }

@media (max-width: 960px) {
  .latest-grid, .pair, .wide-grid, .guide-grid { grid-template-columns: minmax(0, 1fr); }
  .guide-aside { position: static; }
  .guide-logo { display: none; }
  .topic-block { padding-block: var(--space-6); }
}
@media (max-width: 1100px) and (min-width: 701px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .grid-3, .wide-list { grid-template-columns: minmax(0, 1fr); }
  .card-compact { grid-template-columns: 104px 1fr; gap: 0.9rem; }
  .card-horizontal { grid-template-columns: minmax(0, 1fr); }
  .card-horizontal .card-body { padding-top: 1rem; }
  .wide-list .card-small { display: grid; grid-template-columns: 104px 1fr; gap: 0.9rem; align-items: start; }
  .wide-list .card-small .card-media { aspect-ratio: 1; border-radius: var(--radius-s); }
  .wide-list .card-small .card-body { padding-top: 0; }
  .row-item { grid-template-columns: 80px 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

/* ---------------------------------------------------------------- Listen (Kategorie / Schlagwort) */

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; font-size: 0.85rem; color: var(--ink-3); margin-bottom: var(--space-5); }
.crumbs li + li::before { content: "/"; margin-right: 0.35rem; color: var(--line-strong); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--ink-2); flex: 1 1 0; min-width: 8ch; max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.list-header { padding-block: clamp(1.5rem, 1rem + 2vw, 3rem) var(--space-7); border-bottom: 1px solid var(--line); }
.list-head-grid { display: grid; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.list-header.has-media .list-head-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.list-title {
  font-family: var(--font-serif);
  font-size: var(--step-5);
  font-weight: 540;
  line-height: 1.04;
  letter-spacing: -0.028em;
}
/* "Artikel zum Thema" über dem Namen eines Schlagworts: gehört zur Überschrift, sieht aus wie eine Dachzeile */
.list-title-pre {
  display: block;
  margin-bottom: 0.65rem;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}
.list-title-page { color: var(--ink-3); font-size: 0.6em; letter-spacing: -0.01em; white-space: nowrap; }
.list-kicker { margin-top: var(--space-4); font-family: var(--font-serif); font-size: var(--step-2); line-height: 1.25; color: var(--ink); max-width: 30ch; }
.list-lead { margin-top: var(--space-4); font-size: var(--step-1); color: var(--ink-2); max-width: 52ch; line-height: 1.55; }
.list-count { margin-top: var(--space-5); font-size: var(--step--1); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.subnav { margin-top: var(--space-5); }
.list-media { border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-2); }
.list-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.list-section { padding-top: var(--space-7); }
.list-feature { padding-bottom: var(--space-7); margin-bottom: var(--space-7); border-bottom: 1px solid var(--line); }

@media (max-width: 860px) {
  .list-header.has-media .list-head-grid { grid-template-columns: minmax(0, 1fr); }
  .list-media { aspect-ratio: 16 / 9; }
}

.pagination {
  margin-top: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.pg-nums { list-style: none; display: flex; gap: 0.3rem; }
.pg-num, .pg-step {
  min-width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 600; font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.2s var(--ease);
}
.pg-num:hover, .pg-step:hover { border-color: var(--ink); }
.pg-num[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pg-gap { align-self: center; color: var(--ink-3); padding-inline: 0.2rem; }

/* ---------------------------------------------------------------- Artikel */

.post-header { padding-top: clamp(1.25rem, 1rem + 1.5vw, 2.5rem); }
.post-head-inner { max-width: 900px; padding-bottom: var(--space-6); }
.post-title {
  font-family: var(--font-serif);
  font-size: var(--step-5);
  font-weight: 540;
  line-height: 1.06;
  letter-spacing: -0.026em;
}
/* Große Überschriften auf schmalen Bildschirmen: lange Wörter ("Datenschutzerklärung") trennen statt überstehen */
@media (max-width: 600px) {
  .post-title, .list-title, .section-title { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
}
.post-meta { margin-top: var(--space-5); display: flex; align-items: center; gap: 0.45rem; color: var(--ink-3); font-size: var(--step--1); }

.post-hero { margin-bottom: var(--space-7); }
.post-hero-img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: center 35%;
  border-radius: var(--radius-l);
}
.post-hero figcaption { margin-top: 0.6rem; font-size: 0.8rem; color: var(--ink-3); text-align: right; }
@media (max-width: 700px) {
  .post-hero { padding-inline: 0; }
  .post-hero-img { aspect-ratio: 3 / 2; border-radius: 0; }
  .post-hero figcaption { padding-inline: var(--gutter); }
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 720px) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 3vw, 4rem);
}
.post-layout > .post-aside { grid-column: 1; }
.post-layout > .post-body { grid-column: 2; }
.toc { position: sticky; top: calc(var(--header-h) + 1.5rem); font-size: 0.9rem; }
.toc-title { font-weight: 700; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.75rem; }
.toc ol { list-style: none; border-left: 1px solid var(--line); }
.toc a {
  display: block;
  padding: 0.4rem 0 0.4rem 1rem;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--ink-3);
  line-height: 1.4;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); border-left-color: var(--pink); font-weight: 600; }

@media (max-width: 1180px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); max-width: calc(720px + var(--gutter) * 2); }
  .post-layout > .post-aside, .post-layout > .post-body { grid-column: 1; }
  .post-layout:not(.has-toc) > .post-aside { display: none; }
  .toc { position: static; padding: 1.2rem 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); }
  .toc ol { border-left: 0; counter-reset: toc; }
  .toc a { padding-left: 0; border-left: 0; }
  .toc a.is-active { border: 0; }
  .post-head-inner, .crumbs { max-width: 720px; margin-inline: auto; }
}

/* Fließtext */
.prose { font-size: clamp(1.06rem, 1rem + 0.25vw, 1.15rem); line-height: 1.75; color: var(--ink); overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  font-family: var(--font-serif);
  font-size: var(--step-3);
  font-weight: 560;
  line-height: 1.16;
  letter-spacing: -0.015em;
  margin-top: 2.1em;
}
.prose h3 { font-family: var(--font-serif); font-size: var(--step-2); font-weight: 560; line-height: 1.25; margin-top: 1.8em; }
.prose h4, .prose h5 { font-size: var(--step-1); font-weight: 700; line-height: 1.35; margin-top: 1.6em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 0.6em; }
.prose a { color: var(--blue-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgb(11 103 155 / 0.4); transition: text-decoration-color 0.2s var(--ease); }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { font-weight: 680; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--pink); }
.prose ol li::marker { font-weight: 700; font-size: 0.92em; }
.prose blockquote { margin: 1.6em 0; padding: 0.2em 0 0.2em 1.3em; border-left: 3px solid var(--pink); font-family: var(--font-serif); font-size: 1.15em; color: var(--ink-2); }
.prose img, .content-img { border-radius: var(--radius-m); margin-block: 0.5em; }
.prose figure figcaption, .prose .wp-caption-text { font-size: 0.85rem; color: var(--ink-3); margin-top: 0.4rem; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.5em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 1.5; }
.prose th, .prose td { padding: 0.75rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose tr:last-child td { border-bottom: 0; }
.prose th, .prose tr:first-child td strong { font-weight: 700; }
.prose thead th, .prose tr:first-child td { background: var(--surface-2); }
.post-body > p:first-child { font-size: 1.1em; line-height: 1.7; color: var(--ink); }

.post-tags { margin-top: var(--space-7) !important; padding-top: var(--space-5); border-top: 1px solid var(--line); }
.tags-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.75rem; }
.post-tags .chips { padding: 0; }
.post-tags .chips li { margin-top: 0; }
.post-tags .chip { text-decoration: none; color: var(--ink-2); }

/* Disclaimer am Ende jedes Artikels */
.disclaimer { margin-top: var(--space-7) !important; padding-top: var(--space-5); border-top: 1px solid var(--line); font-size: 0.875rem; line-height: 1.6; color: var(--ink-3); }
.disclaimer-title { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.5rem; }
.post-tags + .disclaimer { margin-top: var(--space-5) !important; }

/* Häufige Fragen und Vorschau-Hinweis (Artikel aus dem CMS) */
.faq { margin-top: var(--space-7) !important; }
.faq h2 { margin-top: 0; }
.faq-item { border-bottom: 1px solid var(--line); margin-top: 0 !important; }
.faq h2 + .faq-item { border-top: 1px solid var(--line); margin-top: 1rem !important; }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; font-weight: 680; line-height: 1.4; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 0.6rem; height: 0.6rem; margin: 0.3em 0.3rem 0 0; border-right: 2px solid var(--pink); border-bottom: 2px solid var(--pink); transform: rotate(45deg); transition: transform 0.2s var(--ease); }
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: 0.6em; }
.faq-answer { padding: 0 0 1.1rem; color: var(--ink-2); }
.faq-answer > * + * { margin-top: 0.8em; }
.preview-note { margin-top: 1rem; padding: 0.6rem 0.9rem; border-radius: var(--radius-m); background: var(--pink-soft); color: var(--pink-ink); font-weight: 600; font-size: 0.9rem; }

.post-nav {
  max-width: 1160px;
  margin: var(--space-8) auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.post-nav-link {
  display: flex; flex-direction: column; gap: 0.4rem;
  padding: 1.3rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.post-nav-link:hover { border-color: var(--ink); }
.post-nav-link.next { text-align: right; align-items: flex-end; }
.post-nav-label { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; font-weight: 650; color: var(--ink-3); }
.post-nav-title { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 560; line-height: 1.3; }
@media (max-width: 700px) { .post-nav { grid-template-columns: 1fr; } .post-nav > span { display: none; } }

.related { background: var(--surface-2); margin-top: var(--space-8); }

.legal { font-size: 1rem; }
.legal h2, .legal h3 { font-size: var(--step-2); }
.legal h4 { font-size: var(--step-1); }

.notfound .nf-actions { margin-top: var(--space-6); display: flex; gap: 0.75rem; flex-wrap: wrap; }
.notfound .narrow { margin-bottom: var(--space-8); }

/* ---------------------------------------------------------------- Footer */

.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-top: var(--space-8); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: var(--space-7); padding-bottom: var(--space-7); }
.footer-brand img { width: 170px; height: auto; }
.footer-brand p { margin-top: var(--space-5); color: var(--ink-2); max-width: 38ch; font-size: 0.97rem; }
.footer-title { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1rem; }
.footer-nav ul { list-style: none; columns: 2; column-gap: 2rem; }
.footer-nav li { break-inside: avoid; }
.footer-nav a { display: inline-block; padding: 0.3rem 0; font-weight: 550; color: var(--ink-2); }
.footer-nav .sub-link a { padding-left: 0.9rem; font-weight: 450; font-size: 0.93rem; color: var(--ink-3); }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-grid > .footer-nav:last-child ul { columns: 1; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding-block: 1.4rem;
  background: linear-gradient(var(--line), var(--line)) no-repeat center top / calc(100% - var(--gutter) * 2) 1px;
  font-size: 0.85rem; color: var(--ink-3);
}
.to-top { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; color: var(--ink-2); padding-block: 0.5rem; }
.to-top svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.to-top:hover { color: var(--ink); }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------------------------------------------------------------- Bewegung */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media print {
  .site-header, .site-footer, .post-aside, .related, .post-nav, .skip { display: none !important; }
  body { background: #fff; }
}
