/* ---------------------------------------------------------------------------
   felsenberg.org — Stylesheet
   Haltung: institutionelle Ruhe. Typografie trägt alles.
   Keine externen Ressourcen: Systemschriften, keine Webfonts, keine Tracker.
   --------------------------------------------------------------------------- */

:root {
  --papier:      #fbfaf8;
  --papier-tief: #f2efe9;
  --tinte:       #1a1d21;
  --gedaempft:   #5c6169;
  --linie:       #ddd8d0;
  --akzent:      #8c3b28;
  --akzent-hell: #a8523c;

  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --mass:   68ch;
  --breite: 1120px;
  --rand:   clamp(1.25rem, 5vw, 3.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --papier:      #16181b;
    --papier-tief: #1d2024;
    --tinte:       #e8e4de;
    --gedaempft:   #9aa0a8;
    --linie:       #32363c;
    --akzent:      #cd7d63;
    --akzent-hell: #e09479;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--serif);
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.1875rem);
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

/* --- Grundelemente ------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.011em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.15rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.05rem); margin-top: 2.6em; }
h3 { font-size: clamp(1.16rem, 1.06rem + 0.5vw, 1.36rem); margin-top: 2em; }

p { margin: 0 0 1.35em; max-width: var(--mass); }

a { color: var(--akzent); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--akzent) 32%, transparent); transition: border-color .18s, color .18s; }
a:hover { color: var(--akzent-hell); border-bottom-color: var(--akzent-hell); }
a:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; border-radius: 2px; }

strong { font-weight: 700; }

hr { border: 0; border-top: 1px solid var(--linie); margin: 3.5rem 0; }

/* Auszeichnungsschrift für Navigation, Daten, Etiketten */
.sans, nav, .etikett, .jahr, .meta, footer, th, .karte-jahr, .taste {
  font-family: var(--sans);
}

.etikett {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gedaempft);
  margin-bottom: 1.4rem;
  font-weight: 500;
}

.lead {
  font-size: clamp(1.18rem, 1.05rem + 0.6vw, 1.44rem);
  line-height: 1.55;
  color: var(--tinte);
}

.gedaempft { color: var(--gedaempft); }

/* --- Gerüst -------------------------------------------------------------- */

.huelle { max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }
.schmal { max-width: 74ch; }

main { display: block; padding-bottom: 5rem; }

section { margin: 4.5rem 0; }

/* --- Kopf ---------------------------------------------------------------- */

.kopf {
  border-bottom: 1px solid var(--linie);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--papier) 92%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  z-index: 50;
}

.kopf-innen {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  flex-wrap: wrap;
}

.wortmarke {
  font-family: var(--serif);
  font-size: 1.06rem;
  letter-spacing: 0.02em;
  color: var(--tinte);
  border: 0;
  white-space: nowrap;
}
.wortmarke:hover { color: var(--tinte); }
.wortmarke .vorname { color: var(--gedaempft); }

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.35rem;
  margin: 0;
  padding: 0;
  font-size: 0.86rem;
}

nav a {
  color: var(--gedaempft);
  border: 0;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
nav a:hover { color: var(--tinte); border-bottom-color: var(--linie); }
nav a[aria-current="page"] { color: var(--tinte); border-bottom-color: var(--akzent); }

/* Sprachumschalter — noch inaktiv, englische Fassung folgt */
.sprache {
  font-size: 0.78rem;
  color: var(--gedaempft);
  letter-spacing: 0.06em;
}
.sprache .aktiv { color: var(--tinte); }
.sprache .kommt {
  opacity: 0.45;
  cursor: not-allowed;
  border: 0;
  color: var(--gedaempft);
}

/* --- Startseite: Aufschlag ----------------------------------------------- */

.aufschlag { padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem); }

.aufschlag-raster {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

@media (max-width: 860px) {
  .aufschlag-raster { grid-template-columns: 1fr; }
}

.these {
  font-size: clamp(1.85rem, 1.2rem + 2.5vw, 2.9rem);
  line-height: 1.16;
  letter-spacing: -0.017em;
  margin: 0 0 1.1em;
  max-width: 19ch;
}

.aufschlag .lead { max-width: 54ch; }

/* Portrait — bis zum echten Foto ein typografischer Platzhalter */
.portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--papier-tief);
  border: 1px solid var(--linie);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: var(--gedaempft);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 1.5rem;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait-initialen {
  font-family: var(--serif);
  font-size: 3.2rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--linie);
}

/* --- Belegkarten --------------------------------------------------------- */

.belege {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0;
  border-top: 1px solid var(--linie);
}

.beleg {
  padding: 2rem clamp(1rem, 2.2vw, 1.9rem) 2.2rem;
  border-bottom: 1px solid var(--linie);
  border-right: 1px solid var(--linie);
}
.beleg:last-child { border-right: 0; }

@media (max-width: 700px) {
  .beleg { border-right: 0; }
}

