/* blog.css: blog "Kalenderblatt" with the post window that never scrolls (design rounds 24-26) and the chosen motions
   (cell lifts like a pasted photo, circle around the newest post, photo film strip, page turn, swipe to close).
   Taken from the approved drafts u24.css, blog24.css, blog25.css, fenster26.css, ideen26.css; class names still follow the drafts. */
:root {
  --sand: #e9e1d1; --sand-hell: #f4efe6; --sand-tief: #ddd3bf; --salbei: #a3ab93; --himmel: #7e929e; --sienna: #9a4d2a; --sienna-tief: #7d3d20;
  --tinte: #26231e; --grau: #5a5448;
  --papier: var(--sand); --papier-tief: var(--sand-tief); --feld: var(--sand-hell); --schrift: var(--tinte); --zweit: var(--grau); --walnuss: var(--sienna);
  --feldrand: var(--grau); --linie: rgb(38 35 30 / 0.2); --linie-fest: var(--grau); --fehler: #8b2e16;
  --nacht: var(--tinte); --nacht-hell: #3b372f; --knochen: var(--sand-hell); --knochen-zweit: var(--salbei); --nacht-rand: var(--grau);
  --wald: var(--sand-hell); --oliv: var(--sienna-tief); --petrol: var(--himmel);
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s8: 64px; --s12: 96px;
  --rand: clamp(16px, 4vw, 56px); --breite: 1280px;
  --serif: "Alegreya", Georgia, serif; --sans: "Albert Sans", system-ui, sans-serif; --hand: "Caveat", "Bradley Hand", cursive;
  --weich: 0.2s ease-out;
}
/* Beitragsfarben aus der Palette: Grund, Schrift, Zweitschrift (jedes Paar ab 4,5 : 1, gemessen in pruefen24.mjs, Werte in BRIEF.md) */
[data-farbe="knochen"] { --b-grund: #f4efe6; --b-schrift: #26231e; --b-zweit: #5a5448; }
[data-farbe="sand"] { --b-grund: #e9e1d1; --b-schrift: #26231e; --b-zweit: #5a5448; }
[data-farbe="salbei"] { --b-grund: #a3ab93; --b-schrift: #26231e; --b-zweit: #26231e; }
[data-farbe="himmel"] { --b-grund: #7e929e; --b-schrift: #1a1814; --b-zweit: #1a1814; }
[data-farbe="sienna"] { --b-grund: #9a4d2a; --b-schrift: #f4efe6; --b-zweit: #f4efe6; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font: 400 18px/1.45 var(--sans); color: var(--schrift); background: var(--papier); hyphens: auto; -webkit-hyphens: auto; text-wrap: pretty; font-kerning: normal; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.15; text-wrap: balance; hyphens: manual; -webkit-hyphens: manual; }
p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
b, strong { font-weight: 700; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 2px; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--tinte); outline-offset: 3px; }
[hidden] { display: none !important; }
.nur-vorleser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.zahl { font-variant-numeric: tabular-nums lining-nums; }
.sprung { position: absolute; z-index: 100; left: var(--s2); top: var(--s2); padding: var(--s1) var(--s2); border-radius: 4px; background: var(--sand-hell); color: var(--tinte); border: 1px solid var(--tinte); transform: translateY(-300%); }
.sprung:focus-visible { transform: none; }

/* ---------- Knöpfe: Pille mit 1 px Rand in Schriftfarbe; .haupt ist der eine gefüllte in Sienna ---------- */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: var(--s1); min-height: 48px; padding: 0 22px; border: 1px solid var(--tinte); border-radius: 999px;
  background: transparent; color: var(--tinte); font: 500 18px/1.2 var(--sans); text-decoration: none; text-align: center; cursor: pointer; hyphens: manual; -webkit-hyphens: manual; }
.knopf:hover { background: rgb(38 35 30 / 0.07); text-decoration: none; }
.knopf:active { background: rgb(38 35 30 / 0.14); transform: translateY(1px); }
.knopf:disabled, .knopf.aus { opacity: 0.45; cursor: not-allowed; transform: none; background: transparent; }
.knopf.haupt { border-color: var(--sienna); background: var(--sienna); color: var(--sand-hell); }
.knopf.haupt:hover { border-color: var(--sienna-tief); background: var(--sienna-tief); }
.knopf.leise { border-color: transparent; text-decoration: underline; text-underline-offset: 0.22em; }
.knopf.leise:hover { text-decoration-thickness: 2px; }
.knopf.gefahr { color: var(--fehler); border-color: var(--fehler); }
label.knopf:focus-within { outline: 3px solid var(--tinte); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) { .knopf { transition: background-color var(--weich), transform 0.1s; } }

/* ---------- Handschrift als Zeiger (ab 22 px, mit kleinem gezeichnetem Pfeil, nie Fließtext) ---------- */
.zeiger { display: inline-flex; align-items: flex-end; gap: 4px; font: 400 24px/1.05 var(--hand); color: var(--sienna); hyphens: manual; -webkit-hyphens: manual; }
.zeiger svg { flex: none; overflow: visible; }

/* ---------- Kleiner Titel mit feinen Linien links und rechts ---------- */
.linientitel { display: flex; align-items: center; gap: var(--s2); font: italic 400 26px/1.2 var(--serif); text-align: center; }
.linientitel::before, .linientitel::after { content: ""; flex: 1; height: 1px; background: var(--linie); }

/* ---------- Rückmeldung unten (bleibt stehen, bis sie geschlossen oder ersetzt wird) ---------- */
.meldung { position: fixed; left: 50%; bottom: var(--s3); z-index: 80; display: flex; align-items: center; gap: var(--s2); width: max-content; max-width: min(640px, calc(100vw - 32px));
  padding: var(--s1) var(--s1) var(--s1) var(--s3); border: 1px solid var(--tinte); border-radius: 6px; background: var(--sand-hell); color: var(--tinte); box-shadow: 0 12px 32px -16px rgb(38 35 30 / 0.45); transform: translateX(-50%); }
.meldung p { padding-block: var(--s1); font-size: 18px; }
.meldung .knopf { flex: none; }
.meldung .m-x { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: transparent; font-size: 28px; line-height: 1; }
.meldung .m-x:hover { background: rgb(38 35 30 / 0.08); }
@keyframes rein { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) { .meldung.an { animation: rein 0.2s ease-out; } }
@media (max-width: 599px) { .meldung { left: var(--s2); right: var(--s2); width: auto; transform: none; } }

.hinweis { padding-block: var(--s3); color: var(--zweit); font-size: 18px; text-align: center; }

/* ---------- Kleine Zeichnungen ---------- */
.teckel { display: block; overflow: visible; }
.teckel .deck { fill: var(--papier); }
.pfote { display: block; }

/* ---------- Rückfrage (Löschen) ---------- */
dialog { color: var(--schrift); }
dialog::backdrop { background: rgb(38 35 30 / 0.45); }
.rueckfrage { width: min(480px, calc(100vw - 32px)); padding: var(--s4); border: 1px solid var(--tinte); border-radius: 6px; background: var(--sand-hell); }
.rf-titel { font-family: var(--serif); font-size: 32px; }
.rf-text { margin-top: var(--s2); }
.rf-knoepfe { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--s2); margin-top: var(--s4); }
body.blog { --zelle: 150px; --z-hoehe: 176px; --klein: 16px; }
body.blog.ist-ute { --zelle: 196px; --z-hoehe: 200px; --klein: 18px; }
body:not(.ist-ute) .nur-ute, body.ist-ute .nur-web { display: none !important; }

.umschalter-leiste { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px var(--s2); padding: 10px var(--rand); border-bottom: 1px solid var(--linie); background: var(--sand-tief); }
.u-name { color: var(--zweit); font-size: var(--klein); }
.umschalter { display: flex; flex-wrap: wrap; border: 1px solid var(--tinte); border-radius: 26px; overflow: hidden; }
.umschalter button { min-height: 48px; padding: 6px 20px; border: 0; background: transparent; font: 500 18px/1.2 var(--sans); }
.umschalter button + button { border-left: 1px solid var(--tinte); }
.umschalter button:hover { background: rgb(244 239 230 / 0.7); }
.umschalter button[aria-pressed="true"] { background: var(--salbei); font-weight: 700; }
.umschalter button[aria-pressed="true"]::before { content: "✓ "; }
.umschalter button:focus-visible { outline-offset: -5px; }

/* ---------- Kopf ---------- */
.bl-kopf { padding-inline: var(--rand); border-bottom: 1px solid var(--linie); }
.bl-marke { display: flex; justify-content: center; align-items: center; min-height: 64px; font: 400 24px/1.2 var(--serif); text-decoration: none; }
.bl-marke:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.ute-leiste { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px var(--s3); max-width: var(--breite); min-height: 72px; margin-inline: auto; padding-block: 8px; }
.ute-leiste .zurueck { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font-weight: 500; text-decoration: none; }
.ute-leiste .zurueck:hover { text-decoration: underline; }
.ute-zahl { color: var(--zweit); }
.ute-wo { font: 400 24px/1.2 var(--serif); color: var(--tinte); }

/* ---------- Auftakt: Einleitung und Sprechblase ---------- */
.bl { width: 100%; max-width: calc(var(--breite) + 2 * var(--rand)); margin-inline: auto; padding-inline: var(--rand); }
.bl-auftakt { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s4) var(--s8); align-items: center; padding-block: var(--s5) var(--s4); }
.bl-h1 { font-size: clamp(36px, 4.4vw, 46px); }
.bl-lead { max-width: 25em; margin-top: var(--s2); font: 400 clamp(21px, 2vw, 24px)/1.4 var(--serif); }
.blase { position: relative; width: 100%; max-width: 390px; min-height: 156px; color: var(--tinte); }
.blase-rand { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.blase-innen { position: relative; display: grid; align-content: center; min-height: 156px; padding: 22px 32px 46px 34px; }
.blase-hand { font: 400 27px/1.12 var(--hand); }
.blase-vor .v-datum { font-size: var(--klein); color: var(--zweit); }
.blase-vor .v-titel { margin-top: 2px; font: 400 24px/1.2 var(--serif); hyphens: manual; -webkit-hyphens: manual; }
@media (prefers-reduced-motion: no-preference) { .blase-vor:not([hidden]) { animation: rein 0.18s ease-out; } }

/* ---------- Blog 1: Reiter je Jahr und ein Kalenderblatt ---------- */
.reiter { display: flex; flex-wrap: wrap; gap: 4px; padding-left: 52px; border-bottom: 1px solid var(--linie); }
.reiter [role="tab"] { display: inline-flex; align-items: baseline; gap: 8px; min-height: 48px; margin-bottom: -1px; padding: 8px 20px 6px; border: 1px solid transparent; border-bottom: 0;
  border-radius: 4px 4px 0 0; background: transparent; }
.r-jahr { font: 400 24px/1 var(--serif); }
.r-zahl { color: var(--zweit); font-size: var(--klein); }
.reiter [role="tab"]:hover .r-jahr { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.reiter [aria-selected="true"] { border-color: var(--linie); background: var(--sand-hell); box-shadow: inset 0 3px 0 var(--tinte); }
.reiter [aria-selected="true"] .r-jahr { font-weight: 600; }
.reiter [role="tab"]:focus-visible { outline-offset: -4px; }
.blatt-jahr { display: grid; grid-template-columns: 52px minmax(0, 1fr); border: 1px solid var(--linie); border-top: 0; background: var(--sand-hell); overflow: hidden; }
.seitlich { padding: 18px 0; border-right: 1px solid var(--linie); font: italic 400 22px/1 var(--serif); color: var(--zweit); text-align: right; writing-mode: vertical-rl; transform: rotate(180deg); }
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--zelle)), 1fr)); margin: 0 -1px -1px 0; }
.blatt-jahr .leer { grid-column: 2; padding: var(--s4); color: var(--zweit); }

