/* Medtradis – Prototyp. Premium-editoriales Design.
   Dunkelblau, Weiß, dezente Salbeigrün-Akzente. Serifen-Headlines,
   klare Sans-Texte. Keine externen Schriften/Dienste (datenschutzfreundlich). */

:root {
  --navy-900: #121d33;
  --navy-800: #16233b;
  --navy-700: #1f3355;
  --navy-600: #2a4470;
  --sage-600: #4f6e5b;
  --sage-500: #5f7d6a;
  --sage-400: #7d9b86;
  --sage-100: #e6eee8;
  --paper: #faf9f6;
  --paper-2: #f2f0ea;
  --card: #ffffff;
  --ink: #23272f;
  --ink-soft: #4b5263;
  --ink-faint: #767d8c;
  --line: #e4e1d8;
  --line-strong: #cdc9bd;
  --amber-bg: #fcf3df;
  --amber-line: #e8d19a;
  --amber-ink: #7a5a16;
  --danger: #9a3434;
  --danger-bg: #f7e7e7;
  --focus: #2a4470;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(18, 29, 51, 0.06), 0 2px 8px rgba(18, 29, 51, 0.05);
  --shadow-md: 0 6px 24px rgba(18, 29, 51, 0.10);
  --maxw: 1140px;
  --space: 1rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy-800);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.28rem; }
h4 { font-size: 1.08rem; }

p { margin: 0 0 1rem; }
a { color: var(--navy-700); text-decoration-color: var(--sage-400); text-underline-offset: 3px; }
a:hover { color: var(--navy-600); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.4rem; }

/* ---------- Accessibility helpers ---------- */
.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: 1rem; top: -4rem; z-index: 200;
  background: var(--navy-800); color: #fff; padding: 0.6rem 1rem; border-radius: 8px;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; color: #fff; }

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

/* ---------- Prototype notice ---------- */
.proto-bar {
  background: var(--amber-bg);
  color: var(--amber-ink);
  border-bottom: 1px solid var(--amber-line);
  font-size: 0.86rem;
  text-align: center;
  padding: 0.5rem 1rem;
}
.proto-bar strong { font-weight: 700; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 249, 246, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; gap: 1.2rem;
  min-height: 72px;
}
.brand {
  display: inline-flex; align-items: baseline; gap: 0;
  font-family: var(--sans); font-size: 1.44rem; font-weight: 700; letter-spacing: -0.018em;
  color: var(--navy-800); text-decoration: none; white-space: nowrap;
}
.brand .brand-word { position: relative; line-height: 1; }
.brand .b-med { color: var(--navy-800); }
.brand .b-tradis { color: var(--sage-600); }
.brand-inverse .b-med { color: #faf9f6; }
.brand-inverse .b-tradis { color: var(--sage-400); }
.brand small { font-family: var(--sans); font-size: 0.58rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--sage-600); display: block; margin-top: 1px; }
.brand-byline { color: var(--sage-400); margin: 0 0 0.8rem; font-weight: 600; letter-spacing: 0.02em; }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 0.3rem; flex-wrap: wrap; }
.main-nav a {
  padding: 0.5rem 0.75rem; border-radius: 8px; text-decoration: none;
  color: var(--navy-700); font-size: 0.95rem; font-weight: 500;
}
.main-nav a:hover { background: var(--sage-100); }
.main-nav a.active { background: var(--navy-800); color: #fff; }

.nav-toggle {
  display: none; margin-left: auto; background: var(--navy-800); color: #fff;
  border: none; border-radius: 8px; padding: 0.55rem 0.8rem; font-size: 0.95rem; cursor: pointer;
}

@media (max-width: 920px) {
  .nav-toggle { display: inline-block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0.1rem;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.6rem 1.4rem 1rem;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.7rem 0.6rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--sans); font-size: 0.98rem; font-weight: 600;
  padding: 0.72rem 1.3rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform 0.05s ease, background 0.15s ease;
  line-height: 1.1;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy-800); color: #fff; }
.btn-primary:hover { background: var(--navy-700); color: #fff; }
.btn-sage { background: var(--sage-500); color: #fff; }
.btn-sage:hover { background: var(--sage-600); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy-700); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--sage-100); }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.88rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-danger { background: var(--danger); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(120% 120% at 85% -10%, rgba(95,125,106,0.22), transparent 55%),
    linear-gradient(160deg, var(--navy-900), var(--navy-700) 75%);
  color: #eef1f6;
  padding: clamp(3rem, 7vw, 6rem) 0;
  position: relative; overflow: hidden;
}
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lede { font-size: 1.22rem; max-width: 46ch; color: #d4dbe8; }
.hero .eyebrow {
  font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--sage-400); margin-bottom: 1rem; font-weight: 600;
}
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero-actions .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.hero-actions .btn-ghost:hover { background: rgba(255,255,255,0.08); }

/* ---------- Hero layout (Text + Bildfläche) ---------- */
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
}
.hero-copy { min-width: 0; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* Bildfläche: KI-generiertes Artlist-Motiv (Poster-Bild + optionales Video). */
.hero-media { margin: 0; min-width: 0; }
.hero-media-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4 / 3.2; background: var(--navy-800);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(255,255,255,0.06) inset;
}
.hero-media-stage { position: absolute; inset: 0; }
.hero-media-stage > picture,
.hero-media-stage > picture > img,
.hero-media-video {
  display: block; width: 100%; height: 100%; object-fit: cover;
}
.hero-media-play {
  position: absolute; left: 50%; bottom: 0.9rem; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer;
  font-family: var(--sans); font-size: 0.85rem; font-weight: 600;
  color: var(--navy-900); background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.6); border-radius: 999px;
  padding: 0.5rem 1.05rem; backdrop-filter: blur(3px);
  box-shadow: 0 2px 10px rgba(16,26,46,0.28);
}
.hero-media-play:hover { background: #fff; }
.hero-media-play-icon { font-size: 0.68rem; line-height: 1; }
.hero-media-badge {
  position: absolute; top: 0.8rem; left: 0.8rem; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--sans); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; background: rgba(18,29,51,0.62);
  border: 1px solid rgba(255,255,255,0.28); border-radius: 999px;
  padding: 0.3rem 0.7rem; backdrop-filter: blur(3px);
}
.hero-media figcaption {
  margin-top: 0.7rem; font-size: 0.78rem; line-height: 1.5;
  color: #b9c2d4; max-width: 46ch;
}
@media (max-width: 960px) {
  .hero-media-frame { aspect-ratio: 16 / 9; }
}

