/* Alter Hirschen – „Grüße aus St. Blasien“, Bogen-Ausgabe
   Bilder stehen in Bögen, Stichbögen und Kreisen – wie die Tür- und Torbögen des Hauses.
   Poststempel begleiten die Seite, am Ende liegt eine Karte zum Zurückschreiben.
   Schriften liegen lokal, keine fremden Server. */

@font-face { font-family: "Marcellus"; font-weight: 400; font-display: swap; src: url(fonts/marcellus-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 600; font-display: swap; src: url(fonts/playfair-display-latin-600-italic.woff2) format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 700; font-display: swap; src: url(fonts/playfair-display-latin-700-italic.woff2) format("woff2"); }

:root {
  --wald: #14402A; --tanne: #2D4F38; --gold: #AD8226; --gold-hell: #D6B56E; --gold-text: #7A5A16;
  --tisch: #F6F1E7;      /* heller, warmer Papiergrund */
  --tisch-dunkel: #ECE4D3;
  --karte: #FFFDF8;      /* Kartenweiß */
  --tinte: #1E3326; --creme: #FAF6EC;
  --schreib: "Playfair Display", Georgia, serif;   /* nur für goldene Wörter und die Handschrift auf der Karte */
  --druck: "Marcellus", Georgia, serif;            /* aufrechte Grundschrift */
  --rand: clamp(20px, 5vw, 72px); --breite: 1240px; --luft: clamp(84px, 10vw, 150px);
  --sanft: cubic-bezier(0.2, 0.75, 0.2, 1);
  --schatten: 0 1px 2px rgba(40, 30, 10, 0.18), 0 18px 34px -16px rgba(40, 30, 10, 0.42);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--tisch); color: var(--tinte); font-family: var(--druck); font-size: clamp(17px, 1rem + 0.25vw, 19px); line-height: 1.7; -webkit-font-smoothing: antialiased; }
main { overflow-x: clip; }
img, svg, picture { display: block; } img { max-width: 100%; height: auto; }
h1, h2, h3, p, figure, dl, dd, ol, ul, blockquote { margin: 0; } ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold-hell); color: var(--wald); }
.sprung { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--wald); color: var(--creme); padding: 12px 18px; border-radius: 999px; }
.sprung:focus { top: 12px; }
.innen { max-width: calc(var(--breite) + 2 * var(--rand)); margin-inline: auto; padding-inline: var(--rand); }

/* Überschriften: aufrecht, nur das goldene Wort ist geschwungen */
.titel { font-family: var(--druck); font-weight: 400; font-size: clamp(32px, 1.3rem + 2.5vw, 58px); line-height: 1.1; letter-spacing: -0.01em; color: var(--wald); text-wrap: balance; }
.titel em { font-family: var(--schreib); font-style: italic; font-weight: 600; color: var(--gold); letter-spacing: 0; }
.vorspann { color: var(--tanne); max-width: 33em; margin-top: 18px; }
.kopfteil { margin-bottom: clamp(40px, 5vw, 68px); }
.kopfteil--mitte { text-align: center; } .kopfteil--mitte .vorspann { margin-inline: auto; }

/* Knöpfe: rund wie die Bögen */
.knopf { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-size: 16px; line-height: 1.2; letter-spacing: 0.03em; color: var(--creme); background: var(--wald); padding: 16px 30px; border: 1px solid var(--wald); border-radius: 999px; text-decoration: none; cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.knopf:hover { background: var(--tanne); border-color: var(--tanne); }
.knopf--hell { background: transparent; color: var(--wald); } .knopf--hell:hover { background: var(--wald); border-color: var(--wald); color: var(--creme); }
.knopf--klein { padding: 11px 20px; font-size: 15px; }

/* Bildformen */
.form { position: relative; overflow: hidden; background: var(--tisch-dunkel); isolation: isolate; }
.form > picture, .form > img { width: 100%; height: 100%; }
.form img { width: 100%; height: 100%; object-fit: cover; }
.form--bogen { border-radius: 999px 999px 0 0; }                 /* Rundbogen wie die Eingangstür */
.form--stich { border-radius: 50% 50% 0 0 / 30% 30% 0 0; }       /* flacher Bogen wie die Tore */
.form--kreis { border-radius: 50%; }
.form--eckig { border-radius: 14px; }
.etikett.etikett--oben { bottom: auto; top: 16px; }
.etikett { position: absolute; z-index: 2; left: 50%; bottom: 14px; transform: translateX(-50%); white-space: nowrap; font-size: 11px; line-height: 1.4; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-text); background: rgba(255, 253, 248, 0.92); padding: 5px 13px 4px; border-radius: 999px; }

