/* Wer spricht Recht? — Stylesheet
   Schriften lokal eingebunden (keine Verbindung zu Drittanbietern).
   Farben zentral über die Variablen unten anpassen. */

@font-face {
  font-family: "WSR Schola";
  src: url("fonts/texgyreschola-regular.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "WSR Schola";
  src: url("fonts/texgyreschola-italic.woff") format("woff");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "WSR Schola";
  src: url("fonts/texgyreschola-bold.woff") format("woff");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "WSR Heros Cn";
  src: url("fonts/texgyreheroscn-bold.woff") format("woff");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --paper: #faf8f9;
  --paper-2: #f2edf0;
  --ink: #1b1620;
  --ink-2: #5a5360;
  --rule: #ddd5da;
  --accent: #c4006a;
  --accent-ink: #ffffff;
  --accent-wash: #f8e5ef;

  --serif: "WSR Schola", "Century Schoolbook", "New Century Schoolbook", "TeX Gyre Schola", Georgia, serif;
  --cond: "WSR Heros Cn", "Helvetica Neue", "Arial Narrow", Arial, sans-serif;

  --fs-display: clamp(3.25rem, 11vw, 8.5rem);
  --fs-h2: clamp(2rem, 4.4vw, 3.1rem);
  --fs-h3: 1.375rem;
  --fs-lede: clamp(1.2rem, 2.1vw, 1.45rem);
  --fs-body: 1.125rem;
  --fs-small: 0.975rem;
  --fs-label: 0.8125rem;

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 74rem;
  --measure: 40rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #151217;
    --paper-2: #1e1a21;
    --ink: #f1ecf0;
    --ink-2: #b3aab3;
    --rule: #3a333d;
    --accent: #ff5aae;
    --accent-ink: #1a0710;
    --accent-wash: #3b1a2d;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #151217;
  --paper-2: #1e1a21;
  --ink: #f1ecf0;
  --ink-2: #b3aab3;
  --rule: #3a333d;
  --accent: #ff5aae;
  --accent-ink: #1a0710;
  --accent-wash: #3b1a2d;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 1px; }

h1, h2, h3 { font-weight: 700; text-wrap: balance; margin: 0; }
h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.012em; }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
p { margin: 0; hyphens: auto; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 0.5rem; background: var(--ink); color: var(--paper); padding: 0.5rem 0.75rem; z-index: 10; }

/* Beschriftungen: schmale Grotesk, Versalien */
.label {
  font-family: var(--cond);
  font-weight: 700;
  font-size: var(--fs-label);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--ink-2);
}
.label--accent { color: var(--accent); }
.sc { font-variant-caps: small-caps; letter-spacing: 0.02em; }

/* ---------- Kopf ---------- */
.masthead { border-bottom: 3px double var(--ink); }
.mast-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 2rem; padding-block: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.signet { width: 2.1rem; height: 2.1rem; flex: none; }
.signet .bubble { fill: var(--accent); }
.signet .mark { fill: var(--accent-ink); }
.brand-name { font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; }

.nav { display: flex; gap: 1.4rem; align-items: center; }
.nav a {
  font-family: var(--cond); font-weight: 700; font-size: var(--fs-label);
  letter-spacing: 0.09em; text-transform: uppercase; text-decoration: none; color: var(--ink);
  padding-block: 0.35rem; white-space: nowrap;
}
.nav a:hover { color: var(--accent); }
.nav .nav-cta { color: var(--accent); }

@media (max-width: 52rem) {
  .nav {
    width: 100%; overflow-x: auto; gap: 1.25rem; padding-bottom: 0.1rem;
    border-top: 1px solid var(--rule); padding-top: 0.6rem; scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5.5rem); }
.hero-title {
  font-size: var(--fs-display);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-top: 1.1rem;
}
.hero-title .q { color: var(--accent); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem; margin-top: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 4.5rem; align-items: end; }
}
.lede { font-size: var(--fs-lede); line-height: 1.5; max-width: 36rem; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; align-items: center; margin-top: 2rem; }

.btn {
  display: inline-block;
  font-family: var(--cond); font-weight: 700; font-size: 0.875rem;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.95rem 1.3rem; border: 1px solid var(--accent);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: transparent; color: var(--accent); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }

.more {
  font-family: var(--cond); font-weight: 700; font-size: 0.875rem;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
}
.more::after { content: " \2192"; color: var(--accent); }

