:root{color-scheme:light;box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}html{scroll-padding-top:env(safe-area-inset-top,0px)}body{margin:0;padding:0;font:14px -apple-system,BlinkMacSystemFont,sans-serif;background:#fff;color:#000}img{max-width:100%}[hidden]:not([hidden=until-found i]){display:none!important}
  /* Zitattafeln Linne/Brand (Variante A4): Zitat, Quelle, Strich, Erklaerung, Uebersetzung kursiv */
  .qtafel::before { display: none !important; }
  html .qtafel .cite { font-style: normal; color: var(--blue-mid) !important; font-size: clamp(.95rem, 1.8vh, 1.3rem) !important; margin-top: 1.1em !important; }
  html .qtafel .src { font-style: normal; color: var(--blue) !important; font-size: clamp(1rem, 1.75vh, 1.25rem) !important; line-height: 1.55; max-width: 21em; margin: 0 auto; }
  html .qtafel .src:not(:empty)::before { content: ''; display: block; width: 2.4em; border-top: 1px solid var(--blue-faint); margin: 1.6em auto 1.5em; }
  .qtafel .qx { display: block; }
  .qtafel .qt { display: block; font-style: italic; margin-top: 1.2em; }
  .qtafel .qy { display: block; margin-top: 1.2em; }
  .qtafel .qt1 { margin-top: 0; }
  .qtafel .qn { display: block; color: var(--blue-mid); font-size: .82em; margin-top: .6em; }
  @media (max-width: 820px) { html .qtafel .src { font-size: 1.02rem !important; } html .qtafel .cite { font-size: .98rem !important; } html .qtafel blockquote p { font-size: 2rem !important; line-height: 1.15 !important; } }

  /* Abspielen/Stopp: Linienzeichen wie die Lupe, in Rosa */
  .filmb .pico { display: inline-block; width: .72em; height: .72em; margin-left: .12em; vertical-align: -.02em; font-size: 1em !important; }
  .filmb .pico svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5px; stroke-linejoin: round; vector-effect: non-scaling-stroke; overflow: visible; }

  /* Uebergang Bild/Text auf dem Handy: Tippen schiebt weich, Wischen legt den Text wie ein Blatt ueber das Bild */
  @media (max-width: 820px) {
  }

  @media (max-width: 820px) {
    .mid > .trclone { position: absolute !important; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; animation: none !important; background: var(--page, #EDF2F7); }
    .mid > .trsheet { position: relative; background: var(--page, #EDF2F7); box-shadow: 0 -18px 30px -18px rgba(10,50,90,.18); }
    .mid > .trclone.trsheet { position: absolute !important; }
  }

  /* Zwei Textseiten (nur Desktop) */
  .tpb { display: none; font: inherit; font-style: italic; color: var(--blue); background: none; border: 0; padding: .6em 0 0; cursor: pointer; }
  .tpb .ar { display: inline-block; font-style: normal; }
  .tpb:hover { opacity: .6; }
  @media (min-width: 821px) and (min-height: 521px) {
    .tpb { display: inline-flex; gap: .35em; align-items: center; }
    .body.tp1 .tpz, .body.tp2 .tpa { display: none; }
  }

  /* Scrollanzeige im Text (Handy) */
  .tscroll { display: none; }
  @media (max-width: 820px) {
    #mid > .tscroll { display: block !important; position: absolute !important; left: auto !important; right: 3px !important; width: 2px !important; max-width: 2px !important; min-width: 0 !important; padding: 0 !important; margin: 0 !important; flex: none !important; border-radius: 1px; background: var(--blue); opacity: 0; transition: opacity .35s ease; pointer-events: none; z-index: 5; }
    #mid > .tscroll.on { opacity: .45; transition: opacity .15s ease; }
  }

  /* Zwei Textseiten: Seitenzahl statt Ort auf Seite 1, ohne Ueberschrift auf Seite 2 */
  .tpn { display: none; }
  @media (min-width: 821px) and (min-height: 521px) {
    .copy:has(.body.tp1) .tpn1 { display: inline; }
    .copy:has(.body.tp1) .tpo { display: none; }
    .copy:has(.body.tp2) .tpn2 { display: block; margin-bottom: .35em; }
    .copy:has(.body.tp2) .t, .copy:has(.body.tp2) .u, .copy:has(.body.tp2) .u2, .copy:has(.body.tp2) .rule { display: none; }
  }

  /* Weiter/Zurueck wie "Bild" oben: gleiche Groesse, Pfeil kursiv und huepfend */
  .tpb .ar { font-style: italic; animation: hop 1.8s ease-in-out infinite; }
  .tpb[data-tpage="1"] .ar { animation-name: hopup; }

  /* Zitattafeln: Quelle klein unten links wie der Ort der Motive */
  .qort em { font-style: italic; }
  .quote-page .qort { text-align: left; margin-top: 0; padding-top: 2rem; align-self: stretch; }
  .quote-page > .qtafel { margin-top: auto !important; margin-bottom: auto !important; }
  .linne-page .copy { position: relative; }

  /* Serien: neben der zweiten Stufe auch direkt zum Text */
  .mrow { display: inline-flex; gap: 1.6em; align-items: center; justify-content: center; }

  html[data-pages="2"][data-set="fix"] .mid .copy .tpb { font-size: max(.75rem, calc(var(--u) * 2.12)); }


  /* Layout: Raster aus Foto- und Textkacheln als Index; ein Motiv als Doppelseite, Text links, Foto rechts. Blau auf Weiss, Georgia. */
  :root {
    --blue: #0A5DA3;
    --blue-mid: rgba(10,93,163,0.68);
    --blue-faint: rgba(10,93,163,0.42);
    --rule: rgba(10,93,163,0.13);
    --paper: #ffffff;
    --tile-hover: #f3f6f9;
    --serif: Georgia, 'Times New Roman', serif;
    color-scheme: light;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html, body { background: var(--paper); }
  body { color: var(--blue); font-family: var(--serif); -webkit-font-smoothing: antialiased; }
  button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
  a { color: inherit; }
  :focus-visible { outline: 1px dotted currentColor; outline-offset: 4px; }
  ::selection { background: var(--blue); color: var(--paper); }
  img, video { max-width: 100%; }
  [hidden] { display: none !important; }
  img.fade { opacity: 0; transition: opacity 250ms ease; }
  img.fade.in { opacity: 1; }
  /* Maximalbreite: auf grossen Monitoren waechst die Seite nicht weiter, sie steht mittig */
  /* Immer ein Rand um das Raster, auch wenn das Fenster kleiner als 1600 px ist */
  /* Standard seit 09.11.: Rand weiss, Teaser hellblau, Raster klein (1080 px) */
  :root { --gut: clamp(1rem, 3.5vw, 3rem); --gridmax: 1080px; }
  .grid, .footer { max-width: var(--gridmax, 1600px); width: calc(100% - 2 * var(--gut)); margin-left: auto; margin-right: auto; }
  .grid { margin-bottom: var(--gut); }
  header.header { padding-left: max(var(--gut), calc((100% - var(--gridmax, 1600px)) / 2)); padding-right: max(var(--gut), calc((100% - var(--gridmax, 1600px)) / 2)); }

  .bar, .mid > * { max-width: 1600px; margin-left: auto; margin-right: auto; width: 100%; }

  /* Kopf */
  .header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--paper);
    border-bottom: 1px solid var(--rule); padding: 1.5rem 1.75rem 1.2rem;
    display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
  .brand { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; text-align: left; }
  .brand b { font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1; letter-spacing: -.005em; }
  .brand i { font-size: clamp(.9rem, 1.45vw, 1.1rem); color: var(--blue-mid); line-height: 1.2; }
  .brand:hover { opacity: .55; }
  .meta { display: flex; gap: 1.1rem; align-items: baseline; font-style: italic; color: var(--blue-mid);
    font-size: clamp(.82rem, 1.25vw, .95rem); padding-bottom: .2rem; }
  .lang { display: inline-flex; gap: .35rem; font-style: normal; }
  .lang button { color: var(--blue-faint); min-height: 32px; padding: 0 .1rem; letter-spacing: .04em; }
  .order { display: inline-flex; gap: .5rem; font-style: normal; background: #fff6d6; color: var(--blue); padding: .15rem .6rem; border-radius: 3px; font-size: .8rem; align-items: center; }
  .order button { color: var(--blue-faint); min-height: 28px; }
  /* Varianten fuer die Flaeche ausserhalb der 1600 px (nur Vorschau) */
  html[data-frame="lines"] .grid, html[data-frame="lines"] .footer { box-shadow: -1px 0 0 var(--rule), 1px 0 0 var(--rule); }
  html[data-frame="tint"] body, html[data-frame="tint"] .header { background: #DCE5EE; }
  html[data-frame="tint"] .grid { background: var(--page, #fff); }
  html[data-frame="tint"] .header, html[data-frame="tint"] .footer { border-color: transparent; }
  html[data-frame="blue"] body, html[data-frame="blue"] .header { background: #06325A; }
  html[data-frame="blue"] .header .brand, html[data-frame="blue"] .meta, html[data-frame="blue"] .header .lang button, html[data-frame="blue"] .brand i { color: #fff; }
    html[data-frame="blue"] .grid { background: var(--page, #fff); }
  html[data-frame="blue"] .footer { background: transparent; border-color: transparent; }
  html[data-frame="blue"] .footer, html[data-frame="blue"] .footer a, html[data-frame="blue"] .footer button { color: rgba(255,255,255,.7); }
  html[data-frame="blue"] .tile.title { box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
  html[data-tile="paper"] { --page: #F3F0E8; }
  html[data-tile="tint"] { --page: #EDF2F7; }
  html[data-tile="cool"] { --page: #EFF0EC; }
  html[data-tile] .tile.text, html[data-tile] .grid { background: var(--page); }
  /* Innenansicht folgt: aussen der Rand, innen die Seitenfarbe */
  html[data-frame="blue"] .view { background: #06325A; }
  html[data-frame="tint"] .view { background: #DCE5EE; }
  .mid > .spread, .mid > .stack, .mid > .imp-page { background: var(--page, #fff); }
  /* Projekttext und Zitat liegen in jeder Variante direkt auf dem Grund */
  .mid > .prose:not(.imp-page):not(.quote-page) { background: transparent; }
  /* Kopf- und Fussleiste der Innenansicht wie der Seitenkopf: hell auf Nachtblau */
  html[data-frame="blue"] .bar { background: #06325A; color: #fff; }
  html[data-frame="blue"] .bar .count, html[data-frame="blue"] .bar .lang button { color: rgba(255,255,255,.6); }
  html[data-frame="blue"] .bar .lang button[aria-pressed="true"] { color: #fff; }
  html[data-frame="blue"] .bar, html[data-frame="tint"] .bar { border-color: transparent; }
  html[data-tile] .tile.text.hot { filter: brightness(.96); }
  .order button[aria-pressed="true"] { color: var(--blue); text-decoration: underline; text-underline-offset: .2em; }
  .lang button[aria-pressed="true"] { color: var(--blue); text-decoration: underline; text-underline-offset: .25em; }

  /* TEST: Handy, 2 Spalten, Zickzack */
  .cols-test { display: none; }
  @media (max-width: 820px) {
    .cols-test { display: flex; position: fixed; left: 50%; bottom: .8rem; transform: translateX(-50%); z-index: 20; gap: .3rem; font-family: var(--label); font-size: .8rem; }
    .cols-test button { color: #fff; background: rgba(0,0,0,.4); padding: .35rem .8rem; border-radius: 999px; min-height: 0; opacity: .75; }
    .cols-test button[aria-pressed="true"] { background: rgba(0,0,0,.75); opacity: 1; }
    html[data-cols="2"] .grid { grid-template-columns: repeat(2, 1fr); }
    html[data-cols="2"] .grid .tile { order: var(--o, 0); }
    html[data-cols="2"] .grid .eye-tile { grid-column: span 2; aspect-ratio: 4 / 3; order: 0; }
    html[data-cols="2"] .grid .tile.label { display: grid; grid-column: span 1; aspect-ratio: 4 / 5; order: 9999; }
    html[data-cols="2"] .grid .tile.label.wide .dots { font-size: inherit; }
    html[data-cols="2"] .tile.text.rt .tt i::after { content: '\00a0←'; }
    html[data-cols="2"] .grid { background: transparent; }
  }
  @media (max-width: 820px) { #mid:has(.serie-page) { overflow-y: auto; -webkit-overflow-scrolling: touch; touch-action: pan-y; } }
  /* Serie auf dem Handy: Grund wie die anderen Seiten, Text oben erreichbar, Hinweispfeil */
  .stop { display: flex; gap: 1.6rem; justify-content: center; }
  .smore { display: none; }
  @media (max-width: 820px) {
    .mid > .serie-page { background: var(--page, #fff); }
    .serie-page .stext { margin-bottom: .3rem; }
    .smore { display: block; position: sticky; bottom: 0; align-self: stretch; text-align: center; background: var(--page, #fff); padding: .45rem 0 .55rem; font-family: var(--label); font-size: 1.6rem; line-height: 1; color: var(--blue); transition: opacity 300ms ease; pointer-events: none; z-index: 2; }
    #mid.scrolled .smore { opacity: 0; }
  }
  @media (min-width: 821px) { .serie-page .stext { display: none; } }
  .zoom-page .ztext { margin-left: .4rem; }
  .qnote { display: block; max-width: 22em; margin: 1.1em auto 0; font-style: normal; }
  .zoom-page .pic { flex-direction: column; }
  html .grid { background: transparent !important; }
  /* Alle Pfeile huepfen, nach oben bzw. unten */
  @keyframes hopup { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-.25em); } }
  .toimg span, .zback span { display: inline-block; animation: hopup 1.8s ease-in-out infinite; }
  .stext span, .ztext span { display: inline-block; animation: hop 1.8s ease-in-out infinite; }
  .qnote.qfirst { margin: 0 auto 1.1em; }
  /* TEST: Linne-Beschreibung in Textfarbe */
  .wallace .src .qnote.qfirst { color: var(--blue); font-size: clamp(1.05rem, 1.45vw, 1.2rem); line-height: 1.55; max-width: 26em; margin-top: 2.2em; margin-bottom: 1.4em; }
  @media (max-width: 820px) { .wallace .src .qnote.qfirst { font-size: .88rem; } }
  html .wallace .cite { margin-top: .7em !important; }
  html .wallace blockquote, html .wallace blockquote p:last-child { margin-bottom: 0 !important; }
  /* TEST (Feedback Tobias Nusser): Einstieg per Wischen, Bild und Text auf dem Handy mit Einrasten */
  html[data-entry="swipe"] .intro-hint { font-size: 0 !important; letter-spacing: 0; margin-top: 2.2rem; }
  html[data-entry="swipe"] .intro-hint::after { content: '\2193'; font-size: 2.2rem; color: #F27BB5; display: inline-block; animation: hop 1.8s ease-in-out infinite; vertical-align: 0; }
  @media (max-width: 820px) {
    html[data-snap="on"] .mid > .spread:not(.has-serie), html[data-snap="on"] .mid > .stack:not(.has-serie) { scroll-snap-type: none; }
    html[data-snap="on"] .spread:not(.has-serie) .pic, html[data-snap="on"] .stack:not(.has-serie) .pic { display: flex !important; scroll-snap-align: start; }
    html[data-snap="on"] .spread:not(.has-serie) .copy, html[data-snap="on"] .stack:not(.has-serie) .copy { display: flex !important; scroll-snap-align: start; }
    html[data-snap="on"] .spread:not(.has-serie) .toimg, html[data-snap="on"] .stack:not(.has-serie) .toimg { display: inline-flex; gap: .35em; align-self: center; align-items: center; font-style: italic; font-size: 1.05rem; color: var(--blue); min-height: 40px; margin-bottom: .4rem; background: none; border: 0; padding: 0; cursor: pointer; }
  }
  /* Lupe im Bildrahmen (vorerst nur Laborheft) */
  .zw { position: relative; display: block; overflow: hidden; line-height: 0; }
  #mid .pic img.zoomed { cursor: zoom-out !important; touch-action: none; will-change: transform; }
  #mid .pic .zw img, #mid .pic img[data-zsrc] { touch-action: pan-y; }
  .pic.zooming { overflow: hidden; overflow: clip; }
  .lupe { position: relative; display: block; width: 1.1rem; height: 1.1rem; pointer-events: none; }
  .lupe::before { content: ''; position: absolute; left: 0; top: 0; width: .74rem; height: .74rem; box-sizing: border-box; border: 1.5px solid var(--blue); border-radius: 50%; }
  .lupe::after { content: ''; position: absolute; left: .63rem; top: .64rem; width: .5rem; height: 1.5px; background: var(--blue); transform: rotate(45deg); transform-origin: left center; }
  .lupe-b { position: absolute; z-index: 3; width: 2.4rem; height: 2.4rem; padding: 0; border: 0; background: none; cursor: pointer; visibility: hidden; display: flex; align-items: center; justify-content: flex-end; -webkit-tap-highlight-color: transparent; }
  @media (hover: hover) { .lupe-b:hover { opacity: .6; } }
  @media (max-width: 820px) { .zoom-page .zrow { gap: .55rem; padding-right: 1.7rem; } .zoom-page .zrow .zback { margin-left: .5rem; } .zoom-page .zrow .ztext { margin-left: .1rem; } }
  /* Rosa = Interaktion: alle Pfeile im Rosa der Sticker */
  .tile.text .tt i::after, .ar, .eye-go, .more .hop, .reveal .hop, .reveal .hopx,
  .toimg span, .zback span, .zstep, .smore, [data-film] span, .tpb .ar { color: #F27BB5 !important; }
  .zoom-page .zw video { display: block; width: 100%; height: auto; }
  .zcap { display: block; text-align: center; font-family: var(--label); font-style: italic; font-size: .9rem; color: var(--blue); opacity: .75; margin-top: .6rem; }
  /* Raster */
  .grid { display: grid; grid-template-columns: repeat(3, 1fr); }
  .tile { aspect-ratio: 4 / 5; overflow: hidden; position: relative; display: block; width: 100%;
    box-shadow: 0 0 0 .5px rgba(10,93,163,.07); container-type: inline-size; }
  .tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 500ms ease; }
  /* Mouseover: Teaser und Foto eines Motivs reagieren gemeinsam */
  .tile img, .tile video { transition: transform 600ms ease, filter 400ms ease; }
  .tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
  .tile.hot video { transform: scale(1.04); filter: brightness(1.06); }
  .tile.hot img { transform: scale(1.04); filter: brightness(1.06); }
  .tt i::after { content: '\00a0→'; display: inline-block; opacity: 0; transition: opacity 300ms ease; }
  .tile.text.hot .tt i::after { opacity: 1; }
  @media (hover: none) { .tt i::after { opacity: 1; } }
  /* Teaserkacheln nach den bisherigen Teaserbildern: grosse fette Georgia, linksbuendig, Block mittig */
  .tile.text { background: var(--paper); display: grid; place-items: center; text-align: left; }
  .tile.text.hot { background: var(--tile-hover); }
  /* Titelkachel exakt nach dem Instagram-Beitrag: Nachtblau, Titel fett ueber fast die ganze Breite, Untertitel kursiv linksbuendig darunter */
  .tile.label { background: var(--page, #fff); position: relative; }
  /* Wie ein Teaser, der noch nicht geschrieben ist: drei Punkte an der Stelle, wo der Text beginnt */
  .tile.label { display: grid; place-items: center; container-type: inline-size; }
  .dots { width: auto; text-align: center; font-weight: 700; font-size: 16cqi; line-height: 1.22; color: var(--blue); }
  .tile.label.wide .dots { font-size: 8cqi; }
  .tile.label.wide { grid-column: span 2; aspect-ratio: auto; }
  .lab { position: absolute; left: 7%; bottom: 7%; width: 42%; max-width: 15rem; display: flex; flex-direction: column; gap: .55rem; font-size: clamp(.72rem, 1.05vw, .9rem); color: var(--blue); }
  .tile.label.wide .lab { width: 21%; left: 3.5%; }
  .lab-line { display: block; height: 1px; background: var(--blue); opacity: .45; margin-top: .45rem; }
  .tile.title { background: #12315B; color: #fff; display: block; position: relative; }
  .tile.title.wide { grid-column: span 2; aspect-ratio: auto; }
  .tile.title .tl { position: absolute; left: 0; top: 0; text-align: left; white-space: nowrap; }
  .tile.title b, .tile.title i { width: max-content; }
  .tile.title b { display: block; font-weight: 700; line-height: .8; letter-spacing: -.01em; }
  .tile.title i { display: block; line-height: 1.1; }
  .tile.title.hot, .tile.title:hover { background: #163B6C; }
  .tt { width: 74cqi; display: block; }
  .tt p { font-weight: 700; font-size: 7.6cqi; line-height: 1.22; }
  .tt i { display: block; margin-top: 5cqi; font-size: 6.1cqi; line-height: 1.3; }

  .footer { padding: 1.75rem; border-top: 1px solid var(--rule); display: flex; justify-content: space-between;
    align-items: center; gap: 1rem; flex-wrap: wrap; font-style: italic; color: var(--blue-faint); font-size: clamp(.85rem, 1.4vw, 1rem); }
  .footer nav { display: flex; gap: 1.5rem; }
  .footer a, .footer button { color: var(--blue-faint); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; font-style: italic; }
  .footer a:hover, .footer button:hover { color: var(--blue); }

  /* Innenansicht */
  .view { position: fixed; inset: 0; z-index: 200; background: var(--paper); display: flex; flex-direction: column;
    padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
  body.open { overflow: hidden; }
  .bar { flex-shrink: 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: 1rem 1.75rem; border-bottom: 1px solid var(--rule); }
  .bar.foot { border-bottom: 0; border-top: 1px solid var(--rule); }
  .nav { font-style: italic; font-size: clamp(1.05rem, 1.6vw, 1.25rem); min-height: 40px; }
  .nav:hover { opacity: .5; }
  .count { font-style: italic; color: var(--blue-mid); font-size: clamp(.9rem, 1.4vw, 1.05rem); font-variant-numeric: tabular-nums;
    display: flex; gap: 1.1rem; align-items: baseline; }
  .mid { flex: 1; min-height: 0; overflow: hidden; position: relative; }

  .spread { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .copy { overflow-y: auto; padding: 3.2rem 3rem 3.5rem 3.2rem; display: flex; flex-direction: column; justify-content: safe center; min-width: 0; }
  .copy-in { max-width: 34rem; width: 100%; margin: 0 auto; text-align: center; }
  .pic { min-height: 0; padding: 2rem 2.5rem 2rem 1rem; display: flex; align-items: center; justify-content: center; }
  .pic .more { display: none; }
  /* Pfeile huepfen leicht, damit man sieht, dass es weitergeht */
  .hop { display: inline-block; animation: hop 1.8s ease-in-out infinite; }
  .tt i::after { animation: none; }
  @keyframes hop { 0%, 60%, 100% { -webkit-transform: translateY(0); transform: translateY(0); } 30% { -webkit-transform: translateY(.25em); transform: translateY(.25em); } }
  @keyframes hopx { 0%, 60%, 100% { -webkit-transform: translateX(0); transform: translateX(0); } 30% { -webkit-transform: translateX(.25em); transform: translateX(.25em); } }

  .pic img, .pic video { max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
  h1.t { font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.25rem); line-height: 1.15; text-wrap: balance; }
  .u { font-style: italic; font-size: clamp(1.05rem, 1.7vw, 1.3rem); margin-top: .3rem; }
  /* Ort klein unten links wie im PDF */
  .spread { position: relative; }
  .ort { font-size: .82rem; line-height: 1.4; color: var(--blue); text-align: left; margin-top: 2.5rem; }
  .spread .ort { position: absolute; left: 1.75rem; bottom: 1.4rem; margin: 0; }
  .spread .copy { padding-bottom: 5rem; }
  .rule { width: 2rem; height: 1px; background: var(--rule); margin: 1.4rem auto 1.6rem; }
  .eye { height: 100%; padding: 2rem 1.75rem; display: flex; align-items: center; justify-content: center; }
  .eye img { max-height: 100%; width: auto; object-fit: contain; display: block; }
  .body p { font-size: clamp(1.05rem, 1.45vw, 1.2rem); line-height: 1.62; margin-bottom: .95em; }
  .body p:last-child { margin-bottom: 0; }

  /* Querformat: Bild oben, Text darunter */
  .stack { height: 100%; overflow-y: auto; }
  .stack .pic { padding: 2.5rem 1.75rem 0; max-height: none; }
  .stack .pic img { max-height: 72vh; }
  .stack .copy { padding: 2.5rem 1.75rem 4rem; align-items: center; display: flex; }

  /* Projekttext und Wallace */
  .prose { height: 100%; overflow-y: auto; padding: 4rem 1.75rem 5rem; }
  .prose-in { max-width: 44rem; margin: 0 auto; }
  .prose p { font-size: clamp(1.25rem, 2.4vw, 1.8rem); line-height: 1.6; margin-bottom: 1.1em; }
  .prose a { text-underline-offset: .2em; }
  .prose.center { display: flex; flex-direction: column; justify-content: safe center; }
  .wallace { text-align: center; max-width: 52rem; margin: 0 auto; }
  .wallace blockquote p { font-style: italic; font-size: clamp(1.2rem, 2.3vw, 1.7rem); line-height: 1.55; }
  .wallace .cite { display: block; font-style: italic; color: var(--blue-mid); font-size: clamp(1rem, 1.6vw, 1.2rem); margin-top: 1.8rem; }
  .wallace .src { display: block; font-style: italic; color: var(--blue-faint); font-size: clamp(.95rem, 1.4vw, 1.05rem); margin-top: .5rem; line-height: 1.5; }
  .imp h2 { font-size: 1.05rem; letter-spacing: .03em; margin: 2.3rem 0 .6rem; }
  .imp h2:first-child { margin-top: 0; }
  .imp p, .imp address { font-size: 1.05rem; line-height: 1.7; font-style: normal; margin-bottom: .6em; }

  /* Intro */
  .intro { position: fixed; inset: 0; z-index: 300; background: #000; cursor: pointer; overflow: hidden; transition: opacity 3500ms ease; }
  .intro.fading { opacity: 0; pointer-events: none; }
  html[data-entry="swipe"] .intro { transition: transform 1300ms cubic-bezier(.7, 0, .3, 1); will-change: transform; }
  html[data-entry="swipe"] .intro.fading { opacity: 1; transform: translateY(-100%); }
  .intro img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: zoom 32s ease-out forwards; }
  .intro::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(0,0,0,.62) 0%, rgba(0,0,0,.34) 28%, rgba(0,0,0,0) 55%); }
  @keyframes zoom { to { transform: scale(1.14); } }
  .intro-text { position: absolute; z-index: 2; left: 0; right: 0; bottom: 5%; text-align: center; color: #fff; padding: 0 2rem;
    text-shadow: 0 1px 24px rgba(0,0,0,.5), 0 1px 3px rgba(0,0,0,.4); animation: fadein 1600ms ease 600ms both; }
  @keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
  .intro-title { font-size: clamp(3rem, 8.5vw, 6.4rem); font-weight: 700; line-height: 1; }
  .intro-sub { font-style: italic; font-size: clamp(1.35rem, 2.6vw, 2rem); margin-top: .5rem; }
  .intro-desc { font-style: italic; font-size: clamp(1.1rem, 1.8vw, 1.4rem); max-width: 680px; margin: 1.6rem auto 0; line-height: 1.45; opacity: .88; }
  /* TEST Titelbild: Punkt wie der Klebepunkt, Umschalter nur zum Vergleichen */
  .intro-lang { display: flex; justify-content: center; align-items: baseline; gap: .9rem; margin-top: 1.8rem; font-size: clamp(1.1rem, 1.7vw, 1.35rem); }
  .intro-lang button { color: #fff; opacity: .85; min-height: 44px; padding: 0 .3rem; text-shadow: inherit; }
  .intro-lang button[aria-pressed="true"] { opacity: 1; text-decoration: underline; text-underline-offset: .25em; }
  .intro-lang button:hover { opacity: 1; }
  .intro-hint { font-family: system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif; font-style: normal; font-weight: 500; text-transform: uppercase; letter-spacing: .22em; font-size: .9rem; margin-top: 1.6rem; opacity: .95; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
  .intro-hint::after { content: '\00a0\00a0\2192'; letter-spacing: 0; color: #F27BB5; font-size: 1.5em; line-height: 0; vertical-align: -.1em; text-shadow: none; }

  @media (max-width: 820px) {
    .order { display: none !important; }
    /* Handy: zwei Seiten pro Motiv. Erst das Bild formatfuellend, nach oben wischen rastet der Text ein */
    .mid > .spread, .mid > .stack { display: flex; flex-direction: column; height: 100%; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
    .spread .pic, .stack .pic { order: -1; flex-shrink: 0; min-height: 100%; padding: .5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7rem; }
    .spread .pic img, .spread .pic video, .stack .pic img { flex-shrink: 0; width: min(100%, calc((var(--midh, calc(100vh - 8rem)) - 5.4rem) * (var(--ar)))); max-width: 100%; height: auto; max-height: none; object-fit: contain; }
    .pic .more { min-height: 0; padding: 0; line-height: 1.2; }
    .pic .more { display: block; text-align: center; font-style: italic; font-size: 1.05rem; color: var(--blue); cursor: pointer; }
    .spread .copy, .stack .copy { flex-shrink: 0; min-height: 100%; padding: 2.5rem 1.4rem 3rem; overflow: visible; display: flex; flex-direction: column; align-items: stretch; }
    .spread .copy-in, .stack .copy-in { margin: auto; }
    .spread .ort, .stack .ort { position: static; margin-top: 2rem; text-align: left; }
    .bar { padding: .85rem 1.1rem; }
    .header { padding: 1.05rem 1.1rem .95rem; }
    .meta { flex-direction: column; align-items: flex-end; gap: .2rem; }
    .footer { padding: 1.5rem 1.1rem; }
    .prose { padding: 2.5rem 1.25rem 4rem; }
  }
  @media (max-width: 500px) {
    .brand b { font-size: 1.55rem; }
    .brand i { font-size: .85rem; }
    .intro-text { bottom: 4%; padding: 0 1.25rem; }
    .intro-title { font-size: 2.7rem; }
    .intro-sub { font-size: 1.15rem; }
    .intro-desc { font-size: 1.05rem; }
    .intro-hint { font-size: .85rem; }
  }
  @media (prefers-reduced-motion: reduce) {
    .intro img { animation: none; }
    .tile img { transition: none; }
  }
  /* Innenansicht am Desktop: die Seite liegt kompakt um Text und Foto, der Ort steht buendig mit der Bildunterkante */
  @media (min-width: 821px) {
    .mid { overflow-y: auto; display: flex; padding: 2.5rem 1.5rem; }
    /* Text und Bild gleichrangig: zwei gleich breite Haelften wie im PDF; die Seite ist so breit, dass ein 3:4-Bild seine Haelfte fuellt */
    .mid > .spread { height: auto; margin: auto; max-width: 1600px; width: min(100%, calc((var(--midh, calc(100vh - 6rem)) - 11rem) * 1.5 + 9.5rem));
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 3.5rem; padding: 3rem; align-items: stretch; }
    .spread .pic { justify-content: center; }
    .spread .copy { overflow: visible; padding: 0; display: flex; flex-direction: column; }
    .spread .copy-in { margin: auto; }
    .spread .ort { position: static; margin-top: 2rem; line-height: 1.25; margin-bottom: -.2em; }
    .spread .pic { padding: 0; }
    .spread .pic img, .spread .pic video { max-height: calc(var(--midh, calc(100vh - 6rem)) - 11rem); max-width: 100%; }
  }
  /* Desktop: Querformat, Textseiten und Auge wie die Hochformat-Seite */
  @media (min-width: 821px) {
    .mid > .stack { height: auto; overflow: visible; margin: auto; width: fit-content; max-width: 1600px; padding: 3rem; display: flex; flex-direction: column; }
    .stack .pic { padding: 0; }
    .stack .pic img { max-height: calc(var(--midh, calc(100vh - 6rem)) - 13rem); max-width: calc(min(1600px, 100vw - 3rem) - 6rem); }
    .stack .copy { width: 0; min-width: 100%; padding: 2.75rem 0 0; display: grid; grid-template-columns: 1fr minmax(0, 34rem) 1fr; align-items: end; overflow: visible; }
    .stack .copy-in { grid-column: 2; grid-row: 1; margin: 0; }
    .stack .ort { grid-column: 2; grid-row: 2; text-align: center; margin: 2rem 0 0; line-height: 1.3; }
    .mid > .prose { height: auto; overflow: visible; margin: auto; width: 100%; max-width: 54rem; padding: 4.5rem 5rem; }
    .prose p { font-size: clamp(1.15rem, 1.5vw, 1.4rem); line-height: 1.6; margin-bottom: 1em; }
    .prose-in { max-width: none; }
    .wallace blockquote p { font-size: clamp(1.2rem, 1.7vw, 1.55rem); }
  }
  /* Auge, Projekttext und Zitat stehen direkt auf dem Grund, nur die Motive liegen als Seite darauf */
  .mid > .eye { background: transparent !important; }
  /* Das Auge nutzt die volle Hoehe zwischen den Leisten */
  /* Das Auge: kleiner als die Motivbilder, mittig auf dem Grund */
  @media (min-width: 821px) {
    .mid > .eye { height: auto; width: 100%; margin: auto; padding: 0; display: flex; align-items: center; justify-content: center; }
    .eye img { height: auto; width: auto; max-height: 45vh; max-height: 45dvh; max-width: 100%; margin: 0 auto; }
  }
  html[data-frame="blue"] .mid > .prose:not(.imp-page):not(.quote-page) { background: transparent; color: #fff; }
  html[data-frame="blue"] .prose:not(.imp-page):not(.quote-page) a { color: #fff; }
  html[data-frame="blue"] .prose:not(.imp-page):not(.quote-page) .cite { color: rgba(255,255,255,.8); }
  html[data-frame="blue"] .prose:not(.imp-page):not(.quote-page) .src { color: rgba(255,255,255,.6); }
  /* Gedrehtes Handy: wenig Hoehe. Foto fuellt die Hoehe, Text scrollt daneben, Leisten schmal */
  @media (orientation: landscape) and (max-height: 520px) {
    .bar { padding: .3rem 1rem; }
    .bar .nav { font-size: 1rem; min-height: 32px; }
    .view .mid { padding: 0; display: block; overflow: hidden; }
    .mid > .spread, .mid > .stack { display: grid; height: 100%; width: 100%; max-width: none; margin: 0; padding: 0; column-gap: 0; overflow: hidden; align-items: stretch; }
    .mid > .spread { grid-template-columns: minmax(0, 1fr) auto; }
    .mid > .stack { grid-template-columns: auto minmax(0, 1fr); }
    .spread .copy { order: 1; } .spread .pic { order: 2; }
    .stack .pic { order: 1; } .stack .copy { order: 2; }
    .spread .pic, .stack .pic { min-height: 0; height: 100%; padding: .4rem; display: flex; align-items: center; justify-content: center; }
    .spread .pic img, .spread .pic video, .stack .pic img { height: 100%; width: auto; max-height: 100%; max-width: 62vw; object-fit: contain; }
    .pic .more { display: none; }
    .spread .copy, .stack .copy { width: auto; min-width: 0; min-height: 0; height: 100%; overflow-y: auto; padding: 1.2rem 1.5rem; display: flex; flex-direction: column; align-items: stretch; }
    .spread .copy-in, .stack .copy-in { margin: auto; }
    .spread .ort, .stack .ort { position: static; margin: 1.5rem 0 0; text-align: left; }
    h1.t { font-size: 1.35rem; } .u { font-size: 1rem; }
    .body p { font-size: 1rem; line-height: 1.55; }
    .view .mid { overflow-y: auto; }
    .mid > .prose { padding: 1.5rem 2rem; }
    .eye img { max-height: 70vh; max-height: 70dvh; }
  }
  /* Wallace-Zitat liegt als Dokument auf einer Seite wie die Motive */
  .mid > .prose.quote-page { background: var(--page, #fff); color: var(--blue); }
  .quote-page .wallace .cite { color: var(--blue); font-style: normal; }
  .wallace::before { content: '\201C'; display: block; font-size: 5rem; line-height: .7; color: var(--blue-faint); margin-bottom: .6rem; font-style: normal; }
  @media (min-width: 821px) { .mid > .prose.quote-page { width: auto; max-width: 54rem; padding: 4rem 5rem; } }
  @media (max-width: 820px) {
    .mid > .prose.quote-page { width: auto; height: auto; margin: .75rem; min-height: calc(100% - 1.5rem); padding: 1.4rem 1.2rem; display: flex; flex-direction: column; justify-content: center; }
    .wallace::before { font-size: 3rem; margin-bottom: .1rem; }
    .wallace blockquote p { font-size: .97rem; line-height: 1.45; margin-bottom: .6em; }
    .wallace .cite { font-size: .95rem; margin-top: 1rem; }
    .wallace .src { font-size: .82rem; }
  }
  /* Bild zuerst (Desktop): die Seite liegt nur um das Bild, darunter "Text"; der Text faehrt auf Wunsch ein */
  .reveal { display: none; }
  @media (min-width: 821px) and (min-height: 521px) {
    .mid > .spread.img-only, .mid > .stack.img-only { width: auto; display: flex; flex-direction: column; align-items: center; }
    .img-only .copy { display: none; }
    .mid > .spread.img-only, .mid > .stack.img-only { padding: 1.4rem 1.4rem .3rem !important; }
    .spread.img-only .pic img, .spread.img-only .pic video { width: min(100%, calc((var(--midh, calc(100vh - 6rem)) - 10rem) * (var(--ar)))); height: auto; max-height: calc(var(--midh, calc(100vh - 6rem)) - 10rem); }
    .stack.img-only .pic img { width: min(calc(min(1600px, 100vw - 3rem) - 6rem), calc((var(--midh, calc(100vh - 6rem)) - 10rem) * (var(--ar)))); height: auto; max-height: calc(var(--midh, calc(100vh - 6rem)) - 10rem); }
    .img-only .reveal { display: inline-flex; gap: .35em; align-items: baseline; margin-top: .5rem; font-style: italic; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--blue); min-height: 40px; align-items: center; }
    .img-only .reveal:hover { opacity: .6; }
    .mid .pic img, .mid .pic video { cursor: pointer; }
    .opening .copy { animation: textin 450ms ease both; }
    @keyframes textin { from { opacity: 0; transform: translateX(-1.2rem); } to { opacity: 1; transform: none; } }
    .stack.opening .copy { animation-name: textup; }
    @keyframes textup { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }
  }
  .hopx { display: inline-block; animation: hopx 1.8s ease-in-out infinite; }
  /* Pfeile deutlicher: groesser und aufrecht; das Auge bekommt unten rechts ebenfalls einen Pfeil */
  .tt i::after { font-style: normal; font-size: 1.25em; line-height: 0; }
  .eye-go { position: absolute; right: 6%; bottom: 5%; color: #fff; font-size: 14cqi; line-height: 1; text-shadow: 0 1px 8px rgba(0,0,0,.45); opacity: 0; transition: opacity 300ms ease; }
  .eye-tile { container-type: inline-size; }
  .eye-tile.hot .eye-go { opacity: 1; }
  @media (hover: none) { .eye-go { opacity: 1; } .tt i::after { font-size: 1.45em; } }
  /* Test: Fliesstext linksbuendig (nur in der Vorschau umschaltbar) */
  html[data-align="left"] .copy-in, html[data-align="left"] .spread .copy-in, html[data-align="left"] .stack .copy-in { text-align: left; }
  html[data-align="left"] .rule { margin-left: 0; }
  /* Ruhigerer Flatterrand: Silbentrennung, ausgeglichene Zeilen, etwas schmalere Spalte */
  html[data-align="left"] .body p { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 7 3 3; text-wrap: pretty; }
  html[data-align="left"] .spread .copy-in { max-width: 29rem; }
  /* Test: sehr weicher Schatten unter der Seite (nicht am Foto) */
  html[data-shadow="on"] .mid > .spread, html[data-shadow="on"] .mid > .stack, html[data-shadow="on"] .mid > .prose.quote-page { box-shadow: 3px 3px 4px -1px rgba(10,40,80,.07), 10px 12px 22px -8px rgba(10,40,80,.12); }
  /* Test: Schriften. A = Georgia (bisher). B = Newsreader + Instrument Sans. C = Source Serif + IBM Plex Mono (Inventar). D = Hanken Grotesk */
  :root { --label: var(--serif); }
  html[data-font="b"] { --serif: 'Newsreader', Georgia, serif; --label: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif; }
  html[data-font="c"] { --serif: 'Source Serif 4', Georgia, serif; --label: 'IBM Plex Mono', ui-monospace, Menlo, monospace; }
  html[data-font="d"] { --serif: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif; --label: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif; }
  .ort, .meta #count, .bar .count, .footer, .footer a, .footer button, .lang button, .reveal, .snd, .wallace .src { font-family: var(--label); }
  html[data-font="b"] .ort, html[data-font="c"] .ort, html[data-font="b"] .meta #count, html[data-font="c"] .meta #count, html[data-font="b"] .footer, html[data-font="c"] .footer, html[data-font="b"] .footer a, html[data-font="c"] .footer a, html[data-font="b"] .footer button, html[data-font="c"] .footer button, html[data-font="b"] .bar .count, html[data-font="c"] .bar .count { font-style: normal; letter-spacing: .02em; }
  html[data-font="c"] .ort, html[data-font="c"] .meta #count, html[data-font="c"] .bar .count, html[data-font="c"] .footer, html[data-font="c"] .footer a, html[data-font="c"] .footer button { font-size: .78rem; letter-spacing: 0; }
  html[data-font="b"] .tt p, html[data-font="c"] .tt p { font-weight: 600; }
  html[data-font="d"] .tt p { letter-spacing: -.01em; }
  /* Kleine Monitore: Text etwas kompakter, damit die Doppelseite meist ohne Scrollen passt */
  @media (min-width: 821px) and (max-height: 820px) {
    .body p { font-size: 1rem; line-height: 1.5; margin-bottom: .75em; }
    h1.t { font-size: 1.5rem; } .u { font-size: 1.05rem; } .rule { margin: 1rem auto 1.1rem; }
    .mid { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
    :root { --midpad: 1.5rem; }
    .mid > .spread, .mid > .stack { padding: 2rem; }
  }
  /* Test: Text rechts neben dem Bild (Desktop und gedrehtes Handy) */
  @media (min-width: 821px), (orientation: landscape) and (max-height: 520px) {
    html[data-side="right"] .spread .pic { order: 1; }
    html[data-side="right"] .spread .copy { order: 2; }
    html[data-side="right"] .opening .copy { animation-name: textinr; }
    @keyframes textinr { from { opacity: 0; transform: translateX(1.2rem); } to { opacity: 1; transform: none; } }
  }
  @media (orientation: landscape) and (max-height: 520px) { html[data-side="right"] .mid > .spread { grid-template-columns: auto minmax(0, 1fr); } }
  /* Desktop-Doppelseite: das Bild bestimmt die Hoehe der Seite; der Text passt sich ein und scrollt nur im Notfall */
  @media (min-width: 821px) and (min-height: 521px) {
    /* Bild und Text immer 50/50 */
    /* Bildhoehe = verfuegbare Hoehe minus Abstand oben/unten und schmaler Seitenrand; Textspalte genau so breit wie das Bild */
    :root { --midpad: 2.5rem; --pagepad: 1.4rem; --imgh: calc(var(--midh, calc(100vh - 6rem)) - 2 * var(--midpad) - 2 * var(--pagepad)); }
    .mid > .spread:not(.img-only) { align-items: stretch; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 0; padding: var(--pagepad) !important;
      width: min(100%, calc(var(--imgh) * .75 * 2 + 2 * var(--pagepad))); }
    .spread:not(.img-only) .pic { padding: 0; }
    .spread:not(.img-only) .pic img, .spread:not(.img-only) .pic video { max-height: var(--imgh); width: 100%; height: auto; object-fit: contain; }
    .spread:not(.img-only) .copy { padding: 1.6rem 3.2rem 0 2rem; }
    html[data-side="right"] .spread:not(.img-only) .copy { padding: 1.6rem 2rem 0 3.2rem; }
    html[data-side="right"] .spread .ort { align-self: flex-end; text-align: right; }

    .spread:not(.img-only) .copy { height: 0; min-height: 100%; overflow-y: auto; justify-content: flex-start; }
    .spread:not(.img-only) .copy-in { margin: auto 0; }
    .spread:not(.img-only) .pic { align-items: flex-start; justify-content: center; }
    .spread .body p { font-size: clamp(.95rem, 1.05vw, 1.05rem); line-height: 1.55; margin-bottom: .8em; }
    .spread h1.t { font-size: clamp(1.4rem, 1.9vw, 1.8rem); }
    .spread .u { font-size: clamp(1rem, 1.25vw, 1.15rem); }
    .spread .rule { margin: 1.1rem auto 1.2rem; }
    html[data-align="left"] .spread .rule { margin-left: 0; }
    .spread .ort { flex-shrink: 0; margin-top: 1.4rem; margin-bottom: 0; line-height: 1.3; }
  }
  @media (min-width: 821px) and (max-height: 780px) {
    .spread .body p { font-size: .9rem; line-height: 1.5; margin-bottom: .65em; }
    .spread h1.t { font-size: 1.3rem; } .spread .u { font-size: .98rem; } .spread .rule { margin: .8rem auto .9rem; }
  }
  /* "Text ->" bleibt immer unter dem Bild */
  .img-only .reveal { order: 3; }
  /* Test: Schatten als feine, versetzte Linie nach rechts unten */
  html[data-shadow="line"] .mid > .spread, html[data-shadow="line"] .mid > .stack, html[data-shadow="line"] .mid > .prose.quote-page { box-shadow: 6px 6px 0 -2px var(--paper), 6px 6px 0 0 rgba(10,93,163,.45); }
  /* Test: Desktop wie Handy, Bild und Text als zwei getrennte Seiten; der Text schiebt sich von unten hoch */
  .toimg { display: none; }
  @media (min-width: 821px) and (min-height: 521px) {
    html[data-pages="2"] .mid > .spread:not(.img-only) { display: flex; flex-direction: column; width: min(100%, calc((var(--midh, calc(100vh - 6rem)) - 10rem) * .75 + 2.8rem)); height: calc(var(--midh, calc(100vh - 6rem)) - 2 * var(--midpad)); padding: 0 !important; overflow: hidden; }
    html[data-pages="2"] .spread:not(.img-only) .pic { display: none; }
    html[data-pages="2"] .spread:not(.img-only) .copy { height: 100%; min-height: 0; padding: 1rem 2.2rem 1.6rem !important; overflow-y: auto; animation: none; }
    html[data-pages="2"] .spread.opening { animation: pageup 520ms cubic-bezier(.2,.8,.2,1) both; }
    @keyframes pageup { from { transform: translateY(40%); opacity: 0; } to { transform: none; opacity: 1; } }
    html[data-pages="2"] .spread:not(.img-only) .toimg { display: inline-flex; gap: .35em; align-self: center; font-style: italic; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--blue); min-height: 36px; align-items: center; margin-bottom: .4rem; }
    html[data-pages="2"] .spread:not(.img-only) .toimg:hover { opacity: .6; }
    html[data-pages="2"] .spread .ort { align-self: flex-start; text-align: left; }
  }
  /* Zwei Seiten: Prev/Next buendig mit den Aussenkanten der Seite */
  @media (min-width: 821px) and (min-height: 521px) {
    html[data-pages="2"] .view .bar.foot { width: min(100% - 3rem, calc((var(--midh, calc(100vh - 6rem)) - 10rem) * .75 + 2.8rem)); margin: 0 auto; padding-left: 0; padding-right: 0; border-top-color: transparent; }
  }
  /* Zwei Seiten: Bildseite exakt so gross wie die Textseite */
  @media (min-width: 821px) and (min-height: 521px) {
    html[data-pages="2"] .mid > .spread.img-only { box-sizing: border-box; width: min(100%, calc((var(--midh, calc(100vh - 6rem)) - 10rem) * .75 + 2.8rem)); height: calc(var(--midh, calc(100vh - 6rem)) - 2 * var(--midpad)); padding: 1.4rem 1.4rem 0 !important; justify-content: flex-start; }
    html[data-pages="2"] .spread.img-only .pic { width: 100%; padding: 0; }
    html[data-pages="2"] .spread.img-only .pic img, html[data-pages="2"] .spread.img-only .pic video { width: 100%; max-height: none; height: auto; }
    html[data-pages="2"] .spread.img-only .pic video { width: min(100%, calc((var(--midh, calc(100vh - 6rem)) - 10rem) * (var(--ar)))); max-height: calc(var(--midh, calc(100vh - 6rem)) - 10rem); margin: 0 auto; }
    html[data-pages="2"] .spread.img-only .reveal { margin: auto 0; }
  }
  /* Zwei Seiten bei Querformat (Skalka): Bildseite und Textseite gleich gross, Navigation buendig */
  @media (min-width: 821px) and (min-height: 521px) {
    html[data-pages="2"] { --qw: min(100vw - 5rem, calc((var(--midh, calc(100vh - 6rem)) - 10rem) * 4 / 3 + 2.8rem)); }
    html[data-pages="2"] .mid > .stack { box-sizing: border-box; display: flex; flex-direction: column; align-items: center; width: var(--qw); height: calc(var(--midh, calc(100vh - 6rem)) - 2 * var(--midpad)); padding: 1.4rem 1.4rem 0 !important; overflow: hidden; margin: auto; }
    html[data-pages="2"] .stack.img-only .pic { width: 100%; padding: 0; }
    html[data-pages="2"] .stack.img-only .pic img { width: 100%; max-height: none; height: auto; }
    html[data-pages="2"] .stack.img-only .reveal { margin: auto 0; }
    html[data-pages="2"] .stack:not(.img-only) { padding: 0 !important; }
    html[data-pages="2"] .stack:not(.img-only) .pic { display: none; }
    html[data-pages="2"] .stack:not(.img-only) .copy { width: 100%; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; padding: 1rem 2.4rem 1.6rem !important; overflow-y: auto; animation: none; }
    html[data-pages="2"] .stack:not(.img-only) .copy-in { margin: auto; max-width: 48rem; }
    html[data-pages="2"] .stack:not(.img-only) .body p { margin-bottom: .6em; }
    html[data-pages="2"] .stack:not(.img-only) .ort { margin: 1.4rem 0 0; text-align: center; }
    html[data-pages="2"] .stack:not(.img-only) .toimg { display: inline-flex; gap: .35em; font-style: italic; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--blue); min-height: 36px; align-items: center; margin-bottom: .4rem; }
    html[data-pages="2"] .stack.opening { animation: pageup 520ms cubic-bezier(.2,.8,.2,1) both; }
  }
  /* Live-Feinschliff: schmalere Kopfzeile, Seite groesser; Skalka-Text wie die anderen; Navigation immer an derselben Stelle */
  @media (min-width: 821px) and (min-height: 521px) {
    html[data-pages="2"] .bar:not(.foot) { padding-top: .45rem; padding-bottom: .45rem; }
    html[data-pages="2"] .bar:not(.foot) .nav { font-size: clamp(1rem, 1.3vw, 1.12rem); min-height: 36px; }
    html[data-pages="2"] .bar.foot { padding-top: .35rem; padding-bottom: .6rem; }
    html[data-pages="2"] { --midpad: 1.25rem; }
    html[data-pages="2"] .view .mid { padding-top: var(--midpad) !important; padding-bottom: var(--midpad) !important; }
    html[data-pages="2"] .stack .body p { font-size: clamp(.95rem, 1.05vw, 1.05rem); line-height: 1.55; margin-bottom: .8em; }
    html[data-pages="2"] .stack h1.t { font-size: clamp(1.4rem, 1.9vw, 1.8rem); }
    html[data-pages="2"] .stack .u { font-size: clamp(1rem, 1.25vw, 1.15rem); }
    html[data-pages="2"] .stack .rule { margin: 1.1rem auto 1.2rem; }
  }
  @media (min-width: 821px) and (max-height: 780px) {
    html[data-pages="2"] .stack .body p { font-size: .9rem; line-height: 1.5; margin-bottom: .65em; }
    html[data-pages="2"] .stack h1.t { font-size: 1.3rem; }
  }
  .eye-page .pic img { cursor: default !important; }
  /* Test: schmalerer Fusssteg unter dem Bild (Bild groesser, Seite gleich hoch) */
  @media (min-width: 821px) and (min-height: 521px) {
    html[data-pages="2"][data-foot="slim"] { --pw: min(100vw - 5rem, calc((var(--midh, calc(100vh - 6rem)) - 7.6rem) * .75 + 2.8rem)); }
    html[data-pages="2"][data-foot="slim"] .mid > .spread:not(.img-only),
    html[data-pages="2"][data-foot="slim"] .mid > .spread.img-only { width: var(--pw) !important; }
    html[data-pages="2"][data-foot="slim"] .view .bar.foot { width: var(--pw) !important; }
  }
  /* Rand unter dem Bild wie in der ersten Live-Fassung: Seitenhoehe fest an der Bildhoehe, nicht an der Fensterhoehe */
  @media (min-width: 821px) and (min-height: 521px) {
    html[data-pages="2"] .mid > .spread, html[data-pages="2"] .mid > .stack { height: calc(var(--midh, calc(100vh - 6rem)) - 5rem) !important; }
  }
  /* Test: Zufallspaare */
  .pairs { margin: auto; display: flex; flex-direction: column; align-items: center; gap: .9rem; width: auto !important; }
  .pair-page { background: var(--page, #fff); display: flex; gap: 1.4rem; padding: 1.4rem 1.4rem 1rem; }
  .pfig { display: flex; flex-direction: column; align-items: center; gap: .6rem; cursor: pointer; }
  .pbox { display: block; --ph: calc((var(--midh, calc(100vh - 6rem)) - 10rem) * var(--pscale, 1)); height: var(--ph); width: calc(var(--ph) * .75); flex: none; }
  .pbox img { width: 100%; height: 100%; object-fit: contain; display: block; transition: opacity 300ms ease; }
  .pfig:hover img { opacity: .9; }
  .pfig i { font-size: 1rem; color: var(--blue); }
  .shuffle { font-style: italic; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--blue); min-height: 40px; display: inline-flex; gap: .4em; align-items: center; }
  .shuffle:hover { opacity: .6; }
  .shuffle span { font-style: normal; display: inline-block; }
  .shuffle .spin { transition: transform 500ms ease; } .shuffle:hover .spin { transform: rotate(180deg); }
  .pair-ctl { display: flex; gap: 2.4rem; align-items: center; }
  .pgo { cursor: pointer; } .pgo:hover { opacity: .6; }
  /* Texte im Paar exakt wie die Textseite der Einzelansicht */
  .ptext { overflow-y: auto; display: flex; flex-direction: column; padding: 1rem 2.2rem 1.6rem; text-align: center; }
  .ptext .copy-in { margin: auto; }
  .ptext h1.t { font-size: clamp(1.4rem, 1.9vw, 1.8rem); }
  .ptext .u { font-size: clamp(1rem, 1.25vw, 1.15rem); }
  .ptext .rule { margin: 1.1rem auto 1.2rem; }
  .ptext .body p { font-size: clamp(.95rem, 1.05vw, 1.05rem); line-height: 1.55; margin-bottom: .8em; }
  .ptext .ort { position: static; align-self: flex-start; text-align: left; margin: 1.4rem 0 0; line-height: 1.3; flex-shrink: 0; }
  .ptext-in { margin: auto; padding: .4rem .9rem; text-align: center; display: flex; flex-direction: column; gap: .7em; font-size: clamp(.8rem, .95vw, .95rem); line-height: 1.5; }
  .ptext-in b { font-weight: 400; font-size: 1.35em; line-height: 1.15; }
  .ptext-in em { margin-top: -.5em; margin-bottom: .3em; }
  .is-text .ptext { animation: pageup 450ms cubic-bezier(.2,.8,.2,1) both; }
  @media (max-width: 820px) { .ptext { padding: .6rem .4rem .5rem; } .ptext h1.t { font-size: .95rem; } .ptext .u { font-size: .72rem; } .ptext .rule { margin: .5rem auto .6rem; } .ptext .body p { font-size: .66rem; line-height: 1.45; margin-bottom: .6em; } .ptext .ort { font-size: .6rem; margin-top: .8rem; } .pair-ctl { gap: 1.6rem; } .is-text .pbox { aspect-ratio: auto; height: auto; overflow: visible; } .pairs { overflow-y: auto; justify-content: safe center; } .pair-page.is-text { align-items: flex-start; } }
  @media (max-width: 820px) {
    /* Handy: beide Bilder nebeneinander, damit das Paar auf einen Blick sichtbar ist */
    .pairs { padding: .75rem; height: 100%; justify-content: center; width: 100% !important; }
    .pair-page { gap: .6rem; padding: .6rem .6rem .5rem; width: 100%; }
    .pfig { flex: 1 1 0; min-width: 0; gap: .35rem; }
    .pbox { height: auto; width: 100%; aspect-ratio: 3 / 4; }
    .pfig i { font-size: .82rem; text-align: center; line-height: 1.25; }
  }
  /* Test: fester Satz. Alle Textmasse haengen an der Kartengroesse (--u = 1/100 der Kartenbreite), so bleiben die Zeilenumbrueche auf jedem Bildschirm gleich */
  @media (min-width: 821px) and (min-height: 521px) {
    html[data-pages="2"][data-set="fix"] { --u: calc(((var(--midh, calc(100vh - 6rem)) - 10rem) * .75 + 2.8rem) / 100); }
    html[data-pages="2"][data-set="fix"] .mid .copy { padding: calc(var(--u) * 3.1) calc(var(--u) * 6.8) calc(var(--u) * 4.9) !important; }
    html[data-pages="2"][data-set="fix"] .mid .copy h1.t, html[data-set="fix"] .ptext h1.t { font-size: max(1.05rem, calc(var(--u) * 5.27)); }
    html[data-pages="2"][data-set="fix"] .mid .copy .u, html[data-set="fix"] .ptext .u { font-size: max(.85rem, calc(var(--u) * 3.47)); margin-top: calc(var(--u) * .9); }
    html[data-pages="2"][data-set="fix"] .mid .copy .rule, html[data-set="fix"] .ptext .rule { margin: calc(var(--u) * 3.4) auto calc(var(--u) * 3.7); width: calc(var(--u) * 6.2); }
    html[data-pages="2"][data-set="fix"] .mid .copy .body p, html[data-set="fix"] .ptext .body p { font-size: max(.7rem, calc(var(--u) * 2.65)); line-height: 1.55; margin-bottom: .8em; }
    html[data-pages="2"][data-set="fix"] .mid .copy .ort, html[data-set="fix"] .ptext .ort { font-size: max(.62rem, calc(var(--u) * 2.12)); margin-top: calc(var(--u) * 4.3); }
    html[data-pages="2"][data-set="fix"] .mid .copy .toimg { font-size: clamp(1.05rem, 1.4vw, 1.2rem); min-height: calc(var(--u) * 6.9); margin-bottom: calc(var(--u) * 1.2); }
    html[data-pages="2"][data-set="fix"] .stack:not(.img-only) .copy-in { max-width: calc(var(--u) * 150); }
    html[data-pages="2"][data-set="fix"] .spread .copy-in, html[data-set="fix"] .ptext .copy-in { max-width: none; width: 100%; }
    html[data-pages="2"][data-set="fix"] .ptext { padding: calc(var(--u) * 3.1) calc(var(--u) * 6.8) calc(var(--u) * 4.9); }
  }
  /* Test: Logo statt "Overview" in der Innenansicht */
  .b-logo { display: none; }
  html[data-head="logo"] .b-ov { display: none; }
  html[data-head="logo"] .b-logo { display: inline; font-style: normal; font-weight: 700; font-size: clamp(1.15rem, 1.6vw, 1.4rem); letter-spacing: -.005em; line-height: 1; }
  /* Ton-Schalter fuer Videos mit Musik */
  .snd { font-style: italic; color: var(--blue); cursor: pointer; font-size: clamp(1.05rem, 1.4vw, 1.2rem); }
  .revrow { display: none; }
  .img-only .revrow { display: flex; gap: 1.6rem; align-items: center; justify-content: center; order: 3; }
  .revrow .reveal { margin-top: 0; }
  .revrow .snd { min-height: 40px; display: inline-flex; align-items: center; }
  .snd-m { display: none; }
  @media (max-width: 820px) { .snd-m { display: flex; gap: 1.3rem; justify-content: center; align-items: baseline; } .snd-m .snd { font-size: 1.05rem; } .revrow { display: none !important; } }
  .filmb { font-family: var(--label); font-style: italic; color: var(--blue); cursor: pointer; font-size: clamp(1.05rem, 1.4vw, 1.2rem); background: none; border: 0; padding: 0; }
  .filmb span { font-style: normal; font-size: .72em; margin-left: .15em; }
  .revrow .filmb { min-height: 40px; display: inline-flex; align-items: center; gap: .3em; }
  @media (hover: hover) { .filmb:hover, .snd:hover { opacity: .6; } }
  @media (max-width: 820px) { .snd-m .filmb { font-size: 1.05rem; } }
  .pic img[hidden], .pic video[hidden] { display: none !important; }
  /* Test: Markierung gesehen / neu */
  .tile .mk { display: none; }
  html[data-mark="seen"] .tile.text.seen .mk { display: block; position: absolute; right: 9%; bottom: 7.5%; width: .42rem; height: .42rem; border-radius: 50%; background: var(--blue); font-size: 0; }
  html[data-mark="new"] .tile.text.new .mk { display: block; position: absolute; right: 9%; top: 7%; font-family: var(--label); font-style: italic; font-size: clamp(.7rem, 1vw, .85rem); color: var(--blue); letter-spacing: .02em; }
  /* Test: Klebepunkt wie auf Dias und Kontaktabzuegen */
  html[data-mark^="dot"] .tile.pic-tile.seen .mk { display: block; position: absolute; right: 7%; top: 5.5%; width: clamp(1.1rem, 1.75vw, 1.45rem); height: clamp(1.1rem, 1.75vw, 1.45rem); border-radius: 50%; font-size: 0; background: var(--dot); }
  html[data-mark="dot-y"] { --dot: #F2C400; }
  html[data-mark="dot-g"] { --dot: #2FA35A; }
  html[data-mark="dot-r"] { --dot: #D9302A; }
  html[data-mark="dot-o"] { --dot: #F26A1B; }
  html[data-mark="dot-p"] { --dot: #F27BB5; }
  html[data-mark="dot-l"] { --dot: #9A5BD3; }
  /* Test: Overview unten zwischen Prev und Next */
  .bar.foot { position: relative; }
  .bar.foot .ovw { display: none; }
  html[data-ov="foot"] .bar.foot .ovw { display: block; position: absolute; left: 50%; transform: translateX(-50%); }
  /* Entscheidung 10.11.: rosa Klebepunkt auf gesehenen Bildern, "neu" auf Motiven der letzten vier Wochen */
  html[data-mark="final"] { --dot: #F27BB5; }
  html[data-mark="final"] .tile.pic-tile.seen .mk { display: block; position: absolute; right: 7%; top: 5.5%; width: clamp(1.1rem, 1.75vw, 1.45rem); height: clamp(1.1rem, 1.75vw, 1.45rem); border-radius: 50%; font-size: 0; background: var(--dot); }
  html[data-mark="final"] .tile.text.fresh .mk { display: block; position: absolute; right: 9%; top: 7%; font-family: var(--label); font-style: italic; font-size: clamp(.7rem, 1vw, .85rem); color: var(--blue); letter-spacing: .02em; }
  /* Test: laufende Nummer als Orientierung (Platz auf der Seite) */
  .tile .nr { display: none; }
  html[data-nr="on"] .tile.text .nr { display: block; position: absolute; left: 13cqi; bottom: 7cqi; font-family: var(--label); font-size: 3.6cqi; letter-spacing: .04em; color: var(--blue); opacity: .75; font-variant-numeric: tabular-nums; }
  /* Test: Bibliothek */
  .lib-link { display: none; }
  html[data-lib="on"] .lib-link { display: inline; }
  .lib ul { list-style: none; padding: 0; margin: 0; }
  .lib li { font-size: 1.05rem; line-height: 1.55; margin-bottom: .55em; text-indent: -1.2em; padding-left: 1.2em; }
  .to-lib { margin-top: 2rem; }
  .to-lib button { font: inherit; font-style: italic; color: var(--blue); background: none; border: 0; padding: 0; cursor: pointer; }
  .order button, .b-logo { white-space: nowrap; }
  @media (min-width: 821px) { .lib ul { columns: 2; column-gap: 3rem; } .lib li { break-inside: avoid; font-size: 1rem; } }
  .lib h2.lib-h2 { margin-top: 2.6rem; }
  .lib h1.lib-h1 { font-size: 1.5rem; font-weight: 600; margin: 0 0 1.6rem; }
  .lib a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
  .th-link { display: none; }
  html[data-thanks="on"] .th-link { display: inline; }
  .thx h2.lib-h2:first-of-type { margin-top: 0; }
  @media (min-width: 821px) { .thx ul { columns: 1; } }
  /* Seiten ohne Blaettern (Paare, Quellen, Dank, Impressum): unten nur Overview */
  .bar.foot.only-ov #prev, .bar.foot.only-ov #next { visibility: hidden; }
  .bar.foot.only-ov .ovw { display: block !important; position: absolute; left: 50%; transform: translateX(-50%); }
  .bar.foot { z-index: 3; }
  .b-wip { display: none; }
  html[data-head="logo"][data-wip="on"] .b-wip { display: inline; margin-left: .55em; font-family: var(--label); font-style: normal; font-size: .72rem; letter-spacing: .03em; color: var(--blue); opacity: .6; white-space: nowrap; vertical-align: .15em; }
  /* Fussbereich: Links umbrechen statt die Seite zu verbreitern */
  .footer { flex-wrap: wrap; gap: .8rem 1.5rem; }
  .footer nav { flex-wrap: wrap; gap: .5rem 1.2rem; min-width: 0; }
  html:not([data-thanks="on"]) .footer .th-link { display: none !important; }
  html[data-wip="on"] .brand .h-wip { display: inline; margin-left: .6em; font-family: var(--label); font-weight: 400; font-style: normal; font-size: .8rem; letter-spacing: .03em; color: var(--blue); opacity: .6; white-space: nowrap; vertical-align: .25em; }
  html[data-psmall="on"] { --pscale: .72; }
  .beta-note { flex-basis: 100%; order: 3; font-size: .85em; opacity: .8; }
  /* Beta wie ein TM-Zeichen hochgestellt */
  html[data-head="logo"][data-wip="on"] #back .b-wip { vertical-align: top; position: relative; top: 0; margin-left: .2em; line-height: 1; font-size: .6rem; }
  html[data-wip="on"] .brand b .h-wip { vertical-align: top; position: relative; top: .15em; margin-left: .18em; line-height: 1; font-size: .3em; }
  .h-pairs { display: none; }
  html[data-hpairs="on"] .h-pairs { display: inline; font: inherit; font-style: italic; color: var(--blue); cursor: pointer; margin-right: 1.4em; background: none; border: 0; padding: 0; }
  html[data-hpairs="on"] .h-pairs:hover { opacity: .6; }
  html[data-set="fix"] .pair-page .ptext { --u: calc(var(--ph) * .0075); }
  /* Paare, Textansicht: feine Linie zwischen den beiden Seiten */
  /* Paare, Textansicht: zwei hellblaue Seiten, in der Mitte durch Weiss getrennt */
  .pair-page.is-text { background: transparent !important; padding: 0; gap: 1.4rem; }
  .pair-page.is-text .pfig { background: var(--page, #EDF2F7); padding: 1.4rem .7rem 1rem; }
  @media (max-width: 820px) { .pair-page.is-text { gap: .6rem; } .pair-page.is-text .pfig { padding: .6rem .6rem .5rem; } }
  @media (min-width: 821px) { .thx ul:last-of-type { columns: 2; column-gap: 3rem; } .thx ul:last-of-type li { break-inside: avoid; } }

  /* Handy: Bild und Text als zwei Seiten, Wechsel per Sprung statt Scrollen */
  @media (max-width: 820px) and (min-height: 521px) {
    .spread.img-only .copy, .stack.img-only .copy { display: none; }
    .spread:not(.img-only) .pic, .stack:not(.img-only) .pic { display: none; }
    .spread:not(.img-only) .toimg, .stack:not(.img-only) .toimg { display: inline-flex; gap: .35em; align-self: center; align-items: center; font-style: italic; font-size: 1.05rem; color: var(--blue); min-height: 40px; margin-bottom: .4rem; background: none; border: 0; padding: 0; cursor: pointer; }
    .spread .copy, .stack .copy { padding-top: 1rem; }
  }
  .footer .sig { display: inline-flex; align-items: center; min-height: 44px; }

  /* Einheitlicher Kopf: Innenansicht wie Uebersicht */
  .view .vhead { position: relative; top: 0; flex-shrink: 0; }
  .h-wip { display: none; }
  .meta #pos { font-family: var(--label); font-variant-numeric: tabular-nums; }
  @media (max-width: 820px) { .brand i { display: none; } .header { align-items: center; } }
  /* Paare in der Fusszeile im vollen Blau, die uebrigen blass */
  .footer .f-pairs { color: var(--blue); }

  .reset-seen { font: inherit; font-style: italic; color: var(--blue); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
  .reset-seen:disabled { text-decoration: none; opacity: .6; cursor: default; }
  .pfig .pbox { cursor: pointer; }
  /* Einzelansicht am grossen Bildschirm begrenzen: Seite hoechstens ca. 870 px hoch, Seite und Leiste mittig */
  @media (min-width: 821px) and (min-height: 521px) {
    .view:has(> .mid > .spread, > .mid > .stack) > .mid { flex: 0 1 1090px; margin-top: auto; }
    .view:has(> .mid > .spread, > .mid > .stack) > .bar.foot { margin-bottom: auto; }
  }
  #mid.cl { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M25 16H7M13 10l-6 6 6 6' stroke='%230A5DA3' stroke-width='2' fill='none'/%3E%3C/svg%3E") 16 16, w-resize; }
  #mid.cr { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M7 16H25M19 10l6 6-6 6' stroke='%230A5DA3' stroke-width='2' fill='none'/%3E%3C/svg%3E") 16 16, e-resize; }
  .prose .p-note { margin-top: 2.2em; padding-top: 1.1em; border-top: 1px solid var(--rule); font-size: 1rem; line-height: 1.55; color: var(--blue-mid); }
  .prose .p-note a { color: inherit; }
  .prose .prose-in > p { margin-bottom: 1.35em; }
  .prose .p-src { display: inline-block; margin-top: .35em; font-size: .78em; color: var(--blue-mid); }

  /* Kopfzeile waechst mit der Fensterhoehe statt fest: auf niedrigen Bildschirmen schlank */
  @media (min-width: 821px) and (min-height: 521px) {
    .header { padding-top: clamp(.45rem, 1vh, 1.5rem); padding-bottom: clamp(.4rem, .9vh, 1.2rem); }
    .brand { gap: clamp(0rem, .25vh, .25rem); }
    .brand b { font-size: clamp(1.4rem, 2.5vh, 2.3rem); }
    .brand i { font-size: clamp(.82rem, 1.3vh, 1.1rem); }
  }
  /* Niedrige bis mittlere Bildschirme: Leisten enger, Paare groesser */
  @media (min-width: 821px) and (min-height: 521px) and (max-height: 1250px) {
    html[data-pages="2"] { --midpad: .8rem; }
    html[data-pages="2"] .bar.foot { padding-top: .1rem; padding-bottom: .35rem; }
    html[data-psmall="on"] { --pscale: .9; }
    .pairs { gap: .35rem; }
    .pair-page { padding: 1rem 1rem .7rem; gap: 1rem; }
    .pfig { gap: .4rem; }
  }
  /* Video mit Ton: Standbild mit Play-Knopf, startet erst auf Klick */
  .pic:has(> .vplay) { position: relative; }
  .vplay { position: absolute; left: 50%; top: 82%; transform: translate(-50%, -50%); z-index: 2; font-family: var(--label); font-style: italic; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--blue); background: rgba(255,255,255,.88); border: 0; padding: .55em 1.1em; cursor: pointer; display: inline-flex; gap: .45em; align-items: center; }
  .vplay span { font-style: normal; font-size: .8em; }
  .vplay:hover { background: #fff; }
  .snd.pre, .revrow .snd.pre { display: none; }
  /* Lange Woerter in Kacheln trennen statt ueberlaufen */
  .tile.text { -webkit-hyphens: manual; hyphens: manual; overflow-wrap: break-word; }
  /* Zwei Querformate als Paar: querformatige Rahmen, Bilder groesser */
  .pair-page.pq .pbox { height: auto; width: min(calc(var(--ph) * .98), calc((100vw - 8rem) / 2)); aspect-ratio: 4 / 3; }
  @media (max-width: 820px) { .pair-page.pq { flex-direction: column; } .pair-page.pq .pfig { flex: none; width: 100%; } .pair-page.pq .pbox { width: 100%; aspect-ratio: 4 / 3; } }
  /* Linne als Tafel im Format der Motivseiten */
  .linne-page .copy { display: flex; align-items: center; justify-content: center; }
  .linne-page .copy-in { margin: auto; }
  .linne-page .wallace blockquote p { font-size: clamp(1.5rem, 3.2vh, 2.6rem); margin-bottom: .5em; }
  .linne-page .wallace .cite { font-size: clamp(1.05rem, 2vh, 1.5rem); margin-top: 1.4em; font-style: normal; color: var(--blue); }
  .linne-page .wallace .src { font-size: clamp(.95rem, 1.6vh, 1.25rem); }
  .linne-page .wallace::before { font-size: clamp(3.5rem, 7vh, 6rem); }
  .copy .p-src, .ptext .p-src { display: inline-block; margin-top: .35em; font-size: .78em; color: var(--blue-mid); }
  /* Linne: Homo. und Nosce te ipsum. als ein Eintrag, nur Zeilenabstand */
  .linne-page .wallace blockquote p, .quote-page .wallace blockquote p { margin: 0 !important; line-height: 1.35; }
  /* Die drei Punkte fuehren zu Linne */
  .tile.label.go-linne { cursor: pointer; border: 0; padding: 0; font: inherit; }
  .tile.label.go-linne:hover, .tile.label.go-linne.hot { background: var(--tile-hover); }
  /* Zitat-Paar Linne / Brand */
  .qpairs .pair-page { padding: 1.4rem; }
  .qpairs .pbox.lq { background: rgba(255,255,255,.6); container-type: inline-size; display: flex; align-items: center; justify-content: center; padding: 0 7%; box-sizing: border-box; }
  .qpairs .lq .wallace { max-width: none; }
  .qpairs .lq .wallace::before { font-size: 16cqi; margin-bottom: 2cqi; }
  .qpairs .lq .wallace blockquote p { font-size: 8cqi; line-height: 1.3; margin: 0 !important; }
  .qpairs .lq .wallace .cite { font-size: 4.8cqi; margin-top: 7cqi; font-style: normal; color: var(--blue); }
  .qpairs .lq .wallace .src { font-size: 3.8cqi; margin-top: 2cqi; }
  .qstack .qsep { height: 3.2rem; }
  /* Serie (Goetterbaum) */
  .serie-page { display: flex; flex-direction: column; align-items: center; margin: 0 auto; padding: .6rem 1rem 1rem; box-sizing: border-box; width: 100%; }
  .serie-page .toimg, .serie-page .reveal { display: inline-flex; gap: .35em; align-items: center; font-family: var(--label); font-style: italic; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--blue); background: none; border: 0; padding: 0; cursor: pointer; min-height: 40px; }
  .serie-page .toimg:hover, .serie-page .reveal:hover { opacity: .6; }
  .serie-page .toimg { margin-bottom: .3rem; }
  .serie-page .reveal { margin-top: .3rem; }
  .sgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; width: 100%; }
  .sthumb { display: block; padding: 0; border: 0; background: none; cursor: pointer; }
  .sthumb img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }
  .sthumb:hover img { opacity: .85; }
  .sfoot { align-self: stretch; text-align: left; margin-top: .7rem; }
  .sfoot .ort { margin: 0; }
  @media (min-width: 821px) and (min-height: 521px) {
    .serie-page { min-height: calc(var(--midh, calc(100vh - 6rem)) - 2 * var(--midpad, 1.25rem)); justify-content: center; padding: 0; }
    .sgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem; width: min(100vw - 6rem, calc((var(--midh, calc(100vh - 6rem)) - 2 * var(--midpad, 1.25rem) - 8rem - .6rem) / 2 * 2 / 3 * 5 + 2.4rem)); }
    .sfoot { align-self: center; width: min(100vw - 6rem, calc((var(--midh, calc(100vh - 6rem)) - 2 * var(--midpad, 1.25rem) - 8rem - .6rem) / 2 * 2 / 3 * 5 + 2.4rem)); }
  }
  .serie-page.opening { animation: pageup 520ms cubic-bezier(.2,.8,.2,1) both; }
  .zoom-page .zrow { display: flex !important; order: 3; gap: 1rem; margin-top: .4rem; }
  .zoom-page .zback { margin-left: 1.2rem; }
  .zoom-page .pic img { display: block; margin: 0 auto; }
  html[data-pages="2"] .zoom-page .pic img, .zoom-page .pic img { width: auto !important; max-width: 100%; height: calc(var(--midh, calc(100vh - 6rem)) - 10rem) !important; max-height: none; }
  @media (max-width: 820px), (max-height: 520px) { .zoom-page { justify-content: center; } .zoom-page .pic { height: auto !important; min-height: 0 !important; flex: 0 0 auto !important; } html .zoom-page .pic img, html[data-pages] .zoom-page .pic img { height: auto !important; width: min(100%, calc((var(--midh, calc(100vh - 8rem)) - 5.4rem) * (var(--ar)))) !important; max-width: 100%; max-height: none; object-fit: contain; } }
  .zoom-page .pic img { cursor: pointer; }
  html .zoom-page .pic img.arfit, html[data-pages] .zoom-page .pic img.arfit { height: auto !important; width: min(100%, calc((var(--midh, calc(100vh - 6rem)) - 10rem) * (var(--ar)))) !important; aspect-ratio: var(--ar); }
  .copy .u2 { font-family: var(--label); font-style: normal; font-size: .85em; color: var(--blue); margin-top: .45rem; letter-spacing: .01em; }
  .zrow { display: flex; gap: 1.2rem; align-items: center; justify-content: center; margin-top: .4rem; font-family: var(--label); color: var(--blue); }
  .zrow .zc { font-size: .95rem; font-style: italic; }
  .zstep { background: none; border: 0; padding: .2rem .5rem; font-size: 1.15rem; color: var(--blue); cursor: pointer; min-height: 36px; }
  .zstep:hover, .zback:hover { opacity: .6; }
  .zoom-page .zback { display: inline-flex; gap: .35em; align-items: center; font-family: var(--label); font-style: italic; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--blue); background: none; border: 0; padding: 0; cursor: pointer; min-height: 36px; }
  /* Textblatt: Ebenensteuerung unten mittig, wie die Zeile unter dem Bild */
  html .spread .copy > .toimg.toimg, html .stack .copy > .toimg.toimg { order: 99; justify-content: center; align-self: stretch; position: sticky; bottom: 0; margin-top: 1.1rem; margin-bottom: -.6rem; padding-top: .9rem; background: linear-gradient(to top, var(--page, #EDF2F7) 65%, color-mix(in srgb, var(--page, #EDF2F7) 0%, transparent)); z-index: 2; flex-shrink: 0; }
  /* Serienseite: Steuerung wie auf der Textseite nur unten, mittig; auf dem Handy am unteren Rand haftend */
  .serie-page .sbar { margin-top: .3rem; align-items: center; }
  .serie-page .sbar .toimg, .serie-page .sbar .reveal { margin: 0; }
  @media (max-width: 820px) {
    .serie-page .sbar { position: sticky; bottom: 0; align-self: stretch; z-index: 2; padding-top: .7rem; margin-top: .6rem; background: linear-gradient(to top, var(--page, #EDF2F7) 65%, color-mix(in srgb, var(--page, #EDF2F7) 0%, transparent)); }
    .smore { display: none !important; }
  }
