*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --black: #0a0a0a; --white: #ffffff; --gray-100: #f5f5f5;
  --gray-200: #e8e8e8; --gray-400: #999999; --gray-600: #555555;
  --gray-800: #222222; --accent: #c8a96e; --accent-light: rgba(200,169,110,0.15);
  --err: #b3453a;
  /* Mobile-Typografie-System v2 (<=767px, siehe @media weiter unten) -
     identische Werte/Tokens wie im Artikel-Template (wissen-Unterseiten),
     damit die Strecke Startseite -> Wissen-&-Praxis-Uebersicht -> einzelner
     Fachartikel mobil stilistisch aus einem Guss wirkt. Nur auf Mobile
     referenziert - Tablet/Desktop bleiben unveraendert. Eine Stufe
     kompakter als zuvor (Syne wirkt bei gleicher px-Zahl dominanter als
     eine normale Sans-Serif - hier eingerechnet). .wissen-card-title lief
     bisher auf Syne und wechselt auf Mobile zu DM Sans (siehe unten). */
  --fs-mobile-article-h1-a: clamp(1.75rem, 1.10714rem + 2.85714vw, 1.875rem); /* v3: kurze Titel (Syne 700): 28-30px */
  --fs-mobile-article-h1-b: clamp(1.65625rem, 1.17411rem + 2.14286vw, 1.75rem); /* v3: mittlere Titel (Syne 700): 26.5-28px */
  --fs-mobile-article-h1-c: clamp(1.59375rem, 1.11161rem + 2.14286vw, 1.6875rem); /* v3: lange Titel (Syne 700): 25.5-27px */
  --fs-mobile-article-h1-d: clamp(1.5rem, 1.01786rem + 2.14286vw, 1.59375rem); /* v3: sehr lange Titel (Syne 700): 24-25.5px */
  --fs-mobile-h2: clamp(1.3125rem, 0.66964rem + 2.85714vw, 1.4375rem); /* v3: Section-/Artikel-/CTA-H2 (Syne 700): 21-23px */
  --fs-mobile-card: 16.5px; /* v3: Karten-/Akkordeon-/Schritt-Titel (DM Sans) */
  --fs-mobile-lead: clamp(1rem, 0.67857rem + 1.42857vw, 1.0625rem); /* Intro-Absatz: 16-17px */
  --fs-mobile-meta: 12.5px;     /* Card-Text / kleine Meta */
  --fs-mobile-eyebrow: 11.5px;  /* Eyebrows / Tags / Readtime */
  --fs-mobile-btn: 13.5px;      /* Button-Text auf Mobile */
  --lh-mobile-display: 1.04; /* v3: Zeilenhoehe Display-Headlines (Syne) */
  --lh-mobile-body: 1.55;
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-family: 'DM Sans', sans-serif; background: var(--white); color: var(--black); overflow-x: hidden; overflow-wrap: break-word; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { hyphens: manual; -webkit-hyphens: manual; word-break: normal; overflow-wrap: normal; text-wrap: balance; }

.section-tag {
  font-size: 11px; font-weight: 500; letter-spacing: 0.22em; color: var(--accent);
  text-transform: uppercase; margin-bottom: 14px; display: flex; align-items: center; gap: 12px;
}
.section-tag::before { content: ''; display: block; width: 24px; height: 1px; background: var(--accent); flex-shrink: 0; }

.btn-primary, .btn-secondary {
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500; letter-spacing: 0.06em;
  padding: 16px 30px; border-radius: 2px; text-decoration: none; text-transform: uppercase;
  transition: all 0.25s ease; display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--black); }