/* Poststempel */
.stempel { color: var(--tanne); opacity: 0.86; }
.stempel circle, .stempel path { fill: none; stroke: currentColor; }
.stempel text { fill: currentColor; font-family: var(--druck); }
.stempel .st-rund { font-size: 15px; letter-spacing: 0.16em; }
.stempel .st-mitte { font-family: var(--schreib); font-style: italic; font-weight: 700; font-size: 40px; font-variant-numeric: lining-nums; }
.stempel .st-klein { font-size: 13px; letter-spacing: 0.14em; }

/* ---------- Kopfleiste: Logo links ---------- */
.kopf { position: sticky; top: 0; z-index: 50; transition: background-color 0.3s, box-shadow 0.3s; }
.kopf__reihe { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 16px; transition: padding 0.3s; }
.kopf__nav { display: flex; align-items: center; gap: clamp(16px, 2.1vw, 32px); }
.kopf__nav a:not(.knopf) { text-decoration: none; white-space: nowrap; font-size: 16px; color: var(--tanne); }
.kopf__nav a:not(.knopf):hover { text-decoration: underline; text-decoration-color: var(--gold); }
.kopf__nav .knopf { margin-left: clamp(0px, 1vw, 12px); }
.kopf__logo { flex: none; } .kopf__logo img { width: clamp(190px, 11vw + 90px, 250px); transition: width 0.3s; }
.kopf__menue { display: none; }
.kopf--klein { background: rgba(246, 241, 231, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(173, 130, 38, 0.3); }
.kopf--klein .kopf__reihe { padding-block: 8px; } .kopf--klein .kopf__logo img { width: 160px; }
.menue { position: fixed; inset: 0; z-index: 60; background: var(--wald); color: var(--creme); display: flex; flex-direction: column; padding: 22px var(--rand) 32px; visibility: hidden; opacity: 0; transition: opacity 0.25s, visibility 0.25s; }
.menue[data-offen] { visibility: visible; opacity: 1; }
.menue__kopf { display: flex; justify-content: space-between; align-items: center; } .menue__kopf img { width: 190px; }
.menue__zu { font: inherit; font-size: 15px; color: var(--creme); background: none; border: 1px solid rgba(214, 181, 110, 0.6); border-radius: 999px; padding: 10px 18px; cursor: pointer; }
.menue ul { margin: auto 0; } .menue li a { display: block; padding: 9px 0; text-decoration: none; font-size: clamp(30px, 8.5vw, 42px); line-height: 1.2; }
.menue__fuss { display: grid; gap: 12px; justify-items: start; } .menue__fuss a:not(.knopf) { color: var(--gold-hell); }
.menue .knopf { background: var(--gold-hell); border-color: var(--gold-hell); color: var(--wald); margin-bottom: 6px; }

/* ---------- Auftakt ---------- */
.auftakt { padding: clamp(16px, 2.6vw, 40px) 0 var(--luft); }
.auftakt__raster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4.5vw, 72px); align-items: center; }
.gruss { font-family: var(--schreib); font-style: italic; font-weight: 600; font-size: clamp(19px, 1rem + 0.6vw, 25px); color: var(--gold-text); margin-bottom: 14px; }
.auftakt__titel { font-family: var(--druck); font-weight: 400; font-size: clamp(46px, 1.2rem + 4.6vw, 92px); line-height: 1.02; letter-spacing: -0.02em; color: var(--wald); margin-bottom: 0.4em; }
.auftakt__titel em { display: block; font-family: var(--schreib); font-style: italic; font-weight: 700; letter-spacing: -0.01em; color: var(--gold); }
.auftakt__satz { font-size: clamp(18px, 1rem + 0.4vw, 21px); line-height: 1.6; color: var(--tanne); max-width: 25em; }
.auftakt__knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.auftakt__bild { position: relative; padding: 0 0 7% 9%; }
.auftakt__haus { aspect-ratio: 3507 / 2995; box-shadow: 0 0 0 8px var(--karte), 0 44px 70px -36px rgba(20, 64, 42, 0.6); }
.auftakt__an { position: absolute; inset: 0; }
.auftakt__an picture { width: 100%; height: 100%; }
.auftakt__haus .etikett { bottom: 18px; }
.auftakt__dom { position: absolute; left: 0; bottom: 0; z-index: 2; width: 23%; aspect-ratio: 3 / 4; box-shadow: 0 0 0 6px var(--karte), 0 26px 40px -24px rgba(20, 64, 42, 0.7); }
.auftakt .stempel { position: absolute; z-index: 3; right: -3%; bottom: -3%; width: 33%; height: auto; transform: rotate(-9deg); }

