/* geschichtsdienste.de – Tobias Deterding
   Schriften: css/schriften.css (lokal) */

:root {
  --papier: #efe9dc;
  --papier-2: #e4dccb;
  --papier-3: #d3cab4;
  --tinte: #221d18;
  --tinte-2: #5a5148;
  --gruen: #2b3f36;
  --gruen-hell: #c9d5cc;
  --rot: #8f3126;
  --karte: #faf7ef;
  --tintenblau: #1f2c42;
  --karton-hell: #e2dbca;

  --serif: "Alegreya", Georgia, "Times New Roman", serif;
  --sans: "Archivo", Arial, sans-serif;
  --display: "Old Standard TT", "Times New Roman", serif;

  --maxw: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (max-width: 860px) { html { scroll-padding-top: 104px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* leichte Papierstruktur */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rot); }

:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--tinte); color: var(--papier); padding: .5em 1em; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Überschriften ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  margin: 0;
}
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.45rem; line-height: 1.2; }

.intro { max-width: 34em; color: var(--tinte-2); margin: 1rem 0 0; }

.knopf {
  display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 1.02rem;
  background: var(--gruen); color: #fff; text-decoration: none;
  padding: .8rem 1.3rem; border-radius: 2px;
}
.knopf:hover { background: var(--rot); color: #fff; }

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

.kopf {
  border-bottom: 1px solid var(--papier-3);
  background: var(--papier);
  position: sticky; top: 0; z-index: 5;
}
.kopf .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 68px;
}
.marke { text-decoration: none; display: flex; align-items: center; gap: .7rem; line-height: 1.1; }
.marke .siegel { width: 44px; height: 44px; color: var(--rot); flex: none; transform: rotate(-8deg); }
.marke-text { display: flex; flex-direction: column; }
.marke b { font-family: var(--display); font-weight: 700; font-size: 1.3rem; }
.marke span { font-size: .9rem; color: var(--tinte-2); font-style: italic; }
.marke:hover { color: var(--tinte); }

.nav { display: flex; gap: clamp(.9rem, 2vw, 1.8rem); }
.nav a {
  font-family: var(--sans); font-size: .98rem; font-weight: 500;
  text-decoration: none; padding: .4rem 0; white-space: nowrap;
}
.nav a:hover { color: var(--rot); }
.nav .nav-kontakt { background: var(--tinte); color: var(--papier); padding: .45rem .95rem; border-radius: 2px; }
.nav .nav-kontakt:hover { background: var(--rot); color: #fff; }

@media (max-width: 860px) {
  .kopf .wrap { flex-wrap: wrap; padding-top: .6rem; padding-bottom: .4rem; gap: .3rem; }
  .nav { width: 100%; overflow-x: auto; gap: 1.1rem; padding-bottom: .2rem; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
}

/* ---------- Hero ---------- */

.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 6.5rem); }
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.dachzeile-hero { font-family: var(--sans); font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--rot); margin: 0 0 .8rem; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.05; max-width: 12em; }
.hero .lead { max-width: 28em; margin: 1.8rem 0 0; font-size: 1.22rem; }
.knoepfe { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; margin-top: 2rem; align-items: center; }
.knopf { transition: background-color .25s, transform .25s; }
.knopf:hover { transform: translateY(-2px); }

/* Porträt mit Karteikarte */
.portraet { position: relative; margin: 0 0 4.5rem 2.5rem; }
.portraet img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top;
  box-shadow: 0 30px 50px -30px rgba(34, 29, 24, .6);
}