/* ---------- Zelle (beide Fassungen) ---------- */
.zelle { position: relative; min-width: 0; display: flex; flex-direction: column; min-height: var(--z-hoehe); border-right: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.z-link { position: relative; display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 34px 16px 16px; color: var(--tinte); text-decoration: none; }
.z-link:focus-visible { outline-offset: -4px; }
.z-nr { position: absolute; left: 12px; top: 8px; font-size: var(--klein); color: var(--zweit); }
.z-bild { position: relative; display: block; flex: 1; min-height: 104px; }
.z-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 2px; filter: saturate(0.78) contrast(0.96); mix-blend-mode: multiply; }
.z-ohne { display: block; width: 74px; color: var(--grau); }
.z-ohne .teckel { width: 74px; height: auto; }
.z-ohne .teckel .deck { fill: var(--sand-hell); }
.z-titel { font: 400 20px/1.2 var(--serif); hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
.zelle:hover, .zelle.ist-vor { background: #fbf8f2; }
.zelle:hover .z-titel { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
@media (prefers-reduced-motion: no-preference) { .z-bild img { transition: transform 0.25s ease-out; } .zelle:hover .z-bild img { transform: scale(1.035); } }
.ist-entwurf::before { content: ""; position: absolute; inset: 6px; border: 2px dashed var(--grau); border-radius: 3px; pointer-events: none; }
.z-ute { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px; min-height: 52px; padding: 0 2px 4px 14px; }
.st { color: var(--zweit); font-size: var(--klein); white-space: nowrap; hyphens: manual; -webkit-hyphens: manual; }
.st-entwurf { color: var(--sienna); font-weight: 700; }
.mehr { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: transparent; font-size: 26px; line-height: 1; }
.mehr:hover, .mehr[aria-expanded="true"] { background: var(--sand); }
.mehr:focus-visible { outline-offset: -3px; }

/* ---------- Menü ⋯ ---------- */
.mehr-menue { position: absolute; z-index: 60; display: flex; flex-direction: column; min-width: 210px; padding: 6px; border: 1px solid var(--grau); border-radius: 6px; background: var(--sand-hell);
  box-shadow: 0 18px 40px -18px rgb(38 35 30 / 0.5); }
.mehr-menue [role="menuitem"] { display: flex; align-items: center; min-height: 48px; padding: 0 16px; border: 0; border-radius: 4px; background: transparent; font: 400 18px/1.2 var(--sans); color: var(--tinte); text-align: left; text-decoration: none; }
.mehr-menue [role="menuitem"]:hover, .mehr-menue [role="menuitem"]:focus-visible { background: var(--sand); }
.mehr-menue [role="menuitem"]:focus-visible { outline-offset: -3px; }
.mehr-menue .gefahr { margin-top: 4px; border-top: 1px solid var(--linie); border-radius: 0 0 4px 4px; color: var(--fehler); }

/* ---------- Blog 2: Monate als Zeilen, Vorschau-Spalte ---------- */
.bl2 { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s5); align-items: start; padding-top: var(--s1); }
.jahr { display: grid; grid-template-columns: 56px minmax(0, 1fr); border-top: 1px solid var(--tinte); }
.jahr + .jahr { margin-top: var(--s4); }
.j-name { position: sticky; top: 12px; align-self: start; padding: 16px 0; font: italic 400 30px/1 var(--serif); writing-mode: vertical-rl; transform: rotate(180deg); text-align: right; }
.m-zeile { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: var(--s2); padding-block: var(--s2); }
.m-zeile + .m-zeile { border-top: 1px solid var(--linie); }
.m-name { padding-top: 6px; font: 400 24px/1.15 var(--serif); }
.m-zahl { display: block; margin-top: 2px; font: 400 var(--klein)/1.3 var(--sans); color: var(--zweit); }
.m-zellen { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--zelle)), 1fr)); border-left: 1px solid var(--linie); }
.m-zellen .zelle { min-height: 0; border-bottom: 0; }
.m-zellen .z-link { padding: 30px 14px 12px; }
.m-zellen .z-bild { flex: none; min-height: 0; aspect-ratio: 4 / 3; }
.m-zellen .mit-bild .z-titel { font: 400 var(--klein)/1.3 var(--sans); }
.vor-spalte { position: sticky; top: 24px; padding-left: var(--s3); border-left: 1px solid var(--linie); }
.vs-hilfe { font-size: var(--klein); color: var(--zweit); letter-spacing: 0.08em; text-transform: uppercase; }
.vs-bild { display: grid; place-items: center; aspect-ratio: 4 / 5; margin-top: var(--s1); overflow: hidden; border-radius: 2px; background: var(--sand-tief); }
.vs-bild img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.82); }
.vs-bild .teckel { width: 120px; height: auto; color: var(--grau); }
.vs-datum { margin-top: var(--s2); font-size: var(--klein); color: var(--zweit); }
.vs-titel { margin-top: 4px; font: 400 28px/1.15 var(--serif); hyphens: manual; -webkit-hyphens: manual; }

