/* Ratgeber: gleiche Farben, Schrift und Haltung wie die Hauptseite (ruhig, minimalistisch, viel Weißraum).
   Die Schrift Jost liegt im Ordner "fonts" der Hauptseite (selbst gehostet, keine externen Aufrufe).
   Farbvariablen und Dunkelmodus sind dieselben wie in index.html. */

@font-face { font-family: "Jost"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/jost-300.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/jost-400.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/jost-500.woff2") format("woff2"); }
@font-face { font-family: "Jost Custom"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/jost-custom-regular.woff2") format("woff2"); }
@font-face { font-family: "Jost Custom"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/jost-custom-bold.woff2") format("woff2"); }

:root {
  --kalk: #F6F6F3;
  --nebel: #E7E9E4;
  --linie: #CFD3CC;
  --schiefer: #27302D;
  --stein: #626B66;
  --gail: #44665F;
  --on-gail: #F6F6F3;
  --sans: "Jost", "Futura", "Helvetica Neue", Arial, sans-serif;
  --marke: "Jost Custom", "Jost", "Futura", "Helvetica Neue", Arial, sans-serif;
  --rand: clamp(1.25rem, 5vw, 4rem);
  --max: 78rem;
  --read: 40rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --kalk: #161B19; --nebel: #1F2623; --linie: #34403B; --schiefer: #E8EBE6; --stein: #A2ADA6; --gail: #8DB5AC; --on-gail: #161B19; }
}
:root[data-theme="dark"] { --kalk: #161B19; --nebel: #1F2623; --linie: #34403B; --schiefer: #E8EBE6; --stein: #A2ADA6; --gail: #8DB5AC; --on-gail: #161B19; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--kalk);
  color: var(--schiefer);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--gail); text-underline-offset: 0.2em; }
a:hover { color: var(--schiefer); }
:focus-visible { outline: 2px solid var(--gail); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--schiefer); color: var(--kalk); padding: .5rem 1rem; z-index: 30; }
.skip:focus { left: var(--rand); top: .75rem; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--rand); }
.wrap-narrow { width: 100%; max-width: calc(var(--read) + 2 * var(--rand)); margin-inline: auto; padding-inline: var(--rand); }

/* Kopf (wie auf der Hauptseite) */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--kalk) 92%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linie); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 2rem; min-height: 4rem; padding-block: .5rem; }
.brand { font-family: var(--marke); font-weight: 400; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; font-size: clamp(.9rem, 3.6vw, 1.1rem); line-height: 1.2; white-space: nowrap; color: var(--schiefer); }
.brand:hover { color: var(--schiefer); }
.brand .ar { font-size: 1.5em; font-weight: 700; line-height: 0; }
.site-nav ul { display: flex; gap: .25rem 1.6rem; list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.site-nav a { color: var(--stein); text-decoration: none; padding-block: .35rem; border-bottom: 1px solid transparent; white-space: nowrap; }
.site-nav a:hover { color: var(--schiefer); }
.site-nav a[aria-current="page"] { color: var(--schiefer); border-bottom-color: var(--gail); }
@media (max-width: 47.99rem) {
  .site-nav { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: .25rem; }
}

/* Typografie */
h1, h2, h3 { font-family: var(--sans); color: var(--schiefer); margin: 0; }
h1 { font-weight: 300; font-size: clamp(2rem, 5.6vw, 3.4rem); line-height: 1.12; letter-spacing: -.015em; margin-bottom: 1.25rem; }
h2 { font-weight: 400; font-size: clamp(1.35rem, 3vw, 1.7rem); line-height: 1.25; letter-spacing: -.01em; margin: 2.6rem 0 .7rem; }
.eyebrow { font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--stein); margin: 0 0 1rem; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }

/* Übersicht */
.hero { padding-block: clamp(3rem, 9vw, 6.5rem) clamp(2rem, 5vw, 3.5rem); }
.hero .lead { max-width: 38rem; font-size: 1.2rem; font-weight: 300; color: var(--stein); margin: 0; }
.featured { display: block; padding-block: 1.6rem; border-block: 1px solid var(--linie); color: inherit; text-decoration: none; }
.featured .label { font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--stein); }
.featured .titel { display: block; font-weight: 300; font-size: clamp(1.45rem, 3vw, 1.9rem); line-height: 1.25; color: var(--gail); margin: .35rem 0 .4rem; }
.featured:hover .titel { text-decoration: underline; text-underline-offset: .2em; }
.featured .text { max-width: 40rem; color: var(--stein); margin: 0; }