.hero-quote { border-top: 1px solid var(--ink); padding-top: 1.1rem; }
.hero-quote blockquote { margin: 0; }
.hero-quote blockquote p { font-style: italic; font-size: 1.55rem; line-height: 1.3; hyphens: manual; }
.hero-quote .label { margin-top: 0.7rem; }
.motto { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: var(--fs-small); }

/* ---------- Abschnitte ---------- */
.section { border-top: 1px solid var(--rule); }
.section-inner {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem 3.5rem; padding-block: clamp(3.5rem, 8vw, 6rem);
}
@media (min-width: 60rem) {
  .section-inner { grid-template-columns: 13.5rem minmax(0, 1fr); }
}
.marg { display: flex; flex-direction: column; gap: 1.5rem; align-self: start; }
@media (min-width: 60rem) { .marg { position: sticky; top: 1.5rem; } }
.norm-note { border-top: 1px solid var(--rule); padding-top: 0.8rem; max-width: 24rem; }
.norm-note p { font-size: 0.95rem; font-style: italic; line-height: 1.45; color: var(--ink-2); margin-top: 0.35rem; }

.main { min-width: 0; display: flex; flex-direction: column; gap: 2.5rem; }
.main > h2 { max-width: 22ch; }
.prose { max-width: var(--measure); }
.prose p + p { margin-top: 1rem; }

/* Anliegen: drei Spalten */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2rem 2.5rem; }
.col { border-top: 2px solid var(--ink); padding-top: 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.col p { font-size: var(--fs-small); line-height: 1.6; }

/* Berufe */
.roles { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.roles li {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.4rem 2rem;
  padding-block: 1.3rem; border-top: 1px solid var(--rule);
}
@media (min-width: 48rem) {
  .roles li { grid-template-columns: 14rem minmax(0, 1fr) 9.5rem; align-items: baseline; }
  .roles .label { text-align: right; }
}
.roles p { font-size: var(--fs-small); max-width: 34rem; }

.path-head { display: flex; flex-direction: column; gap: 0.4rem; }
.path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; counter-reset: step; }
.path li { counter-increment: step; position: relative; padding: 0 0 1.6rem 2.6rem; }
.path li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0.05rem;
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--cond); font-weight: 700; font-size: 0.8rem;
  background: var(--paper); color: var(--ink); border: 1px solid var(--ink);
}
.path li::after {
  content: ""; position: absolute; left: calc(0.85rem - 0.5px); top: 1.9rem; bottom: 0.15rem;
  border-left: 1px solid var(--rule);
}
.path li:last-child::before { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.path li:last-child::after { display: none; }
.path h3 { font-size: 1.1rem; }
.path p { font-size: 0.95rem; color: var(--ink-2); margin-top: 0.25rem; }
@media (min-width: 60rem) {
  .path { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem; }
  .path li { padding: 2.6rem 0 0 0; }
  .path li::after { left: 2.2rem; right: -1.75rem; top: 0.85rem; bottom: auto; border-left: 0; border-top: 1px solid var(--rule); }
}
.aside-note { font-size: 0.95rem; color: var(--ink-2); max-width: var(--measure); border-top: 1px solid var(--rule); padding-top: 1rem; }
.aside-note strong { color: var(--ink); }

/* Formate */
.stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 2.5rem; }
.stage { display: flex; flex-direction: column; gap: 0.7rem; border-top: 2px solid var(--ink); padding-top: 1rem; }
.stage p { font-size: var(--fs-small); }
.also { display: flex; flex-wrap: wrap; gap: 0.5rem 0; align-items: baseline; border-top: 1px solid var(--rule); padding-top: 1rem; }
.also .label { margin-right: 1rem; }
.also ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 0; }
.also li { font-size: var(--fs-small); }
.also li + li::before { content: "·"; color: var(--accent); margin-inline: 0.6rem; }
.motto-line { font-style: italic; color: var(--ink-2); font-size: var(--fs-small); width: 100%; margin-top: 0.35rem; }

.photo { margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; max-width: 100%; }
.photo figcaption { font-size: 0.9rem; color: var(--ink-2); font-style: italic; }

