/* Hoelni Dungeons – Das Archiv. Stein, Fackeln, Pergament. */
:root {
  --stein-0: #0c0a0d;
  --stein-1: #151217;
  --stein-2: #1f1b22;
  --stein-3: #2b252f;
  --stein-kante: #3a3240;
  --moertel: #09080a;
  --pergament: #ead9b4;
  --pergament-2: #dcc697;
  --pergament-rand: #b8975e;
  --tinte: #2a1c10;
  --tinte-2: #5b4128;
  --tinte-blass: #8a6c48;
  --gold: #e1b64f;
  --gold-hell: #f6d989;
  --gold-dunkel: #8d6a23;
  --glut: #ff8a2a;
  --blut: #9c2b1c;
  --siegel: #a3261a;
  --rune: #7ee3d6;
  --kopf: 92px;
  --schrift-zier: "Cinzel", "Trajan Pro", "Palatino Linotype", "Book Antiqua", Palatino, "URW Palladio L", serif;
  --schrift-text: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "URW Palladio L", Georgia, serif;
  --schrift-ui: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: #e9e1d2;
  font: 17px/1.65 var(--schrift-text);
  background-color: var(--stein-1);
  /* Mauerwerk: versetzte Quader mit Mörtelfugen, darüber leichtes Rauschen */
  background-image:
    radial-gradient(ellipse at 50% -10%, rgba(255, 140, 50, .10), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='64'%3E%3Cg fill='none' stroke='%2309080a' stroke-width='3'%3E%3Cpath d='M0 1.5H128M0 33.5H128M1.5 0V32M65.5 0V32M33.5 32V64M97.5 32V64'/%3E%3C/g%3E%3Cg fill='%23ffffff' opacity='.025'%3E%3Crect x='3' y='3' width='60' height='28'/%3E%3Crect x='99' y='35' width='28' height='28'/%3E%3C/g%3E%3Cg fill='%23000000' opacity='.12'%3E%3Crect x='67' y='3' width='60' height='28'/%3E%3Crect x='35' y='35' width='61' height='28'/%3E%3C/g%3E%3C/svg%3E");
  background-attachment: fixed, scroll, scroll;
}
a { color: var(--gold); }
svg { display: block; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
::selection { background: var(--gold); color: var(--tinte); }

/* ------------------------------------------------------------------ Wehrgang (Kopfzeile) */
.wehrgang {
  position: sticky; top: 0; z-index: 20;
  height: var(--kopf);
  background:
    linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.55)),
    var(--stein-2);
  border-bottom: 3px solid var(--moertel);
  box-shadow: 0 10px 30px rgba(0,0,0,.6);
}
.wehrgang::after { /* Zinnen */
  content: ""; position: absolute; left: 0; right: 0; bottom: -17px; height: 14px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='14'%3E%3Crect x='0' y='0' width='26' height='12' fill='%231f1b22'/%3E%3Crect x='0' y='11' width='26' height='3' fill='%2309080a'/%3E%3Crect x='25' y='0' width='1' height='12' fill='%2309080a'/%3E%3C/svg%3E") repeat-x;
  filter: drop-shadow(0 4px 4px rgba(0,0,0,.5));
}
.wehrgang-innen {
  max-width: 1320px; height: 100%; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; gap: 22px;
}
.fackel { width: 34px; height: 34px; position: relative; flex: none; }
.fackel svg { width: 34px; height: 34px; image-rendering: pixelated; position: relative; z-index: 1; }
.fackel::before {
  content: ""; position: absolute; left: 50%; top: 22%; width: 150px; height: 150px; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 150, 50, .45), rgba(255, 110, 20, .12) 40%, transparent 70%);
  animation: flackern 2.6s infinite steps(1);
  pointer-events: none;
}
.fackel.rechts::before { animation-delay: -1.3s; }
@keyframes flackern {
  0% { opacity: .85; } 12% { opacity: 1; } 24% { opacity: .78; } 37% { opacity: .95; }
  49% { opacity: .82; } 63% { opacity: 1; } 77% { opacity: .74; } 88% { opacity: .92; }
}
@media (prefers-reduced-motion: reduce) { .fackel::before { animation: none; } }
.wappen { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.wappen-icon { width: 44px; height: 44px; image-rendering: pixelated; filter: drop-shadow(0 2px 0 #000); }
.wappen-text {
  display: flex; flex-direction: column; line-height: 1;
  font-family: var(--schrift-zier); font-size: 27px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-hell);
  text-shadow: 0 1px 0 #6b4d14, 0 2px 0 #3a280a, 0 3px 6px rgba(0,0,0,.8);
}
.wappen-text small { font-size: 12px; letter-spacing: .5em; color: var(--gold); margin-bottom: 4px; }
.wappen-text em { font-style: normal; font-size: 11px; letter-spacing: .38em; color: #a99c86; margin-top: 6px; text-shadow: none; }

.suche { position: relative; flex: 1; max-width: 460px; margin-left: auto; display: flex; align-items: center; }
.suche > svg { position: absolute; left: 10px; width: 22px; height: 22px; image-rendering: pixelated; opacity: .9; }
#q {
  width: 100%; height: 42px; padding: 0 14px 0 42px;
  font: 15px var(--schrift-ui); color: #eee4d0;
  background: linear-gradient(180deg, #0d0b0e, #17141a);
  border: 1px solid #000; border-radius: 3px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.8), 0 1px 0 rgba(255,255,255,.06);
  outline: none;
}
#q:focus { border-color: var(--gold-dunkel); box-shadow: inset 0 2px 6px rgba(0,0,0,.8), 0 0 0 2px rgba(225,182,79,.25); }
#q::placeholder { color: #7d7466; }
#treffer {
  display: none; position: absolute; z-index: 30; top: 48px; left: 0; right: 0; max-height: 70vh; overflow: auto;
  background: var(--pergament); color: var(--tinte); border: 2px solid var(--pergament-rand);
  box-shadow: 0 18px 40px rgba(0,0,0,.7);
}
#treffer a { display: block; padding: 10px 14px; color: var(--tinte); text-decoration: none; border-bottom: 1px dashed rgba(91,65,40,.35); }
#treffer a b { font-family: var(--schrift-zier); letter-spacing: .04em; }
#treffer a small { display: block; color: var(--tinte-2); font: 13px/1.4 var(--schrift-ui); margin-top: 2px; }
#treffer a:hover, #treffer a.wahl { background: var(--pergament-2); }
#treffer mark { background: rgba(225,182,79,.55); color: inherit; padding: 0 1px; }

.adresse {
  flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; cursor: pointer;
  padding: 6px 14px; font: 600 15px/1 var(--schrift-ui); color: var(--gold-hell);
  background: linear-gradient(180deg, #3b2a14, #24180a); border: 1px solid #000; border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255,220,140,.25), 0 2px 0 #000;
}
.adresse span { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: #b99a5c; }
.adresse.kopiert::after { content: "kopiert ✓"; font-size: 11px; color: #9fe39f; }

/* ------------------------------------------------------------------ Gewölbe (Spalten) */
.gewoelbe { max-width: 1320px; margin: 0 auto; padding: 40px 28px 30px; display: flex; gap: 34px; align-items: flex-start; }

/* Wegweiser: Steintafel mit Kapiteln */
.wegweiser {
  position: sticky; top: calc(var(--kopf) + 34px); width: 286px; flex: none;
  max-height: calc(100vh - var(--kopf) - 60px); overflow: auto;
  background: linear-gradient(180deg, #221d25, #19161b);
  border: 1px solid #000; outline: 1px solid #3c3442; outline-offset: -5px;
  box-shadow: 0 14px 30px rgba(0,0,0,.55), inset 0 0 40px rgba(0,0,0,.6);
  padding: 18px 14px 20px;
  scrollbar-width: thin; scrollbar-color: #4a3f52 transparent;
}
.wegweiser-knopf { display: none; }
.wegweiser h3 {
  margin: 18px 6px 6px; font: 700 11px/1 var(--schrift-zier); letter-spacing: .32em; text-transform: uppercase; color: #8e8172;
  display: flex; align-items: center; gap: 8px;
}
.wegweiser h3::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, #4a4050, transparent); }
.wegweiser h3:first-child { margin-top: 0; }
.wegweiser ul { list-style: none; margin: 0; padding: 0; }
.wegweiser a {
  display: flex; align-items: center; gap: 10px; padding: 6px 8px; margin: 1px 0;
  color: #d8cfbf; text-decoration: none; font-size: 15.5px; border-left: 3px solid transparent;
}
.wegweiser a svg { width: 18px; height: 18px; image-rendering: pixelated; flex: none; opacity: .75; }
.wegweiser a .nr { margin-left: auto; font: 11px var(--schrift-zier); color: #6f6556; letter-spacing: .08em; }
.wegweiser a:hover { color: var(--gold-hell); background: rgba(255,255,255,.03); }
.wegweiser a:hover svg { opacity: 1; }
.wegweiser a.hier {
  color: var(--gold-hell); border-left-color: var(--glut);
  background: linear-gradient(90deg, rgba(255,138,42,.16), transparent);
}
.wegweiser a.hier svg { opacity: 1; filter: drop-shadow(0 0 4px rgba(255,138,42,.6)); }

main { flex: 1; min-width: 0; }

/* ------------------------------------------------------------------ Schriftrolle */
.rolle { position: relative; padding: 26px 0; }
.rolle::before, .rolle::after { /* Holzstäbe oben und unten mit Messingknäufen */
  content: ""; position: absolute; left: -14px; right: -14px; height: 26px; z-index: 2; border-radius: 13px;
  background:
    radial-gradient(circle at 13px 50%, #f5d27a 0 6px, #a87b26 7px 10px, transparent 11px),
    radial-gradient(circle at calc(100% - 13px) 50%, #f5d27a 0 6px, #a87b26 7px 10px, transparent 11px),
    linear-gradient(180deg, #8a5a2c 0%, #c08547 22%, #6d4220 55%, #3d230e 100%);
  box-shadow: 0 6px 12px rgba(0,0,0,.55);
}
.rolle::before { top: 6px; }
.rolle::after { bottom: 6px; }
.blatt {
  position: relative;
  color: var(--tinte);
  padding: 46px 64px 40px;
  background-color: var(--pergament);
  background-image:
    radial-gradient(ellipse at 15% 10%, rgba(255,255,255,.35), transparent 40%),
    radial-gradient(ellipse at 85% 90%, rgba(140,95,40,.22), transparent 45%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .24 0 0 0 0 .1 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23p)'/%3E%3C/svg%3E");
  box-shadow: inset 0 0 70px rgba(120, 80, 30, .45), inset 0 0 6px rgba(80, 50, 15, .6);
}
.blatt-kopf { text-align: center; margin-bottom: 26px; }
.kapitel {
  margin: 0; font: 700 12px var(--schrift-zier); letter-spacing: .42em; text-transform: uppercase; color: var(--blut);
}
.blatt h1 {
  margin: 8px 0 6px; font: 700 42px/1.1 var(--schrift-zier); letter-spacing: .05em; color: var(--tinte);
  text-shadow: 0 1px 0 rgba(255,255,255,.4);
}
.zier { /* Zierlinie mit Raute */
  height: 18px; margin: 10px auto 0; max-width: 420px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='18'%3E%3Cpath d='M10 9H190M230 9H410' stroke='%235b4128' stroke-width='1.5'/%3E%3Cpath d='M190 9l10-7 10 7-10 7z' fill='%239c2b1c'/%3E%3Cpath d='M210 9l10-5 10 5-10 5z' fill='%235b4128'/%3E%3Ccircle cx='10' cy='9' r='3' fill='%235b4128'/%3E%3Ccircle cx='410' cy='9' r='3' fill='%235b4128'/%3E%3C/svg%3E") center/contain no-repeat;
}
.blatt h2 {
  margin: 44px 0 14px; font: 700 23px/1.25 var(--schrift-zier); letter-spacing: .06em; color: var(--tinte);
  display: flex; align-items: center; gap: 12px;
}
.blatt h2 svg { width: 26px; height: 26px; image-rendering: pixelated; flex: none; }
.blatt h2::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, rgba(91,65,40,.55), transparent); }
.blatt h3 { margin: 26px 0 8px; font: 700 18px var(--schrift-zier); letter-spacing: .05em; color: var(--tinte-2); }
.blatt p, .blatt li { color: #2e2013; }
.blatt a { color: var(--blut); text-decoration-color: rgba(156,43,28,.4); text-underline-offset: 3px; }
.blatt a:hover { text-decoration-color: var(--blut); }
.blatt strong, .blatt b { color: #1f1409; }
.blatt ul, .blatt ol { padding-left: 1.3em; }
.blatt li { margin: 4px 0; }
.blatt li::marker { color: var(--blut); }
.einleitung { font-size: 19.5px; line-height: 1.6; }
.einleitung::first-letter { /* Initiale */
  float: left; font: 700 64px/0.82 var(--schrift-zier); margin: 6px 10px 0 0; padding: 6px 8px 4px;
  color: var(--pergament); background: var(--blut);
  box-shadow: inset 0 0 0 2px var(--gold), 0 2px 0 rgba(0,0,0,.25);
}
code, kbd {
  font: 600 14.5px ui-monospace, "Cascadia Mono", Consolas, monospace;
  background: rgba(42, 28, 16, .1); color: #3a210c; padding: 1px 6px; border-radius: 2px;
  border: 1px solid rgba(91, 65, 40, .35); white-space: nowrap;
}

/* Tabellen wie in einem Folianten */
.foliant { overflow-x: auto; margin: 18px 0 22px; border: 2px solid var(--tinte-2); box-shadow: 3px 3px 0 rgba(42,28,16,.18); }
.foliant table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
.foliant th {
  background: var(--tinte); color: var(--pergament); text-align: left; white-space: nowrap;
  font: 700 12px var(--schrift-zier); letter-spacing: .14em; text-transform: uppercase; padding: 10px 12px;
}
.foliant td { padding: 9px 12px; border-top: 1px solid rgba(91, 65, 40, .3); vertical-align: top; }
.foliant tbody tr:nth-child(even) td { background: rgba(140, 100, 50, .08); }
.foliant td:first-child { font-weight: 700; color: #1f1409; }
.foliant td.z { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Siegel, Warnung, Tipp */
.siegel, .warnung, .tipp {
  position: relative; margin: 22px 0; padding: 14px 18px 14px 74px; min-height: 68px;
  border: 1px solid rgba(91,65,40,.45); background: rgba(255, 248, 230, .45);
}
.siegel::before, .warnung::before, .tipp::before {
  content: ""; position: absolute; left: 14px; top: 12px; width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d9493a, var(--siegel) 55%, #5e140c);
  box-shadow: 0 2px 0 rgba(0,0,0,.3), inset 0 -3px 6px rgba(0,0,0,.35);
}
.siegel > svg.marke, .warnung > svg.marke, .tipp > svg.marke {
  position: absolute; left: 24px; top: 22px; width: 24px; height: 24px; image-rendering: pixelated; z-index: 1;
}
.tipp { background: rgba(225, 240, 215, .45); border-color: rgba(70, 100, 50, .45); }
.tipp::before { background: radial-gradient(circle at 35% 30%, #e3c25e, #b38a24 55%, #6a4d10); }
.warnung { background: rgba(40, 30, 30, .92); border-color: #000; }
.blatt .warnung p, .blatt .warnung b, .blatt .warnung li, .blatt .warnung strong { color: #f1e3cf; }
.warnung::before { background: radial-gradient(circle at 35% 30%, #6b6f76, #3c3f45 60%, #1d1f22); }
.siegel p:first-of-type, .warnung p:first-of-type, .tipp p:first-of-type { margin-top: 0; }
.siegel p:last-child, .warnung p:last-child, .tipp p:last-child { margin-bottom: 0; }

/* Bild in eisernem Rahmen */
.gemaelde { margin: 6px 0 26px; padding: 8px; background: #2a2226; border: 1px solid #000; box-shadow: 0 6px 16px rgba(42,28,16,.45); position: relative; }
.gemaelde img { display: block; width: 100%; height: auto; }
.gemaelde::before, .gemaelde::after { /* Nieten */
  content: ""; position: absolute; top: 2px; width: 6px; height: 6px; border-radius: 50%; background: #8a8f96; box-shadow: 0 0 0 1px #000;
}
.gemaelde::before { left: 2px; } .gemaelde::after { right: 2px; }
.gemaelde figcaption { font: italic 14px var(--schrift-text); color: #cbbfae; padding: 6px 4px 0; }

/* Werte-Tafeln */
.tafeln { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 20px 0; }
.tafel { border: 2px solid var(--tinte-2); padding: 12px 14px; background: rgba(255,248,230,.5); text-align: center; }
.tafel svg { width: 32px; height: 32px; image-rendering: pixelated; margin: 0 auto 6px; }
.tafel b { display: block; font: 700 22px var(--schrift-zier); color: var(--blut); }
.tafel span { font-size: 14px; color: var(--tinte-2); }

.formel {
  margin: 14px 0 18px; padding: 14px 18px; text-align: center; font-size: 17.5px;
  border-top: 2px solid var(--tinte-2); border-bottom: 2px solid var(--tinte-2); background: rgba(255,248,230,.45);
}
.formel b { white-space: nowrap; color: var(--blut); }

details { border: 1px solid rgba(91,65,40,.45); background: rgba(255,248,230,.4); margin: 8px 0; padding: 10px 16px; }
details summary { cursor: pointer; font: 700 16px var(--schrift-zier); letter-spacing: .03em; color: var(--tinte); list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::before { content: "▸ "; color: var(--blut); }
details[open] summary::before { content: "▾ "; }
details p { margin: 8px 0 2px; }
blockquote { margin: 16px 0; padding: 4px 18px; border-left: 4px double var(--tinte-2); font-style: italic; color: var(--tinte-2); }

/* Blättern */
.blaettern { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 18px; border-top: 1px solid rgba(91,65,40,.4); }
.blaettern a { text-decoration: none; font: 700 15px var(--schrift-zier); letter-spacing: .04em; color: var(--tinte); }
.blaettern a small { display: block; font: 11px var(--schrift-zier); letter-spacing: .3em; text-transform: uppercase; color: var(--tinte-blass); }
.blaettern a.weiter { text-align: right; margin-left: auto; }
.blaettern a:hover { color: var(--blut); }

/* ------------------------------------------------------------------ Startseite */
.tor {
  position: relative; margin: -10px 0 34px; min-height: 440px; overflow: hidden;
  border: 3px solid #000; outline: 2px solid #4b3f52; outline-offset: -9px;
  background: #000 url("/img/titel.jpg") center 30% / cover no-repeat;
  box-shadow: 0 20px 40px rgba(0,0,0,.6);
  display: flex; align-items: flex-end;
}
.tor::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,6,10,.92) 0%, rgba(8,6,10,.65) 42%, transparent 75%), linear-gradient(0deg, rgba(8,6,10,.85), transparent 45%); }
.tor-text { position: relative; padding: 40px 44px; max-width: 640px; }
.tor-text .kapitel { color: var(--glut); }
.tor h1 {
  margin: 10px 0 14px; font: 700 48px/1.08 var(--schrift-zier); letter-spacing: .03em; color: #fff3d6;
  text-shadow: 0 3px 12px rgba(0,0,0,.9);
}
.tor p { color: #e7dccb; font-size: 18.5px; margin: 0 0 22px; text-shadow: 0 1px 4px #000; }
.knopf {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; text-decoration: none;
  font: 700 14px var(--schrift-zier); letter-spacing: .14em; text-transform: uppercase; color: var(--tinte);
  background: linear-gradient(180deg, var(--gold-hell), var(--gold) 55%, var(--gold-dunkel));
  border: 1px solid #000; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 3px 0 #000;
}
.knopf svg { width: 20px; height: 20px; image-rendering: pixelated; }
.knopf:hover { filter: brightness(1.08); }
.knopf.leise { color: var(--gold-hell); background: rgba(0,0,0,.45); border-color: rgba(225,182,79,.5); box-shadow: none; margin-left: 10px; }

.pforten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 34px; }
.pforte {
  position: relative; display: block; padding: 20px 18px 18px 74px; min-height: 104px; text-decoration: none;
  background: linear-gradient(180deg, #27212b, #1a161d); border: 1px solid #000; outline: 1px solid #3d3444; outline-offset: -5px;
  box-shadow: 0 10px 20px rgba(0,0,0,.45);
  transition: transform .15s ease, box-shadow .15s ease;
}
.pforte svg { position: absolute; left: 18px; top: 22px; width: 40px; height: 40px; image-rendering: pixelated; filter: drop-shadow(0 2px 0 #000); }
.pforte b { display: block; font: 700 16px var(--schrift-zier); letter-spacing: .06em; color: var(--gold-hell); }
.pforte span { display: block; margin-top: 4px; font: 14px/1.45 var(--schrift-ui); color: #b5aa98; }
.pforte:hover { transform: translateY(-2px); box-shadow: 0 14px 26px rgba(0,0,0,.55), 0 0 0 1px rgba(255,138,42,.35); }

.aushang { /* Holzbrett mit angepinnten Zetteln */
  margin: 0 0 34px; padding: 24px 24px 26px;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.18) 0 2px, transparent 2px 120px),
    linear-gradient(180deg, #5b3a1c, #3f2611);
  border: 3px solid #23150a; box-shadow: inset 0 0 30px rgba(0,0,0,.5), 0 14px 26px rgba(0,0,0,.5);
}
.aushang > h2 { margin: 0 0 16px; font: 700 15px var(--schrift-zier); letter-spacing: .3em; text-transform: uppercase; color: #f2d28a; text-shadow: 0 2px 0 #000; }
.zettel-reihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.zettel {
  position: relative; padding: 18px 18px 14px; color: var(--tinte); background: var(--pergament);
  box-shadow: 2px 4px 10px rgba(0,0,0,.45); transform: rotate(-.6deg);
}
.zettel:nth-child(2) { transform: rotate(.7deg); } .zettel:nth-child(3) { transform: rotate(-.3deg); }
.zettel::before { /* Nagel */
  content: ""; position: absolute; top: 6px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #c9ced6, #5a5f66); box-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.zettel h3 { margin: 4px 0 8px; font: 700 15px var(--schrift-zier); letter-spacing: .08em; color: var(--blut); }
.zettel p, .zettel li { font-size: 15px; margin: 4px 0; color: var(--tinte); }
.zettel ul { margin: 0; padding-left: 1.1em; }
.zettel .lohn { white-space: nowrap; font: 600 12px var(--schrift-ui); color: #5a2fa6; }

/* ------------------------------------------------------------------ Fundament (Fußzeile) */
.fundament {
  margin-top: 30px; padding: 28px 28px 34px; text-align: center; color: #9b907f; font: 14px/1.6 var(--schrift-ui);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.6)); border-top: 1px solid #000;
}
.fundament b { color: var(--gold); }
.fundament .klein { font-size: 12px; color: #6f665a; max-width: 760px; margin: 8px auto 0; }

/* ------------------------------------------------------------------ Schmal */
@media (max-width: 1020px) {
  .pforten { grid-template-columns: repeat(2, 1fr); }
  .gewoelbe { flex-direction: column; padding: 30px 14px 20px; gap: 18px; align-items: stretch; }
  .wegweiser { position: static; width: 100%; max-height: none; padding: 10px 12px; }
  .wegweiser-knopf {
    display: flex; width: 100%; justify-content: space-between; align-items: center; background: none; border: 0; cursor: pointer;
    font: 700 13px var(--schrift-zier); letter-spacing: .3em; text-transform: uppercase; color: var(--gold-hell); padding: 6px 4px;
  }
  .wegweiser-knopf::after { content: "▾"; }
  .wegweiser-liste { display: none; padding-top: 8px; }
  .wegweiser.offen .wegweiser-liste { display: block; }
  .blatt { padding: 34px 24px 30px; }
  .rolle::before, .rolle::after { left: -6px; right: -6px; }
}
@media (max-width: 720px) {
  .pforten { grid-template-columns: 1fr; }
  :root { --kopf: 118px; }
  .wehrgang-innen { flex-wrap: wrap; gap: 8px 12px; padding: 10px 14px; align-content: center; }
  .fackel { display: none; }
  .wappen-text { font-size: 21px; } .wappen-icon { width: 34px; height: 34px; }
  .adresse { margin-left: auto; padding: 5px 10px; font-size: 13px; }
  .suche { order: 3; flex-basis: 100%; max-width: none; margin: 0; }
  #q { height: 38px; }
  body { font-size: 16.5px; }
  .blatt h1 { font-size: 32px; }
  .blatt h2 { font-size: 20px; }
  .einleitung { font-size: 18px; }
  .tor { min-height: 380px; }
  .tor h1 { font-size: 34px; }
  .tor-text { padding: 26px 22px; }
  .knopf.leise { margin: 10px 0 0; }
  .siegel, .warnung, .tipp { padding-left: 66px; }
}
