/* krumbi.de – ruhig, dunkel, Bilder zuerst */

@font-face { font-family: "Literata"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("schrift/literata-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Literata"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("schrift/literata-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("schrift/literata-latin-600-normal.woff2") format("woff2"); }

:root {
  --grund: #151412;
  --flaeche: #1e1c19;
  --flaeche-hell: #26231f;
  --linie: #34302a;
  --text: #e9e4da;
  --leise: #a49b8c;
  --akzent: #d9a35b;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --rand: clamp(16px, 4vw, 48px);
  --zeile: 220px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--grund); color: var(--text);
  font: 16px/1.55 var(--sans);
}
main { flex: 1; width: 100%; }
html, body { overflow-x: clip; }   /* schräg liegende Zettel dürfen keinen Querbalken erzeugen */
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; border-radius: 2px; }
code { font-size: .9em; background: var(--flaeche-hell); padding: .1em .35em; border-radius: 3px; }

/* Kopf und Fuß */
.kopf, .fuss {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 22px var(--rand); flex-wrap: wrap;
}
.marke { font: 600 1.25rem/1 var(--serif); text-decoration: none; letter-spacing: .01em; }
.marke::first-letter { color: var(--akzent); }
.kopf nav, .fuss nav { display: flex; gap: 1.4rem; }
.kopf nav a, .fuss a { text-decoration: none; color: var(--leise); }
.kopf nav a:hover, .fuss a:hover { color: var(--text); }
.kopf nav a[aria-current] { color: var(--text); box-shadow: 0 2px 0 var(--akzent); }
.fuss .besucher { font-size: .75rem; opacity: .85; font-variant-numeric: tabular-nums; cursor: help; }
.fuss { margin-top: 64px; border-top: 1px solid var(--linie); color: var(--leise); font-size: .875rem; }

/* Rahmen */
.breit { padding: 0 var(--rand); max-width: 1680px; margin: 0 auto; }
.schmal, .lesen { padding: 0 var(--rand); max-width: calc(38rem + 2 * var(--rand)); margin: 0 auto; }

.einleitung {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem 2rem;
  flex-wrap: wrap; margin: 24px 0 28px;
}
.einleitung h1, .lesen h1 {
  font: 400 clamp(1.9rem, 4.5vw, 3rem)/1.1 var(--serif); margin: 0; letter-spacing: -.01em;
}
.album-kopf { display: block; max-width: 44rem; }
.album-kopf h1 { margin: .15em 0 .3em; }
.beschreibung { color: var(--leise); font-size: 1.05rem; margin: 0; }
/* Ortswappen bei der Albumbeschreibung */
.mit-wappen { display: flex; gap: 1.1rem; align-items: flex-start; }
.albumwappen { flex: none; }
.albumwappen img { display: block; width: auto; height: 4.6rem; max-width: 5rem; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); }
.wappenquelle { margin: .5rem 0 0; font-size: .74rem; color: var(--leise); opacity: .8; }
@media (max-width: 520px) { .albumwappen img { height: 3.4rem; } }