.karte {
  --zeile: 1.6rem;
  position: absolute; left: -2.5rem; bottom: -4rem; width: min(20rem, 88%);
  background: var(--karte);
  border: 1px solid #d8d1c0;
  box-shadow: 0 1px 0 #d8d1c0, 0 18px 40px -22px rgba(34, 29, 24, .6);
  padding: 1.1rem 1.3rem 2.4rem;
  transform: rotate(-2deg);
  font-size: 1rem;
  line-height: var(--zeile);
}
.karte::after { /* Lochung */
  content: ""; position: absolute; left: 50%; bottom: .75rem; width: 13px; height: 13px;
  margin-left: -6px; border-radius: 50%; background: var(--papier); border: 1px solid #d8d1c0;
}
.karte-kopf {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  border-bottom: 2px solid var(--rot); padding-bottom: .4rem; margin-bottom: .5rem;
}
.karte-kopf strong { font-family: var(--display); font-size: 1.3rem; }
.karte-kopf small { color: var(--tinte-2); font-size: .85rem; }
.karte dl {
  margin: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 1rem;
  background-image: linear-gradient(to bottom, transparent calc(var(--zeile) - 1px), #c9d5e3 calc(var(--zeile) - 1px));
  background-size: 100% var(--zeile);
}
.karte dt { color: var(--tinte-2); font-style: italic; }
.karte dd { margin: 0; }

.stempel {
  position: absolute; right: -1rem; top: -1.4rem;
  display: block; text-decoration: none; text-align: center;
  color: var(--rot); border: 3px double var(--rot); border-radius: 6px;
  padding: .4rem .75rem .45rem;
  font-family: var(--sans); font-weight: 700; line-height: 1.1;
  transform: rotate(7deg);
  background: rgba(250, 247, 239, .8);
  mix-blend-mode: multiply;
}
.stempel span { display: block; font-size: 1.1rem; }
.stempel small { display: block; font-size: .76rem; font-weight: 500; margin-top: .1rem; }
.stempel:hover { color: #fff; background: var(--rot); mix-blend-mode: normal; }

@media (prefers-reduced-motion: no-preference) {
  /* Einstieg: Text taucht auf, das Foto „entwickelt“ sich, die Karte wird hingelegt, dann gestempelt */
  .hero .dachzeile-hero, .hero h1, .hero .lead, .hero .knoepfe { animation: auftauchen .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero h1 { animation-delay: .12s; }
  .hero .lead { animation-delay: .28s; }
  .hero .knoepfe { animation-delay: .42s; }
  .portraet img { animation: foto-ein 1.4s cubic-bezier(.2, .7, .2, 1) .1s both; }
  .karte { animation: hinlegen .9s cubic-bezier(.2, .8, .2, 1) 1s both; }
  .stempel { animation: stempeln .45s cubic-bezier(.3, 1.6, .5, 1) 1.9s both; }
  @keyframes auftauchen { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes foto-ein { from { opacity: 0; transform: scale(1.025); } to { opacity: 1; transform: none; } }
  @keyframes hinlegen {
    from { opacity: 0; transform: translate(-40px, 40px) rotate(-9deg); }
    to   { opacity: 1; transform: rotate(-2deg); }
  }
  @keyframes stempeln {
    from { opacity: 0; transform: rotate(2deg) scale(1.6); }
    to   { opacity: 1; transform: rotate(7deg) scale(1); }
  }

  /* Beim Scrollen */
  .js .einblenden {
    opacity: 0; transform: translateY(26px);
    transition: opacity .8s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
    transition-delay: calc(var(--i, 0) * 110ms);
  }
  .js .einblenden.sichtbar { opacity: 1; transform: none; }
  .js .verzeichnis li.einblenden { transform: translateY(16px); transition-delay: calc(var(--i, 0) * 70ms); }
  .js .verzeichnis li.einblenden.sichtbar { transform: none; }
  .js .mappe.einblenden { transform: translateY(-22px); transition-duration: .7s, .9s; transition-timing-function: ease, cubic-bezier(.3, 1.4, .5, 1); }
  .js .mappe.einblenden.sichtbar { transform: none; }
  .js .visitenkarte.einblenden { transform: translateY(26px) rotate(-5deg); }
  .js .visitenkarte.einblenden.sichtbar { transform: rotate(-1.5deg); }
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .portraet { margin: 1rem 0 3rem; max-width: 30rem; }
  .karte { left: 1rem; }
}

/* ---------- Wanderausstellungen ---------- */

.leihgaben { background: var(--gruen); color: #ede8dc; padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.leihgaben .intro { color: var(--gruen-hell); }
.leihgaben a:hover { color: #fff; }

.banner-reihe {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.4vw, 2rem);
  margin-top: 3rem; align-items: stretch;
}
.banner {
  position: relative; display: flex; flex-direction: column;
  background: #1a1612; color: #f2ede2; padding: 0 0 1.6rem;
  box-shadow: 0 30px 40px -30px rgba(0, 0, 0, .8);
}
.banner-bild { overflow: hidden; aspect-ratio: 4 / 3; }
.banner-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.banner.strom .banner-bild img { object-position: 50% 42%; }
.banner.licht .banner-bild img { object-position: 45% 50%; }
.banner.hexen .banner-bild img { object-position: 45% 55%; }
.banner:hover .banner-bild img { transform: scale(1.04); }
.banner-text { padding: 1.3rem 1.5rem 0; display: flex; flex-direction: column; flex: 1; }
.banner h3 { font-size: clamp(1.6rem, 2.2vw, 1.9rem); font-weight: 700; line-height: 1.05; }
.banner h3 { color: #f0dfae; }
.banner .unterzeile { font-style: italic; margin: .5rem 0 .9rem; font-size: 1.08rem; line-height: 1.35; }
.banner p { margin: 0 0 1rem; font-size: 1rem; line-height: 1.5; }
.banner .fakten { margin: auto 0 0; padding: .8rem 0 0; border-top: 1px solid rgba(255, 255, 255, .18); font-size: .92rem; color: #bdb6a8; line-height: 1.45; }
.banner .pdf { display: inline-block; margin-top: .9rem; font-family: var(--sans); font-weight: 600; font-size: .98rem; }

.leih-hinweis {
  display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; align-items: center;
  margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, .2);
}
.leih-hinweis p { margin: 0; max-width: 40em; }
.leih-hinweis .knopf { background: #fff; color: var(--gruen); }
.leih-hinweis .knopf:hover { background: var(--rot); color: #fff; }

@media (max-width: 960px) {
  .banner-reihe { grid-template-columns: 1fr; gap: 2.6rem; }
  .leih-hinweis { grid-template-columns: 1fr; }
}

/* ---------- Leistungen ---------- */

.abschnitt { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.abschnitt + .abschnitt { border-top: 1px solid var(--papier-3); }

.leistungen-raster {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem clamp(1.5rem, 3.5vw, 3.5rem);
  margin-top: 3rem;
}
.leistung img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 1.3rem; }
.leistung h3 { padding-top: 1rem; border-top: 3px solid var(--tinte); }
.leistung p { margin: .7rem 0 .3rem; }
.leistung ul { margin: 0; padding: 0 0 0 1.1em; list-style: none; }
.leistung li { position: relative; padding: .12rem 0; line-height: 1.4; }
.leistung li::before { content: ""; position: absolute; left: -1.1em; top: .72em; width: .45em; height: .45em; background: var(--rot); border-radius: 50%; }

/* Notizzettel: gerissenes Papier als border-image, Klebestreifen darüber */
.zettel {
  position: relative; margin: 2.2rem .3rem 0 .1rem;
  transform: rotate(-1.2deg);
  filter: drop-shadow(0 10px 12px rgba(34, 29, 24, .28));
}
.leistung:nth-child(2) .zettel { transform: rotate(.9deg); }
.leistung:nth-child(3) .zettel { transform: rotate(-.6deg); }
.zettel-papier {
  border: 34px solid transparent;
  border-image: url("../bilder/zettel-papier.webp") 90 fill / 34px stretch;
  margin: -.8rem -.6rem; padding: .2rem .2rem 0;
  color: var(--tinte); font-size: 1rem; line-height: 1.45;
}
.klebestreifen {
  position: absolute; z-index: 1; top: -.9rem; left: 50%; width: 5.8rem; height: 1.6rem; margin-left: -2.9rem;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .12) 0 2px, transparent 2px 5px),
    linear-gradient(90deg, rgba(214, 196, 148, .7), rgba(228, 214, 172, .8) 40%, rgba(214, 196, 148, .7));
  transform: rotate(-3deg);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .08);
}
.zettel strong { display: block; font-family: var(--display); font-weight: 700; font-size: 1.12rem; margin-bottom: .25rem; }

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

/* ---------- Projekte ---------- */

.faelle { display: grid; gap: clamp(3.5rem, 7vw, 6rem); margin-top: 3.5rem; }
.fall { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(1.8rem, 4vw, 4rem); align-items: center; }
.fall.gespiegelt { grid-template-columns: 5fr 7fr; }
.fall.gespiegelt .fall-bild { order: 2; }
.fall-bild { margin: 0; position: relative; overflow: hidden; box-shadow: 0 30px 50px -30px rgba(34, 29, 24, .55); }
.fall-bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.fall:hover .fall-bild:not(.doppel) img { transform: scale(1.03); }
.fall-kicker { font-family: var(--sans); font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--rot); margin: 0 0 .6rem; }
.fall-text h3 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); line-height: 1.1; margin-bottom: 1rem; }
.fall-text > p:not(.fall-kicker) { margin: 0 0 1.4rem; max-width: 32em; }
.fall-fakten { margin: 0; font-size: 1rem; }
.fall-fakten div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: .5rem 0; border-top: 1px solid var(--papier-3); }
.fall-fakten div:last-child { border-bottom: 1px solid var(--papier-3); }
.fall-fakten dt { font-family: var(--sans); font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tinte-2); padding-top: .15rem; }
.fall-fakten dd { margin: 0; }

