/* be-pure.ch – Raum P1X · Besucherbuch als Ausstellungsbuch · Iris, 04.11.2026 21:50
   Simon, 04.11.2026 21:34: «Und es sieht immer noch so langweilig wie deine Geschäftsagenda aus. Bitte ändern.»
   Bild 1793824056.536: weisses Blatt, «Sie gehen schon?», blaue kursive Platzhalter, ein leeres Zeichenfeld,
   Unterstrich-Felder – ein Formular auf Papier. Vier Runden (P1I, P1N, P1O, P1V) haben daran geflickt; diese Datei
   ersetzt sie, statt eine fünfte Schicht darüberzulegen.

   Vergleichbar: das Gästebuch am Ausgang einer Architektur- oder Kunstausstellung – ein schweres, quer aufgeschlagenes
   Buch in Leinen, ungestrichenes warmes Papier, eine feine graue Spaltenliniierung, und die Seite ist voll mit der
   Handschrift früherer Besucher in verschiedenen Tinten.

   Herrschende Regel: die Seite gehört den Einträgen der anderen; der eigene Eintrag ist die nächste freie Zeile in
   derselben Liniatur. Die Spaltenköpfe sind die Beschriftung – darum keine Platzhalter, keine Überschrift als Frage,
   kein Kasten fürs Zeichnen (gezeichnet wird auf dem Papier unter der Zeile), und «eintragen» steht klein am Zeilenende.

   Meisterquelle und angewandte Regel: das Besucherbuch eines Museums ist ein vorgedrucktes Register mit Spalten
   Datum · Name · Adresse · Bemerkungen (Visitors Book, Hawke's Bay Museum and Art Gallery, Sammlung MTG Hawke's Bay,
   collection.hawkesbaymuseum.com/objects/84542; Exhibit Comment Books, Museum of Anthropology UBC: «random musings and
   drawings»), und der Fehler, den Museumsleute daran selbst benennen, ist die zu enge Bemerkungsspalte: «a binder with
   landscape oriented fields … The comments box is very small» (René Ballesteros, Museum of South Texas History, AAM
   Open Forum «Digital vs. physical guestbooks», 26.09.2022). Angewandt: die drei Registerspalten zusammen nehmen
   weniger als die Hälfte der Seite (12 + 20 + 16 = 48 %), die Spalte «Eintrag» die grössere Hälfte, und Zeichnungen
   haben die freien Zeilen darunter.

   Schrift: EB Garamond für das Gedruckte (Kopf, Titelblatt), drei freie Handschriften für die Hände (Caveat, Cedarville
   Cursive, Reenie Beanie; alle OFL, Lizenzen in schrift/OFL_*.txt, lokal, keine Google-Server). Der Besucher schreibt
   in Caveat mit Füllerblau. Kein text-shadow (Simon 20:22: keine Säume, auch kein dunkler Ersatz).
   Drei-Werte-Probe: Raum dunkel, Leinen tiefer, Papier hell; die Tinten liegen im Mittel- bis Tiefwert auf dem Papier. */

