/* =====================================================================
   Dazwischen • Sein · Stylesheet
   Farben und Schriften nach design.md (Hauptordner)
   ===================================================================== */

/* ---------- Schriften (lokal, nichts von Google) ---------- */
@font-face { font-family: "Lora"; src: url("../fonts/lora-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Kumbh Sans"; src: url("../fonts/kumbh-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Kumbh Sans"; src: url("../fonts/kumbh-sans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Kumbh Sans"; src: url("../fonts/kumbh-sans-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --sand: #D7CBB9;
  --taupe: #7A6C57;
  --leinen: #F4EFE7;
  --holz: #A38D76;
  --tinte: #1F1D1A;
  --weiss: #FFFFFF;
  --terrakotta: #C25B43;        /* Buttons */
  --terrakotta-dunkel: #A84A35; /* Hover */
  --punkt: #D9603F;             /* Punkt im Namen, überall */
  --pfirsich: #FDDECC;          /* Logo-Unterzeile, zarte Akzente */
  --salbei: #9CA88A;

  --font-titel: "Lora", Georgia, serif;
  --font-text: "Kumbh Sans", Arial, sans-serif;

  --text-leise: rgba(31, 29, 26, .7);
  --linie: rgba(31, 29, 26, .15);
  --linie-hell: rgba(255, 255, 255, .25);

  --space-1: 8px; --space-2: 16px; --space-3: 24px; --space-4: 32px; --space-5: 48px; --space-6: 80px;
  --section-y: clamp(64px, 10vw, 112px);
  --gutter: clamp(20px, 4vw, 32px);
  --max: 1120px;
  --lese: 660px;
  --radius-s: 4px; --radius-m: 12px;
  --kopf-hoehe: 64px;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--kopf-hoehe) + 16px); }
body { background: var(--leinen); color: var(--tinte); font-family: var(--font-text); font-size: 1.125rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--punkt); outline-offset: 3px; border-radius: 2px; }
.nur-vorleser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprung { position: absolute; left: -9999px; top: 8px; background: var(--weiss); padding: 8px 16px; z-index: 50; }
.sprung:focus { left: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.abschnitt { padding: var(--section-y) 0; }
.hell   { background: var(--sand); }
.leinen { background: var(--leinen); }
.dunkel { background: var(--taupe); color: var(--weiss); }

/* ---------- Typografie ---------- */
h1, h2, h3, .serif { font-family: var(--font-titel); font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: var(--space-3); }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); margin-bottom: var(--space-3); }
h3 { font-size: clamp(1.375rem, 2.2vw, 1.625rem); margin-bottom: var(--space-1); }
p + p { margin-top: var(--space-2); }
.einleitung { font-size: clamp(1.125rem, 1.6vw, 1.25rem); max-width: var(--lese); }
.label { display: inline-block; font-weight: 700; font-size: .875rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: var(--space-2); }
.dunkel .label { color: var(--pfirsich); }
.klein { font-size: .875rem; }
.zentriert { text-align: center; }
.zentriert .einleitung { margin-left: auto; margin-right: auto; }

/* Der Punkt im Namen */
.punkt { color: var(--punkt); padding: 0 .12em; }
.btn .punkt, .klein .punkt { font-family: var(--font-titel); font-size: 1.6em; line-height: 0; vertical-align: -.14em; padding: 0 .08em; }

/* Das Oval: ein Wort, dünne Linie, gleiche Farbe wie der Text */
.oval { position: relative; display: inline-block; padding: 0 .36em; white-space: nowrap; }
.oval::before { content: ""; position: absolute; inset: -.1em -.05em -.05em; border: 2px solid currentColor; border-radius: 50%; transform: rotate(-3deg); pointer-events: none; }