.btn-primary:hover { background: #dbbf85; transform: translateY(-1px); }

.pagehead { background: var(--black); padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo-link { display: flex; flex-direction: column; gap: 2px; line-height: 1; text-decoration: none; }
.nav-logo-main { font-family: 'Syne', sans-serif; font-size: 17px; font-weight: 800; letter-spacing: 0.08em; color: var(--white); text-transform: uppercase; }
.nav-logo-sub { display: none; font-family: 'DM Sans', sans-serif; font-size: 9px; font-weight: 400; letter-spacing: 0.12em; color: rgba(255,255,255,0.45); text-transform: uppercase; }
.nav-logo-img { height: 28px; width: auto; max-width: none; display: block; align-self: flex-start; object-fit: contain; }
.pagehead-back { font-size: 12.5px; font-weight: 500; letter-spacing: 0.03em; color: rgba(255,255,255,0.75); text-decoration: none; min-height: 44px; display: flex; align-items: center; gap: 6px; transition: color 0.25s; }
.pagehead-back:hover { color: var(--accent); }

.page-intro { background: var(--black); padding: 28px 20px 22px; border-bottom: 1px solid rgba(255,255,255,0.06); }
/* Gemeinsames Desktop-Content-Raster (>=768px) - siehe Artikel-Template fuer
   Details. Hero und Karten-Grid teilen sich --page-max-width und denselben
   linken Bezugspunkt (margin:0), damit auf Wissen & Praxis kein Achsenbruch
   zwischen Hero-Intro und Artikelkarten entsteht und der Content auf breiten
   Screens nicht Richtung Mitte wandert. */
.page-intro-inner { max-width: var(--page-max-width, 100%); margin: 0; }
.page-headline { font-family: 'Syne', sans-serif; font-size: clamp(2.25rem, 9vw, 2.75rem); font-weight: 800; line-height: 1.06; letter-spacing: -0.02em; color: var(--white); margin-bottom: 14px; }
.page-sub { font-size: 15px; font-weight: 300; line-height: 1.6; color: rgba(255,255,255,0.72); max-width: 62ch; }
.page-sub-compact { font-size: 13px; font-weight: 300; line-height: 1.55; color: rgba(255,255,255,0.5); max-width: 62ch; margin-top: 8px; }

/* Kategorie-Filter */
.cat-filters-wrap { background: var(--black); padding: 18px 0 20px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.wissen-controls { padding: 0 20px; }
.cat-filters { display: flex; gap: 8px; overflow-x: auto; padding: 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cat-filters::-webkit-scrollbar { display: none; }
.cat-pill {
  flex-shrink: 0; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: 0.01em;
  color: rgba(255,255,255,0.65); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px; padding: 9px 16px; cursor: pointer; white-space: nowrap; min-height: 40px; transition: all 0.2s ease;
}
.cat-pill:hover { border-color: var(--accent); color: var(--white); }
.cat-pill.active { background: var(--accent); border-color: var(--accent); color: var(--black); font-weight: 700; }

.sec { padding: 36px 20px; }
.sec-alt { background: var(--gray-100); }
.sec-inner { max-width: var(--page-max-width, 100%); margin: 0; }
.sec-title { font-family: 'Syne', sans-serif; font-size: clamp(1.5rem, 6vw, 1.9rem); font-weight: 800; line-height: 1.16; letter-spacing: -0.02em; }
.sec-lead { font-size: 14.5px; font-weight: 300; line-height: 1.6; color: var(--gray-600); max-width: 62ch; margin-top: 10px; }

.wissen-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.wissen-card {
  display: flex; flex-direction: column; border: 1px solid var(--gray-200); border-radius: 4px; padding: 22px;
  text-decoration: none; transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.wissen-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 16px 32px -22px rgba(10,10,10,0.3); }
.wissen-card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.wissen-tag { display: inline-flex; font-size: 10.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 20px; background: var(--gray-100); color: var(--gray-600); }
.wissen-readtime { font-size: 11.5px; font-weight: 300; color: var(--gray-400); }
.wissen-card-title { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.wissen-card-text { font-size: 13.5px; font-weight: 300; line-height: 1.55; color: var(--gray-600); margin-bottom: 16px; flex: 1; }
.wissen-card-link { font-size: 12.5px; font-weight: 500; letter-spacing: 0.04em; color: var(--accent); text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; }
.wissen-card-link .arrow { transition: transform 0.25s; }
.wissen-card:hover .wissen-card-link .arrow { transform: translateX(4px); }
.wissen-card.hidden { display: none; }
.wissen-empty { display: none; font-size: 14px; color: var(--gray-400); padding: 40px 0; text-align: center; }
.wissen-empty.visible { display: block; }
.wissen-empty-reset {
  display: none; margin: 14px auto 0; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500;
  color: var(--accent); background: transparent; border: 1px solid var(--gray-200); border-radius: 20px;
  padding: 10px 18px; min-height: 44px; cursor: pointer; transition: border-color 0.2s ease;
}
.wissen-empty.visible .wissen-empty-reset { display: inline-flex; align-items: center; }
.wissen-empty-reset:hover, .wissen-empty-reset:focus-visible { border-color: var(--accent); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Suche */
.wissen-controls { display: flex; flex-direction: column; gap: 14px; }
/* Mobil steht die Suche laut Vorgabe ÜBER den Kategorien, im Quelltext
   (und damit in Tab-/Screenreader-Reihenfolge) aber bewusst NACH den
   Kategorien - siehe Begründung unten bei order:-1. */
.wissen-search { order: -1; }
@media (min-width: 768px) {
  .wissen-search { order: 0; }
}
.wissen-search { position: relative; display: flex; align-items: center; }
.wissen-search-icon { position: absolute; left: 14px; width: 15px; height: 15px; opacity: 0.45; pointer-events: none; }
.wissen-search-icon circle, .wissen-search-icon line { stroke: var(--white); stroke-width: 1.6; fill: none; }
.wissen-search-input {
  width: 100%; font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 400; color: var(--white);
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16); border-radius: 22px;
  padding: 11px 42px 11px 38px; min-height: 44px; -webkit-appearance: none; appearance: none;
}
.wissen-search-input::placeholder { color: rgba(255,255,255,0.5); }
.wissen-search-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.wissen-search-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.wissen-search-clear {
  display: none; position: absolute; right: 3px; width: 38px; height: 38px; align-items: center; justify-content: center;
  background: transparent; border: none; color: rgba(255,255,255,0.55); font-size: 18px; line-height: 1; cursor: pointer;
  border-radius: 50%; transition: background 0.2s ease, color 0.2s ease;
}
.wissen-search-clear.visible { display: flex; }
.wissen-search-clear:hover, .wissen-search-clear:focus-visible { color: var(--white); background: rgba(255,255,255,0.12); }
.wissen-result-count { font-size: 12px; font-weight: 300; color: rgba(255,255,255,0.45); padding: 12px 20px 0; }

.wissen-cta { text-align: center; }
.wissen-cta .sec-title { margin-bottom: 10px; }
.wissen-cta .sec-lead { margin: 0 auto 22px; }

footer { background: var(--black); border-top: 1px solid rgba(255,255,255,0.06); padding: 16px 20px; display: flex; align-items: center; justify-content: center; text-align: center; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 16px; }
.footer-copy { font-size: 11.5px; color: rgba(255,255,255,0.4); letter-spacing: 0.02em; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; }
.footer-links a { font-size: 11.5px; color: rgba(255,255,255,0.55); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; transition: color 0.25s; }
.footer-links a:hover { color: var(--accent); }
.footer-dot { color: rgba(255,255,255,0.25); font-size: 11px; }

@media (min-width: 768px) {
  :root { --page-max-width: 1100px; }
  .pagehead { padding: 20px 40px; }
  .nav-logo-sub { display: block; } .nav-logo-img { height: 34px; width: auto; object-fit: contain; }
  .page-intro { padding: 40px 40px 28px; }
  .wissen-controls { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 0 40px; gap: 12px 20px; }
  .cat-filters { padding: 0; flex-basis: 100%; }
  .wissen-search { flex: 1 1 240px; max-width: 320px; }
  .wissen-result-count { padding-left: 40px; }
  .sec { padding: 56px 40px; }
  .wissen-grid { grid-template-columns: repeat(2, 1fr); }
  footer { padding: 20px 40px 18px; }
}
@media (min-width: 1024px) {
  .pagehead { padding: 24px 56px; }
  .page-intro { padding: 56px 56px 32px; }
  .wissen-controls { padding: 0 56px; }
  .cat-filters { padding: 0; overflow-x: visible; flex-wrap: wrap; flex-basis: auto; width: auto; }
  .wissen-search { margin-left: auto; }
  .sec { padding: 64px 56px; }
  .wissen-grid { grid-template-columns: repeat(3, 1fr); }
  footer { padding: 20px 56px; }
  .wissen-result-count { padding-left: 56px; }
}

@media (max-width: 767px) {
  /* Kompaktere, an die Headline-Laenge angepasste Groesse - siehe Klassen
     .hl-a (kurz) bis .hl-d (lang) - verhindert dominante 5-6-zeilige
     Titel bzw. haessliche Umbrueche auf schmalen Screens. Tokens siehe
     :root (--fs-mobile-*) - identisch zum Artikel-Template. */
  .page-headline { line-height: var(--lh-mobile-display); margin-bottom: 8px; }
  .page-headline.hl-a { font-size: var(--fs-mobile-article-h1-a); }
  .page-headline.hl-b { font-size: var(--fs-mobile-article-h1-b); }
  .page-headline.hl-c { font-size: var(--fs-mobile-article-h1-c); }
  .page-headline.hl-d { font-size: var(--fs-mobile-article-h1-d); }
  .page-intro { padding: 22px 20px 18px; }
  .page-sub { font-size: var(--fs-mobile-lead); line-height: var(--lh-mobile-body); }
  .page-sub-compact { font-size: var(--fs-mobile-eyebrow); margin-top: 6px; }
  .sec { padding: 26px 20px; }
  .sec-title { font-size: var(--fs-mobile-h2); line-height: var(--lh-mobile-display); }
  .sec-lead { font-size: var(--fs-mobile-meta); }
  .wissen-cta .sec-title { margin-bottom: 8px; }
  .cat-pill { font-size: var(--fs-mobile-eyebrow); padding: 8px 14px; }
  .wissen-tag { font-size: var(--fs-mobile-eyebrow); }
  .wissen-readtime { font-size: var(--fs-mobile-eyebrow); }
  .wissen-card { padding: 16px; }
  /* Card-Titel bewusst NICHT mehr Syne (Display) auf Mobile - normale
     Sans-Serif fuer ruhigere Hierarchie im Karten-Grid. Desktop/Tablet
     bleiben mit Syne unveraendert. */
  .wissen-card-title { font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: var(--fs-mobile-card); line-height: 1.25; }
  .wissen-card-text { font-size: var(--fs-mobile-meta); margin-bottom: 12px; }
  .btn-primary, .btn-secondary { font-size: var(--fs-mobile-btn); }

  /* text-wrap:wrap statt balance: verhindert, dass eine bereits
     "ausbalancierte" Zeilenaufteilung nach dem Nachladen der Web-Schrift
     (Font-Swap) ueber den verfuegbaren Platz hinausragt - insbesondere bei
     langen, zusammengesetzten Woertern in Headlines. Rein defensiv, keine
     sichtbare Optik-Aenderung im Normalfall. */
  .page-headline, .sec-title { text-wrap: wrap; overflow-wrap: break-word; }
}

/* ============================================================
   MOBILE-TYPOGRAFIE v3 (nur <=767px) - ruhiger, kompakter, hochwertiger.
   Groessen kommen aus den --fs-mobile-*-Tokens in :root (v3). Tablet
   (>=768px) und Desktop bleiben unveraendert, da alle Regeln hier nur
   innerhalb von max-width:767px greifen. Display-Headlines nutzen auf
   Mobile Syne 700 (ca. 30 % schmaler als 800 -> weniger Zeilen, keine
   Wortbrueche); Desktop behaelt Syne 800.
   ============================================================ */
@media (max-width: 767px) {
  .page-headline, .sec-title, .page-cta-title { font-weight: 700; hyphens: none; -webkit-hyphens: none; }
  /* Unter 360px (sehr schmale Geraete) greift wieder die manuelle Silbentrennung
     (&shy;) als Sicherheitsnetz - besser ein sauberer Trennstrich als ein harter Umbruch. */
  @media (max-width: 359px) { .page-headline, .sec-title, .page-cta-title { hyphens: manual; -webkit-hyphens: manual; } }
  .btn-primary, .btn-secondary { font-size: var(--fs-mobile-btn); padding: 13px 22px; min-height: 46px; letter-spacing: 0.05em; }
}