.bl .hinweis { padding-top: var(--s5); }

@media (max-width: 1099px) {
  .bl2 { grid-template-columns: minmax(0, 1fr); }
  .vor-spalte { display: none; }
}
@media (max-width: 759px) {
  .bl-auftakt { grid-template-columns: minmax(0, 1fr); padding-top: var(--s4); }
  .reiter { padding-left: 0; }
  .reiter [role="tab"] { padding-inline: 14px; }
  .blatt-jahr { grid-template-columns: 36px minmax(0, 1fr); }
  .seitlich { font-size: 20px; }
  body.blog { --zelle: 132px; }
  body.blog.ist-ute { --zelle: 190px; }
  .jahr { grid-template-columns: 40px minmax(0, 1fr); }
  .m-zeile { grid-template-columns: minmax(0, 1fr); gap: var(--s1); }
  .ute-leiste .knopf { flex: 1 1 100%; }
}
:root { --sienna: #954b28; --grau: #4e483d; --kurve-wechsel: cubic-bezier(.65, 0, .35, 1); --kurve-rein: cubic-bezier(.16, 1, .3, 1); } /* einheitlich mit der Startseite */
.nur-vorleser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Kopf: Marke und dasselbe Menü wie auf der Startseite ---------- */
.bl-kopf { display: flex; flex-direction: column; align-items: center; padding-bottom: 4px; }
.bl-menue { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; }
.bl-menue a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--tinte); font: 500 16px/1 var(--sans); text-decoration: none; }
.bl-menue a[aria-current="page"], .bl-menue a:hover { text-decoration: underline; text-underline-offset: 0.4em; }
.z-link { cursor: pointer; }

