/* ============================================================
   Praxis Karin Firle — Frechen
   System: „Breite, die trägt"
   Ziegelweiß · Brombeer-Ink · Salbeihell · Spectral / Rubik
   Zentriert-klassische Komposition mit Zierlinien, kompakt
   gerahmte Fakten-Tabellen, Fokusgebiete als zweispaltiges Register
   ============================================================ */

:root {
  --brick: #f7f1ec;
  --brick-2: #efe6dd;
  --mulberry: #4a2740;
  --mulberry-2: #5f3452;
  --sage: #a8bfa0;
  --sage-2: #c3d4bb;
  --grey-f2: #756a70;
  --hair-f2: rgba(74, 39, 64, .18);
  --sage-hair: rgba(126, 152, 118, .45);
  --pad: clamp(1.25rem, 4.5vw, 3.5rem);
  --luft: clamp(5rem, 10.5vw, 9.5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Rubik", "Segoe UI", sans-serif;
  background: var(--brick);
  color: var(--mulberry);
  line-height: 1.67;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--sage-2); color: var(--mulberry); }
img { display: block; max-width: 100%; }
a { color: inherit; }

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 70;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='r5'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.84' numOctaves='2' seed='27'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23r5)'/%3E%3C/svg%3E");
}

/* ---------- Kopf: zentrierte Zeile ---------- */
.cen-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem var(--pad);
  background: rgba(247, 241, 236, .9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hair-f2);
}
.cen-head .rm {
  font-family: "Spectral", Georgia, serif;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  white-space: nowrap;
}
.cen-head .rm b { color: #6f8f65; font-weight: 600; }
.cen-head nav { display: flex; gap: 1.6rem; }
.cen-head nav a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--grey-f2);
  text-decoration: none;
  transition: color .2s;
}
.cen-head nav a:hover, .cen-head nav a[aria-current="page"] { color: var(--mulberry); }
.cen-head .call {
  font-weight: 600;
  font-size: .9rem;
  color: var(--brick);
  background: var(--mulberry);
  text-decoration: none;
  padding: .5rem 1.05rem;
  white-space: nowrap;
  transition: background .2s;
}
.cen-head .call:hover { background: #6f8f65; }

/* ---------- Zentrierter Hero mit Zierlinien ---------- */
.centered {
  padding: clamp(8rem, 16vw, 11.5rem) var(--pad) clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.centered .ornament {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  justify-content: center;
  margin-bottom: clamp(1.4rem, 3vw, 2rem);
}
.centered .ornament::before,
.centered .ornament::after {
  content: "";
  height: 1px;
  width: clamp(2.5rem, 8vw, 6rem);
  background: var(--sage-hair);
}
.centered .ornament span {
  font-family: "Spectral", Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  color: #6f8f65;
}
.centered h1 {
  font-family: "Spectral", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 5.6vw, 4.7rem);
  line-height: 1.1;
  max-width: 16ch;
  margin: 0 auto;
}
.centered h1 em { font-style: italic; color: var(--mulberry-2); }
.centered .c-sub {
  margin: clamp(1.3rem, 3vw, 2rem) auto 0;
  max-width: 52ch;
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  color: var(--grey-f2);
}
.centered .c-acts {
  margin-top: clamp(1.7rem, 4vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  justify-content: center;
}
.cbtn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: .97rem;
  padding: .95rem 1.6rem;
  border-radius: 6px;
  transition: background .2s, color .2s, border-color .2s;
}
.cbtn.mul { background: var(--mulberry); color: var(--brick); }
.cbtn.mul:hover { background: var(--mulberry-2); }
.cbtn.sage { border: 1.5px solid var(--sage-hair); color: var(--mulberry); }
.cbtn.sage:hover { border-color: var(--sage); background: var(--sage-2); }

/* Hero-Bild zentriert, gerahmt mit Salbeiliste */
.centered .hero-frame {
  margin: clamp(2.4rem, 5vw, 3.6rem) auto 0;
  max-width: 860px;
  border: 1px solid var(--hair-f2);
  border-bottom: 6px solid var(--sage);
  padding: .5rem;
  background: #fffdf9;
}
.centered .hero-frame img { width: 100%; aspect-ratio: 16 / 7.6; object-fit: cover; }
.centered .hero-frame figcaption {
  font-size: .85rem;
  color: var(--grey-f2);
  padding: .7rem .5rem .3rem;
}

/* ---------- Standard ---------- */
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 var(--pad); }
.sec { padding-block: var(--luft); }
.sec.mid { padding-block: clamp(3.2rem, 7vw, 5.5rem); }
.zone-sage { background: var(--sage-2); color: var(--mulberry); }
.zone-mul { background: var(--mulberry); color: var(--brick); }
.zone-mul .stand, .zone-mul p { color: rgba(247, 241, 236, .78); }

.h-spec {
  font-family: "Spectral", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.8rem, 3.9vw, 3rem);
  line-height: 1.15;
  max-width: 23ch;
}
.zone-mul .h-spec { color: var(--brick); text-align: center; margin-inline: auto; }
.stand { margin-top: 1rem; font-size: 1.08rem; color: var(--grey-f2); max-width: 54ch; }
.zone-mul .stand { margin-inline: auto; }
.prose { max-width: 58ch; }
.prose p + p { margin-top: 1.05rem; }