/* Stand */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
@media (min-width: 48rem) { .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }
.timeline li { border-top: 1px solid var(--ink); padding-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.timeline li p { font-size: var(--fs-small); }
.timeline .now { border-top: 3px solid var(--accent); padding-top: calc(1rem - 2px); }
.tag {
  align-self: flex-start;
  font-family: var(--cond); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.09em; text-transform: uppercase;
  background: var(--accent-wash); color: var(--accent); padding: 0.2rem 0.45rem;
}

/* Team */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2.5rem; max-width: 46rem; }
.person { display: flex; flex-direction: column; gap: 0.5rem; }
.portrait {
  position: relative; aspect-ratio: 4 / 5; max-width: 100%;
  background: var(--paper-2); border: 1px solid var(--rule); margin-bottom: 0.6rem; overflow: hidden;
  display: grid; place-items: center;
}
.portrait .initials { font-size: 3.2rem; font-weight: 700; color: var(--ink-2); opacity: 0.45; letter-spacing: 0.02em; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.person h3 { font-size: 1.3rem; }
.person p { font-size: var(--fs-small); color: var(--ink-2); }

.board { display: flex; flex-direction: column; gap: 1rem; }
.board-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); max-width: 46rem; }
.board-list li { border-top: 1px solid var(--rule); padding-block: 1rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.2rem 2rem; }
@media (min-width: 48rem) { .board-list li { grid-template-columns: 16rem minmax(0, 1fr); align-items: baseline; } }
.board-list .name { font-weight: 700; }
.board-list p { font-size: var(--fs-small); color: var(--ink-2); }

/* Mitmachen */
.section--tint { background: var(--paper-2); }
.join { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2.5rem; }
.join-item { display: flex; flex-direction: column; gap: 0.7rem; border-top: 2px solid var(--ink); padding-top: 1rem; }
.join-item p { font-size: var(--fs-small); flex: 1; }
.join-item .btn { align-self: flex-start; margin-top: 0.6rem; }

/* Kontakt */
.contact-mail {
  font-size: clamp(1.35rem, 4.2vw, 2.6rem); font-weight: 700; letter-spacing: -0.01em;
  overflow-wrap: anywhere; text-decoration-thickness: 2px;
}

/* Fuß */
.footer { border-top: 3px double var(--ink); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; padding-block: 1.75rem 2.5rem; }
.footer .brand-name { font-size: 1.05rem; }
.footer .signet { width: 1.6rem; height: 1.6rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-links a { font-family: var(--cond); font-weight: 700; font-size: var(--fs-label); letter-spacing: 0.09em; text-transform: uppercase; text-decoration: none; }
.footer small { font-size: 0.85rem; color: var(--ink-2); }

/* Rechtstexte */
.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3.5rem, 8vw, 6rem); }
.legal h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); line-height: 1.05; letter-spacing: -0.02em; margin-top: 0.8rem; }
.legal-body { max-width: var(--measure); margin-top: 2.5rem; display: flex; flex-direction: column; gap: 2.25rem; }
.legal-body section { display: flex; flex-direction: column; gap: 0.7rem; }
.legal-body h2 { font-size: 1.3rem; line-height: 1.3; }
.legal-body p, .legal-body li { font-size: var(--fs-small); }
.legal-body ul { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.35rem; }
.legal-body address { font-style: normal; font-size: var(--fs-small); }
.ph { background: var(--accent-wash); color: var(--accent); padding: 0 0.25em; border-bottom: 1px dashed var(--accent); }
.back { display: inline-block; margin-top: 0.25rem; }

/* Vorbild */
.pull { margin: 0; max-width: 44rem; display: flex; flex-direction: column; gap: 0.9rem; }
.pull p { font-style: italic; font-size: clamp(1.45rem, 2.8vw, 2.05rem); line-height: 1.3; hyphens: manual; text-wrap: pretty; }
.pull p::first-letter { color: var(--accent); }
.chron { margin: 0.6rem 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.45rem 0.8rem; }
.chron dt { font-family: var(--cond); font-weight: 700; font-size: var(--fs-label); letter-spacing: 0.06em; color: var(--ink); font-variant-numeric: tabular-nums; padding-top: 0.12rem; }
.chron dd { margin: 0; font-size: 0.9rem; line-height: 1.4; color: var(--ink-2); }
.norm-note .label { font-style: normal; color: var(--ink); }
@media (max-width: 59.99rem) { #vorbild .marg { order: 2; } }