/* ---------- Fenster ---------- */
html.fenster-offen { overflow: hidden; }
.schleier { position: fixed; inset: 0; z-index: 50; background: rgb(233 225 209 / 0.4); -webkit-backdrop-filter: blur(10px) saturate(0.9); backdrop-filter: blur(10px) saturate(0.9); }
.schleier[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .schleier { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgb(233 225 209 / 0.92); } }
.fenster { width: min(760px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow: visible; border: 0; background: transparent; color: var(--tinte); }
.fenster::backdrop { background: transparent; }
.f-blatt { max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain; padding: 16px clamp(20px, 4vw, 48px) clamp(24px, 4vw, 40px); border-radius: 8px;
  background: var(--sand-hell); box-shadow: 0 24px 64px rgb(38 35 30 / 0.22), 0 2px 6px rgb(38 35 30 / 0.12); }
.f-oben { position: sticky; top: -16px; z-index: 1; display: flex; justify-content: flex-end; margin: -16px calc(-1 * clamp(20px, 4vw, 48px)) 0; padding: 12px 12px 0; }
.f-zu { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 1px solid var(--tinte); border-radius: 22px; background: var(--sand-hell); color: var(--tinte); font: 500 16px/1 var(--sans); cursor: pointer; }
.f-zu:hover { background: var(--sand); }
.f-zu span { font-size: 22px; line-height: 0; }
.f-datum { color: var(--zweit); font: 500 16px/1.4 var(--sans); }
.f-titel { margin-top: 6px; font: 700 clamp(30px, 4.4vw, 44px)/1.12 var(--serif); text-wrap: balance; hyphens: manual; -webkit-hyphens: manual; }
.f-inhalt { margin-top: 24px; }
.f-text p { max-width: 36em; font: 400 18px/1.55 var(--sans); text-wrap: pretty; }
.f-text p + p { margin-top: 12px; }
.f-foto { margin: 0 0 24px; }
.f-foto img { display: block; width: auto; max-width: 100%; height: auto; max-height: 62vh; margin-inline: auto; border-radius: 3px; filter: saturate(0.85); }
.f-foto figcaption { margin-top: 8px; color: var(--sienna); font: 500 27px/1.15 var(--hand); text-align: center; }
.f-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 20px 16px; margin-top: 28px; }
.f-fotos .f-foto { margin: 0; }
.f-fotos .f-foto img { width: 100%; max-height: none; aspect-ratio: 4 / 3; object-fit: cover; }
.f-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--linie); }
.f-weiter { display: grid; align-content: start; gap: 2px; max-width: 48%; min-height: 48px; padding: 8px 10px; border: 0; border-radius: 4px; background: transparent; color: var(--tinte);
  font: 500 15px/1.3 var(--sans); text-align: left; cursor: pointer; }
