/* ============================================================
   Praxis Martin El Assil-Hirsch, Sömmerda
   Design-System: Nebelweiß + Kieferngrün-Ink + Gletscherblau
   Fonts: Spectral (lokal, assets/fonts/fonts.css)
   Signatur: gerahmte Bilder (Inset-Matte), große Kapitelziffern
   ============================================================ */

:root {
  --nebel: #F0F4F1;
  --nebel-deep: #E3EBE6;
  --weiss: #F8FAF9;
  --pine: #14281F;
  --pine-2: #1E3A2D;
  --pine-3: #33513F;
  --ink-soft: #46564E;
  --glacier: #C4DEE3;
  --glacier-soft: #DFECEF;
  --glacier-ink: #2E5A68;
  --glacier-deep: #21434E;
  --line: rgba(20, 40, 31, 0.16);
  --line-strong: rgba(20, 40, 31, 0.34);
  --max: 1180px;
  --gutter: clamp(20px, 4.5vw, 56px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--nebel);
  color: var(--pine);
  font-family: "Spectral", Georgia, serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--glacier-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--glacier-deep); }

p { margin: 0 0 1.1em; max-width: 66ch; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--glacier); color: var(--pine); }

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Kopf ---------- */

.sitehead {
  border-bottom: 1px solid var(--line);
  background: var(--nebel);
}

.sitehead .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px 40px;
  flex-wrap: wrap;
  padding-top: 22px;
  padding-bottom: 20px;
}

.brand {
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.01em;
  color: var(--pine);
  text-decoration: none;
  line-height: 1.25;
}
.brand span {
  display: block;
  font-weight: 400;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 2px;
}

.sitenav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 26px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}
.sitenav a {
  color: var(--pine-3);
  text-decoration: none;
  padding: 6px 0 4px;
  border-bottom: 2px solid transparent;
}
.sitenav a:hover { color: var(--pine); border-bottom-color: var(--glacier); }
.sitenav a[aria-current="page"] { color: var(--pine); border-bottom-color: var(--glacier-ink); }

/* ---------- Kicker / Labels ---------- */

.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--glacier-ink);
  margin: 0 0 22px;
}
.kicker::before {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--glacier-ink);
  flex: none;
}

/* ---------- Hero (Start) ---------- */

.hero {
  padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, var(--nebel) 0%, var(--nebel) 62%, var(--nebel-deep) 100%);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(40px, 5.6vw, 74px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0 0 26px;
  max-width: 14ch;
}
.hero h1 em { font-style: italic; font-weight: 400; }

.hero .lede {
  font-size: clamp(18px, 1.6vw, 20.5px);
  line-height: 1.62;
  color: var(--pine-2);
  max-width: 46ch;
  margin-bottom: 34px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 18px 28px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--pine);
  text-decoration: none;
  border: 1px solid var(--pine);
  padding: 13px 26px 12px;
  background: transparent;
  transition: background 0.18s ease, color 0.18s ease;
}
.btn:hover { background: var(--pine); color: var(--nebel); }

.btn-ghost {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--glacier-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--glacier-ink);
  padding-bottom: 3px;
}
.btn-ghost:hover { color: var(--glacier-deep); border-bottom-color: var(--glacier-deep); }

/* Gerahmtes Bild: sichtbare Matte + Inset-Rahmen */

.frame {
  position: relative;
  margin: 0;
}
.frame::before {
  content: "";
  position: absolute;
  inset: 26px -18px -18px 26px;
  background: var(--pine);
  z-index: 0;
}
.frame .mat {
  position: relative;
  z-index: 1;
  background: var(--glacier-soft);
  border: 1px solid var(--pine);
  padding: clamp(12px, 1.6vw, 20px);
}
.frame img {
  width: 100%;
  border: 1px solid var(--line-strong);
}
.frame figcaption {
  margin-top: 12px;
  padding: 0 2px 2px;
  font-size: 13.5px;
  font-style: italic;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}
.frame figcaption::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--line-strong);
  flex: none;
}