/* ---------- Buttons & Links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 48px; padding: 14px 28px; border-radius: 999px; font-family: var(--font-text); font-weight: 700; font-size: 1rem; letter-spacing: .02em; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-haupt { background: var(--terrakotta); color: var(--weiss); }
.btn-haupt:hover { background: var(--terrakotta-dunkel); }
.btn-ruhig { background: var(--pfirsich); color: var(--tinte); }
.btn-ruhig:hover { background: var(--tinte); color: var(--pfirsich); }
.dunkel .btn-ruhig { background: rgba(255,255,255,.14); color: var(--weiss); }
.dunkel .btn-ruhig:hover { background: var(--pfirsich); color: var(--tinte); }
.textlink { font-size: .875rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.textlink:hover { color: var(--terrakotta); }
.dunkel .textlink:hover { color: var(--pfirsich); }
.knoepfe { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; margin-top: var(--space-4); }
.zentriert .knoepfe { justify-content: center; }

/* ---------- Kopfbereich ---------- */
.kopf { position: sticky; top: 0; z-index: 30; background: rgba(244, 239, 231, .95); border-bottom: 1px solid var(--linie); }
.kopf .wrap { display: flex; align-items: center; justify-content: space-between; min-height: var(--kopf-hoehe); gap: var(--space-3); }
.marke { font-family: var(--font-titel); font-size: 1.375rem; text-decoration: none; white-space: nowrap; }
.menue-liste { display: flex; gap: var(--space-3); list-style: none; }
.menue-liste a { font-size: .875rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.menue-liste a:hover, .menue-liste a[aria-current="page"] { border-color: currentColor; }
.menue-knopf { display: none; background: none; border: 0; cursor: pointer; width: 48px; height: 48px; margin-right: -12px; color: var(--tinte); }
.menue-knopf span { display: block; width: 24px; height: 1.5px; background: currentColor; margin: 6px auto; }

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--weiss); min-height: min(86vh, 720px); display: flex; align-items: center; text-align: center; overflow: hidden; background: var(--taupe); }
.hero-bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 66% center; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(31, 29, 26, .45); }
.hero .wrap { position: relative; z-index: 1; padding-top: var(--space-6); padding-bottom: var(--space-6); }
.hero-logo { width: min(620px, 94%); margin: 0 auto var(--space-4); }
.hero p { max-width: 620px; margin: 0 auto; font-size: clamp(1.125rem, 1.8vw, 1.3125rem); }

/* Seitenkopf der Unterseiten */
.seitenkopf { padding: var(--section-y) 0 calc(var(--section-y) * .7); }

/* ---------- Raster ---------- */
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); align-items: center; }
.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--space-3); margin-top: var(--space-5); }
.karten-2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- Karten ---------- */
.karte { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius-m); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-1); text-decoration: none; color: var(--tinte); }
.hell .karte { background: var(--leinen); }
.karte p { flex: 1; }
.karte .textlink { margin-top: var(--space-2); align-self: flex-start; }
a.karte { transition: transform .2s, box-shadow .2s; }
a.karte:hover { transform: translateY(-3px); box-shadow: 0 10px 30px -12px rgba(31, 29, 26, .3); }
a.karte:hover .textlink { color: var(--terrakotta); }
.karte.aktiv { background: var(--pfirsich); border-color: transparent; }
.karte.ruhig { background: transparent; border-style: dashed; }
.dunkel .karte { background: rgba(255,255,255,.07); border-color: var(--linie-hell); color: var(--weiss); }
.karte h3 .punkt { padding-left: 0; }

.badge { align-self: flex-start; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; border: 1px solid currentColor; line-height: 1.2; margin-bottom: var(--space-1); }
.badge-aktiv { background: var(--terrakotta); border-color: var(--terrakotta); color: var(--weiss); }
.badge-leise { opacity: .75; }