/* ---------- Das Haus: drei Bögen auf der Sockellinie ---------- */
.drei { padding: 0 0 var(--luft); }
.boegen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto; column-gap: clamp(22px, 3.4vw, 52px); position: relative; }
.boegen::before { content: ""; grid-column: 1 / -1; grid-row: 2; align-self: start; height: 1.5px; background: var(--gold); }
.boegen__teil { display: grid; grid-template-rows: subgrid; grid-row: 1 / span 2; }
.boegen__teil:nth-child(1) { grid-column: 1; } .boegen__teil:nth-child(2) { grid-column: 2; --i: 1; } .boegen__teil:nth-child(3) { grid-column: 3; --i: 2; }
.boegen__teil .form { align-self: end; aspect-ratio: 3 / 3.9; }
.boegen__teil:nth-child(2) .form { aspect-ratio: 3 / 4.3; }
.boegen__text { padding: 26px 4px 0; }
.boegen__text h3 { font-family: var(--druck); font-weight: 400; font-size: clamp(23px, 1.1rem + 0.8vw, 30px); line-height: 1.2; color: var(--wald); margin-bottom: 8px; }
.boegen__text p { max-width: 24em; }

/* ---------- Einblicke: Formen zum Durchblättern ---------- */
.falt { background: var(--wald); color: var(--creme); padding: var(--luft) 0 calc(var(--luft) * 0.8); overflow: hidden; }
.falt .titel { color: var(--creme); } .falt .titel em { color: var(--gold-hell); } .falt .vorspann { color: rgba(250, 246, 236, 0.84); }
.falt__kopf { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.falt__pfeile { display: flex; gap: 10px; flex: none; }
.falt__pfeile button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(214, 181, 110, 0.7); background: none; color: var(--gold-hell); cursor: pointer; display: grid; place-items: center; transition: background-color 0.2s, color 0.2s, opacity 0.2s; }
.falt__pfeile button:hover:not(:disabled) { background: var(--gold-hell); color: var(--wald); }
.falt__pfeile button:disabled { opacity: 0.35; cursor: default; }
.falt__pfeile svg, .ansicht button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.falt__bahn { --h: clamp(260px, 28vw, 420px); display: flex; align-items: flex-end; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 52px max(var(--rand), calc((100vw - var(--breite)) / 2)) 30px; scroll-padding-inline: max(var(--rand), calc((100vw - var(--breite)) / 2)); }
.falt__bahn::-webkit-scrollbar { display: none; }
.falt__bahn li { position: relative; flex: none; padding-right: clamp(26px, 3vw, 46px); scroll-snap-align: start; }
.falt__bahn li:last-child { padding-right: 0; }
.falt__bahn li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 46px; border-top: 1px solid rgba(214, 181, 110, 0.6); } /* Sockellinie */
.falt__bahn a { display: block; color: inherit; text-decoration: none; cursor: zoom-in; }
.falt__bahn .form { height: var(--h); background: var(--tanne); }
.falt__bahn .form--bogen { aspect-ratio: 3 / 4; }
.falt__bahn .form--stich { height: calc(var(--h) * 0.8); aspect-ratio: 3 / 2; }
.falt__bahn .form--kreis { height: calc(var(--h) * 0.84); aspect-ratio: 1; }
.falt__bahn .form img { transition: transform 0.9s var(--sanft); }
.falt__bahn a:hover .form img { transform: scale(1.04); }
.falt__zeile { display: block; height: 46px; padding-top: 14px; font-size: 16px; line-height: 1.4; white-space: nowrap; color: rgba(250, 246, 236, 0.9); }
.falt__hinweis { margin-top: 26px; font-size: 0.86em; color: rgba(250, 246, 236, 0.7); }