.frame--plain::before { display: none; }

/* ---------- Faktenleiste ---------- */

.facts {
  border-bottom: 1px solid var(--line);
  background: var(--nebel-deep);
}
.facts .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-top: 0;
  padding-bottom: 0;
}
.fact {
  padding: 26px 26px 24px;
  border-left: 1px solid var(--line);
}
.fact:first-child { border-left: 0; padding-left: 0; }
.fact b {
  display: block;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--glacier-ink);
  margin-bottom: 8px;
}
.fact p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}
.fact a { color: var(--pine); }

/* ---------- Kapitel (große Ziffern) ---------- */

.chapter { padding: clamp(56px, 8vw, 104px) 0; border-bottom: 1px solid var(--line); }
.chapter--tint { background: var(--weiss); }
.chapter--glacier { background: var(--glacier-soft); }
.chapter:last-of-type { border-bottom: 0; }

.kap-head {
  display: flex;
  align-items: flex-end;
  gap: clamp(18px, 3vw, 34px);
  margin-bottom: clamp(30px, 4vw, 48px);
}
.kap-num {
  font-size: clamp(72px, 9vw, 128px);
  font-weight: 300;
  line-height: 0.82;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--glacier-ink);
  letter-spacing: -0.02em;
  flex: none;
  transform: translateY(4px);
}
.kap-head h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: -0.008em;
  margin: 0;
  max-width: 22ch;
}
.kap-head h2 em { font-style: italic; font-weight: 400; }

.kap-body { max-width: 760px; }
.kap-body p { font-size: 17.5px; }

.cols-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.4vw, 44px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }

/* ---------- Arabische Zeile ---------- */

.ar-line {
  direction: rtl;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.9;
  color: var(--pine-2);
  border-right: 3px solid var(--glacier);
  padding: 10px 26px 10px 0;
  margin: 30px 0 12px;
}
.ar-note {
  font-size: 14px;
  font-style: italic;
  color: var(--ink-soft);
}

/* ---------- Dunkle Bildtafel mit Scrim ---------- */

.band {
  position: relative;
  overflow: hidden;
  color: var(--nebel);
  border-bottom: 1px solid var(--line);
}
.band img.band-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.band .scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(16, 32, 25, 0.88) 0%, rgba(16, 32, 25, 0.68) 46%, rgba(16, 32, 25, 0.38) 100%);
}
.band .wrap {
  position: relative;
  z-index: 1;
  padding-top: clamp(72px, 10vw, 128px);
  padding-bottom: clamp(72px, 10vw, 128px);
}
.band .kicker { color: var(--glacier); }
.band .kicker::before { background: var(--glacier); }
.band h2 {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 300;
  line-height: 1.16;
  max-width: 20ch;
  margin: 0 0 20px;
}
.band p { color: rgba(240, 244, 241, 0.88); max-width: 52ch; font-size: 18px; }
.band a { color: var(--glacier); }

/* ---------- Schrittliste ---------- */

.steps { border-top: 1px solid var(--line-strong); }
.step {
  display: grid;
  grid-template-columns: clamp(84px, 10vw, 140px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px);
  padding: clamp(28px, 4vw, 44px) 0;
  border-bottom: 1px solid var(--line);
}
.step-num {
  font-size: clamp(56px, 6.5vw, 88px);
  font-weight: 300;
  line-height: 0.9;
  color: var(--glacier-ink);
}
.step h3 {
  font-size: clamp(21px, 2.2vw, 26px);
  font-weight: 400;
  margin: 6px 0 10px;
  letter-spacing: 0;
}
.step p { font-size: 16.5px; }

/* ---------- Karten ---------- */

.card {
  border: 1px solid var(--line-strong);
  background: var(--weiss);
  padding: clamp(26px, 3vw, 38px);
  position: relative;
}
.card .card-num {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--glacier-ink);
  display: block;
  margin-bottom: 14px;
}
.card h3 {
  font-size: clamp(21px, 2.2vw, 25px);
  font-weight: 400;
  margin: 0 0 12px;
}
.card p, .card li { font-size: 16px; }
.card ul { margin: 0; padding-left: 1.15em; }
.card li { margin-bottom: 0.5em; }

