/* PT-Räumungen — Ratgeber-Seiten. Tokens und Schriften aus DESIGN.md (Quelle: homep.html). */
@font-face { font-family: "Young Serif"; font-style: normal; src: url("fonts/young-serif.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; src: url("fonts/schibsted-grotesk.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Young Serif Fallback"; src: local("Georgia"); size-adjust: 116%; ascent-override: 90.17%; descent-override: 31.55%; line-gap-override: 0%; }
@font-face { font-family: "Schibsted Grotesk Fallback"; src: local("Segoe UI"); size-adjust: 106.72%; ascent-override: 91.51%; descent-override: 24.16%; line-gap-override: 0%; }

:root {
  --paper: #F4EFE6;
  --surface: #FBF8F2;
  --warm: #E9DCC8;
  --dark: #26231F;
  --dark-2: #1D1B18;
  --ink: #1E1B18;
  --muted: #5B554D;
  --muted-dark: #C9C1B4;
  --line: rgba(30, 27, 24, .16);
  --brand: #D81E05;
  --brand-text: #A61A0D;
  --brand-hover: #DE2C12;
  --focus: #1D5FD8;
  --warn-text: #8A4B00;   /* Hinweisfarbe auf Papier: 5,94:1 gegen --paper, gerechnet nach WCAG 2 */
  --focus-dark: #FFCF66;
  --white: #FFFDF9;
  --serif: "Young Serif", "Young Serif Fallback", Georgia, serif;
  --sans: "Schibsted Grotesk", "Schibsted Grotesk Fallback", "Segoe UI", Helvetica, Arial, sans-serif;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; font-synthesis: none; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.dark-surface :focus-visible { outline-color: var(--focus-dark); }
::selection { color: var(--white); background: var(--brand-text); }

.skip-link { position: fixed; top: 16px; left: 16px; z-index: 100; padding: 12px 16px; color: var(--paper); background: var(--ink); border-radius: 8px; font-weight: 700; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

.shell { width: min(1200px, 100% - 48px); margin-inline: auto; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border: 2px solid var(--ink); border-radius: 999px; color: var(--ink); background: transparent; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 160ms var(--ease-out); }
.button:active { transform: scale(.97); }
.button--primary { border-color: var(--brand); color: var(--white); background: var(--brand); }
.button--primary:hover { border-color: var(--brand-hover); background: var(--brand-hover); }
.text-link { font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.text-link:hover { color: var(--brand-text); }

/* Header + Footer wie auf der Startseite */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { height: 44px; width: auto; }
.brand picture { display: contents; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a:not(.button) { font-weight: 600; text-decoration: none; padding-bottom: 4px; background: linear-gradient(var(--brand), var(--brand)) no-repeat 0 100% / 0 2px; transition: background-size 220ms var(--ease-out); }
.nav-links a:not(.button):hover, .nav-links a:not(.button):focus-visible { background-size: 100% 2px; }
.nav-cta { min-height: 44px; padding: 10px 20px; }
.site-footer { padding-block: 48px; color: var(--muted-dark); background: var(--dark-2); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.site-footer .brand-logo { height: 36px; }
.site-footer p { margin-top: 16px; }
.site-footer a { color: var(--paper); }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links span { color: var(--muted-dark); }
.footer-links a { text-underline-offset: 4px; }

/* Artikel */
.post { width: min(72ch, 100% - 48px); margin-inline: auto; padding-block: 48px 96px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; font-size: .9375rem; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; }
.breadcrumb a { color: var(--ink); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.draft-note { margin-top: 24px; padding: 12px 16px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); font-size: .9375rem; }
.post h1 { margin-top: 32px; font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 1.2rem + 2.8vw, 3.5rem); line-height: 1.05; letter-spacing: -.01em; text-wrap: balance; hyphens: auto; overflow-wrap: anywhere; }
.post h2 { hyphens: auto; overflow-wrap: anywhere; }
.post .lead { margin-top: 24px; font-size: 1.1875rem; line-height: 1.5; color: var(--muted); }
.post .meta { margin-top: 16px; font-size: .9375rem; color: var(--muted); }
.post-figure { margin: 40px 0 0; }
.post-figure picture { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 16px; background: var(--warm); }
.post-figure img { width: 100%; height: 100%; object-fit: cover; }
.post-figure figcaption { margin-top: 12px; font-size: .9375rem; color: var(--muted); }
.post h2 { margin-top: 48px; font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.2; text-wrap: balance; }
.post h2 + p, .post p + p, .post ul + p, .post p + ul { margin-top: 16px; }
.post ul { margin-top: 16px; padding-left: 24px; }
.post li + li { margin-top: 8px; }
/* Ein Rechtshinweis im Text, nicht als Entwurfsvermerk. Er sieht aus wie ein
   Hinweis und nicht wie ein Fehler: gedaempft, mit Abstand, ohne Rahmen —
   er gehoert zum Artikel, er warnt nicht davor. */
.hinweis-recht { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line);
                 color: var(--muted); font-size: .9375rem; }
.post-faq { margin-top: 48px; }
.post-faq details { border-top: 1px solid var(--line); }
.post-faq details:last-of-type { border-bottom: 1px solid var(--line); }
.post-faq summary { padding: 20px 0; font-weight: 700; cursor: pointer; }
.post-faq details p { padding: 0 0 24px; color: var(--muted); }
.post-cta { margin-top: 48px; padding: 32px; border-radius: 16px; color: var(--paper); background: var(--dark); }
.post-cta h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.25; }
.post-cta p { margin-top: 12px; color: var(--muted-dark); }
.post-cta .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 24px; }
.post-cta .text-link { color: var(--paper); }
.post-more { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-more h2 { margin: 0; font-size: 1.25rem; }
.post-more ul { list-style: none; padding: 0; margin-top: 12px; }
.post-more a { font-weight: 600; text-underline-offset: 4px; }

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .brand-logo { height: 36px; }
  .nav-links { gap: 16px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .shell { width: min(100% - 32px, 1200px); }
  .post { width: calc(100% - 32px); padding-block: 32px 64px; }

  /* HIER STAND `display: none` auf den Navigationslinks. Das versteckte auf
     jedem Telefon die beiden einzigen Wege zurück — gemessen am 18.09.2026:
     sichtbar blieben nur das Logo und der Anfrage-Knopf, „Leistungen" und
     „Ratgeber" waren unerreichbar. Das Design-Gesetz verbietet versteckte
     Navigation ohne Notwendigkeit, und nötig war es nicht: zwei kurze Wörter
     passen in eine zweite Zeile.
     Die Startseite darf ihre Punkte wegklappen — sie hat sechs und dafür einen
     sichtbaren Menüknopf. Ein Artikel hat zwei und keinen Knopf; wegklappen
     hiess hier schlicht weg. */
  .nav { flex-wrap: wrap; row-gap: 0; }
  .nav-links { width: 100%; gap: 20px; padding: 10px 0 12px;
               border-top: 1px solid var(--line); }
  /* Der Anfrage-Knopf ans Ende der Zeile — er ist die Handlung, die Links
     davor sind Wege. Eine Zeile, zwei Gewichte. */
  .nav-links .nav-cta { margin-left: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .post-cta { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* --------------------------------------------------- Rubrik-Uebersicht */
/* Die Liste aller Artikel. Bewusst KEIN Kartenraster: sechs gleich grosse
   Kacheln sind das Muster, das jede zweite Seite im Netz benutzt, und es sagt
   ueber die Artikel nichts. Hier steht jeder Eintrag als Zeile — Bild links,
   Titel und Beschreibung rechts —, weil man Zeilen in der Reihenfolge liest,
   in der sie gemeint sind. */
.rubrik-liste { list-style: none; margin: 40px 0 0; padding: 0; }
.rubrik-eintrag {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.rubrik-eintrag:last-child { border-bottom: 1px solid var(--line); }
.rubrik-bild { display: block; border-radius: 10px; overflow: hidden; background: var(--surface); }
.rubrik-bild img { display: block; width: 100%; height: 105px; object-fit: cover; }
.rubrik-text h2 { margin: 0; font-size: 1.375rem; line-height: 1.25; }
.rubrik-text h2 a { text-decoration: none; color: inherit; }
.rubrik-text h2 a:hover, .rubrik-text h2 a:focus-visible { color: var(--brand-text); }
.rubrik-text p { margin: 8px 0 0; color: var(--muted); }
/* Der Zustand steht als WORT da, nicht als Farbe — dieselbe Regel wie im Panel. */
.rubrik-entwurf { margin-top: 8px; font-size: .9375rem; color: var(--warn-text); }

@media (max-width: 640px) {
  /* Auf dem Telefon traegt das Bild nichts zur Entscheidung bei, welchen
     Artikel man liest — der Titel tut es. Es bleibt als schmaler Streifen
     ueber dem Text, statt die halbe Zeile zu belegen. */
  .rubrik-eintrag { grid-template-columns: 1fr; gap: 12px; }
  .rubrik-bild img { height: 140px; }
}