/* ---------- Baustelle ---------- */
.baustelle { padding: var(--luft) 0; }
.tagebuch li { display: grid; grid-template-columns: 132px minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 4vw, 56px); align-items: center; padding: clamp(30px, 3.8vw, 50px) 0; border-top: 1px solid rgba(173, 130, 38, 0.45); }
.tagebuch li:last-child { border-bottom: 1px solid rgba(173, 130, 38, 0.45); }
.tagebuch .stempel { width: 124px; height: auto; transform: rotate(-8deg); } .tagebuch li:nth-child(even) .stempel { transform: rotate(6deg); }
.tagebuch .form { aspect-ratio: 3 / 2; }
.tagebuch h2, .tagebuch h3 { font-family: var(--druck); font-weight: 400; font-size: clamp(25px, 1.2rem + 1vw, 34px); line-height: 1.2; color: var(--wald); margin-bottom: 10px; }
.tagebuch p { max-width: 30em; }
.tagebuch h2 a, .tagebuch h3 a { text-decoration: none; } .tagebuch h2 a:hover, .tagebuch h3 a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.tagebuch__bild { display: block; } .tagebuch .knopf { margin-top: 20px; }
.baustelle__mehr { margin-top: clamp(34px, 4vw, 52px); text-align: center; }
.baustelle--archiv { padding-top: clamp(48px, 7vw, 96px); }

/* ---------- Geschichte ---------- */
.geschichte { background: var(--wald); color: var(--creme); padding: var(--luft) 0; }
.geschichte .titel { color: var(--creme); } .geschichte .titel em { color: var(--gold-hell); } .geschichte .vorspann { color: rgba(250, 246, 236, 0.86); }
.jahre { position: relative; }
.jahre__liste { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
.jahre li:nth-child(1) { --n: 0; } .jahre li:nth-child(2) { --n: 1; } .jahre li:nth-child(3) { --n: 2; } .jahre li:nth-child(4) { --n: 3; } .jahre li:nth-child(5) { --n: 4; } .jahre li:nth-child(6) { --n: 5; } .jahre li:nth-child(7) { --n: 6; }
.jahre__welle { position: absolute; left: 0; top: 34px; width: 100%; height: 40px; }
.jahre__welle path { fill: none; stroke: var(--gold-hell); stroke-width: 1.3; opacity: 0.75; }
.jahre li { position: relative; text-align: center; }
.jahre__marke { width: 108px; height: 108px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--wald); border: 1.5px solid var(--gold-hell); box-shadow: inset 0 0 0 5px var(--wald), inset 0 0 0 6px rgba(214, 181, 110, 0.5); font-family: var(--schreib); font-style: italic; font-weight: 700; font-size: 29px; font-variant-numeric: lining-nums; color: var(--gold-hell); }
.jahre__wende .jahre__marke { background: var(--gold-hell); color: var(--wald); box-shadow: inset 0 0 0 5px var(--gold-hell), inset 0 0 0 6px var(--wald); transform: scale(1.16); }
.jahre p { font-size: 15.5px; line-height: 1.55; color: rgba(250, 246, 236, 0.88); }
.jahre__wende p { color: var(--creme); }
.leitsatz { margin-top: clamp(64px, 8vw, 110px); text-align: center; font-family: var(--schreib); font-style: italic; font-weight: 600; font-size: clamp(25px, 1.1rem + 1.9vw, 44px); line-height: 1.28; color: var(--gold-hell); max-width: 21em; margin-inline: auto; text-wrap: balance; }