/* ---------- Kompakte gerahmte Tabelle (Leitmodul) ---------- */
.framed-table {
  border: 1.5px solid var(--mulberry);
  background: #fffdf9;
}
.framed-table > div {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: .35rem clamp(1.2rem, 3.5vw, 3rem);
  padding: 1rem clamp(1.2rem, 3vw, 2rem);
  border-bottom: 1px solid var(--hair-f2);
  align-items: baseline;
}
.framed-table > div:last-child { border-bottom: 0; }
.framed-table dt {
  font-size: .74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: #6f8f65;
}
.framed-table dd { font-weight: 500; }
.zone-mul .framed-table { background: transparent; border-color: var(--sage-hair); }
.zone-mul .framed-table > div { border-color: rgba(247, 241, 236, .22); }
.zone-mul .framed-table dt { color: var(--sage-2); }
.zone-mul .framed-table dd { color: var(--brick); }

/* Fokusregister: zweispaltige Zeilenliste */
.focus-reg {
  border-top: 2px solid var(--mulberry);
  columns: 2;
  column-gap: clamp(2rem, 5vw, 4rem);
}
.focus-reg > div {
  break-inside: avoid;
  padding: .95rem 0;
  border-bottom: 1px solid var(--hair-f2);
  display: flex;
  gap: .8rem;
  align-items: baseline;
}
.focus-reg .leaf {
  color: #6f8f65;
  font-size: .8rem;
}
.focus-reg strong { font-weight: 600; }
.focus-reg span.desc { color: var(--grey-f2); font-size: .93rem; }

/* Offen-Karte */
.f-open {
  border: 2px dashed var(--sage-hair);
  background: #fffdf9;
  padding: clamp(1.7rem, 4vw, 2.7rem);
  text-align: left;
}
.f-open .lbl {
  display: inline-block;
  font-size: .74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--brick);
  background: var(--mulberry);
  padding: .35rem .8rem;
  margin-bottom: 1rem;
}
.f-open h3 {
  font-family: "Spectral", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.25rem, 2.7vw, 1.75rem);
  margin-bottom: .6rem;
  max-width: 28ch;
}
.f-open p { color: var(--grey-f2); max-width: 58ch; }

/* Krise */
.f-crisis {
  background: var(--mulberry);
  color: var(--brick);
  padding: clamp(2rem, 5vw, 3rem);
  margin-top: clamp(2.8rem, 6vw, 4.4rem);
}
.f-crisis h2 { font-family: "Spectral", Georgia, serif; font-weight: 600; font-size: 1.3rem; margin-bottom: .8rem; }
.f-crisis p { color: rgba(247, 241, 236, .8); font-size: .97rem; }
.f-crisis strong { color: #fff; }
.f-crisis a { color: var(--sage-2); font-weight: 600; text-decoration: none; }
.f-crisis a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.f-foot {
  background: var(--mulberry-2);
  padding: var(--luft) var(--pad) clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}
.f-foot .ornament { color: var(--sage-2); display: flex; align-items: center; gap: 1.1rem; justify-content: center; }
.f-foot .ornament::before, .f-foot .ornament::after { content: ""; height: 1px; width: clamp(2.5rem, 8vw, 6rem); background: rgba(247, 241, 236, .35); }
.f-foot .huge {
  font-family: "Spectral", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.85rem, 5vw, 3.8rem);
  line-height: 1.18;
  max-width: 22ch;
  color: var(--brick);
  margin: 1rem auto 0;
}
.f-foot .huge a {
  color: var(--sage-2);
  text-decoration: none;
  border-bottom: 2px solid rgba(195, 212, 187, .45);
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.f-foot .huge a:hover { color: var(--brick); border-color: var(--brick); }

.f-baseline {
  background: var(--mulberry-2);
  color: rgba(247, 241, 236, .62);
  padding: 0 var(--pad) 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 2.2rem;
  justify-content: space-between;
  font-size: .88rem;
}
.f-baseline nav { display: flex; flex-wrap: wrap; gap: 1.3rem; }
.f-baseline a { color: rgba(247, 241, 236, .62); text-decoration: none; }
.f-baseline a:hover { color: var(--brick); }

.fnote { font-size: .85rem; color: var(--grey-f2); padding: 1.3rem 0; max-width: 70ch; }
.zone-mul .fnote, .f-foot .fnote { color: rgba(247, 241, 236, .62); margin-inline: auto; }
sup.star { color: #6f8f65; font-weight: 700; }
.zone-mul sup.star, .f-foot sup.star { color: var(--sage-2); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .focus-reg { columns: 1; }
  .framed-table > div { grid-template-columns: 1fr; gap: .2rem; }
}
@media (max-width: 700px) {
  .cen-head nav { display: none; }
}
/* wrap+prose-Kollision */
.wrap.prose { max-width: none; }
.wrap.prose > * { max-width: 60ch; }