/* ---------- Tabellen ---------- */

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  background: var(--weiss);
  border: 1px solid var(--line-strong);
}
table.data caption {
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--glacier-ink);
  padding-bottom: 12px;
}
table.data th, table.data td {
  text-align: left;
  vertical-align: top;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}
table.data th {
  font-weight: 600;
  white-space: nowrap;
  width: 34%;
  color: var(--pine-2);
}
table.data tr:last-child th, table.data tr:last-child td { border-bottom: 0; }

/* ---------- Krisenblock ---------- */

.crisis {
  border: 1px solid var(--pine);
  background: var(--pine);
  color: var(--nebel);
  padding: clamp(30px, 4vw, 48px);
}
.crisis h2, .crisis h3 {
  color: var(--nebel);
  font-weight: 300;
  font-size: clamp(24px, 2.8vw, 34px);
  margin: 0 0 14px;
}
.crisis p { color: rgba(240, 244, 241, 0.86); }
.crisis-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(240, 244, 241, 0.22);
  border: 1px solid rgba(240, 244, 241, 0.22);
  margin-top: 26px;
}
.crisis-cell {
  background: var(--pine-2);
  padding: 22px 24px 20px;
}
.crisis-cell b {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--glacier);
  margin-bottom: 8px;
}
.crisis-cell a {
  color: var(--nebel);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 300;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.crisis-cell a:hover { color: var(--glacier); }
.crisis-cell span { display: block; font-size: 14px; color: rgba(240, 244, 241, 0.7); margin-top: 6px; }

/* ---------- Seitenkopf Unterseiten ---------- */

.pagehead {
  padding: clamp(48px, 7vw, 88px) 0 clamp(36px, 5vw, 60px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--nebel) 0%, var(--nebel-deep) 100%);
}
.pagehead h1 {
  font-size: clamp(36px, 4.8vw, 62px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  max-width: 18ch;
}
.pagehead h1 em { font-style: italic; font-weight: 400; }
.pagehead .lede {
  font-size: clamp(17.5px, 1.5vw, 20px);
  line-height: 1.62;
  color: var(--pine-2);
  max-width: 58ch;
  margin: 0;
}
.pagehead .kap-num { font-size: clamp(60px, 7vw, 96px); }

/* ---------- Fußnoten / Hinweise ---------- */

.note {
  font-size: 14px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 34px;
  max-width: 70ch;
}

/* ---------- Footer ---------- */

.sitefoot {
  background: var(--pine);
  color: rgba(240, 244, 241, 0.82);
  padding: clamp(44px, 6vw, 72px) 0 34px;
}
.sitefoot .wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: 36px 56px;
}
.sitefoot b {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--glacier);
  margin-bottom: 14px;
}
.sitefoot p { font-size: 15px; color: rgba(240, 244, 241, 0.82); }
.sitefoot a { color: var(--nebel); text-decoration: none; }
.sitefoot a:hover { color: var(--glacier); }
.sitefoot ul { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.sitefoot li { margin-bottom: 8px; }
.foot-brand { font-size: 21px; font-weight: 300; color: var(--nebel); margin-bottom: 10px; }
.foot-legal {
  border-top: 1px solid rgba(240, 244, 241, 0.18);
  margin-top: 40px;
  padding-top: 18px;
  font-size: 13px;
  color: rgba(240, 244, 241, 0.55);
  display: flex;
  justify-content: space-between;
  gap: 12px 32px;
  flex-wrap: wrap;
}

/* ---------- Reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
  .facts .wrap { grid-template-columns: 1fr 1fr; }
  .fact { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .fact:nth-child(-n+2) { border-top: 0; }
  .split, .split--even { grid-template-columns: 1fr; }
  .cols-2, .cols-3 { grid-template-columns: 1fr; }
  .crisis-grid { grid-template-columns: 1fr; }
  .sitefoot .wrap { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .sitehead .wrap { flex-direction: column; align-items: flex-start; gap: 14px; }
  .sitenav { gap: 2px 18px; font-size: 12px; }
  .hero { padding-top: 40px; }
  .frame::before { inset: 16px -10px -10px 16px; }
  .facts .wrap { grid-template-columns: 1fr; }
  .fact { border-top: 1px solid var(--line); }
  .fact:first-child { border-top: 0; }
  .step { grid-template-columns: 64px minmax(0, 1fr); }
  table.data th, table.data td { padding: 11px 12px; font-size: 15px; }
  table.data th { width: 40%; }
  .kap-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .kap-num { transform: none; }
}


/* ============================================================
   CRAFT-LAYER (design-craft.md, auto-rollup)
   ============================================================ */

::selection { background: #E3EBE6; color: #F0F4F1; }

body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 200;
  opacity: 0.5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='khn'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23khn)'/%3E%3C/svg%3E");
}