.phasen { padding-block: clamp(2rem, 5vw, 3.5rem) 3rem; }
.phase { display: grid; gap: .75rem 3rem; padding-block: 2rem; border-top: 1px solid var(--linie); }
.phase:first-child { border-top: 0; }
@media (min-width: 52rem) { .phase { grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); } }
.phase .nr { font-size: .8rem; font-weight: 500; letter-spacing: .14em; color: var(--stein); margin: 0 0 .35rem; }
.phase h2 { margin: 0 0 .5rem; font-size: 1.5rem; }
.phase .intro { margin: 0; color: var(--stein); font-size: 1rem; }
.phase.leer h2 { color: var(--stein); }
.phase .folgt { margin: 0; color: var(--stein); font-size: .95rem; font-style: italic; }
.posts { list-style: none; margin: 0; padding: 0; }
.posts li { padding-block: .9rem; border-top: 1px solid var(--linie); }
.posts li:first-child { padding-top: 0; border-top: 0; }
.posts a { font-size: 1.25rem; line-height: 1.35; color: var(--schiefer); text-decoration: none; }
.posts a:hover { color: var(--gail); text-decoration: underline; text-underline-offset: .2em; }
.posts .meta { display: block; font-size: .875rem; color: var(--stein); margin-top: .2rem; }

/* Beitrag */
.post { padding-block: clamp(2rem, 6vw, 4rem) 3rem; }
.crumbs { font-size: .875rem; color: var(--stein); margin-bottom: 2.25rem; }
.crumbs a { color: var(--stein); text-decoration: none; }
.crumbs a:hover { color: var(--schiefer); text-decoration: underline; }
.crumbs span { margin-inline: .5rem; }
.post .meta { color: var(--stein); font-size: .95rem; margin: 0 0 2rem; }
.prose { line-height: 1.7; }
.prose p { margin: 0 0 1.1rem; }
.prose .lead { font-size: 1.25rem; font-weight: 300; line-height: 1.6; margin-bottom: 1.75rem; }
.prose ul, .prose ol { margin: 0 0 1.25rem; padding-left: 1.3rem; }
.prose li { margin-bottom: .55rem; }
.prose li::marker { color: var(--gail); }
.prose strong { font-weight: 500; }
.kurz, .hinweis { padding: 1.25rem 1.5rem; margin: 0 0 2rem; border-radius: 2px; }
.kurz { background: var(--nebel); border-left: 3px solid var(--gail); }
.hinweis { border: 1px solid var(--linie); font-size: .95rem; color: var(--stein); }
.kurz h2, .hinweis h2 { font-size: .8rem; font-weight: 500; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .6rem; color: var(--stein); }
.kurz ul, .hinweis ul { margin-bottom: 0; }
.kurz li:last-child, .hinweis li:last-child { margin-bottom: 0; }
.hinweis p:last-child { margin-bottom: 0; }

.cta { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--linie); }
.cta h2 { margin-top: 0; }
.btn { display: inline-block; margin-top: .5rem; padding: .85rem 1.5rem; background: var(--schiefer); color: var(--kalk); text-decoration: none; border-radius: 2px; font-weight: 500; }
.btn:hover { color: var(--kalk); filter: brightness(.95); }

.post-nav { display: grid; gap: 1.25rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--linie); }
@media (min-width: 40rem) { .post-nav { grid-template-columns: 1fr 1fr; } .post-nav .next { text-align: right; } }
.post-nav a { display: block; text-decoration: none; font-size: 1.1rem; line-height: 1.35; color: var(--schiefer); }
.post-nav a:hover { color: var(--gail); }
.post-nav span { display: block; font-size: .8rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--stein); margin-bottom: .25rem; }

/* Fuß */
.site-footer { border-top: 1px solid var(--linie); margin-top: 2rem; padding-block: 2rem calc(2rem + env(safe-area-inset-bottom, 0px)); font-size: .9rem; color: var(--stein); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.site-footer p { margin: 0; }
.site-footer ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: var(--stein); text-decoration: none; }
.site-footer a:hover { color: var(--schiefer); text-decoration: underline; }

@media print {
  .site-header, .site-footer, .cta, .post-nav, .crumbs { display: none; }
  body { background: #fff; color: #000; font-size: 12pt; }
}