.f-weiter + .f-weiter { justify-items: end; text-align: right; }
.f-weiter:hover .f-wt { text-decoration: underline; text-decoration-thickness: 1px; }
.f-weiter:disabled { visibility: hidden; }
.f-wohin { color: var(--zweit); }
.f-wt { font: 400 19px/1.25 var(--serif); hyphens: manual; -webkit-hyphens: manual; }
.f-hilfe { margin-top: 12px; color: var(--zweit); font-size: 15px; text-align: center; }
@media (max-width: 480px) { .f-hilfe { display: none; } .f-weiter { max-width: 50%; } }
:root { --fe-rand: clamp(12px, 3vw, 32px); }

/* ---------- Das Fenster als <dialog> ---------- */
.fenster.fe { width: fit-content; max-width: none; max-height: none; margin: auto; padding: 0; overflow: visible; }
.fenster .fe-rahmen { width: min(720px, calc(100vw - 2 * var(--fe-rand))); transform-origin: 0 0; }
.fenster .fe-rahmen.mit-fotos { width: min(1000px, calc(100vw - 2 * var(--fe-rand))); }
html.rm .schleier { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgb(233 225 209 / 0.92); } /* nachgestellt wie das Gerät */

/* ---------- Blatt: ein Raster, die Bereiche ordnen sich je nach Breite ---------- */
.fe-rahmen { container: fe / inline-size; width: 100%; color: var(--tinte); }
.fe-blatt { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto 1fr auto auto;
  grid-template-areas: "oben" "titel" "medien" "lese" "nav" "hilfe"; column-gap: 40px;
  padding: 8px 20px 14px; border-radius: 8px; background: var(--sand-hell); box-shadow: 0 24px 64px rgb(38 35 30 / 0.22), 0 2px 6px rgb(38 35 30 / 0.12); }