/* ---------- Abschnitts-Medien (illustrative KI-Bilder) ---------- */
.section-media { margin: 2.2rem 0 0; }
.section-media picture,
.section-media img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.section-media figcaption {
  margin-top: 0.7rem; font-size: 0.82rem; line-height: 1.5;
  color: var(--ink-soft); max-width: 72ch;
}

/* ---------- Hero search ---------- */
.hero-search {
  margin-top: 2.4rem; background: var(--card); color: var(--ink);
  border-radius: var(--radius-lg); padding: 1.1rem; box-shadow: var(--shadow-md);
  display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 0.7rem; align-items: end;
}
.hero-search label { font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); display:block; margin-bottom: 0.25rem; }
@media (max-width: 760px) { .hero-search { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.section { padding: clamp(2.6rem, 5vw, 4.5rem) 0; }
.section.alt { background: var(--paper-2); }
.section-head { max-width: 60ch; margin-bottom: 2rem; }
.section-head .eyebrow { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage-600); font-weight: 700; }

.grid { display: grid; gap: 1.2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.4rem; box-shadow: var(--shadow-sm);
}
.feature-card h3 { display: flex; align-items: center; gap: 0.5rem; }
.feature-icon {
  width: 38px; height: 38px; border-radius: 10px; background: var(--sage-100);
  color: var(--sage-600); display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex: none;
}

/* step list */
.steps { counter-reset: step; display: grid; gap: 1rem; }
.step { display: flex; gap: 1rem; align-items: flex-start; }
.step .num {
  counter-increment: step; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy-800); color: #fff; font-family: var(--serif); font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.step .num::before { content: counter(step); }

/* ---------- Listing cards ---------- */
.listing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
@media (max-width: 820px) { .listing-grid { grid-template-columns: 1fr; } }

.listing-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.3rem; box-shadow: var(--shadow-sm); position: relative; display: flex; flex-direction: column; gap: 0.6rem;
}
.listing-card.promo { border-color: var(--amber-line); box-shadow: 0 0 0 1px var(--amber-line), var(--shadow-sm); }
.listing-card h3 { font-size: 1.2rem; margin: 0; }
.listing-card .meta { color: var(--ink-faint); font-size: 0.9rem; }
.listing-card .price { font-family: var(--serif); font-size: 1.15rem; color: var(--navy-700); }
.listing-card .card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; padding-top: 0.6rem; }

