/* Schriften (lokal) */
/* Schriften lokal eingebunden (SIL Open Font License), keine Verbindung zu Google */

/* latin-ext */
@font-face {
  font-family: 'Alegreya';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url(../schriften/alegreya-italic-400-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Alegreya';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url(../schriften/alegreya-italic-400-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Alegreya';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../schriften/alegreya-normal-400-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Alegreya';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../schriften/alegreya-normal-400-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(../schriften/archivo-normal-400-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(../schriften/archivo-normal-400-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../schriften/caveat-normal-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../schriften/caveat-normal-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Old Standard TT';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../schriften/old-standard-tt-italic-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Old Standard TT';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../schriften/old-standard-tt-italic-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */

/* latin */

/* latin-ext */
@font-face {
  font-family: 'Old Standard TT';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../schriften/old-standard-tt-normal-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Old Standard TT';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../schriften/old-standard-tt-normal-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Special Elite';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../schriften/special-elite-normal-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Special Elite';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../schriften/special-elite-normal-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 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;

  /* Abwesenheitsnotiz aus der Verwaltung */
  --vw-grund: var(--karte);
  --vw-text: var(--tinte);
  --vw-akzent: var(--rot);
  --vw-linie: #d8d1c0;
  --vw-schrift: var(--serif);
  --vw-titel-schrift: var(--display);
  --vw-radius: 2px;


  --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 (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; }

/* ---------- Ü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-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 { margin-left: auto; }
.nav a { min-height: 44px; display: inline-flex; align-items: center; }
.nav-kontakt {
  font-family: var(--sans); font-size: .98rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  background: var(--tinte); color: var(--papier); padding: .45rem .95rem; border-radius: 2px;
  min-height: 44px; display: inline-flex; align-items: center;
}
.nav-kontakt:hover { background: var(--rot); color: #fff; }

/* Handy: Menü-Knopf oben rechts, feste Kontaktleiste unten */
.menue, .leiste { display: none; }
@media (max-width: 860px) {
  html { scroll-padding-top: 72px; }
  .kopf .wrap { min-height: 60px; gap: 1rem; }
  .marke { min-width: 0; }
  .kopf .nav, .kopf .nav-kontakt { display: none; }

  .menue { display: block; }
  .menue summary {
    list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .6rem;
    min-height: 44px; padding: 0 .2rem; font-family: var(--sans); font-size: .95rem; font-weight: 500;
  }
  .menue summary::-webkit-details-marker { display: none; }
  .menue-auf, .menue[open] .menue-zu { display: none; }
  .menue[open] .menue-auf { display: inline; }
  .menue-zeichen { position: relative; width: 20px; height: 10px; }
  .menue-zeichen::before, .menue-zeichen::after {
    content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .2s ease;
  }
  .menue-zeichen::before { top: 0; }
  .menue-zeichen::after { bottom: 0; }
  .menue[open] .menue-zeichen::before { transform: translateY(4.25px) rotate(45deg); }
  .menue[open] .menue-zeichen::after { transform: translateY(-4.25px) rotate(-45deg); }
  .tafel {
    position: absolute; left: 0; right: 0; top: 100%; counter-reset: eintrag;
    max-height: calc(100dvh - 60px); overflow-y: auto;
    background: var(--papier); border-bottom: 1px solid var(--papier-3);
    padding: .2rem var(--gutter) 1.4rem; box-shadow: 0 16px 26px -18px rgba(34, 29, 24, .45);
  }
  .tafel a {
    display: flex; align-items: baseline; gap: .9rem; padding: .85rem 0; text-decoration: none;
    border-bottom: 1px solid var(--papier-3); font-family: var(--display); font-size: 1.35rem;
  }
  .tafel a::before {
    counter-increment: eintrag; content: counter(eintrag, decimal-leading-zero);
    font-family: var(--sans); font-size: .72rem; letter-spacing: .08em; color: var(--rot); min-width: 1.4rem;
  }
  .tafel a:hover { color: var(--rot); }

  .leiste {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(239, 233, 220, .96); border-top: 1px solid var(--papier-3);
    box-shadow: 0 -8px 18px -14px rgba(34, 29, 24, .5);
  }
  .leiste a {
    display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; border-radius: 2px;
    font-family: var(--sans); font-size: .95rem; font-weight: 600; text-decoration: none;
  }
  .leiste svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .leiste .tel { background: var(--gruen); color: #fff; }
  .leiste .mail { border: 1px solid var(--gruen); color: var(--gruen); }
  .leiste a:hover { background: var(--rot); border-color: var(--rot); color: #fff; }
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
  body .vw-hinweis { bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }   /* Abwesenheitsnotiz über der Leiste */
}
@media print { .leiste, .menue { display: none !important; } body { padding-bottom: 0; } }

/* ---------- 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 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 einblenden (nur mit JavaScript, ohne eigenes Vorab-Skript) */
@media (prefers-reduced-motion: no-preference) and (scripting: enabled) {
  .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);
  }
  .einblenden.sichtbar { opacity: 1; transform: none; }
  .verzeichnis li.einblenden { transform: translateY(16px); transition-delay: calc(var(--i, 0) * 70ms); }
  .verzeichnis li.einblenden.sichtbar { transform: none; }
  .mappe.einblenden { transform: translateY(-22px); transition-duration: .7s, .9s; transition-timing-function: ease, cubic-bezier(.3, 1.4, .5, 1); }
  .mappe.einblenden.sichtbar { transform: none; }
  .visitenkarte.einblenden { transform: translateY(26px) rotate(-5deg); }
  .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: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;
}
/* Zeichnungen über den Leistungen */
.leistung .zeichnungsfeld { height: clamp(150px, 15vw, 190px); margin-bottom: 1rem; display: flex; align-items: flex-end; justify-content: center; }
.leistung .zeichnungsfeld img { width: auto; height: auto; max-width: 100%; max-height: 100%; }
.leistung .punkt {
  font: inherit; color: inherit; background: none; border: 0; text-align: left; cursor: pointer;
  padding: .45rem 0; margin: -.45rem 0;   /* größere Tippfläche, Abstände der Liste bleiben */
  text-decoration: underline; text-decoration-color: rgba(143, 49, 38, .45); text-decoration-thickness: 1.5px; text-underline-offset: .26em;
  transition: color .15s;
}
.leistung .punkt::before { /* rundes Plus als Zeichen: hier gibt es mehr */
  content: "+"; display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; border-radius: 50%;
  background: var(--rot); color: #fff; font: 700 .78rem/1 var(--sans);
}
.leistung li:has(> .punkt)::before { display: none; }   /* Plus ersetzt den Aufzählungspunkt */
.leistung .punkt::before { position: absolute; left: -1.3rem; top: .5rem; transition: transform .25s ease; }
.leistung .punkt:hover { color: var(--rot); text-decoration-color: var(--rot); }
.leistung .punkt:hover::before, .leistung .punkt:focus-visible::before { transform: rotate(90deg); }
.leistung .punkt:focus-visible { outline: 2px solid var(--rot); outline-offset: 3px; border-radius: 2px; }
@media (scripting: none) { .leistung .punkt { pointer-events: none; text-decoration: none; } .leistung .punkt::before { display: none; } .leistung li:has(> .punkt)::before { display: block; } }
@media (prefers-reduced-motion: reduce) { .leistung .punkt::before { transition: none; } }
.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; } }
.vk-fax { white-space: nowrap; }
@media (max-width: 520px) {
  /* Handy: Karte innerhalb des Seitenrands, Telefon und Fax in eigenen Zeilen */
  .kontakt { padding-bottom: 3.2rem; }
  .visitenkarte { justify-self: stretch; width: auto; aspect-ratio: auto; padding: 1.9rem 1.2rem 1.7rem; transform: rotate(-.8deg); }
  .vk-zeile { font-size: .98rem; }
  .vk-trenner { display: none; }
  .vk-fax { display: block; }
}
@media (max-width: 520px) and (prefers-reduced-motion: no-preference) {
  .visitenkarte.einblenden.sichtbar { transform: rotate(-.8deg); }
}

/* ---------- 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; }
.fuss-credit { white-space: nowrap; }
.fuss-credit::before { content: "· "; }
@media (max-width: 520px) {
  /* Handy: zentriert – oben Impressum und Datenschutz, darunter klein Copyright und Webdesign */
  .fuss .wrap { flex-direction: column; align-items: center; text-align: center; gap: 0; padding-top: 1.6rem; padding-bottom: 1.4rem; }
  .fuss nav { order: -1; gap: 2.2rem; font-size: 1rem; padding-bottom: 1.1rem; }
  .fuss .wrap > span { width: 100%; border-top: 1px solid #3d3630; padding-top: 1.1rem; font-size: .85rem; line-height: 1.7; }
  .fuss-credit { display: block; }
  .fuss-credit::before { content: none; }
}
.fuss-credit a { display: inline-block; padding: .7rem 0; margin: -.7rem 0; }

/* ---------- Fehlerseite: Bestellschein aus dem Lesesaal ---------- */

.f404 { min-height: 68vh; padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem); }
.f404 .wrap { max-width: 44rem; }
.schein {
  position: relative; background: var(--karte); border: 1px solid #d8d0bd; border-top: 6px solid var(--rot);
  padding: 2rem 2rem 2.2rem; transform: rotate(-1.2deg);
  box-shadow: 0 1px 0 #cfc6b1, 0 22px 40px -24px rgba(34, 29, 24, .45);
}
.schein h1 { font-size: clamp(2.3rem, 5.5vw, 3.6rem); line-height: 1.05; margin: 0; }
.schein dl { margin: 1.6rem 0 0; font-family: "Special Elite", "Courier New", monospace; font-size: 1rem; }
.schein dl > div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1.2rem; margin-top: .9rem; }
.schein dl > div[hidden] { display: none; }
.schein dt { color: var(--tinte-2); }
.schein dd { margin: 0; border-bottom: 1px dotted #a89e86; padding-bottom: .5rem; line-height: 1.45; }
.schein-pfad { overflow-wrap: anywhere; }
.schein-stempel {
  position: absolute; right: -.8rem; bottom: -1.3rem; margin: 0;
  color: var(--rot); border: 3px double var(--rot); border-radius: 6px; padding: .35rem .75rem;
  font-family: var(--sans); font-weight: 700; font-size: 1.05rem; line-height: 1.1;
  transform: rotate(8deg); background: rgba(250, 247, 239, .8); mix-blend-mode: multiply;
}
.schein-weiter { margin-top: 2.6rem; }
@media (prefers-reduced-motion: no-preference) {
  .schein-stempel { animation: schein-stempeln .45s cubic-bezier(.3, 1.6, .5, 1) .5s both; }
  @keyframes schein-stempeln { from { opacity: 0; transform: rotate(8deg) scale(1.6); } to { opacity: 1; transform: rotate(8deg) scale(1); } }
}
@media (max-width: 560px) {
  .schein { padding: 1.8rem 1.2rem 1.8rem; transform: none; }
  .schein dl > div { grid-template-columns: 1fr; gap: .2rem; margin-top: .8rem; }
  .schein-stempel { right: .6rem; bottom: -1.2rem; font-size: .95rem; }
}

/* ---------- 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; }

/* ---------- Leistungen: Karteikarte mit Erklärtext ---------- */
.pop {
  width: min(36rem, 100%); max-width: calc(100% - 1rem); max-height: calc(100dvh - 1rem);
  padding: .9rem; border: 0; background: transparent; color: var(--tinte); overflow-y: auto;
}
.pop::backdrop { background: rgba(34, 29, 24, .55); }
html { scrollbar-gutter: stable; }
html:has(.pop[open]) { overflow: hidden; }
.pop-karte {
  --zeile: 1.75rem;
  position: relative; background: var(--karte); border: 1px solid #d8d1c0;
  box-shadow: 0 1px 0 #d8d1c0, 0 30px 60px -28px rgba(0, 0, 0, .7);
  padding: 1.4rem 1.7rem 2.9rem; transform: rotate(-.6deg); line-height: var(--zeile);
}
.pop-karte::after { /* Lochung wie bei der Karteikarte oben */
  content: ""; position: absolute; left: 50%; bottom: .9rem; width: 13px; height: 13px;
  margin-left: -6px; border-radius: 50%; background: var(--papier); border: 1px solid #d8d1c0;
}
.pop-kopf { border-bottom: 2px solid var(--rot); padding: 0 2.6rem .45rem 0; margin-bottom: .55rem; }
.pop-bereich { margin: 0; font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--rot); line-height: 1.4; }
.pop-titel { margin: .25rem 0 0; font-family: var(--display); font-size: clamp(1.35rem, 4vw, 1.65rem); line-height: 1.15; }
.pop-text {
  font-size: 1.06rem;
  background-image: linear-gradient(to bottom, transparent calc(var(--zeile) - 1px), #c9d5e3 calc(var(--zeile) - 1px));
  background-size: 100% var(--zeile);
}
.pop-text p { margin: 0 0 var(--zeile); }
.pop-text p:last-child { margin-bottom: 0; }
.pop-anfrage {
  display: inline-block; margin-top: 1rem; font-family: var(--sans); font-weight: 600; font-size: .95rem;
  color: var(--gruen); text-decoration: none; border-bottom: 2px solid currentColor; line-height: 1.5;
}
.pop-anfrage::after { content: " →"; }
.pop-anfrage:hover { color: var(--rot); }
.pop-zu {
  position: absolute; top: .5rem; right: .5rem; width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--tinte); cursor: pointer;
}
.pop-zu:hover { background: rgba(34, 29, 24, .07); }
.pop-zu:focus-visible { outline: 2px solid var(--rot); outline-offset: 1px; }
@media (max-width: 560px) {
  .pop-karte { padding: 1.2rem 1.15rem 2.8rem; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .pop[open] .pop-karte { animation: pop-hinlegen .38s cubic-bezier(.2, .8, .2, 1) both; }
  .pop[open]::backdrop { animation: pop-dunkel .25s ease both; }
  @keyframes pop-hinlegen { from { opacity: 0; transform: translateY(18px) rotate(-2.5deg); } to { opacity: 1; transform: rotate(-.6deg); } }
  @keyframes pop-dunkel { from { opacity: 0; } to { opacity: 1; } }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 560px) {
  @keyframes pop-hinlegen { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

/* ---------- Bedienung: Tippflächen, Nebentexte, schmale Bildschirme ---------- */
.banner .pdf { min-height: 44px; display: inline-flex; align-items: center; }
.mappe li a, .vk-zeile a, .fuss nav a { display: inline-block; padding: .7rem 0; margin: -.7rem 0; }
.vz-ort, .vk-titel { font-size: .8125rem; }
.zb-liste span { font-size: .8125rem; }
.stempel small { font-size: .8rem; }
.etikett { font-size: .8rem; }
.fall-fakten a { display: inline-block; padding: .7rem 0; margin: -.7rem 0; }
.marke { min-height: 44px; }
.zb-liste { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.zb-liste span { hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 900px) {
  .zb-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.8rem; }
  .zb-liste li { padding: 0 .5rem; }
  .zb-liste li:nth-child(3)::before, .zb-liste li:nth-child(3)::after { display: none; }
}
@media (max-width: 860px) {
  .mappe .reiter { max-width: none; }
}
/* Handy: Reiter einzeilig, wo es passt; sonst fester Umbruch an einer sinnvollen Stelle, damit der Reiter
   nur so breit wird wie seine längste Zeile (Breiten nachgemessen) */
.reiter br { display: none; }
@media (max-width: 760px) {
  .mappe .reiter { white-space: nowrap; max-width: none; left: var(--reiter-handy, var(--reiter, 0)); }
}
@media (max-width: 429px) { .reiter br.umbruch-430 { display: inline; } }
@media (max-width: 369px) { .reiter br.umbruch-370 { display: inline; } }
@media (min-width: 761px) and (max-width: 1100px) { .reiter br { display: inline; } }   /* zwei schmale Spalten (Tablet, kleiner Laptop) */
@media (max-width: 760px) {
  .zb-liste span { font-size: .75rem; letter-spacing: .05em; }
}
@media (max-width: 860px) {
  .hero h1 br { display: none; }   /* fester Umbruch passt nur zur breiten Ansicht */
}
@media (max-width: 480px) {
  h2 { hyphens: auto; overflow-wrap: break-word; }
}
@media (max-width: 760px) {
  .registratur .mappe { padding-bottom: 8rem; }   /* Stempel unter der Liste, nicht über dem Text */
  .zb-liste span { hyphens: manual; letter-spacing: .02em; font-size: .75rem; }
}
@media (max-width: 420px) {
  .zb-liste span { letter-spacing: 0; }
  .zb-liste li { padding: 0 .75rem; }
}
@media (max-width: 360px) {   /* sehr schmale Handys: Zahlen untereinander */
  .zb-liste { grid-template-columns: minmax(0, 1fr); row-gap: 1.6rem; }
  .zb-liste li::before, .zb-liste li::after { display: none; }
}