.art { margin: 0; color: var(--leise); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.art a { color: var(--akzent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgb(217 163 91 / .5); }

.filter { display: flex; gap: .35rem; flex-wrap: wrap; }
.filter a {
  text-decoration: none; color: var(--leise); padding: .35em .9em; border-radius: 99px;
  border: 1px solid var(--linie); font-size: .9rem;
}
.filter a:hover { color: var(--text); border-color: var(--leise); }
.filter a[aria-current] { background: var(--text); color: var(--grund); border-color: var(--text); }

.leer { color: var(--leise); padding: 48px 0; }

/* Startseiten-Strom: Karten */
.strom {
  display: grid; gap: 28px 22px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  grid-auto-flow: dense;
}
.karte > a { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.karte-bild { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--flaeche); border-radius: 4px; }
.karte-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .6s ease; filter: saturate(.92); }
.karte a:hover .karte-bild img { transform: scale(1.03); filter: saturate(1.05); }
.zahl {
  position: absolute; right: 10px; bottom: 10px; font-size: .75rem; padding: .25em .6em;
  background: rgb(0 0 0 / .55); border-radius: 3px; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.karte-text { padding: 14px 2px 0; }
.karte h2 { font: 400 1.35rem/1.25 var(--serif); margin: .25em 0 .3em; }
.karte a:hover h2 { color: var(--akzent); }
.kurz, .anriss { margin: 0; color: var(--leise); font-size: .95rem; }
.weiter { margin: .7em 0 0; font-size: .8rem; color: var(--akzent); letter-spacing: .04em; }

/* Text ohne Bild: Papierfläche mit Anriss in Serifenschrift */
.karte-textbeitrag.ohne-bild > a {
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: 4px; padding: 22px 24px 24px;
  min-height: 100%;
}
.karte-textbeitrag.ohne-bild .karte-text { padding: 0; display: flex; flex-direction: column; height: 100%; }
.karte-textbeitrag.ohne-bild h2 { font-size: 1.6rem; }
.karte-textbeitrag.ohne-bild .anriss { font: 1.02rem/1.65 var(--serif); color: #cfc7b9; flex: 1; }
.karte-textbeitrag.ohne-bild:hover > a { border-color: #4a443b; }

@media (min-width: 760px) {
  .strom > .gross { grid-column: span 2; }
  .strom > .gross h2 { font-size: 1.9rem; }
  .strom > .gross .karte-bild { aspect-ratio: 16 / 9; }
}

/* Bilderraster im Blocksatz */
.raster { display: flex; flex-wrap: wrap; gap: 6px; }
.raster::after, .raster-ende { content: ""; flex-grow: 999999; }
.kachel {
  position: relative; display: block; overflow: hidden; background: var(--flaeche);
  flex-grow: var(--v); flex-basis: calc(var(--v) * var(--zeile)); aspect-ratio: var(--v);
  max-height: 70vh;
}
.kachel img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
/* Speichern erschweren (galerie.js): Folie über den Fotos, kein Ziehen, kein Speichern-Menü bei langem Drücken */
.kachel::before { content: ""; position: absolute; inset: 0; z-index: 1; }
img { -webkit-user-drag: none; }
main img, .lk img, .buehne img { -webkit-touch-callout: none; user-select: none; }
.lk-folie { position: absolute; z-index: 2; }
.speicher-hinweis { position: fixed; z-index: 200; max-width: 17rem; padding: .7rem 2.2rem .8rem .9rem; border-radius: 8px;
  background: #1e1c19; color: #e9e4da; font: .88rem/1.4 var(--sans); box-shadow: 0 10px 30px rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.12); }
.speicher-hinweis p { margin: 0 0 .5rem; color: #bdb6aa; }
.speicher-hinweis a { color: var(--akzent); font-weight: 600; }
.speicher-hinweis button { position: absolute; right: 6px; top: 4px; border: 0; background: none; color: #bdb6aa; font-size: 1.3rem; cursor: pointer; }
.kachel:hover img { opacity: .85; }
.ohne-vorschau { position: absolute; inset: 0; display: grid; place-items: center; color: var(--leise); }
.abspielen {
  position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px;
  border-radius: 50%; background: rgb(0 0 0 / .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.abspielen::after {
  content: ""; position: absolute; left: 22px; top: 17px;
  border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent;
}
.jahr { font: 400 1.5rem/1 var(--serif); color: var(--leise); margin: 40px 0 14px; }
.jahr:first-of-type { margin-top: 8px; }
@media (max-width: 600px) { :root { --zeile: 130px; } .raster { gap: 3px; } }

/* Blättern und Nachbarn */
.blaettern { display: flex; justify-content: center; align-items: center; gap: 1.5rem; margin: 48px 0 0; color: var(--leise); font-size: .9rem; }
.blaettern a { color: var(--text); text-decoration: none; border: 1px solid var(--linie); padding: .45em 1em; border-radius: 3px; }
.blaettern a:hover { border-color: var(--akzent); }
.nachbarn { display: flex; justify-content: space-between; gap: 1rem; margin: 56px 0 0; padding-top: 22px; border-top: 1px solid var(--linie); }
.nachbarn a { text-decoration: none; font: 1.1rem/1.3 var(--serif); max-width: 48%; }
.nachbarn a:hover { color: var(--akzent); }
.nachbarn small { display: block; font: .75rem var(--sans); color: var(--leise); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .3em; }
.nachbarn .rechts { text-align: right; margin-left: auto; }

/* Lesen */
.text-kopf { margin: 24px 0 40px; }
.illustration { margin: 0 0 32px; }
.illustration img { width: 100%; border-radius: 4px; }
@media (min-width: 900px) {
  .illustration { margin-left: -6rem; margin-right: -6rem; }
}
.text-kopf h1 { margin-top: .2em; }
.untertitel { font: italic 1.2rem/1.4 var(--serif); color: var(--leise); margin: .5em 0 0; }
.fliesstext { font: 1.14rem/1.75 var(--serif); color: #e4ded3; hyphens: auto; -webkit-hyphens: auto; }
.fliesstext p { margin: 0 0 1.1em; }
.fliesstext h2 { font: 600 1.25rem/1.3 var(--serif); margin: 2em 0 .6em; }
.fliesstext em { font-style: italic; }
.fliesstext blockquote { margin: 1.5em 0; padding-left: 1.2em; border-left: 2px solid var(--akzent); color: var(--leise); }
.fliesstext .trenner { text-align: center; color: var(--akzent); margin: 1.6em 0; font-size: 1.6rem; line-height: 1; }
.nachbarn:not(:has(a)) { display: none; }
@media (max-width: 600px) { .fliesstext { font-size: 1.06rem; } }

.rechtliches h2 { font: 600 1.1rem/1.3 var(--serif); margin: 2em 0 .5em; }
.rechtliches p { color: #d6d0c5; }
.rechtliches a { color: var(--akzent); }
.rechtliches h1 { margin: 24px 0 .3em; }

/* Leuchtkasten (galerie.js) */
.lk {
  position: fixed; inset: 0; z-index: 100; background: rgb(10 9 8 / .97);
  display: grid; grid-template-rows: 1fr auto auto; opacity: 0; transition: opacity .2s;
}
.lk.offen { opacity: 1; }
.lk-buehne { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; padding: 48px 64px 8px; min-height: 0; }
/* feste Zelle: nur so greift max-height: 100% – sonst läuft ein Hochkantfoto unten aus dem Bild */
.lk-buehne img, .lk-buehne video { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; position: relative; z-index: 1; }
/* Unterlage (galerie.js): dieselbe Aufnahme vergrößert und weich hinter dem Bild, statt schwarzer Balken */
.mit-unterlage { overflow: hidden; }
canvas.unterlage { position: absolute; inset: -6%; width: 112%; height: 112%; z-index: 0; display: block; pointer-events: none;
  filter: blur(22px) brightness(.62) saturate(1.15); opacity: 0; transition: opacity .5s; }
canvas.unterlage.an { opacity: 1; }
.lk-buehne > canvas.unterlage { inset: -4%; width: 108%; height: 108%; }
/* Handy quer: Bild über den ganzen Schirm, die Zeilen liegen darüber */
@media (orientation: landscape) and (max-height: 520px) {
  .lk { grid-template-rows: 1fr; }
  .lk-buehne { padding: 0; grid-row: 1; grid-column: 1; }
  .lk-bildtext, .lk-leiste { grid-row: 1; grid-column: 1; align-self: end; position: relative; z-index: 2; pointer-events: none; }
  .lk-leiste { background: linear-gradient(transparent, rgba(0,0,0,.6)); padding: 18px 16px 8px; }
  .lk-leiste a { pointer-events: auto; }
  .lk-bildtext { margin-bottom: 34px; text-shadow: 0 1px 3px #000; }
  .kino-zeile { display: none; }
  .lk:has(.lk-buehne video) .lk-leiste, .lk:has(.lk-buehne video) .lk-bildtext { display: none; }   /* nicht über der Videoleiste */
}
.lk-leiste { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 10px 20px 16px; color: var(--leise); font-size: .875rem; }
.lk-leiste a { color: var(--leise); }
/* Beschreibung des Fotos im Bildbetrachter; ✦ = automatisch beschrieben */
.lk-bildtext { margin: 0; padding: 8px 20px 0; text-align: center; color: #e9e4da; font-size: .98rem; line-height: 1.4; max-width: 60rem; justify-self: center; }
.lk-bildtext[hidden] { display: none; }
.lk-ki { color: var(--akzent); font-size: .8em; cursor: help; }
.lk-knopf {
  position: absolute; background: none; border: 0; color: var(--text); cursor: pointer;
  font: 300 2.6rem/1 var(--sans); width: 56px; height: 56px; opacity: .7;
}
.lk-knopf:hover, .lk-knopf:focus-visible { opacity: 1; }
.lk-zu { top: 4px; right: 8px; font-size: 2rem; }
.lk-vor { right: 4px; top: 50%; margin-top: -28px; }
.lk-zurueck { left: 4px; top: 50%; margin-top: -28px; }
@media (max-width: 600px) {
  .lk-buehne { padding: 52px 0 4px; }
  .lk-vor, .lk-zurueck { display: none; }
}
body.lk-aktiv { overflow: hidden; }


/* Gastbeiträge */
.autor { font: italic 1.05rem var(--serif); color: var(--leise); margin: .4em 0 0; }
.gastzeile { margin: 40px 0 0; font-size: .85rem; color: var(--leise); border-top: 1px solid var(--linie); padding-top: 14px; }
.melden { color: var(--leise); }
.melden:hover { color: var(--akzent); }

/* ---------- Himmel im Hintergrund (assets/himmel.js) ---------- */
html { background: var(--grund); }
#himmel { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
html.himmel-laeuft body { background: transparent; }
/* Auf dem Himmel braucht helle Schrift etwas Halt */
html.himmel-laeuft { --leise: #cfc8bc; }
html.himmel-laeuft .kopf, html.himmel-laeuft .fuss { background: rgb(14 14 16 / .42); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
html.himmel-laeuft .fuss { border-top-color: rgb(255 255 255 / .12); }
html.himmel-laeuft main { text-shadow: 0 1px 3px rgb(0 0 0 / .55); }
html.himmel-laeuft .zettel, html.himmel-laeuft .abzug, html.himmel-laeuft .wetterzettel, html.himmel-laeuft .kalenderblatt, html.himmel-laeuft .aushang,
html.himmel-laeuft .filter a[aria-current], html.himmel-laeuft .lk { text-shadow: none; }
html.himmel-laeuft .filter a { background: rgb(14 14 16 / .35); border-color: rgb(255 255 255 / .22); }
html.himmel-laeuft .filter a[aria-current] { background: var(--text); }
/* Heller Tageshimmel: helle Schrift braucht mehr Halt */
html.himmel-hell main { text-shadow: 0 1px 2px rgb(0 0 0 / .8), 0 0 14px rgb(0 0 0 / .45); }
html.himmel-hell .kopf, html.himmel-hell .fuss { background: rgb(14 14 16 / .58); }
html.himmel-hell .filter a { background: rgb(14 14 16 / .5); }
html.himmel-hell { --leise: #e6e1d6; }
html.himmel-laeuft .nachbarn, html.himmel-laeuft .gastzeile { border-top-color: rgb(255 255 255 / .16); }
.himmel-schalter { background: none; border: 0; padding: 0; font: inherit; color: var(--leise); cursor: pointer; }
.himmel-schalter:hover { color: var(--text); }

/* Wetterzettel auf der Startseite */
.wetterzettel {
  background: #f4efe2; color: #2b2925; padding: 10px 14px 8px; border-radius: 2px; max-width: 21rem;
  transform: rotate(-1.2deg); box-shadow: 0 1px 1px rgb(0 0 0 / .2), 0 12px 18px -10px rgb(0 0 0 / .7);
  font: .85rem/1.35 var(--sans); position: relative;
}
.wetterzettel::before {   /* Klebestreifen */
  content: ""; position: absolute; left: 50%; top: -9px; width: 70px; height: 18px; margin-left: -35px;
  background: rgb(240 232 200 / .6); transform: rotate(2deg);
}
.wz-haupt { display: flex; align-items: center; gap: 8px; }
.wz-haupt svg { flex: none; color: #b06a1c; }
.wz-temp { font: 600 1.7rem/1 var(--serif); }
.wz-text { font: 1.05rem/1.2 var(--serif); }
.wz-ort { margin-top: 2px; color: #57524a; }
.wz-fuss { margin-top: 6px; padding-top: 5px; border-top: 1px dashed #c9c1ae; font-size: .7rem; color: #7a7366; display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
.wz-fuss a { color: inherit; }
.wz-knopf { background: none; border: 0; padding: 0; font: inherit; color: #8a4f12; text-decoration: underline; cursor: pointer; }
.wz-ortwahl { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; margin: 2px 0 4px; width: 100%; }
.wz-ortwahl select, .wz-ortwahl input, .wz-ortwahl button[type=submit] {
  font: inherit; font-size: .95em; padding: 2px 5px; border: 1px solid rgb(0 0 0 / .3); border-radius: 3px;
  background: rgb(255 255 255 / .75); color: #2b2520; }
.wz-ortwahl select { max-width: 9.5em; }
.wz-ortwahl input { width: 6.5em; }
.wz-ortwahl button[type=submit] { cursor: pointer; }
.wz-hinweis { flex-basis: 100%; min-height: 1em; color: #6b4a20; font-size: .9em; }
@media (max-width: 620px) { .wetterzettel { order: 3; max-width: none; width: 100%; } }
.quellen { flex-basis: 100%; margin: 0; font-size: .72rem; opacity: .8; }
.quellen a { color: inherit; }

/* ---------- Aushang: Veranstaltungen in der Nähe (inc/termine.php, assets/termine.js) ---------- */
.aushang {
  position: relative; background: #e9e2cf; color: #23201b; max-width: 21rem !important; padding: 20px 18px 12px;
  transform: rotate(1.1deg); font-family: var(--sans); border-radius: 2px;
  background-image: linear-gradient(rgb(255 255 255 / .35), transparent 40%);
  box-shadow: 0 1px 2px rgb(0 0 0 / .3), 0 18px 26px -14px rgb(0 0 0 / .8);
}
.aushang[hidden] { display: none; }
.aushang::before, .aushang::after {   /* zwei Reißzwecken */
  content: ""; position: absolute; top: 7px; width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff8d7e, #c0392b 60%, #7d1d14); box-shadow: 0 2px 3px rgb(0 0 0 / .45);
}
.aushang::before { left: 10px; } .aushang::after { right: 10px; }
.au-kopf { font: 700 1.5rem/1.1 var(--serif); margin: 4px 0 2px; text-align: center; letter-spacing: .01em; }
.au-wo { font-size: .74rem; color: #6a6253; text-align: center; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid #23201b; }
.aushang ul { list-style: none; margin: 0; padding: 0; }
.aushang li { display: flex; gap: 11px; padding: 8px 0; border-bottom: 1px dashed #b9b09a; }
.au-wann { flex: none; width: 2.9rem; text-align: center; line-height: 1; }
.au-wt, .au-mon { display: block; font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: #6a6253; }
.au-tag { display: block; font: 700 1.5rem/1.05 var(--serif); color: #a5372d; }
.au-was { min-width: 0; font-size: .86rem; line-height: 1.3; }
.au-titel { display: block; font-weight: 600; color: inherit; text-decoration-color: #b9a58c; text-underline-offset: 2px; overflow-wrap: anywhere; }
a.au-titel:hover { color: #a5372d; }
.au-ort { display: block; font-size: .76rem; color: #6a6253; margin-top: 2px; }
.au-fuss { font-size: .66rem; color: #857c6b; margin: 9px 0 0; text-align: right; }
@media (max-width: 620px) { .aushang { transform: none; } }

/* ---------- Kalenderblatt: heute geboren oder gestorben (inc/heute.php, assets/heute.js) ---------- */
.kalenderblatt {
  position: relative; background: #fbf9f3; color: #26231f; text-align: center; max-width: 19rem !important;
  padding: 0 0 14px; border-radius: 2px 2px 3px 3px; transform: rotate(-1.4deg);
  box-shadow: 0 1px 1px rgb(0 0 0 / .25), 0 3px 0 -1px #e9e4d6, 0 4px 1px -1px rgb(0 0 0 / .25), 0 7px 0 -3px #e2dccc, 0 8px 1px -3px rgb(0 0 0 / .25), 0 22px 26px -14px rgb(0 0 0 / .8);
  font-family: var(--sans);
}
.kalenderblatt::before {   /* Nagel */
  content: ""; position: absolute; left: 50%; top: -7px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; z-index: 2;
  background: radial-gradient(circle at 35% 30%, #f1f1f1, #8d8d8d 60%, #555); box-shadow: 0 2px 3px rgb(0 0 0 / .5);
}
.kb-kopf { background: #b3392f; color: #fff; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; padding: 13px 10px 8px; border-radius: 2px 2px 0 0;
  border-bottom: 2px dashed rgb(255 255 255 / .55); }
.kb-tag { font: 700 5.6rem/1 var(--serif); color: #b3392f; margin-top: 10px; font-variant-numeric: lining-nums; }
.kb-monat { font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: #6d665b; margin-top: 2px; }
.kb-inhalt { text-align: left; margin: 12px 16px 0; padding-top: 10px; border-top: 1px solid #d9d2c2; font-size: .82rem; line-height: 1.35; }
.kb-inhalt p { margin: 0 0 8px; }
.kb-wo, .kb-leer { color: #6d665b; }
.kb-inhalt ul { list-style: none; margin: 0 0 8px; padding: 0; }
.kb-inhalt li { display: flex; gap: 7px; margin-bottom: 7px; }
.kb-zeichen { flex: none; width: 1em; text-align: center; color: #b3392f; }
.kb-tot .kb-zeichen { color: #26231f; }
.kb-jahr { font-variant-numeric: tabular-nums; color: #6d665b; }
.kb-name { font-weight: 600; color: inherit; text-decoration-color: #c9a59f; text-underline-offset: 2px; }
a.kb-name:hover { color: #b3392f; }
.kb-was { display: block; color: #6d665b; font-size: .76rem; }
.kb-fuss { font-size: .68rem; color: #686155; margin: 0 !important; }
.kb-fuss a { color: inherit; }
@media (max-width: 620px) { .kalenderblatt { transform: none; } }


/* ---------- Notizzettel: Sternzeichen und Horoskop (inc/sterne.php, assets/horoskop.js) ---------- */
@font-face { font-family: "Caveat"; font-weight: 400; font-display: swap; src: url("schrift/caveat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-weight: 700; font-display: swap; src: url("schrift/caveat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Patrick Hand"; font-display: swap; src: url("schrift/patrick-hand-latin-400-normal.woff2") format("woff2"); }
.notiz {
  position: relative; max-width: 19rem; padding: 26px 18px 14px; color: #2a2a33; border-radius: 2px;
  font: 1.02rem/1.35 "Patrick Hand", var(--sans);
  background: #f1eee4 linear-gradient(#f1eee4, #f1eee4);
  background-image:
    linear-gradient(rgb(90 110 160 / .13) 1px, transparent 1px), linear-gradient(90deg, rgb(90 110 160 / .13) 1px, transparent 1px);
  background-size: 14px 14px; background-color: #f4f1e8;
  box-shadow: 0 1px 2px rgb(0 0 0 / .3), 0 16px 24px -14px rgb(0 0 0 / .8);
}
.notiz[hidden] { display: none; }
.notiz::before {   /* Klebestreifen */
  content: ""; position: absolute; top: -9px; left: 50%; width: 74px; height: 22px; margin-left: -37px;
  background: rgb(214 205 170 / .78); transform: rotate(-2deg); box-shadow: 0 1px 2px rgb(0 0 0 / .18);
}
.sternzettel { text-align: center; transform: rotate(1.6deg); }
.spruchzettel { transform: rotate(-1deg); background: #fbf7ea; padding-bottom: 16px; }
.spruchzettel::after { content: "“"; position: absolute; right: 12px; bottom: -6px; font: 700 5rem/1 var(--serif); color: rgb(165 55 45 / .16); pointer-events: none; }
.sp-text { margin: 6px 0 8px; font: italic 1.12rem/1.42 var(--serif); color: #23263a; quotes: "„" "“"; }
:root:not(:lang(de)) .sp-text { quotes: auto; }   /* andere Sprachen: deren eigene Anführungszeichen */
.sp-text::before { content: open-quote; } .sp-text::after { content: close-quote; }
.sp-von { margin: 0; font-size: .92rem; color: #5d5f70; text-align: right; }
/* Redensart des Tages (inc/redensarten.php): Karteikarte */
.redensart { transform: rotate(.8deg); padding-top: 22px; background-color: #fffdf6; background-size: auto;
  background-image: linear-gradient(transparent 0 48px, rgb(200 70 60 / .4) 48px 49px, transparent 49px),
    repeating-linear-gradient(transparent 0 21px, rgb(90 120 170 / .16) 21px 22px); }
.rd-wendung { margin: 8px 0 4px; font: 700 1.28rem/1.15 "Caveat", var(--serif); color: #8a2a21; }
.rd-bedeutung { margin: 0 0 8px; font: italic .98rem/1.35 var(--serif); color: #2b2a33; }
.rd-herkunft { margin: 0; font-size: .95rem; line-height: 1.38; color: #2a2a33; hyphens: auto; -webkit-hyphens: auto; }
.rd-woher { font-weight: 700; color: #5d4a1c; }
.rd-gewiss { margin: 6px 0 0; font-size: .82rem; color: #6a5f50; font-style: italic; }
.horoskopzettel { transform: rotate(-1.3deg); background-color: #f6efdc; }
.nz-klein { margin: 0; font-size: .86rem; color: #5d5f70; letter-spacing: .02em; }
.nz-titel { margin: 0; font: 700 2.1rem/1 "Caveat", var(--serif); color: #23263a; }
.nz-symbol { font-size: .7em; color: #a5372d; font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols2", "DejaVu Sans", sans-serif; }
.sternbild { display: block; width: 100%; max-width: 15rem; height: auto; margin: 4px auto 2px; overflow: visible; }
.sb-linie { fill: none; stroke: #3a4266; stroke-width: 1; stroke-linecap: round; opacity: .75; }
.sb-spur { stroke-width: .6; opacity: .35; }
.sb-stern { fill: none; stroke: #1f2440; stroke-width: 1.1; stroke-linecap: round; }
.hz-text { margin: 2px 0 10px; font: 1.22rem/1.25 "Caveat", var(--serif); color: #23263a; }
.hz-eigen { border-top: 1.5px dashed #b9b29c; padding-top: 9px; }
.hz-zeile { display: flex; align-items: center; gap: 5px; margin-top: 5px; }
.hz-zeile input { width: 2.6rem; padding: 3px 4px; text-align: center; font: inherit; color: inherit; background: rgb(255 255 255 / .6); border: 0; border-bottom: 2px solid #3a4266; border-radius: 2px 2px 0 0; }
.hz-zeile input:focus-visible { outline: 2px solid #a5372d; outline-offset: 1px; }
.hz-zeile button { margin-left: 6px; padding: 3px 12px; font: inherit; color: #f4f1e8; background: #3a4266; border: 0; border-radius: 3px; cursor: pointer; }
.hz-zeile button:hover { background: #a5372d; }
.hz-hinweis, .hz-fuss { margin: 6px 0 0; font-size: .74rem; color: #77786f; font-family: var(--sans); }
.hz-fuss { margin-top: 10px; text-align: right; }
.hz-link { padding: 0; font: inherit; font-size: .86rem; color: #5d5f70; background: none; border: 0; text-decoration: underline; cursor: pointer; }
html.himmel-laeuft .notiz { text-shadow: none; }
@media (max-width: 620px) { .notiz { transform: none; } }

/* ============================================================
   Randspalten: Wetter und Kalender links, Aushang rechts.
   Auf breiten Bildschirmen stehen sie fest neben dem Inhalt, auf allen Seiten.
   Auf schmalen (Handy hochkant) setzt assets/rand.js die Zettel auf der Startseite
   an ihre alten Plätze in der Pinnwand ([data-platz]); sonst sind die Spalten aus.
   ============================================================ */
.rand { display: none; }
.platz { display: contents; }
@media (min-width: 1400px) {
  :root { --spalte: 290px; }
  .rand {
    display: flex; flex-direction: column; gap: 30px; align-items: center;
    position: fixed; top: 84px; width: var(--spalte); max-height: calc(100vh - 96px);
    padding: 16px 14px 28px; overflow-y: auto; scrollbar-width: none; z-index: 2;
  }
  .rand::-webkit-scrollbar { display: none; }
  .rand-l { left: max(12px, calc(50vw - 840px - var(--spalte) - 8px)); }
  .rand-r { right: max(12px, calc(50vw - 840px - var(--spalte) - 8px)); }
  .rand > * { width: 100%; max-width: 100% !important; flex: none; }
  .rand .wetterzettel { transform: rotate(-1.2deg); }
  html.mit-rand main { max-width: min(1680px, calc(100vw - 2 * var(--spalte) - 40px)); margin-inline: auto; }
  html.mit-rand main.lesen-zettel, html.mit-rand main.lesen { max-width: min(100%, calc(100vw - 2 * var(--spalte) - 40px)); }
  /* Der Fuß steht in der Mittelspalte – sonst verdecken ihn auf sehr breiten Bildschirmen die Randzettel */
  html.mit-rand .fuss { width: 100%; max-width: min(1680px, calc(100vw - 2 * var(--spalte) - 40px)); margin-inline: auto; }
}

/* ============================================================
   Lupe (assets/lupe.js): Randzettel vergrößert in die Bildmitte holen
   ============================================================ */
.lupe-faehig { cursor: zoom-in; }
.lupe-faehig a, .lupe-faehig button { cursor: pointer; }
.lupe-faehig input { cursor: text; }
.lupe-faehig:focus-visible { outline: 2px solid var(--akzent); outline-offset: 4px; }
.lupe-platz { flex: none; visibility: hidden; }
.lupe-grund { position: fixed; inset: 0; z-index: 60; background: rgb(8 8 10 / 0); transition: background .32s, backdrop-filter .32s; cursor: zoom-out; }
.lupe-grund.offen { background: rgb(8 8 10 / .66); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.lupe-stueck {
  position: fixed !important; margin: 0 !important; max-width: none !important; z-index: 61; cursor: auto;
  transform-origin: 0 0; transition: transform .42s cubic-bezier(.2, .85, .25, 1), box-shadow .42s; animation: none !important;
  box-shadow: 0 2px 4px rgb(0 0 0 / .3), 0 40px 70px -20px rgb(0 0 0 / .9) !important; view-transition-name: none;
}
.lupe-zu {
  position: fixed; top: 14px; right: 18px; z-index: 62; width: 52px; height: 52px; border: 0; border-radius: 50%;
  font: 300 2.2rem/1 var(--sans); color: var(--text); background: rgb(20 20 24 / .6); cursor: pointer; opacity: 0; transition: opacity .3s;
}
.lupe-grund.offen .lupe-zu { opacity: .85; }
.lupe-zu:hover, .lupe-zu:focus-visible { opacity: 1; outline: 2px solid var(--akzent); }

/* ============================================================
   Bewegung. Alles hier ist Zugabe: Wer im System „Bewegung reduzieren“
   eingestellt hat, bekommt die Seite ohne.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  /* Seitenwechsel: Kopf, Himmel und Randspalten bleiben stehen, der Inhalt blendet über.
     Zettel der Startseite wachsen zum großen Zettel der Textseite (gleicher view-transition-name). */
  @view-transition { navigation: auto; }
  .kopf { view-transition-name: kopf; }
  .rand-l { view-transition-name: rand-l; }
  .rand-r { view-transition-name: rand-r; }
  /* Der Himmel gehört zum Seitenbild und blendet mit über – als eigene Schicht läge er
     während des Wechsels über dem neuen Inhalt und verdeckte ihn. */
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 760ms; animation-timing-function: ease; }
  ::view-transition-group(*) { animation-duration: 920ms; animation-timing-function: cubic-bezier(.3, .85, .25, 1); }
  ::view-transition-image-pair(*), ::view-transition-old(*), ::view-transition-new(*) { animation-duration: 920ms; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 760ms; }
  ::view-transition-old(kopf), ::view-transition-new(kopf) { animation: none; }
  ::view-transition-old(kopf) { display: none; }

  /* Leuchtkasten: Bild kommt heran statt nur aufzublenden */
  .lk .lk-buehne img, .lk .lk-buehne video { scale: .94; opacity: 0; transition: scale .32s cubic-bezier(.2, .8, .2, 1), opacity .22s; }
  .lk.offen .lk-buehne img, .lk.offen .lk-buehne video { scale: 1; opacity: 1; }

  /* Kacheln der Galerie blenden beim Hereinrollen ein */
  @supports (animation-timeline: view()) {
    .raster .kachel { animation: kachel-rein linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  }
  /* Nachgeladenes (Namen im Kalender, Aushang) klappt auf */
  .kb-inhalt.frisch, .aushang.frisch, .horoskopzettel.frisch { animation: aufklappen .5s cubic-bezier(.2, .8, .2, 1) both; }
}
@keyframes kachel-rein { from { opacity: 0; scale: .92; translate: 0 18px; } }
@keyframes aufklappen { from { opacity: 0; translate: 0 -10px; } }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ============================================================
   Bühne (assets/buehne.js): der Anfang der Startseite. Abschalten für den eigenen Browser: ?buehne=aus
   Das Zimmerfoto mit freigestellter Fensterscheibe liegt über dem Himmel der Seite; die
   Flächen darin (.bu-fl) legt buehne.js perspektivisch in ihre Vierecke. --tag: 0 Nacht … 1 Tag.
   ============================================================ */
.buehne { position: relative; overflow: hidden; --tag: .6; margin-bottom: 28px; }
.buehne[hidden] { display: none; }
/* Platz schon vor dem Skript freihalten (assets/frueh.js setzt buehne-vor), damit nichts springt */
html.buehne-vor .buehne[hidden] { display: block; height: min(56.19vw, 112svh); }
html.buehne-vor .buehne[hidden] > * { visibility: hidden; }
@media (max-aspect-ratio: 9/10) { html.buehne-vor .buehne[hidden] { height: 66svh; } }
/* Der Raum: im Querformat fest, im Hochformat seitlich verschiebbar („umsehen“) */
.bu-raum { position: absolute; inset: 0; overflow: hidden; }
.buehne.schwenk .bu-raum { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.buehne.schwenk .bu-raum::-webkit-scrollbar { display: none; }
.bu-wink { position: absolute; left: 12px; bottom: 14px; z-index: 3; padding: 7px 13px; border-radius: 999px; background: rgba(20,18,15,.62); color: #f1ece2;
  font: .8125rem/1 var(--sans); pointer-events: none; opacity: 0; transition: opacity .6s; backdrop-filter: blur(6px); }
.buehne.schwenk:not(.gesehen) .bu-wink { opacity: 1; }
.bu-bild { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.buehne.schmaler .bu-bild { -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.bu-matt { position: absolute; inset: 0; filter: brightness(calc(.8 + .26 * var(--tag))) saturate(calc(.8 + .22 * var(--tag))); transition: filter 1.5s; }
/* Der Ort vor dem Fenster (assets/buehne/aussicht/*.webp, Himmel durchsichtig): hinter dem Zimmer, vor dem Himmel der Seite */
.bu-ort { position: absolute; background: center bottom / cover no-repeat; opacity: 0; transition: opacity 1.2s, filter 1.5s;
  filter: brightness(calc(.2 + .82 * var(--tag))) saturate(calc(.45 + .55 * var(--tag))); }
.bu-ort.da { opacity: 1; }
/* Nachtlicht des Ortes (z. B. die angestrahlte Esse in Chemnitz): hellt nur auf („screen“), erscheint mit der Dämmerung */
.bu-ortlicht { position: absolute; background: center bottom / cover no-repeat; mix-blend-mode: screen; pointer-events: none;
  opacity: 0; transition: opacity 2s; }
.bu-ortlicht.da { opacity: clamp(0, calc((.52 - var(--tag)) * 3.2), 1); }
.bu-ortlicht .warnlicht { position: absolute; width: 1.5px; height: 1.5px; margin: -.75px; border-radius: 50%; background: #ff4a3a;
  box-shadow: 0 0 2px .5px rgba(255, 40, 30, .55); animation: warnlicht 2s steps(1) infinite; }
@keyframes warnlicht { 0% { opacity: .85; } 50% { opacity: .1; } }
/* Luftverkehr am Himmel (assets/buehne/luft/*.webp, getier.js): hinter dem Ort, vor dem Himmel der Seite */
.bu-flieger { position: absolute; overflow: hidden; pointer-events: none; }
.bu-flieger .flug { position: absolute; left: 0; top: 0; width: var(--g); animation: flug var(--dauer) linear forwards; }
.bu-flieger img { display: block; width: 100%; height: auto; max-width: none; filter: brightness(calc(.26 + .78 * var(--tag))); transition: filter 1.5s; }
.bu-flieger .schwebt img { animation: schweben 5s ease-in-out infinite alternate; }
/* Kondensstreifen hinter dem Verkehrsflugzeug */
.bu-flieger .streifen { position: absolute; top: 46%; width: 420%; height: 2px; border-radius: 2px; opacity: calc(.15 + .6 * var(--tag)); }
.bu-flieger .rechts .streifen { right: 92%; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.75)); }
.bu-flieger .links .streifen { left: 92%; background: linear-gradient(-90deg, rgba(255,255,255,0), rgba(255,255,255,.75)); }
/* Blinklicht bei Nacht */
.bu-flieger .licht { position: absolute; left: 50%; top: 40%; width: 3px; height: 3px; margin: -1px; border-radius: 50%; background: #fff; box-shadow: 0 0 5px 2px rgba(255,90,70,.9); display: none; animation: blinklicht 1.3s steps(1) infinite; }
.buehne.nacht .bu-flieger .licht { display: block; }
@keyframes flug { from { transform: translate(var(--x0), var(--y0)) rotate(var(--neig)); } to { transform: translate(var(--x1), var(--y1)) rotate(var(--neig)); } }
@keyframes schweben { from { transform: translateY(-3px); } to { transform: translateY(3px); } }
@keyframes blinklicht { 0% { opacity: 1; } 14% { opacity: 0; } }

/* Herbstlaub direkt vor der Scheibe (assets/buehne/laub/*.webp). Drei Bewegungen ineinander:
   fallen (ganze Höhe, mit Windversatz --weht), schaukeln (seitlich pendeln), trudeln (um sich selbst). */
.bu-laub { position: absolute; overflow: hidden; pointer-events: none; filter: brightness(calc(.22 + .8 * var(--tag))); transition: filter 1.5s; }
.bu-laub .blatt { position: absolute; top: 0; left: var(--x); width: var(--g); animation: laub-fallen var(--dauer) linear forwards; }
.bu-laub .blatt i { display: block; animation: laub-schaukeln var(--pendel) ease-in-out infinite alternate; }
.bu-laub .blatt img { display: block; width: 100%; height: auto; animation: laub-trudeln var(--trudel) linear infinite; animation-direction: var(--rum, normal); }
@keyframes laub-fallen { from { transform: translate(0, -70px); } to { transform: translate(var(--weht), 470px); } }
@keyframes laub-schaukeln { from { transform: translateX(calc(var(--aus) * -1)) rotate(-24deg); } to { transform: translateX(var(--aus)) rotate(24deg); } }
@keyframes laub-trudeln { from { transform: rotate3d(.5, 1, .2, 0deg); } to { transform: rotate3d(.5, 1, .2, 360deg); } }

/* Abendlicht: als hinge eine Lampe über dem Tisch. Die Schicht dunkelt den Raum ab (multiply),
   lässt aber einen warmen Lichtkreis auf der Tischplatte frei. Die Maske ist das Foto selbst,
   damit die Fensterscheibe frei bleibt. Je dunkler draußen (--tag), desto stärker. */
.bu-lampe { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply; opacity: calc(1.08 - 1.25 * var(--tag)); transition: opacity 1.5s;
  background:
    /* Leselicht auf dem Wandkalender, damit das Datum auch nachts lesbar bleibt */
    radial-gradient(ellipse 8.5% 21% at 77.3% 19.5%, #fff3dc 0, #f6dcb4 52%, rgba(200,170,140,0) 100%),
    /* Bilderleuchten über den Rahmen links und rechts */
    radial-gradient(ellipse 10% 34% at 6.5% 18%, #d9bd98 0, rgba(150,130,120,0) 100%),
    radial-gradient(ellipse 10% 34% at 93.5% 18%, #d9bd98 0, rgba(150,130,120,0) 100%),
    /* Lampe über dem Tisch */
    radial-gradient(ellipse 58% 54% at 50% 88%, #fff1d6 0, #f6d8aa 34%, #a98a6c 66%, rgba(72,66,80,0) 100%),
    linear-gradient(#3a3a52, #4a4654);
  -webkit-mask: var(--zimmer) 0 0 / 100% 100% no-repeat; mask: var(--zimmer) 0 0 / 100% 100% no-repeat; }
/* Sehr breite Schirme: Neben dem Foto setzt sich das Zimmer unscharf fort, kein Himmel. */
.bu-seiten { position: absolute; inset: 0; display: none; background: #1d1813 var(--zimmer) center / cover no-repeat; filter: blur(34px) brightness(calc(.3 + .25 * var(--tag)));
  /* nur die Streifen neben dem Foto (--rand setzt buehne.js), sonst läge die Schicht hinter der Fensterscheibe */
  -webkit-mask-image: linear-gradient(90deg, #000 var(--rand, 0px), transparent var(--rand, 0px), transparent calc(100% - var(--rand, 0px)), #000 calc(100% - var(--rand, 0px)));
  mask-image: linear-gradient(90deg, #000 var(--rand, 0px), transparent var(--rand, 0px), transparent calc(100% - var(--rand, 0px)), #000 calc(100% - var(--rand, 0px))); }
.buehne.schmaler .bu-seiten { display: block; }
.bu-zimmer { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; display: block; pointer-events: none; }
.bu-fl { position: absolute; left: 0; top: 0; transform-origin: 0 0; display: block; overflow: hidden; text-decoration: none; color: #2b2a30; }
.bu-fenster, .bu-fl[hidden] { display: none; }
a.bu-fl { transition: filter .25s; }
a.bu-fl:hover, a.bu-fl:focus-visible { filter: brightness(1.12); }

/* Bilderrahmen: Foto hinter Glas, leicht vom Abendlicht gefärbt */
.bu-rahmen { background: #b9b0a4; }
.bu-rahmen img { width: 100%; height: 100%; object-fit: cover; display: block; filter: sepia(.18) saturate(.92) brightness(.93); }
.bu-rahmen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,236,200,.22), rgba(255,255,255,0) 38%, rgba(40,25,10,.16)); box-shadow: inset 0 0 26px rgba(30,18,6,.42); }

/* Wandkalender */
.bu-kalender { text-align: center; color: #33302c; font-family: var(--serif); mix-blend-mode: multiply; }
.bu-kalender span { display: block; }
/* buehne.js malt die Zeilen als Bild (Firefox zeichnet Text in verzerrten Flächen lückenhaft); der Text bleibt fürs Vorlesen */
.bu-kalender .bk-bild { position: absolute; inset: 0; width: 100%; height: 100%; }
.bu-kalender.gemalt span { visibility: hidden; }
.bu-kalender.gemalt { mix-blend-mode: normal; }
.bk-monat { margin-top: 44px; font: 600 24px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #a5372d; }
.bk-tag { font: 700 190px/1 var(--serif); letter-spacing: -.04em; margin-top: 26px; }
.bk-wt { font: 600 34px/1 var(--serif); margin-top: 10px; }
.bk-kw { font: 18px/1 var(--sans); margin-top: 26px; opacity: .65; }

/* Blätter auf dem Tisch */
.bu-blatt { padding: 14px 34px 0 46px; mix-blend-mode: multiply; color: #26262e; }
.bu-blatt strong { display: block; font: 700 46px/1.02 "Caveat", var(--serif); color: #1f2440; }
.bu-blatt .bb-datum { display: block; font: 15px/1.6 var(--sans); letter-spacing: .06em; opacity: .6; }
.bu-blatt .bb-text { display: block; font: 25px/1.32 "Patrick Hand", var(--sans); margin-top: 4px; }
.bu-blatt.getippt { padding-left: 34px; }
.bu-blatt.getippt strong { font: 700 30px/1.15 "Courier Prime", monospace; color: #26262e; }
.bu-blatt.getippt .bb-text { font: 20px/1.4 "Courier Prime", monospace; }

/* „Was ist los?“ auf dem rechten Blatt */
.bu-termine { cursor: pointer; }
.bu-termine[hidden] { display: none; }
.bu-termine strong { margin-bottom: 4px; }
.bu-termine .bt-zeile { display: flex; gap: 12px; font: 20px/1.36 "Courier Prime", monospace; white-space: nowrap; }
.bu-termine .bt-wann { flex: 0 0 96px; color: #a5372d; font-weight: 700; }
.bu-termine .bt-was { overflow: hidden; text-overflow: ellipsis; }

/* Haftzettel */
.bu-haft { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 16px; text-align: center;
  font: 700 36px/1.05 "Caveat", var(--serif); color: #3a3210; mix-blend-mode: multiply; }
.bu-haft.lang { font-size: 26px; }
.bu-haft.zeichen { font: 700 38px/1 "Caveat", var(--serif); }
.bu-fliegt { cursor: pointer; }
.bu-fliegt:focus-visible { outline: 3px solid rgb(255 220 120 / .8); outline-offset: 2px; }
.bu-fl template { display: none; }
/* Karteikarte mit der Redensart des Tages: nicht im Foto, darum gezeichnet (liegt in .bu-matt und dunkelt mit) */
.bu-karte { box-sizing: border-box; padding: 10px 18px 0; text-align: left; color: #23263a;
  background-color: #fbf8ee; border-radius: 2px;
  background-image: linear-gradient(transparent 0 46px, rgb(200 70 60 / .55) 46px 48px, transparent 48px),
    repeating-linear-gradient(transparent 0 33px, rgb(90 120 170 / .22) 33px 35px);
  box-shadow: 2px 5px 7px rgb(40 22 8 / .45), 0 0 0 1px rgb(0 0 0 / .05); }
.bu-karte .bk-klein { display: block; font: 15px/1.6 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #6a5f50; }
.bu-karte .bk-wendung { display: block; margin-top: 12px; font: 700 34px/1.04 "Caveat", var(--serif); color: #8a2a21; }
/* Der fliegende Spruchzettel (buehne.js) */
.haft-grund { position: fixed; inset: 0; z-index: 90; background: rgb(10 8 6 / 0); transition: background .55s; }
.haft-grund.offen { background: rgb(10 8 6 / .45); }
.haft-flug { position: fixed; left: 0; top: 0; z-index: 91; transform-origin: 0 0; box-sizing: border-box; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; padding: 26px 34px;
  text-align: center; font: 700 44px/1.08 "Caveat", var(--serif); color: #3a3210;
  box-shadow: 0 0 0 rgb(0 0 0 / 0); isolation: isolate;
  transition: transform .75s cubic-bezier(.3, .85, .3, 1), box-shadow .75s; }
.haft-flug.lang { font-size: 34px; }
.haft-flug::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .45s;
  background: linear-gradient(170deg, #fbec8f, #f1dc6c 70%, #e9d35f); }
.haft-flug.offen::before { opacity: 1; }
.haft-flug.offen { box-shadow: 0 3px 6px rgb(0 0 0 / .25), 0 28px 50px -12px rgb(0 0 0 / .6); }
.haft-flug p { margin: 0; position: relative; }
.haft-flug .hf-von { font-size: .62em; font-weight: 400; color: #5c5020; }
.hf-innen { position: relative; width: 100%; max-height: 100%; overflow: auto; overscroll-behavior: contain; }
/* Papiersorten im Flug: Blatt (Texte, Termine) und Karteikarte (Redensart) */
.haft-flug.papier-blatt, .haft-flug.papier-karte { justify-content: flex-start; align-items: stretch; text-align: left;
  font: 400 23px/1.4 "Patrick Hand", var(--sans); color: #26262e; padding: 30px 44px 26px 58px; }
.haft-flug.papier-blatt::before { background: #fdfcf8 repeating-linear-gradient(transparent 0 31px, rgb(90 120 170 / .2) 31px 32px);
  background-position: 0 22px; box-shadow: inset 44px 0 0 -42px rgb(200 70 60 / .45); }
.haft-flug.papier-karte::before { background-color: #fbf8ee;
  background-image: linear-gradient(transparent 0 62px, rgb(200 70 60 / .5) 62px 64px, transparent 64px),
    repeating-linear-gradient(transparent 0 29px, rgb(90 120 170 / .2) 29px 30px); }
.haft-flug.papier-karte { padding: 18px 34px 20px; font-size: 22px; line-height: 1.36; }
.haft-flug.papier-karte .hf-titel { font-size: 46px; }
.haft-flug.papier-karte .hf-bedeutung { font-size: 23px; }
.haft-flug .hf-titel { margin: 0 0 6px; font: 700 40px/1.05 "Caveat", var(--serif); color: #1f2440; }
.haft-flug.papier-karte .hf-titel { color: #8a2a21; margin: 4px 0 10px; }
.haft-flug .hf-klein { font: 13px/1.6 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #6a5f50; }
.haft-flug .hf-datum { font: 14px/1.6 var(--sans); letter-spacing: .06em; opacity: .6; margin-bottom: 8px; }
.haft-flug .hf-anriss, .haft-flug .hf-herkunft { hyphens: auto; -webkit-hyphens: auto; }
.haft-flug .hf-bedeutung { font: italic 20px/1.35 var(--serif); margin-bottom: 10px; }
.haft-flug .hf-gewiss { margin-top: 8px; font: italic 15px/1.4 var(--sans); color: #6a5f50; }
.haft-flug .hf-weiter { margin-top: 14px; text-align: right; }
.haft-flug a { color: #8a4f12; text-decoration: underline; text-underline-offset: 3px; }
.haft-flug .hf-termine { list-style: none; margin: 4px 0 0; padding: 0; }
.haft-flug .hf-termine li { display: flex; flex-wrap: wrap; gap: 0 10px; padding: 3px 0; border-bottom: 1px dashed rgb(0 0 0 / .12); }
.haft-flug .hf-termine li > * { font-size: 19px; }
/* Sternzeichen im Flug: Zettel aus der Randspalte auf gelbem Papier */
.haft-flug.zeichen { font-size: 22px; gap: 4px; }
.haft-flug.zeichen .nz-titel { font-size: 46px; color: #3a3210; }
.haft-flug.zeichen .sternbild { max-width: 230px; }
.haft-flug.zeichen .nz-klein { font: 16px/1.4 var(--sans); color: #5c5020; }
.haft-flug:focus { outline: none; }
@media (prefers-reduced-motion: reduce) { .haft-flug, .haft-grund { transition: none; } }
.bh-symbol { font: 60px/1 "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols2", "DejaVu Sans", sans-serif; color: #8a3a22; }

/* Getier (assets/getier.js): Katze an der vorderen Tischkante, Fliege und Spinne auf dem Tisch */
.bu-katze { position: absolute; overflow: hidden; pointer-events: none; --hoch: 20%; }
/* Vom Bildschirmrand (unten, seitlich, oben) liegt sie über allem – nur das Kino (60) geht darüber.
   Hinter dem Laptopdeckel (.bild) liegt sie über allem im Zimmer; den Laptop besorgt ihr Ausschnitt. */
.bu-katze.kante { z-index: 50; filter: brightness(calc(.42 + .62 * var(--tag))); }
.bu-bild > .bu-katze.bild { z-index: 5; filter: brightness(calc(.42 + .62 * var(--tag))); }   /* am Bildschirmrand, außerhalb des Raumlichts */
.bu-katze button { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto;
  transform: translateY(102%); transition: transform .9s cubic-bezier(.3,.9,.3,1); }
.bu-katze.da button { transform: translateY(var(--hoch)); }
.bu-katze img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; max-width: none; }
.bu-katze .zu { opacity: 0; transition: opacity .07s; }
.bu-katze.blinzelt .zu { opacity: 1; }
.bu-draussen { position: absolute; overflow: hidden; filter: brightness(calc(.3 + .72 * var(--tag))); }
/* Goldfischglas und Eidechse (gefilmt, in getier.js freigestellt) */
.bu-fisch { position: absolute; left: 1478px; top: 512px; width: 188px; height: 163px; pointer-events: none; }   /* hinten auf dem Tisch, hinter dem Notizbuch */
.bu-fisch::before { content: ""; position: absolute; left: 6%; right: 6%; bottom: -5%; height: 16%; border-radius: 50%; background: radial-gradient(closest-side, rgba(20,12,4,.5), rgba(20,12,4,0)); }
.bu-fisch::after { content: ""; position: absolute; left: 4%; right: 4%; top: 20%; bottom: 3%; border-radius: 46% 46% 50% 50% / 40% 40% 60% 60%; background: radial-gradient(ellipse at 40% 35%, rgba(215,235,245,.2), rgba(150,190,210,.1) 70%, rgba(120,160,180,.16)); }
.bu-fisch canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.bu-eidechse { position: absolute; left: 0; top: 536px; width: 545px; height: 307px; pointer-events: none; visibility: hidden;
  /* rechts oben läuft sie hinter den Laptop: dessen linke Ecke ist ausgespart */
  clip-path: polygon(0 0, 100% 0, 100% 50%, 87% 78%, 100% 78%, 100% 100%, 0 100%); filter: drop-shadow(2px 5px 4px rgba(25,14,4,.45)); }
.bu-eidechse.da { visibility: visible; }
.bu-tier { position: absolute; left: -12px; top: -12px; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; transform-origin: 50% 50%; will-change: transform; }
.bu-tier svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(1px 2px 1.5px rgba(20,10,0,.45)); }
.bu-tier.spinne { left: -16px; top: -16px; width: 32px; height: 32px; }
.bu-tier .fl { fill: rgba(235,240,245,.5); stroke: rgba(40,40,40,.5); stroke-width: .4; }
.bu-tier.laeuft .b1 { animation: bein .16s linear infinite alternate; transform-origin: 0 0; }
.bu-tier.laeuft .b2 { animation: bein .16s linear infinite alternate-reverse; transform-origin: 0 0; }
@keyframes bein { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
/* Globus (assets/globus.js): Gestell als Foto, die Erde liegt als Zeichenfläche mit „multiply“ auf der leeren Kugel */
/* steht rechts neben dem Laptop auf freier Tischfläche (Fuß bei y ≈ 705) */
.bu-globus { position: absolute; left: 962px; top: 283px; width: 268px; height: 421px; filter: drop-shadow(-9px 9px 11px rgba(25,14,4,.5)); }
.bu-globus img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; max-width: none; pointer-events: none; }
.bu-globus canvas { position: absolute; left: 9.26%; top: 6.92%; width: 88.05%; height: auto; aspect-ratio: 1; border-radius: 50%; mix-blend-mode: multiply; cursor: grab; touch-action: pan-y; }
.bu-globus.greift canvas { cursor: grabbing; }
.bu-globus canvas:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
/* Tasse: steht täglich woanders; mit bekanntem Ort die „I LOVE“-Tasse, der Ortsname steht unter der Schrift */
.bu-tasse { position: absolute; container-type: inline-size; pointer-events: none; filter: drop-shadow(-4px 5px 5px rgba(25,14,4,.4)); }
.bu-tasse img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; max-width: none; }
.bu-tasse span { position: absolute; left: 7%; width: 64%; top: 61.5%; text-align: center; white-space: nowrap; display: none;
  font: 700 12cqw/1 "Patrick Hand", "Caveat", var(--sans); letter-spacing: .02em; text-transform: uppercase; color: #1b1a19; transform: rotate(1deg); }
.bu-tasse.ort span { display: block; }
.bu-tasse.wappen span { display: flex; align-items: center; justify-content: center; gap: 3cqw; top: 59.5%; }
.bu-tasse span img { position: static; width: auto; height: 15cqw; flex: none; inset: auto; }
/* Schmuck nach Kalender (inc/deko.php) und Naschwerk nach Wetter und Uhrzeit (buehne.js) */
/* Alles auf dem Tisch erscheint gemeinsam, sobald die Bilder da sind (buehne.js setzt .bereit), nicht Stück für Stück */
.bu-globus, .bu-tasse, .bu-fisch, .bu-deko, .bu-glut { transition: opacity .5s; }
.buehne:not(.bereit) :is(.bu-globus, .bu-tasse, .bu-fisch, .bu-deko, .bu-glut, .bu-trunk, .bu-nasch, .bu-ventilator) { opacity: 0; }
.bu-trunk, .bu-nasch, .bu-ventilator { animation: einblenden .6s both; }
@keyframes einblenden { from { opacity: 0; } }
.bu-deko, .bu-nasch, .bu-trunk { position: absolute; display: block; max-width: none; pointer-events: none; filter: drop-shadow(-4px 5px 5px rgba(25,14,4,.38)); }
.bu-deko.bank { filter: drop-shadow(-2px 2px 3px rgba(25,14,4,.3)); }
.bu-nasch[hidden], .bu-trunk[hidden], .bu-ventilator[hidden], .buehne.trunk .bu-tasse { display: none; }
.bu-ventilator { position: absolute; pointer-events: none; filter: drop-shadow(-5px 6px 6px rgba(25,14,4,.4)); }
/* An jedem Platz steht nur eines: Ventilator und Naschwerk nehmen dem Schmuck dort den Platz (samt Flammen) */
.buehne.heiss .bu-deko.seite, .buehne.nasch-seite .bu-deko.seite, .buehne.nasch-hinten .bu-deko.hinten,
.buehne.heiss .bu-glut .p-seite, .buehne.nasch-seite .bu-glut .p-seite, .buehne.nasch-hinten .bu-glut .p-hinten { display: none; }
/* Flammen und Lichter: liegen über dem Raumlicht und leuchten deshalb auch im dunklen Zimmer */
.bu-glut { position: absolute; inset: 0; pointer-events: none; }
.bu-glut .flamme { position: absolute; width: var(--g); height: calc(var(--g) * 1.9); margin: calc(var(--g) * -1.75) 0 0 calc(var(--g) * -.5); border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse at 50% 72%, #fffbe6 0 22%, #ffd75e 48%, #ff9a2e 74%, rgba(255,120,30,0) 100%);
  box-shadow: 0 0 calc(var(--g) * 1.2) calc(var(--g) * .35) rgba(255,190,90,.55), 0 0 calc(var(--g) * 4) calc(var(--g) * 1.4) rgba(255,170,70,.22);
  transform-origin: 50% 100%; animation: flackern 1.7s ease-in-out infinite alternate; }
.bu-glut .flamme.birne { height: var(--g); margin-top: calc(var(--g) * -.9); border-radius: 50%; animation: none;
  background: radial-gradient(circle, #fff8dc 0 30%, #ffd98a 60%, rgba(255,200,110,0) 100%); }
.bu-glut .schimmer { position: absolute; border-radius: 30%; mix-blend-mode: screen; background: radial-gradient(ellipse at 50% 55%, rgba(255,170,60,.7), rgba(255,140,40,.25) 55%, rgba(255,120,30,0) 78%); }
.bu-glut .abends { opacity: clamp(0, calc((.78 - var(--tag)) * 5), 1); transition: opacity 1.5s; }
@keyframes flackern { 0% { transform: scale(1, 1) rotate(-2deg); } 35% { transform: scale(.92, 1.1) rotate(2.5deg); } 70% { transform: scale(1.05, .93) rotate(-1deg); } 100% { transform: scale(.96, 1.06) rotate(1.5deg); } }
.bu-katze canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bu-flieger .flug.hell img { filter: brightness(calc(.62 + .42 * var(--tag))); }   /* der Schlitten leuchtet ein wenig selbst */
@media (prefers-reduced-motion: reduce) { .bu-glut .flamme { animation: none; } }
/* Stifte rechts: ein Klick führt zum Schreiben eines neuen Beitrags */
.bu-stift { display: block; position: absolute; width: 360px; height: 150px; border-radius: 8px; }
.bu-stift span { position: absolute; left: 170px; top: 8px; padding: 5px 12px; border-radius: 999px; background: rgba(20,18,15,.78); color: #f1ece2; font: 15px/1 var(--sans); white-space: nowrap;
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; pointer-events: none; }
.bu-stift-zone:hover .bu-stift span, .bu-stift:focus-visible span { opacity: 1; transform: none; }
.bu-stift-zone { position: absolute; left: 1200px; top: 700px; width: 360px; height: 180px; pointer-events: none; }
.bu-stift-zone .bu-stift { left: 0; top: 28px; pointer-events: auto; clip-path: none; background: radial-gradient(ellipse at 50% 55%, rgba(255,236,190,0), rgba(255,236,190,0)); transition: background .3s; }
.bu-stift-zone .bu-stift:hover, .bu-stift-zone .bu-stift:focus-visible { background: radial-gradient(ellipse 55% 60% at 50% 55%, rgba(255,236,190,.22), rgba(255,236,190,0) 70%); }

/* Schein der Bildschirme bei Nacht */
.bu-schein { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: calc(.85 - var(--tag)); transition: opacity 1.5s;
  background: radial-gradient(560px 300px at 46% 78%, rgba(150,180,235,.36), transparent 70%), radial-gradient(190px 190px at 22.3% 15%, rgba(120,225,205,.3), transparent 70%); }

/* Wetterstation */
.bu-station { background: radial-gradient(120% 90% at 50% 0, #17262b, #0a1114 75%); color: #8ff0d8; text-align: center; font-family: "VT323", ui-monospace, monospace;
  text-shadow: 0 0 10px rgba(110,240,210,.55); }
.bu-station span { display: block; }
.bs-zeit { font-size: 84px; line-height: .9; margin-top: 22px; letter-spacing: .02em; }
.bs-datum { font-size: 27px; line-height: 1.1; opacity: .75; }
.bs-temp { font-size: 62px; line-height: 1; margin-top: 12px; color: #ffd27a; text-shadow: 0 0 10px rgba(255,200,110,.5); }
.bs-text { font-size: 23px; line-height: 1; padding: 0 6px; }
.bs-ort { font-size: 20px; line-height: 1.3; opacity: .6; }

/* Laptop */
.bu-laptop { background: #0b0d10; border-radius: 10px 10px 0 0; }
.bu-laptop img, .bu-laptop video { width: 100%; height: 100%; object-fit: cover; display: block; }
.bu-laptop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(118deg, rgba(255,255,255,.1), transparent 30%); pointer-events: none; }
.bl-zeile { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 22px 16px; color: #fff; font: 21px/1.2 var(--sans);
  background: linear-gradient(transparent, rgba(0,0,0,.72)); display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.bl-zeile b { font: 600 25px/1.1 var(--serif); }
/* Videos: Filme liegen übereinander und blenden ineinander */
.bu-kino { cursor: pointer; }
.bl-film { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s; pointer-events: none; }
.bl-film.da { opacity: 1; pointer-events: auto; }
.bl-film video { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; z-index: 1; }
.bl-film > img { position: relative; z-index: 1; }
.bu-laptop .bl-film img, .bu-laptop .bl-film video { object-fit: contain; }   /* ganz zeigen, die Unterlage füllt den Rest */
.bl-film > canvas.unterlage { z-index: 0; }
.bl-film:has(video.laeuft) > canvas.unterlage.bild { opacity: 0; }
.bl-film video.laeuft { opacity: 1; }
.bl-pfeil { position: absolute; top: 0; bottom: 70px; width: 110px; border: 0; padding: 0; background: none; color: #fff; font: 300 90px/1 var(--sans); cursor: pointer;
  opacity: 0; transition: opacity .25s; text-shadow: 0 2px 14px rgba(0,0,0,.8); z-index: 2; }
.bl-pfeil.zurueck { left: 0; background: linear-gradient(90deg, rgba(0,0,0,.45), transparent); }
.bl-pfeil.vor { right: 0; background: linear-gradient(-90deg, rgba(0,0,0,.45), transparent); }
.bu-kino:hover .bl-pfeil, .bl-pfeil:focus-visible { opacity: 1; }
.bl-spiel { position: absolute; left: 50%; top: 44%; width: 96px; height: 96px; margin: -48px; border-radius: 50%; background: rgba(12,12,14,.55); opacity: 0; transition: opacity .25s; pointer-events: none; }
.bl-spiel::after { content: ""; position: absolute; left: 38px; top: 28px; border: 20px solid transparent; border-left: 30px solid #fff; border-right: 0; }
.bu-kino:hover .bl-spiel { opacity: 1; }
@media (hover: none) { .bl-spiel { opacity: .85; } .bl-pfeil { opacity: .8; width: 150px; } }

/* Kinofahrt */
.kino-grund { position: fixed; inset: 0; z-index: 60; background: rgba(6,6,8,0); transition: background .76s; }
.kino-grund.auf { background: rgba(6,6,8,.9); }
.kino-schirm { position: fixed; transform-origin: 0 0; transition: transform .76s cubic-bezier(.2,.75,.2,1); background: #000; border-radius: 6px; overflow: hidden; box-shadow: 0 30px 90px rgba(0,0,0,.7); }
.kino-schirm video { width: 100%; height: 100%; display: block; background: transparent; object-fit: contain; position: relative; z-index: 1; }
.kino-zu { position: fixed; right: 18px; top: 14px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font: 30px/1 var(--sans); cursor: pointer; opacity: 0; transition: opacity .4s .3s; }
.kino-zeile { position: fixed; left: 0; right: 0; bottom: 10px; margin: 0; text-align: center; font: .95rem/1.3 var(--sans); opacity: 0; transition: opacity .4s .3s; }
.kino-zeile a { color: #e9e4da; }
.kino-grund.auf .kino-zu, .kino-grund.auf .kino-zeile { opacity: 1; }
.kino-zu:hover { background: rgba(255,255,255,.28); }
html.kino-offen { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .kino-schirm, .kino-grund, .bl-film { transition: none; } }
/* Was im Zimmer liegt, hängt (im Querformat) nicht noch einmal an der Pinnwand */
html.buehne-quer .auf-buehne, html.buehne-quer #weisheit, html.buehne-quer #redensart { display: none; }
.bu-laptop.leer { display: grid; place-items: center; color: #e9e4da; }
.bl-name { font: 600 64px/1 var(--serif); }

.bu-weiter { position: absolute; right: 16px; bottom: 14px; padding: 7px 16px; border-radius: 999px; z-index: 3;
  background: rgba(20,18,15,.62); color: #f1ece2; font: .875rem/1 var(--sans); text-decoration: none; backdrop-filter: blur(6px); }
.bu-weiter:hover { background: rgba(20,18,15,.85); }

/* Mit Bühne: Kopf liegt über dem Foto, die Überschrift der Einleitung entfällt, die Randspalten
   blenden in dem Maß ein, wie man am Zimmer vorbeiblättert (ihr Inhalt hängt ja im Zimmer). */
html.buehne-an body > .kopf { position: absolute; left: 0; right: 0; top: 0; z-index: 4; background: linear-gradient(rgba(12,10,8,.6), rgba(12,10,8,0)); backdrop-filter: none; -webkit-backdrop-filter: none; text-shadow: 0 1px 6px rgba(0,0,0,.8); }
html.buehne-an .kopf nav a { color: #e9e4da; }
html.buehne-an .rand { opacity: var(--rand-sicht, 1); }   /* blendet mit dem Blättern ein: halb vorbei = halb sichtbar */
html.buehne-an.rand-weg .rand { visibility: hidden; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .bu-matt, .bu-schein, .bu-lampe { transition: none; } }
@media print { .buehne { display: none; } }

/* Quelle der freigestellten Filme (getier.js): muss für Firefox „sichtbar“ in der Seite stehen */
.bu-filmquelle { position: absolute; left: 50%; top: 50%; width: 2px; height: 2px; opacity: .01; pointer-events: none; z-index: -1; }

/* ---------- Sprachen (inc/sprache.php) ---------- */
/* Notbremse: auf jeder fremdsprachigen Seite oben sichtbar, führt immer zur deutschen Seite zurück */
.notbremse { margin-inline-start: 14px; padding: 3px 10px 2px; border: 1px solid rgb(255 255 255 / .35); border-radius: 999px;
  font: 600 .78rem/1.4 var(--sans); letter-spacing: .04em; color: #f3ead8; text-decoration: none; background: rgb(0 0 0 / .25); white-space: nowrap; }
.notbremse::before { content: "↩ "; }
.notbremse:hover, .notbremse:focus-visible { background: rgb(255 255 255 / .14); }
/* Auswahl oben rechts im Kopf, neben der Notbremse */
.kopf-rechts { display: flex; align-items: center; gap: 10px; }
@media (max-width: 640px) { .kopf-rechts { margin-inline-start: auto; } }
.kopf-rechts .notbremse { margin-inline-start: 0; }
.sprachwahl { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: .82rem; }
.sprachwahl .sw-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html.buehne-an .sprachwahl select { background: rgb(0 0 0 / .3); color: #f3ead8; }
.sprachwahl label { display: inline-flex; align-items: center; gap: 6px; }
.sprachwahl select { font: inherit; color: inherit; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .22);
  border-radius: 4px; padding: 2px 6px; max-width: 14em; }
.sprachwahl select option { color: #1d1b18; background: #f4efe4; }
.sprachwahl button { font: inherit; padding: 2px 8px; border-radius: 4px; border: 1px solid rgb(255 255 255 / .3); background: none; color: inherit; cursor: pointer; }
.sprachwahl .sw-erdball { font-size: 1rem; }
.sprach-hinweis { margin: 0; padding: 4px var(--rand); font-size: .78rem; text-align: end; opacity: .85; }
html.buehne-an .sprach-hinweis { position: absolute; top: 58px; right: 0; z-index: 4; color: #f3ead8; text-shadow: 0 1px 4px #000; }
/* Rechts nach links (Arabisch, Hebräisch, Persisch, Urdu): das Zimmer bleibt ein Foto und wird nicht gespiegelt */
html[dir="rtl"] .buehne { direction: ltr; }
html[dir="rtl"] .buehne .bu-fl, html[dir="rtl"] .haft-flug { direction: rtl; unicode-bidi: plaintext; }
html[dir="rtl"] .zettel, html[dir="rtl"] .notiz, html[dir="rtl"] .wetterzettel { text-align: start; }
.nur-deutsch { margin: 0 0 18px; padding: 8px 12px; border-left: 3px solid var(--akzent); background: rgb(255 255 255 / .05); font-size: .92rem; }
.ki-hinweis { margin: 6px 0 0; font-size: .78rem; font-style: italic; opacity: .7; }
/* Automatisch übersetzte eigene Inhalte (inc/uebersetzung.php) */
.ue-hinweis { margin: 6px 0 10px; font-size: .82rem; font-style: italic; color: var(--leise, #b9b3a8); }
.ue-hinweis a { font-style: normal; white-space: nowrap; }
.fuss-ue { flex-basis: 100%; margin: 8px 0 0; }
.z-ue { margin: 4px 0 0; font-size: .78rem; color: inherit; opacity: .75; }

/* Flagge und Hymne beim Sprachwechsel (assets/hymne.js) */
.hymne { position: fixed; inset: 0; z-index: 9000; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; background: rgba(12, 14, 24, 0); transition: background .7s ease; cursor: pointer; }
.hymne.hy-sichtbar { background: rgba(12, 14, 24, .82); }
.hymne.hy-geht { opacity: 0; transition: opacity 2.8s ease, background 2.8s ease; }
.hy-flagge { filter: drop-shadow(0 18px 30px rgba(0,0,0,.45)); }
.hy-unter { text-align: center; color: #f3efe6; cursor: default; opacity: 0; transition: opacity .6s ease .5s; }
.hy-sichtbar .hy-unter { opacity: 1; }
.hy-titel { margin: 0; font: 1.15rem/1.4 var(--serif, Georgia, serif); }
.hy-nachweis { margin: 4px 0 0; font-size: .75rem; color: #c9c2b4; }
.hy-knoepfe { margin-top: 12px; display: flex; gap: 10px; justify-content: center; }
.hy-knoepfe button { font: inherit; font-size: .9rem; padding: 7px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.08); color: #fff; cursor: pointer; }
.hy-knoepfe button:hover, .hy-knoepfe button:focus-visible { background: rgba(255,255,255,.2); outline: 2px solid #f1c27d; outline-offset: 2px; }
html.hymne-offen { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .hymne, .hy-unter { transition-duration: .01s; } }