/* ---------- Lage ---------- */
.lage { padding: var(--luft) 0; }
.lage__raster { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.lage__bild { position: relative; width: min(100%, 620px); justify-self: start; }
.lage .form { aspect-ratio: 3 / 3.5; box-shadow: 0 40px 70px -40px rgba(20, 64, 42, 0.55); }
.lage .stempel { position: absolute; z-index: 3; right: -9%; top: -2%; width: 30%; height: auto; transform: rotate(-10deg); }  /* im freien Eck neben dem Bogen */
.angaben { margin-top: 28px; border-bottom: 1px solid rgba(173, 130, 38, 0.5); }
.angaben div { display: grid; grid-template-columns: 6.2em 1fr; gap: 12px; padding: 13px 0; border-top: 1px solid rgba(173, 130, 38, 0.5); }
.angaben dt { color: var(--gold-text); } .lage .knopf { margin-top: 28px; }

/* ---------- Karte zum Zurückschreiben ---------- */
.schreiben { padding: 0 0 var(--luft); }
.rueck { position: relative; max-width: 1040px; margin-inline: auto; background: var(--karte); box-shadow: var(--schatten); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: clamp(28px, 4vw, 54px); }
.rueck__links { padding-right: clamp(24px, 4vw, 52px); }
.rueck__links .titel { font-size: clamp(28px, 1.2rem + 1.7vw, 42px); }
.rueck__links p { margin-top: 16px; } .rueck__links .knopf { margin-top: 26px; }
.rueck__klein { font-size: 0.84em; color: var(--tanne); }
.rueck__rechts { position: relative; border-left: 1px solid rgba(45, 79, 56, 0.45); padding-left: clamp(24px, 4vw, 52px); display: flex; flex-direction: column; justify-content: flex-end; min-height: 340px; }
.marke { position: absolute; z-index: 0; right: 0; top: 0; width: 96px; filter: drop-shadow(0 1px 1.5px rgba(40, 30, 10, 0.45)); }
.marke__zahn { padding: 7px; background: var(--karte);
  -webkit-mask: conic-gradient(#000 0 0) content-box, radial-gradient(circle 4.2px, #0000 96%, #000) -6px -6px / 12px 12px;
          mask: conic-gradient(#000 0 0) content-box, radial-gradient(circle 4.2px, #0000 96%, #000) -6px -6px / 12px 12px; }
.marke__zahn div { background: var(--wald); aspect-ratio: 4 / 5; display: grid; place-items: center; padding: 12px; }
.rueck .stempel { position: absolute; z-index: 2; right: 58px; top: -6px; width: 150px; height: auto; transform: rotate(-11deg); }
.anschrift li { font-family: var(--schreib); font-style: italic; font-weight: 600; font-size: clamp(19px, 1rem + 0.6vw, 24px); line-height: 1.3; color: var(--wald); border-bottom: 1px solid rgba(45, 79, 56, 0.45); padding: 16px 2px 7px; }
.anschrift a { text-decoration: none; }

/* ---------- Bericht ---------- */
.bericht { padding: clamp(44px, 6vw, 88px) 0 var(--luft); }
.bericht__kopf { max-width: calc(880px + 2 * var(--rand)); }
.bericht__kopf .stempel { width: 118px; height: auto; transform: rotate(-8deg); margin: 0 0 18px -6px; }
.bericht__ort { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 12px; }
.bericht__kopf .titel { font-size: clamp(36px, 1.3rem + 3.2vw, 68px); }
.bericht__gross { margin-top: clamp(40px, 5vw, 68px); }
.bericht__gross a { display: block; cursor: zoom-in; }
.bericht__bild { max-width: 1080px; margin-inline: auto; }
.bericht__bild--stich { aspect-ratio: 3 / 2; }
.bericht__bild--eckig { aspect-ratio: 3400 / 1730; box-shadow: 0 0 0 8px var(--karte), 0 40px 70px -40px rgba(20, 64, 42, 0.55); }
.bericht__text { max-width: calc(720px + 2 * var(--rand)); margin-top: clamp(40px, 5vw, 64px); font-size: clamp(18px, 1rem + 0.35vw, 20px); }
.bericht__text p + p { margin-top: 1em; }
.bericht__galerie { margin-top: clamp(72px, 9vw, 130px); }
.galerie__gruppe + .galerie__gruppe { margin-top: clamp(56px, 7vw, 96px); }
.galerie__gruppe h2 { font-family: var(--druck); font-weight: 400; font-size: clamp(26px, 1.2rem + 1.2vw, 38px); line-height: 1.2; color: var(--wald); margin-bottom: clamp(22px, 3vw, 34px); }
.raster { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px clamp(18px, 2.6vw, 36px); }
.raster--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.raster li:nth-child(2) { --i: 1; } .raster li:nth-child(3) { --i: 2; } .raster li:nth-child(4) { --i: 3; }
.raster a { display: block; color: inherit; text-decoration: none; cursor: zoom-in; }
.raster .form { aspect-ratio: 3 / 4; }
.raster__zeile { display: block; padding-top: 12px; border-top: 1.5px solid var(--gold); font-size: 16px; line-height: 1.4; color: var(--tanne); }
.bericht__hinweis { margin-top: 34px; font-size: 0.86em; color: var(--tanne); }
.bericht__fuss { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: clamp(64px, 8vw, 110px); }

/* ---------- Fuß ---------- */
.fuss { background: var(--wald); color: rgba(250, 246, 236, 0.86); padding: clamp(44px, 5vw, 64px) 0 28px; font-size: 0.92em; }
.fuss__raster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr); gap: 32px clamp(24px, 5vw, 72px); }
.fuss__logo { width: 232px; margin: -10px 0 0 -3px; } .fuss address { font-style: normal; }
.fuss h2 { font: inherit; color: var(--gold-hell); margin-bottom: 8px; } .fuss a { color: var(--creme); }
.fuss__zeile { margin-top: clamp(32px, 4vw, 48px); padding-top: 20px; border-top: 1px solid rgba(214, 181, 110, 0.2); font-size: 0.9em; color: rgba(250, 246, 236, 0.62); }

/* ---------- Große Bildansicht ---------- */
.ansicht { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(12, 36, 24, 0.97); color: var(--creme); }
.ansicht::backdrop { background: rgba(12, 36, 24, 0.9); } .ansicht[open] { display: grid; place-items: center; }
.ansicht figure { max-width: min(1500px, 90vw); text-align: center; }
.ansicht img { max-width: 100%; max-height: calc(100dvh - 140px); width: auto; height: auto; margin: 0 auto; border-radius: 10px; }
.ansicht figcaption { padding-top: 14px; font-size: 16px; letter-spacing: 0.02em; color: rgba(250, 246, 236, 0.9); }
.ansicht button { position: absolute; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; border: 1px solid rgba(214, 181, 110, 0.6); background: rgba(20, 64, 42, 0.85); color: var(--creme); display: grid; place-items: center; padding: 0; }
.ansicht button:hover { background: var(--tanne); }
.ansicht button[hidden] { display: none; }
.ansicht__zu { top: 16px; right: 16px; } .ansicht__zurueck { left: 16px; top: 50%; margin-top: -25px; } .ansicht__weiter { right: 16px; top: 50%; margin-top: -25px; }

/* ---------- Unterseiten ---------- */
.seitenkopf { border-bottom: 1px solid rgba(173, 130, 38, 0.4); }
.seitenkopf .reihe { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 16px; } .seitenkopf img { width: 200px; }
.seitenkopf .knopf { white-space: nowrap; }
.rechtstext { padding: clamp(48px, 7vw, 96px) 0 var(--luft); } .rechtstext .innen > * { max-width: 42em; }
.rechtstext h1 { margin-bottom: 0.6em; }
.rechtstext h2 { font-family: var(--druck); font-weight: 400; color: var(--wald); font-size: 1.45em; line-height: 1.25; margin: 2em 0 0.45em; }
.rechtstext p + p { margin-top: 0.9em; } .rechtstext ul { padding-left: 1.2em; list-style: disc; margin: 0.6em 0; }
.rechtstext .stand { margin-top: 2.4em; color: var(--tanne); font-size: 0.92em; }

/* ---------- Bewegung ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  /* Auftakt: die Zeilen heben sich, der Bogen öffnet sich, im Haus geht das Licht an, der Stempel fällt */
  .auftakt__text > * { animation: heben 0.9s var(--sanft) both; }
  .auftakt__text > :nth-child(2) { animation-delay: 0.1s; } .auftakt__text > :nth-child(3) { animation-delay: 0.22s; } .auftakt__text > :nth-child(4) { animation-delay: 0.34s; }
  .js .auftakt__an { opacity: 0; }
  .js .auftakt__bild.ist-da .auftakt__an { opacity: 1; transition: opacity 2.6s ease-in-out 1.7s; }
  .js .auftakt__dom { --i: 4; }
  /* Bögen öffnen sich von unten nach oben – erst, wenn das Bild wirklich geladen ist */
  .js .rein .form { opacity: 0; transition: opacity 0.5s ease calc(var(--i, 0) * 0.14s); }
  .js .rein .form > :is(picture, img) { clip-path: inset(100% 0 0 0); }
  .js .rein .form img { transform: scale(1.16); }
  .js .rein.ist-da .form { opacity: 1; }
  .js .rein.ist-da .form > :is(picture, img) { clip-path: inset(0); transition: clip-path 1.25s var(--sanft) calc(var(--i, 0) * 0.14s + 0.1s); }
  .js .rein.ist-da .form img { transform: none; transition: transform 1.9s var(--sanft) calc(var(--i, 0) * 0.14s + 0.1s); }
  .js .rein .etikett { opacity: 0; }
  .js .rein.ist-da .etikett { opacity: 1; transition: opacity 0.6s ease calc(var(--i, 0) * 0.14s + 1s); }
  .js .rein .boegen__text, .js .rein > div:last-child:not(.form) { opacity: 0; transform: translateY(18px); }
  .js .rein.ist-da .boegen__text, .js .rein.ist-da > div:last-child:not(.form) { opacity: 1; transform: none; transition: opacity 0.8s ease calc(var(--i, 0) * 0.14s + 0.45s), transform 1s var(--sanft) calc(var(--i, 0) * 0.14s + 0.45s); }
  /* Stempel: werden aufgedrückt */
  .js .rein .stempel, .js .rueck .stempel { opacity: 0; scale: 1.6; }
  .js .rein.ist-da .stempel, .js .rueck.ist-da .stempel { opacity: 0.86; scale: 1; transition: opacity 0.2s ease var(--sv, 0.85s), scale 0.42s cubic-bezier(0.3, 1.4, 0.5, 1) var(--sv, 0.85s); }
  .auftakt { --sv: 1.5s; }
  /* Einblicke: die Formen öffnen sich nacheinander */
  .js .falt__bahn .form { opacity: 0; }
  .js .falt__bahn .form > picture { clip-path: inset(100% 0 0 0); }
  .js .falt__bahn .form img { transform: scale(1.16); }
  .js .falt__bahn li::after { transform: scaleX(0); transform-origin: 0 50%; }
  .js .falt__bahn .falt__zeile { opacity: 0; }
  .js .falt__bahn.ist-da .form { opacity: 1; transition: opacity 0.5s ease calc(var(--n) * 0.12s); }
  .js .falt__bahn.ist-da .form > picture { clip-path: inset(0); transition: clip-path 1.2s var(--sanft) calc(var(--n) * 0.12s + 0.1s); }
  .js .falt__bahn.ist-da .form img { transform: none; transition: transform 1.8s var(--sanft) calc(var(--n) * 0.12s + 0.1s); }
  .js .falt__bahn.ist-da a:hover .form img { transform: scale(1.04); transition: transform 0.9s var(--sanft); }
  .js .falt__bahn.ist-da li::after { transform: none; transition: transform 1.4s var(--sanft) calc(var(--n) * 0.12s); }
  .js .falt__bahn.ist-da .falt__zeile { opacity: 1; transition: opacity 0.7s ease calc(var(--n) * 0.12s + 0.7s); }
  .falt__bahn li:nth-child(1) { --n: 0; } .falt__bahn li:nth-child(2) { --n: 1; } .falt__bahn li:nth-child(3) { --n: 2; } .falt__bahn li:nth-child(4) { --n: 3; } .falt__bahn li:nth-child(5) { --n: 4; } .falt__bahn li:nth-child(6) { --n: 5; } .falt__bahn li:nth-child(7) { --n: 6; }
  /* Die Sockellinie unter den drei Bögen zieht sich */
  .js .drei .boegen::before { transform: scaleX(0); transform-origin: 0 50%; }
  .js .drei .boegen:has(.ist-da)::before { transform: none; transition: transform 1.6s var(--sanft); }
  /* Die Stempelwelle zeichnet sich, die Jahresmarken werden gestempelt */
  .js .jahre__welle path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s cubic-bezier(0.4, 0, 0.2, 1); }
  .js .jahre.ist-da .jahre__welle path { stroke-dashoffset: 0; }
  .js .jahre__marke { opacity: 0; scale: 1.5; }
  .js .jahre.ist-da .jahre__marke { opacity: 1; scale: 1; transition: opacity 0.25s ease, scale 0.4s cubic-bezier(0.3, 1.4, 0.5, 1); transition-delay: calc(var(--n) * 0.32s + 0.2s); }
}
@keyframes heben { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---------- Kleinere Bildschirme ---------- */
@media (max-width: 1100px) {
  .kopf__nav { display: none; } .kopf__menue { display: inline-flex; }
  .jahre__liste { grid-template-columns: 1fr; gap: 0; max-width: 560px; }
  .jahre__welle { display: none; }
  .jahre li { display: grid; grid-template-columns: 96px 1fr; gap: 22px; align-items: center; text-align: left; padding: 12px 0; }
  .jahre__marke { width: 92px; height: 92px; font-size: 25px; margin: 0; } .jahre__wende .jahre__marke { transform: scale(1.08); }
  .jahre p { font-size: 16.5px; }
}
@media (max-width: 860px) {
  html { scroll-padding-top: 74px; }
  .kopf__logo img { width: min(200px, 52vw); } .kopf--klein .kopf__logo img { width: min(160px, 46vw); }
  .auftakt__raster { grid-template-columns: 1fr; gap: 40px; }
  .auftakt__bild { padding: 0 0 12% 4%; margin-right: 6px; }
  .auftakt__haus { box-shadow: 0 0 0 6px var(--karte), 0 30px 50px -30px rgba(20, 64, 42, 0.6); }
  .auftakt__dom { width: 26%; box-shadow: 0 0 0 5px var(--karte), 0 20px 30px -20px rgba(20, 64, 42, 0.7); }
  .auftakt .stempel { width: 38%; right: -2%; bottom: 0; }
  .auftakt__haus .etikett { bottom: auto; top: 14px; }
  .boegen { display: block; max-width: 440px; margin-inline: auto; }
  .boegen::before { content: none; }
  .boegen__teil { display: block; } .boegen__teil + .boegen__teil { margin-top: 48px; }
  .boegen__teil .form, .boegen__teil:nth-child(2) .form { aspect-ratio: 3 / 3.5; }
  .boegen__text { border-top: 1.5px solid var(--gold); padding-top: 18px; }
  .falt__kopf { flex-direction: column; align-items: start; }
  .falt__bahn { --h: min(330px, 92vw); padding-top: 40px; }
  .falt__bahn .form--stich { height: calc(var(--h) * 0.72); aspect-ratio: auto; width: min(84vw, calc(var(--h) * 1.2)); }
  .tagebuch li { grid-template-columns: 1fr; gap: 18px; } .tagebuch .stempel { width: 96px; margin-bottom: -6px; }
  .lage__raster { grid-template-columns: 1fr; gap: 56px; }
  .lage__bild { width: min(88%, 520px); }
  .lage .stempel { right: -10%; top: -3%; width: 36%; }
  .rueck { grid-template-columns: 1fr; }
  .rueck__links { padding: 0 0 30px; } .rueck__rechts { border-left: 0; border-top: 1px solid rgba(45, 79, 56, 0.45); padding: 150px 0 0; min-height: 0; }
  .marke { top: 18px; } .rueck .stempel { top: 12px; width: 124px; }
  .raster, .raster--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 16px; }
  .raster li:nth-child(odd) { --i: 0; } .raster li:nth-child(even) { --i: 1; }
  .bericht__bild--eckig { box-shadow: 0 0 0 5px var(--karte), 0 30px 50px -30px rgba(20, 64, 42, 0.55); }
  .fuss__raster { grid-template-columns: 1fr; }
  .seitenkopf img { width: min(170px, 46vw); }
}
@media (max-width: 400px) {
  .auftakt__knoepfe .knopf { flex: 1 1 100%; }
}