/* ---------- Bilder ---------- */
.foto { width: 100%; border-radius: var(--radius-s); object-fit: cover; background: var(--holz); }
.foto-hoch { aspect-ratio: 4 / 5; }
.bildraster { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.bildraster .foto { aspect-ratio: 3 / 4; }
.bildraster .quer { grid-column: span 2; aspect-ratio: 16 / 9; }

/* ---------- Erkennst du dich? ---------- */
.saetze p { font-size: clamp(1.125rem, 1.6vw, 1.25rem); }
.saetze p + p { margin-top: var(--space-3); }
.saetze .schluss { font-family: var(--font-titel); font-size: clamp(1.625rem, 3vw, 2rem); line-height: 1.3; margin-top: var(--space-4); }

/* ---------- Zitat ---------- */
.zitat { font-family: var(--font-titel); font-size: clamp(1.875rem, 4vw, 3rem); line-height: 1.3; text-align: center; max-width: 900px; margin: 0 auto; }

/* ---------- Hervorgehoben (Begleitung) ---------- */
.hervor { font-family: var(--font-titel); font-size: clamp(1.75rem, 4vw, 2.75rem); line-height: 1.3; margin-top: var(--space-5); }

/* ---------- Liste mit Punkt ---------- */
.punktliste { list-style: none; display: grid; gap: var(--space-2); margin-top: var(--space-2); }
.punktliste li { position: relative; padding-left: 1.5em; }
.punktliste li::before { content: ""; position: absolute; left: .2em; top: .62em; width: .42em; height: .42em; border-radius: 50%; background: var(--punkt); }

/* ---------- Blog ---------- */
.filter { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); margin-top: var(--space-4); }
.filter button { background: none; border: 0; border-bottom: 1px solid transparent; font: 500 .875rem var(--font-text); letter-spacing: .08em; text-transform: uppercase; padding: 6px 0; min-height: 44px; cursor: pointer; color: var(--tinte); }
.filter button[aria-pressed="true"], .filter button:hover { border-color: currentColor; }
.kacheln { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5) var(--space-3); margin-top: var(--space-5); }
.kachel { text-decoration: none; display: flex; flex-direction: column; gap: var(--space-1); }
.kachel img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-s); margin-bottom: var(--space-1); }
.kachel .kategorie { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-leise); }
.kachel h3 { margin: 0; }
.kachel:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.kachel .datum { font-size: .8125rem; color: var(--text-leise); }
.leer { margin-top: var(--space-5); max-width: var(--lese); }
.beitrag { max-width: 680px; margin: 0 auto; }
.beitrag-kopf .meta { font-size: .875rem; color: var(--text-leise); }
.beitrag-bild { max-width: var(--max); margin: var(--space-5) auto; padding: 0 var(--gutter); }
.beitrag-bild img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-s); }
.beitrag-text h2 { font-size: clamp(1.625rem, 3vw, 2rem); margin: var(--space-5) 0 var(--space-2); }
.beitrag-text p + p { margin-top: var(--space-3); }
.beitrag-text ul { list-style: none; margin: var(--space-3) 0; display: grid; gap: var(--space-1); }
.beitrag-text ul li { position: relative; padding-left: 1.5em; }
.beitrag-text ul li::before { content: ""; position: absolute; left: .2em; top: .62em; width: .42em; height: .42em; border-radius: 50%; background: var(--punkt); }
.beitrag-text blockquote { font-family: var(--font-titel); font-style: italic; font-size: clamp(1.375rem, 2.6vw, 1.75rem); line-height: 1.4; border-left: 2px solid var(--holz); padding-left: var(--space-3); margin: var(--space-5) 0; }
.hinweisbox { background: var(--leinen); border-radius: var(--radius-m); padding: var(--space-4); font-size: .9375rem; margin-top: var(--space-5); }

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */
.rechtstext { max-width: 760px; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.rechtstext h2 { font-size: clamp(1.5rem, 2.8vw, 1.875rem); margin: var(--space-5) 0 var(--space-2); }
.rechtstext h3 { font-family: var(--font-text); font-weight: 700; font-size: 1.0625rem; margin: var(--space-4) 0 var(--space-1); }
.rechtstext p + p { margin-top: var(--space-2); }
.rechtstext ul { margin: var(--space-2) 0; }
.rechtstext dl { margin-top: var(--space-2); }
.rechtstext dt { font-weight: 700; margin-top: var(--space-2); }
.rechtstext dd { margin-left: 0; }
.rechtstext .adresse { font-style: normal; margin-top: var(--space-2); }
.rechtstext a { word-break: break-word; }
.rechtstext .stand { margin-top: var(--space-5); font-size: .875rem; color: var(--text-leise); }

/* ---------- Platzhalter (wird in einem späteren Schritt ersetzt) ---------- */
.platzhalter { display: inline-block; border: 1.5px dashed currentColor; border-radius: var(--radius-s); padding: 2px 8px; opacity: .8; }

/* ---------- Fusszeile ---------- */
.fuss { background: var(--tinte); color: var(--sand); padding: var(--space-6) 0 var(--space-5); font-size: .9375rem; }
.fuss .marke { color: var(--weiss); font-size: 1.5rem; }
.fuss .claim { font-family: var(--font-titel); font-style: italic; letter-spacing: .06em; color: var(--pfirsich); }
.fuss-links { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); list-style: none; margin: var(--space-4) 0; }
.fuss-links a { text-decoration: none; text-transform: uppercase; letter-spacing: .08em; font-size: .8125rem; }
.fuss-links a:hover { color: var(--weiss); text-decoration: underline; text-underline-offset: 5px; }
.fuss-links .platzhalter { text-transform: uppercase; letter-spacing: .08em; font-size: .8125rem; }
.fuss .rechtliches { opacity: .75; max-width: 760px; border-top: 1px solid rgba(215, 203, 185, .2); padding-top: var(--space-3); font-size: .875rem; }
.fuss .rechtliches p + p { margin-top: var(--space-1); }

/* =====================================================================
   Handy (bis 760 px)
   ===================================================================== */
@media (max-width: 760px) {
  body { font-size: 1.0625rem; }
  .zwei, .karten-2, .kacheln { grid-template-columns: 1fr; gap: var(--space-4); }
  .zwei .bild-zuerst { order: -1; }
  .menue-knopf { display: block; }
  .menue { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--leinen); border-bottom: 1px solid var(--linie); }
  .menue.offen { display: block; }
  .menue-liste { flex-direction: column; gap: 0; padding: var(--space-1) var(--gutter) var(--space-3); }
  .menue-liste a { display: block; padding: 14px 0; border-bottom: 1px solid var(--linie); }
  .menue-liste a[aria-current="page"] { border-bottom-color: var(--linie); color: var(--terrakotta); }
  .karte { padding: var(--space-3); }
  .knoepfe .btn { width: 100%; }
  .hero { min-height: 78vh; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