.karte-jahr {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--akzent);
  display: block;
  margin-bottom: 0.5rem;
}

.beleg h3 { margin: 0 0 0.5rem; font-size: 1.16rem; }
.beleg p { font-size: 0.94rem; line-height: 1.6; color: var(--gedaempft); margin: 0; }

/* --- Zwei gleichrangige Einstiege (Mandat / Beratung) -------------------- */

.einstiege {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
}

.einstieg {
  border-top: 2px solid var(--tinte);
  padding-top: 1.6rem;
}
.einstieg h3 { margin-top: 0; }
.einstieg p { font-size: 0.99rem; }

.taste {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  border: 0;
  border-bottom: 1px solid var(--akzent);
  padding-bottom: 2px;
  color: var(--akzent);
}
.taste::after { content: " →"; }

/* --- Zeitleiste ---------------------------------------------------------- */

.zeitleiste { list-style: none; margin: 2rem 0 0; padding: 0; max-width: 60ch; }

.zeitleiste li {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1.5rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--linie);
  align-items: baseline;
}

@media (max-width: 620px) {
  .zeitleiste li { grid-template-columns: 1fr; gap: 0.25rem; }
}

.zeitleiste .jahr {
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--gedaempft);
  white-space: nowrap;
}
.zeitleiste .station { font-size: 1rem; line-height: 1.5; }
.zeitleiste .station em { color: var(--gedaempft); font-style: italic; }

/* --- Fallstudien --------------------------------------------------------- */

.fall {
  border-top: 1px solid var(--linie);
  padding-top: 2.5rem;
  margin-top: 3.5rem;
}
.fall:first-of-type { margin-top: 2rem; }

.fall-kopf {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}
.fall-kopf h2 { margin: 0; }
.fall-kopf .jahr { font-size: 0.82rem; letter-spacing: 0.08em; color: var(--akzent); }

.fall h3 {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gedaempft);
  margin: 1.9em 0 0.55em;
  font-weight: 500;
}

/* --- Arbeitsfelder ------------------------------------------------------- */

.feld {
  border-top: 1px solid var(--linie);
  padding-top: 2.2rem;
  margin-top: 3.2rem;
}
.feld-nummer {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--akzent);
  display: block;
  margin-bottom: 0.55rem;
}
.feld h2 { margin-top: 0; }

.merkmale { list-style: none; padding: 0; margin: 0 0 1.4em; max-width: var(--mass); }
.merkmale li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.55em;
  font-size: 0.99rem;
  line-height: 1.6;
}
.merkmale li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--akzent);
}

/* --- Tabellen (Mandate) -------------------------------------------------- */

.tabelle-huelle { overflow-x: auto; margin: 1.5rem 0 2.5rem; }

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: 0.95rem;
}

th {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gedaempft);
  font-weight: 500;
  padding: 0 1rem 0.7rem 0;
  border-bottom: 1px solid var(--tinte);
}

td {
  padding: 0.85rem 1rem 0.85rem 0;
  border-bottom: 1px solid var(--linie);
  vertical-align: top;
  line-height: 1.5;
}
td:last-child, th:last-child { padding-right: 0; }
.spalte-jahr { white-space: nowrap; font-family: var(--sans); font-size: 0.85rem; color: var(--gedaempft); }

/* --- Kontakt ------------------------------------------------------------- */

.kontaktdaten { list-style: none; padding: 0; margin: 2rem 0; }
.kontaktdaten li {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.5rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--linie);
  max-width: 46ch;
}
@media (max-width: 620px) {
  .kontaktdaten li { grid-template-columns: 1fr; gap: 0.2rem; }
}
.kontaktdaten .art {
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gedaempft);
  padding-top: 0.25rem;
}

/* --- Hinweisblock (TODO / unbestätigt) ----------------------------------- */

.hinweis {
  border-left: 3px solid var(--akzent);
  background: var(--papier-tief);
  padding: 1.1rem 1.4rem;
  margin: 2.5rem 0;
  font-family: var(--sans);
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--gedaempft);
  max-width: var(--mass);
}
.hinweis strong { color: var(--tinte); }

/* --- Fuss ---------------------------------------------------------------- */

footer {
  border-top: 1px solid var(--linie);
  padding: 2.5rem 0 3.5rem;
  font-size: 0.84rem;
  color: var(--gedaempft);
}

.fuss-innen {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  flex-wrap: wrap;
  align-items: baseline;
}

footer a { color: var(--gedaempft); border-bottom-color: transparent; }
footer a:hover { color: var(--tinte); }

.fuss-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }

.fuss-notiz { max-width: 42ch; line-height: 1.55; }

/* --- Bewegung: sparsam --------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .einblenden {
    animation: einblenden 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }
  @keyframes einblenden {
    from { opacity: 0; transform: translateY(9px); }
    to   { opacity: 1; transform: none; }
  }
}

/* --- Druck --------------------------------------------------------------- */

@media print {
  .kopf, footer .fuss-links, .portrait { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; border: 0; }
}