@font-face { font-family: "EB Garamond"; src: url(schrift/eb-garamond-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url(schrift/eb-garamond-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url(schrift/eb-garamond-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Hand Caveat"; src: url(schrift/caveat-latin-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Hand Cedarville"; src: url(schrift/cedarville-cursive-latin-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Hand Reenie"; src: url(schrift/reenie-beanie-latin-400-normal.woff2) format("woff2"); font-display: swap; }

.buch { position: fixed; inset: 0; z-index: 30; visibility: hidden; pointer-events: none;
  /* ungestrichenes Naturpapier im warmen Licht des Raums – nicht reinweiss, nicht Beige */
  --papier: #ebe6dc; --papier2: #e0dacd; --tinte: #23211e; --leise: #6c665c; --druck: #7a7366;
  --linie: rgba(70,62,50,.20); --spalte: rgba(70,62,50,.16);
  --feder: #26418c; --schwarz: #1f1e1c; --blei: #6a6762;
  --rot: #9b1d22; --leinen: #24272b;
  --breit: min(1000px, 72vw, calc((100vh - 26vh) * 1.42));
  --rand: calc(var(--breit) * .017);
  --dl: 2px; --dr: 8px;
  --z: calc(var(--breit) * .0265);                     /* Zeilenabstand der Liniatur */
  --sp: 12% 20% 16% 1fr;                               /* Datum · Name · Woher · Eintrag (48 % gegen 52 %) */
  --schrift: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --hand: "Hand Caveat", "Bradley Hand", cursive; }
.buch::before { content: ""; position: absolute; inset: 0; background: rgba(5,6,8,0); transition: background .9s ease; }
html.buch-offen .buch { visibility: visible; pointer-events: auto; }
html.buch-offen .buch::before { background: rgba(5,6,8,.72); }
html.buch-offen .station, html.buch-offen .hinweis { opacity: 0 !important; pointer-events: none !important; }
html.riss-zeiger, html.riss-zeiger canvas#raum { cursor: pointer; }

/* ===================================================================================== das Buch als Gegenstand */
.band { position: absolute; left: calc(var(--achse) + var(--rand)); top: 50%; width: var(--breit); aspect-ratio: 1.42 / 1;
  transform: translateY(-46%); opacity: 0; transition: opacity .5s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.band:not(.aufgeschlagen) { perspective: 2600px; }
html.buch-offen .band { opacity: 1; transform: translateY(-50%); }

/* Leinen über Pappe: Kette und Schuss als zwei gestreckte Rauschfelder, der Rücken als hohle Mulde */
.decke { position: absolute; inset: calc(-1 * var(--rand)); border-radius: 3px; z-index: 1;
  background-color: var(--leinen);
  background-image:
    linear-gradient(to right, rgba(0,0,0,0) 47.4%, rgba(0,0,0,.42) 49.4%, rgba(0,0,0,.55) 50%, rgba(0,0,0,.42) 50.6%, rgba(0,0,0,0) 52.6%),
    linear-gradient(100deg, rgba(255,236,205,.05) 0, rgba(0,0,0,0) 40%, rgba(0,0,0,.16) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='l'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9 .045' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .11 0'/%3E%3C/filter%3E%3Cfilter id='q'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.045 .9' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .26 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23l)'/%3E%3Crect width='120' height='120' filter='url(%23q)'/%3E%3C/svg%3E");
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), inset 0 1px 0 rgba(255,255,255,.07),
              0 2px 0 #121417, 0 34px 80px rgba(0,0,0,.55), 0 8px 24px rgba(0,0,0,.36); }

.stapel { position: absolute; z-index: 2; top: .5%; bottom: calc(-.55 * var(--d)); transition: all .35s ease;
  background-color: #d3cdc1; background-repeat: no-repeat; }
.stapel.l { --d: var(--dl); left: calc(-1 * var(--d)); width: calc(50% + var(--d));
  background-image: repeating-linear-gradient(to right, #e6e0d4 0 1px, #bfb8ab 1px 1.6px),
                    repeating-linear-gradient(to bottom, #e6e0d4 0 1px, #bbb4a7 1px 1.5px);
  background-size: var(--d) 100%, 100% calc(.55 * var(--d)); background-position: left top, left bottom;
  -webkit-mask-image: linear-gradient(to right, #000 92%, transparent 100%); mask-image: linear-gradient(to right, #000 92%, transparent 100%); }
.stapel.r { --d: var(--dr); right: calc(-1 * var(--d)); width: calc(50% + var(--d));
  background-image: repeating-linear-gradient(to left, #ddd7cb 0 1px, #b3ada0 1px 1.6px),
                    repeating-linear-gradient(to bottom, #ddd7cb 0 1px, #b0a99c 1px 1.5px);
  background-size: var(--d) 100%, 100% calc(.55 * var(--d)); background-position: right top, right bottom;
  -webkit-mask-image: linear-gradient(to left, #000 92%, transparent 100%); mask-image: linear-gradient(to left, #000 92%, transparent 100%); }

.kapital { position: absolute; z-index: 3; left: 50%; width: calc(var(--breit) * .014); height: calc(var(--breit) * .011);
  transform: translateX(-50%); border-radius: 40% 40% 0 0 / 70% 70% 0 0;
  background: repeating-linear-gradient(to right, #e6e1d6 0 1.5px, #2a2c30 1.5px 3px); box-shadow: 0 -1px 0 rgba(0,0,0,.5); }
.kapital.oben { top: calc(-.2 * var(--rand)); }
.kapital.unten { bottom: calc(-.2 * var(--rand)); transform: translateX(-50%) scaleY(-1); }

.baendchen { position: absolute; z-index: 3; top: 88%; left: 50%; width: calc(var(--breit) * .012);
  height: calc(12% + var(--rand) + 5.5vh); transform: translateX(4%) rotate(2.2deg); transform-origin: 50% 0;
  transition: left .5s ease, transform .5s ease;
  background: linear-gradient(to right, #6f1218, var(--rot) 35%, #b7343a 55%, var(--rot) 75%, #74141a);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 9px), 0 100%);
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.45)); }
html.buch-blaettern .baendchen { left: 53.5%; transform: translateX(4%) rotate(6deg); }

/* Die Seiten: gewölbt zum Bund, Licht fällt von links aus dem Raum herein und nimmt über die Doppelseite nach rechts
   weich ab; im Bund bricht es. Das Korn hat Fasern (ein gestrecktes Rauschfeld über dem feinen). */
.block { position: absolute; inset: 0; z-index: 4; display: grid; grid-template-columns: 1fr 1fr; scrollbar-width: none; }
.block::-webkit-scrollbar { display: none; }
.seite { position: relative; overflow: hidden; background-color: var(--papier); color: var(--tinte);
  font-family: var(--schrift); font-weight: 400; font-variant-numeric: oldstyle-nums proportional-nums;
  padding: 8.5% 7% 7% 9%; display: flex; flex-direction: column;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.seite::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply; opacity: .5;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .16' numOctaves='3' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .40 0 0 0 0 .33 0 0 0 .34 -.13'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23f)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='k'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .52 0 0 0 0 .48 0 0 0 0 .42 0 0 0 .2 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23k)'/%3E%3C/svg%3E"); }
.seite.links { background-image:
    linear-gradient(to right, rgba(255,247,232,.20) 0, rgba(255,247,232,0) 45%, rgba(0,0,0,0) 62%,
      rgba(255,255,255,.10) 79%, rgba(60,45,28,.07) 89%, rgba(40,30,20,.22) 96%, rgba(24,18,12,.42) 100%),
    linear-gradient(to bottom, rgba(255,247,232,.08), rgba(60,45,28,.05));
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 1000' preserveAspectRatio='none'%3E%3Cpath d='M0 5C140 0 360 0 455 7Q492 11 500 19L500 981Q492 989 455 993C360 1000 140 1000 0 995Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 1000' preserveAspectRatio='none'%3E%3Cpath d='M0 5C140 0 360 0 455 7Q492 11 500 19L500 981Q492 989 455 993C360 1000 140 1000 0 995Z'/%3E%3C/svg%3E"); }
.seite.rechts { background-image:
    linear-gradient(to left, rgba(60,45,28,.13) 0, rgba(60,45,28,.05) 30%, rgba(0,0,0,0) 62%,
      rgba(255,255,255,.08) 80%, rgba(60,45,28,.07) 90%, rgba(40,30,20,.24) 96.5%, rgba(24,18,12,.44) 100%),
    linear-gradient(to bottom, rgba(255,247,232,.04), rgba(60,45,28,.07));
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 1000' preserveAspectRatio='none'%3E%3Cpath d='M0 19Q8 11 45 7C140 0 360 0 500 5L500 995C360 1000 140 1000 45 993Q8 989 0 981Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 1000' preserveAspectRatio='none'%3E%3Cpath d='M0 19Q8 11 45 7C140 0 360 0 500 5L500 995C360 1000 140 1000 45 993Q8 989 0 981Z'/%3E%3C/svg%3E"); }
.seite.rechts { padding-left: 8%; padding-right: 8%; }

.vorne { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.hinten { display: none; }
html.buch-blaettern .vorne { display: none; }
html.buch-blaettern .hinten { display: flex; flex-direction: column; height: 100%; }
.kolumne, .pagina { display: none; }
.buch [hidden] { display: none !important; }
.beschr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ===================================================================================== Titelblatt (links, am Anfang) */
.titelblatt { padding-top: 14%; max-width: 21em; }
.praegung { width: calc(var(--z) * 1.9); aspect-ratio: 1; margin: 0 0 calc(var(--z) * 1.2);
  filter: drop-shadow(-.6px -.6px 0 rgba(255,252,244,.9)) drop-shadow(.7px .9px .5px rgba(60,50,36,.30)); }
.praegung i { display: block; width: 100%; height: 100%; background: var(--papier2);
  -webkit-mask: url(/bilder/marke/be-pure_signet_farbfrei.svg) center / contain no-repeat;
  mask: url(/bilder/marke/be-pure_signet_farbfrei.svg) center / contain no-repeat; }
.buch h2 { font-weight: 400; font-size: calc(var(--z) * 1.45); line-height: 1.1; letter-spacing: .01em; margin: 0; color: var(--tinte); }
.buch h2:focus { outline: none; }
.haus { margin: .55em 0 0; font-variant-caps: all-small-caps; letter-spacing: .09em; font-size: calc(var(--z) * .62); color: var(--druck); }
/* die Widmung in der Hand des Gastgebers, schwarze Tinte; darunter gedruckt das Datum der Eröffnung */
.widmung-gastgeber { margin: calc(var(--z) * 1.6) 0 0; font-family: "Hand Cedarville", cursive; font-size: calc(var(--z) * .92);
  line-height: 1.35; color: var(--schwarz); transform: rotate(-1.2deg); transform-origin: 0 50%; max-width: 15em; }
.eroeffnet { margin: calc(var(--z) * .7) 0 0; font-size: calc(var(--z) * .56); font-style: italic; color: var(--druck); }
.einladung { margin: calc(var(--z) * 1.3) 0 0; font-style: italic; font-size: calc(var(--z) * .68); line-height: 1.5; color: var(--leise); text-wrap: pretty; }

/* Wege und Kleingedrucktes: gedruckt, klein, unten auf der linken Seite */
.buch .knopf, .loeschen { font-family: var(--schrift); font-style: italic; font-size: calc(var(--z) * .62); color: var(--leise);
  background: none; border: 0; padding: 0; cursor: pointer; text-align: left; text-decoration: none; }
.buch .knopf:hover, .loeschen:hover, .buch .knopf:focus-visible { color: var(--feder); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }
.buch .knopf[disabled] { opacity: .45; cursor: default; }
.links .wege { margin-top: auto; padding-top: calc(var(--z) * .8); display: flex; flex-wrap: wrap; gap: .3em 1.8em; }
.links .wege .knopf:first-child { color: var(--tinte); }
details.impressum { margin-top: .7em; font-size: calc(var(--z) * .5); line-height: 1.5; color: var(--leise); max-width: 30em; }
details.impressum summary { list-style: none; cursor: pointer; font-style: italic; width: max-content; max-width: 100%; }
details.impressum summary::-webkit-details-marker { display: none; }
details.impressum summary:hover { color: var(--tinte); }
details.impressum[open] summary { margin-bottom: .5em; }
details.impressum p + p { margin-top: .4em; }
details.impressum a { color: inherit; }

/* ===================================================================================== das Register: Liniatur und Spalten */
.register { position: relative; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: hidden;
  /* P1Z, Simon 04.11.2026 23:26: «ohne Linierung … so ist es ein Buchhaltungsbuch und kein Gästebuch» – blankes Papier,
     keine Zeilen- und keine Spaltenlinien; der Zeilentakt --z bleibt unsichtbar für den Satz */
  background-image: none; }
.links-register { margin-top: 0; }
.kopf { display: grid; grid-template-columns: var(--sp); height: var(--z); flex: none; position: relative;
  font-variant-caps: all-small-caps; letter-spacing: .1em; font-size: calc(var(--z) * .5); line-height: calc(var(--z) * .74);
  color: var(--druck); }
.kopf span { padding-left: .55em; align-self: end; line-height: calc(var(--z) * .74); }
.liniatur { flex: none; }

.zeile { display: grid; grid-template-columns: var(--sp); flex: none; }
.zeile > * { min-width: 0; padding: 0 .3em 0 .4em; line-height: var(--z); margin: 0; }

/* Die Hände: Schrift, Grösse, Tinte und Neigung kommen fest aus der Kennung des Eintrags (buch_P2F.js, zeileBauen) */
.eintrag-zeile { --g: 1; --neig: 0deg; --tinte-e: var(--feder); color: var(--tinte-e); font-family: var(--hand); }
.eintrag-zeile > * { font-size: calc(var(--z) * .78 * var(--g)); transform: rotate(var(--neig)); transform-origin: 0 60%; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.eintrag-zeile[data-hand=b] { font-family: "Hand Cedarville", cursive; --g2: .74; }
.eintrag-zeile[data-hand=b] > * { font-size: calc(var(--z) * .6 * var(--g)); }
.eintrag-zeile[data-hand=c] { font-family: "Hand Reenie", cursive; }
.eintrag-zeile[data-hand=c] > * { font-size: calc(var(--z) * .9 * var(--g)); }
.eintrag-zeile[data-tinte=schwarz] { --tinte-e: var(--schwarz); }
.eintrag-zeile[data-tinte=blei] { --tinte-e: var(--blei); }
.eintrag-zeile[data-tinte=blei] > * { opacity: .9; }
.eintrag-zeile .datum { font-size: calc(var(--z) * .56); white-space: nowrap; letter-spacing: -.01em; }
.eintrag-zeile[data-hand=c] .datum { font-size: calc(var(--z) * .66); }
.eintrag-zeile[data-hand=b] .datum { font-size: calc(var(--z) * .46); }
.eintrag-zeile .widmung { white-space: pre-wrap; display: flow-root; }
.eintrag-zeile .wer-name { }
/* eine Skizze aus dem Eintrag: zwei Zeilen hoch, in der Tinte des Besuchers, vom Papier getragen */
.eintrag-zeile .skizze { display: block; height: calc(var(--z) * 2); width: auto; max-width: 100%; mix-blend-mode: multiply; }
.eintrag-zeile .skizze { transform: rotate(calc(var(--neig) * -3)); transform-origin: 0 50%; }
/* ein eingeklebtes Foto: drei Zeilen hoch, rechts in der Spalte, leicht schief, mit Fotoecken */
.eintrag-zeile .foto { float: right; position: relative; height: calc(var(--z) * 2); margin: calc(var(--z) * .1) 0 0 .5em;
  box-shadow: 0 1px 2px rgba(40,30,20,.28); transform: rotate(var(--fotoneig, 1.4deg)); }
.eintrag-zeile .foto img { display: block; height: 100%; width: auto; }
.ecke { position: absolute; width: calc(var(--z) * .42); height: calc(var(--z) * .42); background: #1f2124; z-index: 2; }
.ecke.a { left: -2px; top: -2px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.ecke.b { right: -2px; top: -2px; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.ecke.c { left: -2px; bottom: -2px; clip-path: polygon(0 0, 0 100%, 100% 100%); }
.ecke.d { right: -2px; bottom: -2px; clip-path: polygon(100% 0, 100% 100%, 0 100%); }

/* ===================================================================================== die eigene Zeile */
.blatt { position: relative; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.zeile.eigene { grid-template-rows: auto var(--z); color: var(--feder); font-family: var(--hand); }
.zeile.eigene > .datum { grid-column: 1; grid-row: 1; align-self: start; color: var(--blei); opacity: .8;
  font-size: calc(var(--z) * .74); white-space: nowrap; }
.zeile.eigene > .name { grid-column: 2; grid-row: 1; align-self: start; }
.zeile.eigene > .ort { grid-column: 3; grid-row: 1; align-self: start; }
.zeile.eigene > .widmung { grid-column: 4; grid-row: 1; }
.zeile.eigene > .senden { grid-column: 4; grid-row: 2; }
.feld { display: block; padding: 0; }
.buch .blatt textarea, .buch .blatt input[type=text] { display: block; width: 100%; margin: 0; border: 0; outline: none; resize: none;
  background: transparent; color: var(--feder); font-family: var(--hand); font-size: calc(var(--z) * .86);
  line-height: var(--z); height: var(--z); padding: 0 .3em 0 .4em; caret-color: var(--feder); border-radius: 0; box-shadow: none;
  -webkit-appearance: none; appearance: none; }
.buch .blatt textarea { height: calc(var(--z) * 3); overflow-y: auto; scrollbar-width: none; }
.buch .blatt textarea::-webkit-scrollbar { display: none; }
/* wo die Feder steht, zeigt nur der blaue Strich der Schreibmarke – kein Kasten, keine Schreiblinie (P1Z: ohne Linierung) */
.buch .blatt textarea:focus, .buch .blatt input[type=text]:focus { background: transparent; }
.buch .blatt ::placeholder { color: transparent; }
.zeile.eigene > .feld { padding: 0; }

.senden { display: flex; flex-wrap: nowrap; align-items: baseline; gap: .8em; padding: 0 .3em 0 .4em; line-height: calc(var(--z) * .8);
  font-family: var(--schrift); white-space: nowrap; }
.senden .meldung { white-space: normal; }
.senden [data-senden] { margin-left: auto; font-size: calc(var(--z) * .66); color: var(--feder); letter-spacing: .02em; }
.senden [data-senden]::after { content: ""; display: inline-block; width: calc(var(--z) * .7); height: 1px; margin-left: .35em;
  vertical-align: .3em; background: currentColor; opacity: .55; }
.senden .einkleben .knopf { font-size: calc(var(--z) * .56); }
.meldung { font-family: var(--schrift); font-size: calc(var(--z) * .54); font-style: italic; color: var(--rot); line-height: 1.2; }
.honig { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Das Foto, das der Besucher einklebt: auf das Papier unter der Zeile, schief, mit Ecken */
.einkleben { cursor: pointer; }
.einkleben input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.einkleben .rahmen { display: none; }
.einkleben.hat .rahmen { display: block; position: absolute; z-index: 3; right: 3%; bottom: calc(var(--z) * .5); width: 27%; aspect-ratio: 4 / 3;
  transform: rotate(-1.6deg); box-shadow: 0 1px 2px rgba(40,30,20,.3); }
.einkleben .platz { display: none; }
.einkleben img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.einkleben:focus-within .knopf { color: var(--feder); }

/* Zeichnen: auf dem Papier der freien Zeilen unter dem Eintrag. Kein Kasten; eine Bleistiftnotiz sagt, dass man darf. */
.rand { position: relative; flex: 1 1 auto; min-height: calc(var(--z) * 3); }
.zeichnen { position: absolute; inset: 0; touch-action: none; cursor: crosshair; }
.zeichnen canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.bleistift { position: absolute; left: calc(48% + .4em); top: calc(var(--z) * 1); font-family: "Hand Reenie", cursive;
  font-size: calc(var(--z) * .9); line-height: var(--z); color: var(--blei); opacity: .62; transform: rotate(-1.2deg);
  pointer-events: none; transition: opacity .3s ease; }
.rand:has(.zeichnen.hat) .bleistift { opacity: 0; }
.loeschen { position: absolute; right: .3em; bottom: calc(var(--z) * .2); font-size: calc(var(--z) * .54); z-index: 2; }
.zeichnen:not(.hat) ~ .loeschen { visibility: hidden; }

.danke { padding: calc(var(--z) * .2) 0 0 calc(48% + .4em); }
.danke h3 { font-family: var(--hand); font-weight: 400; font-size: calc(var(--z) * 1.3); line-height: calc(var(--z) * 2); color: var(--feder); margin: 0; }
.danke h3:focus { outline: none; }
.danke p { margin: 0; font-style: italic; font-size: calc(var(--z) * .62); line-height: var(--z); color: var(--leise); max-width: 22em; }
.danke .knopf { margin-top: calc(var(--z) * .3); }

/* ===================================================================================== Blättern: frühere Einträge, gross */
.eintrag { display: flex; flex-direction: column; gap: calc(var(--z) * .6); height: 100%; padding-bottom: 3.6rem; font-family: var(--hand); color: var(--feder); }
.eintrag > .kolumne { display: block; position: static; font-family: var(--schrift); font-variant-caps: all-small-caps; letter-spacing: .1em;
  font-size: calc(var(--z) * .55); color: var(--druck); margin: 0 0 calc(var(--z) * .5); }
.eintrag .widmung { white-space: pre-wrap; line-height: 1.3; }
.eintrag .widmung.gross { font-size: calc(var(--z) * 1.6); }
.eintrag .widmung.mittel { font-size: calc(var(--z) * 1.2); }
.eintrag .widmung.klein { font-size: calc(var(--z) * .95); }
.eintrag .zeich { max-width: 100%; max-height: 38%; object-fit: contain; object-position: left; mix-blend-mode: multiply; align-self: flex-start; }
.eintrag .foto { position: relative; align-self: flex-start; box-shadow: 0 1px 3px rgba(40,30,20,.28); }
.eintrag .foto img { display: block; max-width: 100%; max-height: 42vh; }
.eintrag .wer { margin-top: auto; font-size: calc(var(--z) * .9); color: var(--feder); }
.leer-seite { font-family: var(--schrift); color: var(--leise); font-style: italic; margin-top: 30%; }
.fuss-buch { position: absolute; bottom: 5%; left: 8%; right: 22%; display: flex; gap: 2.4em; pointer-events: none; }
.fuss-buch > * { pointer-events: auto; }

/* ===================================================================================== das Blatt im Flug, der Deckel */
.flug { position: absolute; top: 0; height: 100%; z-index: 6; transform-style: preserve-3d; pointer-events: none; perspective: 2600px; }
.flug .st { position: absolute; top: 0; height: 100%; transform-style: preserve-3d; transform-origin: 0 50%; }
.flug .f { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flug .f.b { transform: rotateY(180deg); }
.flug .inh { position: absolute; top: 0; }
.flug .inh > .seite { position: absolute; inset: 0; }
.flug .ton { position: absolute; inset: 0; background: #14110d; opacity: 0; }
.flug .wurf { position: absolute; top: 0; bottom: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(to right, rgba(20,15,10,.32), rgba(20,15,10,0)); }
.abzug { position: absolute; top: 0; height: 100%; z-index: 5; pointer-events: none; }
.abzug > .seite { position: absolute; inset: 0; }

.deckel { position: absolute; z-index: 7; left: 50%; top: calc(-1 * var(--rand)); bottom: calc(-1 * var(--rand));
  width: calc(50% + var(--rand)); transform-origin: 0 50%; transform-style: preserve-3d; transform: rotateY(0deg);
  transition: transform 1.2s cubic-bezier(.45,.05,.2,1) .2s; }
.deckel > div { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.deckel .aussen { border-radius: 0 3px 3px 0; background-color: var(--leinen);
  background-image:
    linear-gradient(to right, rgba(0,0,0,.45) 0, rgba(0,0,0,0) 2.4%, rgba(0,0,0,0) 5.4%, rgba(0,0,0,.38) 6%, rgba(255,255,255,.06) 6.7%, rgba(0,0,0,0) 7.6%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='l'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9 .045' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .11 0'/%3E%3C/filter%3E%3Cfilter id='q'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.045 .9' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .26 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23l)'/%3E%3Crect width='120' height='120' filter='url(%23q)'/%3E%3C/svg%3E");
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), inset -1px 0 0 rgba(255,255,255,.06), 0 30px 70px rgba(0,0,0,.5);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 0 0 11% 14%; }
.deckel .aussen span { font-family: var(--schrift); font-variant-caps: all-small-caps; letter-spacing: .16em; font-size: 1.35rem; color: rgba(0,0,0,.5); }
.deckel .innen { transform: rotateY(180deg); border-radius: 3px 0 0 3px; background-color: var(--leinen); }
.deckel .innen > .stapel { top: calc(var(--rand) + .5%); bottom: calc(var(--rand) - .55 * var(--dl)); left: calc(var(--rand) - var(--dl)); width: calc(100% - var(--rand) + var(--dl)); }
.deckel .innen > .seite { position: absolute; top: var(--rand); bottom: var(--rand); left: var(--rand); right: 0; z-index: 3; }
.deckel .innen .ton { position: absolute; inset: 0; z-index: 4; background: #14110d; opacity: .3; transition: opacity 1.2s ease .2s; }
.band.auf .deckel { transform: rotateY(-180deg); }
.band.auf .deckel .innen .ton { opacity: 0; }

@media (min-aspect-ratio: 1/1) {
  .band:not(.aufgeschlagen) .decke { clip-path: inset(0 0 0 50%); }
  .band:not(.aufgeschlagen) > .stapel.l, .band:not(.aufgeschlagen) > .block > .seite.links, .band:not(.aufgeschlagen) > .kapital { visibility: hidden; }
}
.band.aufgeschlagen .deckel { visibility: hidden; transition: none; }

/* ===================================================================================== hochkant: eine Seite, die in sich rollt
   Zwei Spalten statt vier: links stehen Datum, Name und Woher untereinander, rechts der Eintrag. Die Spaltenregel bleibt –
   die Eintragsspalte ist die grössere (34 % gegen 66 %). */
@media (max-aspect-ratio: 1/1) {
  .buch { --breit: 86vw; --rand: 4vw; --z: 6.6vw; }
  .band { left: calc(6vw + var(--rand)); top: max(3.2vh, calc(env(safe-area-inset-top) + 1.2vh)); bottom: max(4.6vh, calc(env(safe-area-inset-bottom) + 2vh));
    height: auto; aspect-ratio: auto; transform: translateY(2%); }
  html.buch-offen .band { transform: none; }
  html.buch-offen .fuss { opacity: 0; transition: opacity .4s ease; }
  .decke { border-radius: 2px 3px 3px 2px;
    box-shadow: inset 1px 1px 0 rgba(255,255,255,.09), inset -1px -1px 0 rgba(0,0,0,.5), 0 18px 50px rgba(0,0,0,.55), 0 2px 6px rgba(0,0,0,.45);
    background-image:
      linear-gradient(to right, rgba(0,0,0,.55) 0, rgba(0,0,0,.2) 1.6%, rgba(0,0,0,0) 3%),
      linear-gradient(160deg, rgba(255,236,205,.05) 0, rgba(0,0,0,0) 40%, rgba(0,0,0,.16) 100%),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='l'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9 .045' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .11 0'/%3E%3C/filter%3E%3Cfilter id='q'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.045 .9' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .26 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23l)'/%3E%3Crect width='120' height='120' filter='url(%23q)'/%3E%3C/svg%3E"); }
  .stapel.l { display: none; }
  .stapel.r { width: calc(100% + var(--d)); }
  .kapital { left: 0; transform: none; width: calc(var(--rand) * 1.3); height: calc(var(--rand) * .9); }
  .kapital.oben { top: calc(-.75 * var(--rand)); }
  .kapital.unten { bottom: calc(-.75 * var(--rand)); transform: scaleY(-1); }
  .baendchen { left: 9%; top: 90%; width: 3vw; height: calc(10% + var(--rand) + 3vh); transform: rotate(1.5deg); }
  html.buch-blaettern .baendchen { left: 12%; transform: rotate(4deg); }
  /* Licht von oben links, im Bund (links) dunkler */
  .block { display: block; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; background-color: var(--papier);
    background-image: linear-gradient(to right, rgba(24,18,12,.34) 0, rgba(40,30,20,.12) 3.5%, rgba(255,250,240,.12) 8%, rgba(0,0,0,0) 14%, rgba(0,0,0,0) 70%, rgba(60,45,28,.09) 100%);
    -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 1000' preserveAspectRatio='none'%3E%3Cpath d='M0 7Q6 3 40 2C140 0 360 0 500 2L500 998C360 1000 140 1000 40 998Q6 997 0 993Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 1000' preserveAspectRatio='none'%3E%3Cpath d='M0 7Q6 3 40 2C140 0 360 0 500 2L500 998C360 1000 140 1000 40 998Q6 997 0 993Z'/%3E%3C/svg%3E"); }
  .seite, .seite.links, .seite.rechts { overflow: visible; -webkit-mask-image: none; mask-image: none; background-image: none; background-color: transparent; }
  .seite.links { padding: 10vw 6vw 2vw 9vw; }
  .seite.rechts { padding: 6vw 6vw 8vw 9vw; min-height: 100%; }
  .vorne, html.buch-blaettern .hinten { height: auto; }
  /* hochkant ist das Titelblatt nur der Kopf der Seite: das Register soll im ersten Blick beginnen */
  .titelblatt { padding-top: 0; max-width: none; }
  .praegung { width: calc(var(--z) * 1.3); margin-bottom: calc(var(--z) * .5); }
  .buch h2 { font-size: calc(var(--z) * 1.15); }
  .einladung { margin-top: calc(var(--z) * .5); }
  .seite.links { padding-top: 7vw; }
  .links .wege { margin-top: calc(var(--z) * .7); }
  .buch .knopf, .loeschen { font-size: calc(var(--z) * .58); }
  details.impressum { font-size: calc(var(--z) * .5); }
  .einladung { font-size: calc(var(--z) * .64); }

  .register { overflow: visible; flex: none; background-image: none; }
  .kopf { display: block; }
  .kopf span { display: inline; padding: 0; }
  .kopf span:nth-child(1) { padding-left: .4em; }
  .kopf span:nth-child(1)::after { content: " · "; }
  .kopf span:nth-child(3) { display: none; }   /* zwei Spalten: «Datum · Name» über Datum, Name und Woher */
  .kopf span:nth-child(4) { position: absolute; left: calc(34% + .4em); bottom: calc(var(--z) * .2); }
  .kopf span:not(:nth-child(4)) { position: relative; top: calc(var(--z) * .02); }
  .kopf { line-height: calc(var(--z) * .74); padding-top: calc(var(--z) * .06); font-size: calc(var(--z) * .4); letter-spacing: .05em; }
  /* links Datum, Name, Woher als drei Zeilen übereinander (Floats), rechts der Eintrag: so bleibt jede Höhe ein
     Vielfaches der Zeile, gleich wie lang der Eintrag ist */
  .zeile, .zeile.eigene { display: flow-root; }
  .zeile > .datum, .zeile > .name, .zeile > .ort, .zeile > .wer-name, .zeile > .wer-ort { float: left; clear: left; width: 34%; min-height: var(--z); }
  .zeile > .datum { height: var(--z); white-space: nowrap; overflow: hidden; }
  .zeile > .widmung, .zeile > .senden { margin-left: 34%; }
  .zeile.eigene > .senden { display: flex; height: var(--z); }
  .bleistift { left: calc(34% + .4em); }
  .rand { min-height: calc(var(--z) * 5); }
  .danke { padding-left: calc(34% + .4em); }
  .einkleben.hat .rahmen { width: 44%; }
  .senden [data-senden]::after { width: calc(var(--z) * .45); }
  .senden { padding-right: 0; }
  /* die Eintragsspalte ist hochkant zu schmal, um Text um ein Foto zu führen: das Foto steht über dem Text, zwei Zeilen hoch */
  .eintrag-zeile .foto { float: none; display: inline-block; vertical-align: top; margin: 0; }

  .deckel { left: calc(-1 * var(--rand)); width: calc(100% + 2 * var(--rand)); transition: transform 1s cubic-bezier(.45,.05,.2,1) .2s, opacity .25s ease 1s; }
  .deckel .aussen { border-radius: 2px 3px 3px 2px; padding-left: 12vw;
    background-image: linear-gradient(to right, rgba(0,0,0,.5) 0, rgba(0,0,0,0) 3%, rgba(0,0,0,0) 7%, rgba(0,0,0,.38) 7.8%, rgba(255,255,255,.06) 8.6%, rgba(0,0,0,0) 9.6%); }
  .deckel .innen { display: none; }
  .band.auf .deckel { transform: rotateY(-110deg); opacity: 0; }
  .fuss-buch { position: static; margin-top: 1.6em; }
  html.buch-blaettern .seite.links { display: none; }
  .eintrag { min-height: 66vh; padding-bottom: 0; }
  .flug, .abzug { left: 0; width: 100%; }
  .flug .inh > .block, .abzug > .block { position: absolute; inset: 0; overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .deckel { transition: none; }
  .band { transition: opacity .3s ease; }
  .stapel, .baendchen { transition: none; }
}