.fe-oben { grid-area: oben; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.fe-datum { color: var(--zweit); font: 500 16px/1.4 var(--sans); }
.fe-zu { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; flex-shrink: 0; padding: 0 16px; border: 1px solid var(--tinte); border-radius: 22px; white-space: nowrap; hyphens: manual; -webkit-hyphens: manual;
  background: var(--sand-hell); color: var(--tinte); font: 500 16px/1 var(--sans); cursor: pointer; }
.fe-zu:hover { background: var(--sand); }
.fe-zu span { font-size: 22px; line-height: 0; }
.fe-titel { grid-area: titel; margin-top: 2px; font: 700 28px/1.12 var(--serif); text-wrap: balance; hyphens: manual; -webkit-hyphens: manual; }

/* ---------- Fotos: eins groß (Kasten fester Höhe, damit nichts springt), mehrere als Miniaturen ---------- */
.fe-medien { grid-area: medien; margin-top: 14px; }
.fe-gross { display: grid; height: var(--foto-h, 260px); }
.fe-bild { grid-area: 1 / 1; display: grid; place-items: center; min-height: 0; height: 100%; margin: 0; }
.fe-bild img { width: auto; height: auto; max-width: 100%; max-height: var(--foto-h, 260px); border-radius: 3px; filter: saturate(0.85); }
.fe-unterschrift { margin-top: 6px; color: var(--sienna); font: 500 27px/1.15 var(--hand); text-align: center; }
.fe-medien:not(.mit-unterschrift) .fe-unterschrift { display: none; }
.fe-medien.mit-unterschrift .fe-unterschrift { min-height: 1.15em; }
.fe-reihe { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.fe-reihe[hidden] { display: none; }
.fe-mini { position: relative; display: grid; align-content: start; width: 56px; height: 64px; padding: 0; border: 0; border-radius: 4px; background: none; cursor: pointer; }
.fe-mini img { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; filter: saturate(0.85); }
.fe-mini::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 0; height: 3px; border-radius: 2px; background: var(--tinte); opacity: 0; }
.fe-mini[aria-pressed="true"]::after { opacity: 1; } /* Form, nicht nur Farbe: ein Strich unter dem gezeigten Foto */
.fe-mini:hover img { filter: none; }

/* ---------- Text und Seiten ---------- */
.fe-lese { grid-area: lese; display: flex; flex-direction: column; min-width: 0; margin-top: 14px; }
.fe-seite p { max-width: 38em; font: 400 17px/1.5 var(--sans); hyphens: auto; -webkit-hyphens: auto; text-wrap: pretty; }
.fe-seite p + p { margin-top: 10px; }
.fe-seite .fe-leer { color: var(--zweit); font-style: italic; }
.fe-blaettern { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; }
.fe-blaettern[hidden] { display: none; }
.fe-sk { min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid var(--tinte); border-radius: 22px; background: var(--sand-hell); color: var(--tinte);
  font: 500 16px/1 var(--sans); cursor: pointer; }
.fe-sk:hover:not(:disabled) { background: var(--sand); }
.fe-sk:disabled { opacity: 0.4; cursor: default; }
.fe-stand { color: var(--zweit); font: 500 16px/1.3 var(--sans); }

/* ---------- Weitere Beiträge ---------- */
.fe-nav { grid-area: nav; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 4px 12px; margin-top: 14px; padding-top: 8px; border-top: 1px solid var(--linie); }
.fe-weiter { display: grid; align-content: start; gap: 2px; max-width: 48%; min-height: 48px; padding: 8px 4px; border: 0; border-radius: 4px;
  background: transparent; color: var(--tinte); font: 500 16px/1.3 var(--sans); text-align: left; cursor: pointer; }
.fe-weiter[data-schritt="1"] { justify-items: end; margin-left: auto; text-align: right; }
.fe-weiter:hover .fe-wt, .fe-weiter:hover .fe-wohin { text-decoration: underline; text-decoration-thickness: 1px; }
.fe-weiter:disabled { visibility: hidden; }
.fe-wohin { color: var(--tinte); }
.fe-wt { display: none; color: var(--zweit); font: 400 18px/1.25 var(--serif); hyphens: manual; -webkit-hyphens: manual; }
.fe-hilfe { grid-area: hilfe; display: none; margin-top: 4px; color: var(--zweit); font-size: 16px; text-align: center; }

/* ---------- Breiter: Titel der Nachbarn, größere Schrift; mit Fotos zwei Spalten ---------- */
@container fe (min-width: 560px) {
  .fe-blatt { padding: 12px 32px 18px; }
  .fe-wt { display: block; }
}
@container fe (min-width: 720px) {
  .fe-titel { font-size: 36px; }
  .fe-seite p { font-size: 18px; line-height: 1.55; }
  .fe-seite p + p { margin-top: 12px; }
  .fe-hilfe { display: block; }
  .fe-rahmen.mit-fotos .fe-blatt { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-rows: auto auto 1fr auto auto;
    grid-template-areas: "medien oben" "medien titel" "medien lese" "nav nav" "hilfe hilfe"; }
  .fe-rahmen.mit-fotos .fe-medien { align-self: start; margin-top: 16px; }
}

/* ---------- Chosen motions (ideen26.css) ---------- */
/* ---------- 3 Zelle hebt sich wie ein eingeklebtes Foto (Schatten als eigene Ebene, nur Deckkraft) ---------- */
.b3 .zelle:hover .z-bild img { transform: none; }
.b3 .z-bild { transform-origin: 30% 85%; }
.b3 .z-bild::after { content: ""; position: absolute; inset: 0; border-radius: 2px; box-shadow: 0 12px 24px rgb(38 35 30 / 0.3), 0 2px 6px rgb(38 35 30 / 0.18); opacity: 0; pointer-events: none; }
.b3 .zelle:is(:hover, :focus-within, .hebt) .z-bild::after { opacity: 1; }
html.rm .b3 .z-bild::after { transition: opacity 0.3s ease-out; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.rm) .b3 .z-bild, html:not(.rm) .b3 .z-bild::after { transition: transform 0.6s cubic-bezier(.65, 0, .35, 1), opacity 0.6s cubic-bezier(.65, 0, .35, 1); }
  html:not(.rm) .b3 .zelle:is(:hover, :focus-within, .hebt) .z-bild { transform: translateY(-4px) rotate(-1deg); }
  html:not(.rm) .b3 .zelle:is(:hover, :focus-within, .hebt) :is(.z-bild, .z-bild::after) { transition-duration: 0.45s; transition-timing-function: cubic-bezier(.16, 1, .3, 1); }
  html:not(.rm) .b3 .zelle:is(:hover, :focus-within, .hebt) .z-bild::after { transition-duration: 0.45s; transition-timing-function: cubic-bezier(.16, 1, .3, 1); }
}