.badges { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.badge {
  font-size: 0.72rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 999px;
  background: var(--sage-100); color: var(--sage-600); letter-spacing: 0.02em;
}
.badge.discreet { background: #e7ecf5; color: var(--navy-700); }
.badge.promo { background: var(--amber-bg); color: var(--amber-ink); border: 1px solid var(--amber-line); }
.badge.fiction { background: #efeadf; color: #6c5d33; }
.badge.status-pausiert { background: #efe4c9; color: #7a5a16; }
.badge.status-vergeben { background: #e2e2e2; color: #555; }
.badge.contract { background: #e7ecf5; color: var(--navy-700); }

.fav-btn {
  background: transparent; border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 0.4rem 0.8rem; cursor: pointer; font-size: 0.85rem; color: var(--navy-700);
}
.fav-btn.is-fav { background: var(--sage-500); color: #fff; border-color: var(--sage-500); }

/* ---------- Search layout ---------- */
.search-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 1.6rem; align-items: start; }
/* min-width:0 verhindert, dass die Inhaltsspalte durch min-content ihrer
   Ergebnis-Kacheln über den Container hinauswächst (Overflow bei ~1280px). */
.search-layout > * { min-width: 0; }
@media (max-width: 920px) { .search-layout { grid-template-columns: 1fr; } }

.filter-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.3rem; box-shadow: var(--shadow-sm); position: sticky; top: 92px; }
@media (max-width: 920px) { .filter-panel { position: static; } }
.filter-group { margin-bottom: 1.1rem; border-bottom: 1px solid var(--line); padding-bottom: 1.1rem; }
.filter-group:last-child { border-bottom: none; }
.filter-group > label, .filter-group legend { font-weight: 600; font-size: 0.86rem; color: var(--navy-800); margin-bottom: 0.4rem; display: block; padding: 0; }
.filter-group fieldset { border: none; padding: 0; margin: 0; }

.results-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.results-head .count { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Forms ---------- */
label { font-size: 0.9rem; }
input[type="text"], input[type="search"], input[type="number"], input[type="email"],
select, textarea {
  width: 100%; font-family: var(--sans); font-size: 0.98rem; color: var(--ink);
  padding: 0.6rem 0.7rem; border: 1px solid var(--line-strong); border-radius: 9px;
  background: #fff;
}
input:disabled, textarea:disabled, select:disabled { background: var(--paper-2); color: var(--ink-faint); cursor: not-allowed; }
textarea { min-height: 120px; resize: vertical; }
.field { margin-bottom: 1rem; }
.field .hint { font-size: 0.82rem; color: var(--ink-faint); margin-top: 0.3rem; }
.field .error-msg { color: var(--danger); font-size: 0.84rem; margin-top: 0.3rem; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field.invalid .error-msg { display: block; }
.check-row { display: flex; gap: 0.55rem; align-items: flex-start; margin-bottom: 0.5rem; }
.check-row input { width: auto; margin-top: 0.25rem; }
.check-row label { font-size: 0.92rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 680px) { .form-grid { grid-template-columns: 1fr; } }

/* range row */
.range-row { display: flex; gap: 0.5rem; align-items: center; }
.range-row input { flex: 1; }

/* ---------- Notices ---------- */
.notice {
  border-radius: var(--radius); padding: 0.9rem 1.1rem; font-size: 0.92rem;
  border: 1px solid var(--line-strong); background: #fff; margin: 1rem 0;
}
.notice-legal { background: #eef1f6; border-color: #cdd6e6; color: var(--navy-700); }
.notice-amber { background: var(--amber-bg); border-color: var(--amber-line); color: var(--amber-ink); }
.notice-sage { background: var(--sage-100); border-color: #cbddd0; color: var(--sage-600); }
.notice-danger { background: var(--danger-bg); border-color: #e2b4b4; color: var(--danger); }
.notice h4 { margin-top: 0; color: inherit; }

.sim-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: #6c5d33; background: #efeadf;
  padding: 0.12rem 0.5rem; border-radius: 6px;
}

/* ---------- Detail page ---------- */
.detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
@media (max-width: 920px) { .detail-layout { grid-template-columns: 1fr; } }
.detail-main h1 { margin-bottom: 0.4rem; }
.spec-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.spec-table th, .spec-table td { text-align: left; padding: 0.6rem 0.4rem; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 0.95rem; }
.spec-table th { color: var(--ink-soft); font-weight: 600; width: 44%; }
.aside-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.3rem; box-shadow: var(--shadow-sm); position: sticky; top: 92px; }
@media (max-width: 920px) { .aside-box { position: static; } }

.photo-placeholder {
  background: repeating-linear-gradient(45deg, var(--paper-2), var(--paper-2) 12px, #eceae3 12px, #eceae3 24px);
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  height: 220px; display: flex; align-items: center; justify-content: center;
  color: var(--ink-faint); font-size: 0.9rem; text-align: center; padding: 1rem;
}

/* ---------- Wizard ---------- */
.wizard-steps { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.6rem; counter-reset: wstep; }
.wizard-steps li { list-style: none; display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--ink-faint); }
.wizard-steps li .dot {
  width: 28px; height: 28px; border-radius: 50%; background: var(--paper-2); color: var(--ink-faint);
  display: flex; align-items: center; justify-content: center; font-weight: 700; border: 1px solid var(--line-strong);
}
.wizard-steps li.active .dot { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.wizard-steps li.done .dot { background: var(--sage-500); color: #fff; border-color: var(--sage-500); }
.wizard-steps li.active { color: var(--navy-800); font-weight: 600; }
.wizard-nav { display: flex; justify-content: space-between; margin-top: 1.6rem; gap: 1rem; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 0.4rem; border-bottom: 1px solid var(--line); margin-bottom: 1.4rem; flex-wrap: wrap; }
.tabs button {
  background: none; border: none; padding: 0.7rem 1rem; font-size: 0.95rem; cursor: pointer;
  color: var(--ink-soft); border-bottom: 2px solid transparent; font-weight: 600;
}
.tabs button.active { color: var(--navy-800); border-bottom-color: var(--sage-500); }

/* ---------- Message list ---------- */
.msg-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin-bottom: 0.8rem; background: #fff; }
.msg-item.unread { border-left: 4px solid var(--sage-500); }
.msg-item .msg-head { display: flex; justify-content: space-between; gap: 0.6rem; font-size: 0.85rem; color: var(--ink-faint); margin-bottom: 0.4rem; }

/* ---------- Loading / empty / error states ---------- */
.state { text-align: center; padding: 3rem 1rem; color: var(--ink-soft); }
.skeleton { background: linear-gradient(90deg, #eee 25%, #f5f5f5 37%, #eee 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.skeleton-card { height: 160px; margin-bottom: 1.2rem; }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--ink-faint); margin-bottom: 1rem; }
.breadcrumb a { text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #c7cedd; padding: 3rem 0 2rem; margin-top: 3rem; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer a { color: #c7cedd; text-decoration: none; display: block; padding: 0.22rem 0; font-size: 0.92rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2rem; padding-top: 1.4rem; font-size: 0.82rem; color: #8f98ad; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 0.5rem; width: min(92vw, 420px); }
.toast { background: var(--navy-800); color: #fff; padding: 0.8rem 1.1rem; border-radius: 10px; box-shadow: var(--shadow-md); font-size: 0.92rem; }
.toast.sage { background: var(--sage-600); }

/* ---------- Misc ---------- */
.tag-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pill { background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 0.2rem 0.7rem; font-size: 0.82rem; color: var(--ink-soft); }
.muted { color: var(--ink-faint); }
.small { font-size: 0.86rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }
hr.rule { border: none; border-top: 1px solid var(--line); margin: 2rem 0; }
.lead { font-size: 1.12rem; color: var(--ink-soft); }
.kv-list { list-style: none; padding: 0; margin: 0; }
.kv-list li { padding: 0.35rem 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; font-size: 0.92rem; }
.article-body p { max-width: 68ch; }
.article-body { font-size: 1.05rem; }

/* ---------- Wissensdatenbank ---------- */
.wissen-card { display: flex; flex-direction: column; gap: 0.5rem; text-decoration: none; color: inherit; }
.wissen-card .badges { margin-bottom: 0.1rem; }
.wissen-card h3 { font-size: 1.12rem; margin: 0; color: var(--navy-800); }
.badge.wissen-kat { background: var(--navy-700); color: #fff; }
/* In der Sidebar-Suchansicht nur zwei Spalten (drei würden rechts überlaufen),
   mobil eine Spalte. minmax(0,1fr) lässt die Kacheln schrumpfen statt zu drängen. */
.wissen-grid { margin-top: 0.4rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 680px) { .wissen-grid { grid-template-columns: 1fr; } }

.quellen { list-style: none; padding: 0; margin: 0.4rem 0 0; }
.quellen li { padding: 0.5rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.quellen li:last-child { border-bottom: none; }
.quellen a { color: var(--navy-600); font-weight: 600; }

.glossar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.2rem 1.6rem; margin: 0; }
@media (max-width: 720px) { .glossar { grid-template-columns: 1fr; } }
.glossar-item { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.glossar-item dt { font-family: var(--serif); font-weight: 600; color: var(--navy-800); }
.glossar-item dd { margin: 0.2rem 0 0; color: var(--ink-soft); font-size: 0.94rem; }