/* Werkstatt: Plan liegt auf dem Foto des fertigen Raums */
.fall-bild.doppel { overflow: visible; box-shadow: none; padding: 0 0 4.5rem 0; }
.fall-bild.doppel .raum { box-shadow: 0 30px 50px -30px rgba(34, 29, 24, .55); }
.plan-abzug {
  position: absolute; left: -1.5rem; bottom: 0; width: 50%;
  background: #fbfaf6; padding: 8px 8px 26px; box-shadow: 0 22px 36px -18px rgba(34, 29, 24, .7);
  transform: rotate(-3deg); transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.plan-abzug img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.plan-abzug .etikett { left: 16px; top: 16px; }
.fall:hover .plan-abzug { transform: rotate(-1deg) translateY(-6px); }
.etikett {
  position: absolute; font-family: var(--sans); font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  background: var(--tinte); color: var(--papier); padding: .25rem .55rem;
}
.etikett-raum { left: .8rem; top: .8rem; }

@media (max-width: 860px) {
  .fall, .fall.gespiegelt { grid-template-columns: 1fr; }
  .fall.gespiegelt .fall-bild { order: 0; }
  .plan-abzug { left: .6rem; width: 58%; }
}

/* Findbuch: Hängemappen */
.findbuch { margin-top: 4.5rem; }
.findbuch > h3 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.mappen { display: grid; grid-template-columns: 1fr 1fr; gap: 3.4rem clamp(1.5rem, 3vw, 2.5rem); margin-top: 3.6rem; padding: 0 .9rem; }
.mappe {
  position: relative; --manila: #f1ece1;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .2  0 0 0 0 .17  0 0 0 0 .12  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    linear-gradient(170deg, #f8f5ee 0%, var(--manila) 55%, #e4ddcd 100%);
  border: 1px solid #b3a88f; border-top-color: #c6bca6; border-radius: 2px 2px 5px 5px;
  padding: 1.7rem 1.15rem 1.4rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .45),
    inset 0 -14px 20px -16px rgba(70, 60, 40, .3),
    0 2px 0 #b3a88f, 0 4px 0 #cbc2ac, 0 5px 0 #a69b82,
    0 26px 36px -20px rgba(34, 29, 24, .6);
  transform: rotate(var(--drehung, 0deg));
}
.mappe::before { /* Hängeschiene */
  content: ""; position: absolute; left: -.9rem; right: -.9rem; top: -.35rem; height: 7px; z-index: 1;
  background: linear-gradient(to bottom, #f3f1ea, #b9b6ad 45%, #7c7a72 70%, #d9d7d0);
  border-radius: 4px; box-shadow: 0 2px 3px rgba(0, 0, 0, .35);
}
.mappe::after { /* Schienen-Haken */
  content: ""; position: absolute; left: -.9rem; top: -.35rem; width: 100%; height: 7px; z-index: 1; margin-left: .9rem;
  background: radial-gradient(circle at 6px 50%, #6e6b63 2px, transparent 2.5px), radial-gradient(circle at calc(100% - 6px) 50%, #6e6b63 2px, transparent 2.5px);
}
.mappe .reiter {
  position: absolute; top: -2.35rem; left: var(--reiter, 0); margin: 0; z-index: 2;
  background: linear-gradient(to bottom, #fbfaf6, #efece2); border: 1px solid #b9b3a3; border-radius: 3px 3px 2px 2px;
  padding: .45rem 1rem .4rem; box-shadow: inset 0 0 0 3px #fbfaf6, inset 0 0 0 4px #cfc9bb, 0 3px 4px -2px rgba(0, 0, 0, .35); font-family: "Special Elite", "Courier New", monospace; font-weight: 400; font-size: .98rem; letter-spacing: .01em; white-space: nowrap;
  color: var(--tinte);
}
.mappe .reiter::before { /* Plastik-Reiter-Glanz */
  content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(255, 255, 255, .5), transparent 40%); pointer-events: none;
}
.mappe ol { position: relative; z-index: 1; }
.mappe ol { list-style: none; margin: 0; padding: 0; }
.mappe li { padding: .55rem 0; border-bottom: 1px dotted #a89e86; line-height: 1.3; }
.mappe li:last-child { border-bottom: 0; }
.mappe li b { display: block; font-family: var(--display); font-weight: 700; font-size: 1.1rem; line-height: 1.25; }
.mappe li span { display: block; font-size: .92rem; color: #5a5148; margin-top: .1rem; }
.mappe li a { font-size: .92rem; font-style: italic; white-space: nowrap; margin-left: .3rem; }

@media (max-width: 760px) {
  .mappen { grid-template-columns: 1fr; gap: 3.4rem; }
  .mappe .reiter { font-size: .9rem; white-space: normal; max-width: 82%; }
  }

/* Verzeichnis der Stationen */
.stationen { margin-top: clamp(4rem, 8vw, 6rem); }
.stationen h3 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.verzeichnis { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(1.5rem, 2.5vw, 2.2rem); }
.verzeichnis li { display: flex; flex-direction: column; gap: .25rem; padding: 1rem 0 1.5rem; border-top: 1px solid var(--papier-3); }
.verzeichnis li:nth-child(-n+3) { border-top: 2px solid var(--tinte); }
.vz-ort { font-family: var(--sans); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--rot); }
.vz-name { font-family: var(--display); font-weight: 700; font-size: 1.12rem; line-height: 1.2; }
.vz-rolle { font-style: italic; color: var(--tinte-2); line-height: 1.35; }

@media (max-width: 900px) { .verzeichnis { grid-template-columns: 1fr 1fr; } .verzeichnis li:nth-child(3) { border-top-width: 1px; border-top-color: var(--papier-3); } }
@media (max-width: 560px) { .verzeichnis { grid-template-columns: 1fr; } .verzeichnis li:nth-child(2) { border-top-width: 1px; border-top-color: var(--papier-3); } }

/* ---------- Farbrhythmus ---------- */
.karton { background: var(--karton-hell); }
.abschnitt.karton + .abschnitt, .abschnitt + .abschnitt.karton { border-top: 0; }
.karton .fall-fakten div { border-color: #cbc2ad; }

/* ---------- Zahlenband ---------- */
.zahlenband {
  position: relative; color: #f7ece4; padding: clamp(2.2rem, 4.5vw, 3.2rem) 0;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .14 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    radial-gradient(ellipse 80% 120% at 50% 50%, #9c3a2d, #7d2a20);
  box-shadow: inset 0 10px 18px -12px rgba(0, 0, 0, .45), inset 0 -10px 18px -12px rgba(0, 0, 0, .45);
}
.zahlenband .wrap { border-top: 3px double rgba(247, 236, 228, .45); border-bottom: 3px double rgba(247, 236, 228, .45); padding-top: 1.1rem; padding-bottom: 1.6rem; }
.zb-kopf {
  display: flex; align-items: center; gap: 1rem; margin: 0 auto 1.2rem; max-width: 22rem;
  font-family: var(--sans); font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; color: #efd2c7;
}
.zb-kopf::before, .zb-kopf::after { content: ""; flex: 1; height: 1px; background: rgba(247, 236, 228, .45); }
.zb-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.zb-liste li { position: relative; text-align: center; padding: 0 1rem; display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.zb-liste li + li::before { content: ""; position: absolute; left: 0; top: 12%; bottom: 12%; width: 1px; background: rgba(247, 236, 228, .35); }
.zb-liste li + li::after { content: ""; position: absolute; left: -4px; top: 50%; width: 7px; height: 7px; margin-top: -4px; background: #efd2c7; transform: rotate(45deg); }
.zb-liste b { font-family: var(--display); font-weight: 700; font-size: clamp(2.8rem, 5.5vw, 4.4rem); line-height: 1; color: #fdf3ec; text-shadow: 0 2px 0 rgba(60, 12, 6, .35); font-variant-numeric: lining-nums tabular-nums; }
.zb-liste span { font-family: var(--sans); font-size: .75rem; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; color: #efd2c7; }
@media (max-width: 760px) {
  .zb-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.8rem; }
  .zb-liste li { padding: 0 .5rem; }
  .zb-liste span { font-size: .64rem; letter-spacing: .06em; }
  .zb-liste li:nth-child(3)::before, .zb-liste li:nth-child(3)::after { display: none; }
}

/* ---------- Registratur ---------- */
.registratur { background: var(--tintenblau); color: #e9e5da; padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.registratur h2 { color: #fff; }
.registratur .intro { color: #b9c2d2; }
.registratur .findbuch { margin-top: 0; }
.registratur .mappen { margin-top: 3.8rem; }
.registratur .mappe { transform: none; transition: box-shadow .3s ease; padding-bottom: 5.6rem; color: var(--tinte); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 2px 0 #b3a88f, 0 4px 0 #cbc2ac, 0 5px 0 #a69b82, 0 26px 36px -20px rgba(0, 0, 0, .7); }
.icon-stempel {
  position: absolute; z-index: 2; right: 1.2rem; bottom: .6rem; width: 9.4rem; height: 9.4rem;
  color: #9e3325; opacity: .88; mix-blend-mode: multiply; pointer-events: none;
  transform: rotate(var(--neigung, 0deg)); filter: url(#stempel-verwaschen);
}
.icon-stempel svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.icon-stempel circle { fill: none; stroke: currentColor; }
.icon-stempel circle:nth-of-type(3) { display: none; }
.stempel-motiv { position: absolute; left: 27%; top: 27%; width: 46%; height: 46%; object-fit: contain; }
.icon-stempel .r1 { stroke-width: 3.6; }
.icon-stempel .r2 { stroke-width: 1.1; }
.icon-stempel text { fill: currentColor; font-family: var(--sans); font-weight: 700; font-size: 8.2px; letter-spacing: 1.15px; }
.mappe:nth-child(2) .icon-stempel { bottom: 1.4rem; right: 2.2rem; }
.mappe:nth-child(3) .icon-stempel { right: 1.8rem; bottom: .8rem; }
@media (max-width: 760px) { .icon-stempel { width: 7rem; height: 7rem; right: .8rem; bottom: .5rem; } .registratur .mappe { padding-bottom: 4.6rem; } }

.registratur .mappe:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 2px 0 #b3a88f, 0 4px 0 #cbc2ac, 0 5px 0 #a69b82, 0 34px 44px -18px rgba(0, 0, 0, .85); }

/* Mappen-Einträge wie abgetippt */
.registratur .mappe li b { font-family: "Special Elite", "Courier New", monospace; font-weight: 400; font-size: 1.02rem; letter-spacing: .01em; color: #231e1a; }
.registratur .mappe li span { font-family: "Special Elite", "Courier New", monospace; font-size: .86rem; color: #4d4540; letter-spacing: 0; line-height: 1.4; }
.registratur .mappe li b, .registratur .mappe li span { text-shadow: .35px 0 rgba(35, 30, 26, .45); }

@media (min-width: 1100px) { .person .zitat, .vz-name { white-space: nowrap; } }

/* ---------- Stationen als eigener Abschnitt ---------- */
.stationen { margin-top: 0; }
.stationen h2 { font-size: clamp(2rem, 4vw, 3rem); }

/* ---------- Über mich ---------- */

.person { display: grid; grid-template-columns: 1fr 1.5fr; gap: 2.5rem clamp(2rem, 5vw, 5rem); align-items: center; }
.person img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border: 10px solid #fbfaf6; box-shadow: 0 26px 40px -24px rgba(34, 29, 24, .6); }
.person .zitat { font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(1.15rem, 1.75vw, 1.32rem); line-height: 1.3; margin: 1rem 0 1.4rem; color: var(--gruen); }
.person-text p { max-width: 34em; margin: 0 0 1rem; }
.person-text .unterschrift { font-family: "Caveat", cursive; font-size: 2rem; color: var(--tinte-2); margin: 1.2rem 0 0; transform: rotate(-3deg); display: inline-block; }
@media (max-width: 860px) {
  .person { grid-template-columns: 1fr; }
  .person img { max-width: 24rem; }
}

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

.kontakt { background: var(--tinte); color: #e9e3d6; padding: clamp(3.5rem, 8vw, 6rem) 0; }
.kontakt .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem clamp(2rem, 5vw, 5rem); align-items: center; }
.kontakt h2 { color: #fff; }
.kontakt p { max-width: 28em; margin: 1rem 0 0; }
.visitenkarte {
  font-style: normal; justify-self: end; width: min(100%, 26rem); aspect-ratio: 85 / 55;
  background: var(--karte); color: var(--tinte); padding: 1.6rem 1.8rem;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: .15rem;
  box-shadow: 0 30px 50px -25px rgba(0, 0, 0, .8), inset 0 0 0 1px #d8d1c0, inset 0 0 0 5px var(--karte), inset 0 0 0 6px #c9c1ad;
  transform: rotate(-1.5deg);
}
.vk-name { font-family: var(--display); font-weight: 700; font-size: 1.6rem; line-height: 1.1; }
.vk-titel { font-family: var(--sans); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rot); }
.vk-linie { width: 4rem; height: 1px; background: var(--rot); margin: .6rem 0 .7rem; }
.vk-zeile { font-size: .95rem; line-height: 1.5; }
.vk-zeile a { text-decoration: none; }
.vk-zeile a:hover { text-decoration: underline; }

@media (max-width: 860px) { .kontakt .wrap { grid-template-columns: 1fr; } .visitenkarte { justify-self: start; } }

/* ---------- Fuß ---------- */

.fuss { background: var(--tinte); color: #9a938a; font-size: .95rem; border-top: 1px solid #3d3630; }
.fuss .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.4rem; padding-bottom: 1.6rem; }
.fuss a { color: #bdb6a8; }
.fuss a:hover { color: #fff; }
.fuss nav { display: flex; gap: 1.5rem; }

/* ---------- Impressum ---------- */

.rechtstext { max-width: 42em; padding: clamp(3rem, 7vw, 5rem) 0; }
.rechtstext h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 800; }
.rechtstext h2 { font-size: 1.6rem; margin-top: 2.6rem; }
.rechtstext address { font-style: normal; margin-top: 1rem; }
.rechtstext h3 { font-size: 1.2rem; margin-top: 1.8rem; }
.rechtstext p { max-width: 38em; }
.rechtstext .stand { margin-top: 2.5rem; color: var(--tinte-2); font-size: .95rem; }