/* Craft: Sektionsluft */
section, .section, .content-section, .kapitel, .abschnitt, .sektion {
  padding-top: clamp(4rem, 9vw, 8rem) !important;
  padding-bottom: clamp(4rem, 9vw, 8rem) !important;
}

/* Craft: Ticker */
.ticker {
  background: #E3EBE6; color: #F0F4F1;
  overflow: hidden; white-space: nowrap; padding: 0.8rem 0;
}
.ticker-inhalt {
  display: inline-block; animation: lauf 30s linear infinite;
  font-family: Spectral; font-size: 0.95rem; letter-spacing: 0.06em;
}
.ticker-inhalt span { margin: 0 1.6rem; }
.ticker-inhalt .stern { opacity: 0.55; }
@keyframes lauf { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-inhalt { animation: none; } }

/* Craft: Badge */
.badge {
  position: absolute; z-index: 5;
  right: clamp(0.5rem, 4vw, 3rem); bottom: 1.2rem;
  width: clamp(118px, 12.5vw, 152px); height: clamp(118px, 12.5vw, 152px);
  animation: drehen 26s linear infinite;
}
.badge text {
  font-family: Spectral; font-size: 8.4px;
  letter-spacing: 0.3em; text-transform: uppercase; fill: #F0F4F1;
}
.badge circle { fill: #E3EBE6; }
@keyframes drehen { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .badge { animation: none; } }

/* Craft: Riesiges CTA */
.cta-riesig {
  background: #E3EBE6; color: #F0F4F1;
  padding: clamp(3.2rem, 7.5vw, 6rem) clamp(1.1rem, 4vw, 3rem);
}
.cta-riesig .wrap, .cta-riesig .blatt, .cta-riesig .flaeche, .cta-riesig .inhalt,
.cta-riesig .buch, .cta-riesig .register, .cta-riesig .magazin {
  max-width: 1080px; margin: 0 auto; padding: 0;
}
.cta-riesig h2 {
  font-family: Spectral; font-weight: 600;
  font-size: clamp(2.6rem, 7.5vw, 5.8rem); line-height: 1.02;
  letter-spacing: -0.015em; max-width: 15ch; margin-bottom: 1.6rem;
  color: #F0F4F1;
}
.cta-riesig h2 em { font-style: italic; font-weight: 400; opacity: 0.75; }
.cta-telefon {
  font-family: Spectral; font-weight: 600;
  font-size: clamp(1.5rem, 4.2vw, 3rem);
  display: inline-block; border-bottom: 3px solid #F0F4F1;
  padding-bottom: 0.25rem; color: #F0F4F1;
}
.cta-telefon:hover { opacity: 0.8; }
.cta-zeilen {
  max-width: 720px; margin: 2.4rem 0 0;
  border-top: 1px solid rgba(128,128,128,0.3); padding-top: 1.3rem;
  font-size: 0.87rem; display: grid; gap: 0.4rem;
}