/* ---------- 4 Kringel um das Neueste ---------- */
.kringel { position: absolute; left: 0; top: -1px; width: 72px; height: 36px; overflow: visible; color: var(--sienna); pointer-events: none; }
.k-halb { transform-box: view-box; transform-origin: 60px 30px; transform: rotate(180deg); } /* Ruhelage: ganz gezeichnet (auch ohne JavaScript) */

/* ---------- 5 Fotos als Filmstreifen ---------- */
.b5 .fe-gross { overflow: clip; }
.b5 .fe-reihe { position: relative; }
.b5 .fe-mini::after { display: none; }
.b5-strich { position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; border-radius: 2px; background: var(--tinte); pointer-events: none; }

/* ---------- 6 Seite umblättern ---------- */
.b6 .fe-seiten { position: relative; }
.b6-kopie { position: absolute; left: 0; right: 0; top: 0; z-index: 1; background: var(--sand-hell); box-shadow: 8px 0 16px -8px rgb(38 35 30 / 0.3); transform-origin: 0 50%; pointer-events: none; }

/* ---------- 10 Wischen zum Schließen ---------- */
.b10 .fe-blatt { position: relative; touch-action: pinch-zoom; -webkit-user-select: none; user-select: none; }
.b10 .fe-blatt::before { content: ""; position: absolute; left: 50%; top: 6px; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--zweit); }
.b10-zu { padding: 48px 0; color: var(--zweit); text-align: center; }
.b10-zu .nochmal { margin: 12px auto 0; display: block; }
.b10-zu .nochmal::before { content: none; }
