/* Sammleralbum (Stufe 2, 01.11.2026) – Geschichtsseiten /kundenfotos/sammleralbum/…
   Markup: server/lib/kf-album.mjs. Farben/Abstände aus shop.css (--color-*). */
.sa-seite, .sa-uebersicht { padding-top: 10px; padding-bottom: 48px; }
.sa-gebiet { margin: 0 0 6px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--color-primary-dark); }
.sa-gebiet a { color: inherit; text-decoration: none; }
.sa-gebiet a:hover { text-decoration: underline; }
.sa-kopf h1, .sa-uebersicht h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 0 0 8px; }
.sa-von { margin: 0 0 22px; color: var(--color-muted); font-size: 15px; }
.sa-raster { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
@media (max-width: 860px) { .sa-raster { grid-template-columns: 1fr; gap: 24px; } }

/* Fotos wie im Album: weißer Rahmen, Fotoecken */
.sa-titelbild { position: relative; display: block; width: 100%; padding: 10px; border: 0; background: #fff; cursor: zoom-in;
  box-shadow: 0 3px 14px rgba(60, 40, 10, .16); border-radius: 2px; }
.sa-titelbild img { display: block; width: 100%; max-height: 640px; object-fit: contain; background: #f4f1ea; }
.sa-titelbild::before, .sa-titelbild::after { content: ""; position: absolute; width: 30px; height: 30px; pointer-events: none; opacity: .85; }
.sa-titelbild::before { top: -5px; left: -5px; background: linear-gradient(135deg, #2b2621 0 50%, transparent 50%); }
.sa-titelbild::after { bottom: -5px; right: -5px; background: linear-gradient(-45deg, #2b2621 0 50%, transparent 50%); }
.sa-daumen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sa-daumen button { width: 72px; height: 72px; padding: 0; border: 2px solid #fff; border-radius: 4px; background: #eee; cursor: zoom-in; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); overflow: hidden; }
.sa-daumen button:hover { outline: 2px solid var(--color-primary); }
.sa-daumen img { width: 100%; height: 100%; object-fit: cover; display: block; }

.sa-zitat { margin: 0 0 20px; padding: 4px 0 4px 18px; border-left: 4px solid var(--color-primary); }
.sa-zitat p { margin: 0; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 20px; line-height: 1.45; color: var(--color-text); max-width: none; }
.sa-zitat cite { display: block; margin-top: 8px; font-style: normal; font-size: 14px; color: var(--color-muted); }
.sa-geschichte p { font-size: 17px; line-height: 1.65; margin: 0 0 14px; max-width: 62ch; }
.sa-stichworte { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 20px; }
.sa-stichworte span { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--color-bg-soft); border: 1px solid var(--color-border); color: var(--color-muted); }
.sa-knoepfe { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 6px; }
.sa-knoepfe .btn small { display: block; font-weight: 400; font-size: 12.5px; opacity: .9; margin-top: 2px; }
.sa-short { display: inline-flex; align-items: center; gap: 8px; }
.sa-short img { width: 44px; height: 33px; object-fit: cover; border-radius: 3px; }

.sa-masse { margin-top: 44px; padding: 24px; background: var(--color-bg-soft); border: 1px solid var(--color-border); border-radius: 12px; }
.sa-masse h2, .sa-weitere h2 { font-size: 22px; margin: 0 0 14px; }
.sa-masse__raster { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: 24px; align-items: center; }
@media (max-width: 700px) { .sa-masse__raster { grid-template-columns: 1fr; } }
.sa-skizze { width: 100%; height: auto; background: #fff; border-radius: 8px; border: 1px solid var(--color-border); }
.sa-masse dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 15px; }
.sa-masse dt { color: var(--color-muted); }
.sa-masse dd { margin: 0; font-weight: 600; }
.sa-masse .sa-masse__name { grid-column: 1 / -1; color: var(--color-text); font-weight: 700; font-size: 17px; }
.sa-masse .sa-masse__name + dd { display: none; }
.sa-hinweis { font-size: 14px; color: var(--color-muted); margin: 14px 0 0; }

.sa-weitere { margin-top: 44px; }
.sa-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin: 10px 0 14px; }
.sa-karte { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--color-border); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--color-text); transition: box-shadow .15s, transform .15s; }
.sa-karte:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .1); transform: translateY(-2px); }
.sa-karte[hidden] { display: none; }
.sa-karte img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #f4f1ea; }
.sa-karte__text { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 16px; }
.sa-karte__gebiet { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--color-primary-dark); }
.sa-karte strong { font-family: Georgia, "Times New Roman", serif; font-size: 18px; line-height: 1.25; }
.sa-karte__teaser { font-size: 14px; color: var(--color-muted); line-height: 1.45; }
.sa-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.sa-filter button { border: 1px solid var(--color-border); background: #fff; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.sa-filter button.aktiv { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.sa-uebersicht .lead { max-width: 70ch; }
.sa-einladung { margin-top: 36px; font-size: 14px; color: var(--color-muted); }
.sa-vorschau { background: #fff4d6; border-bottom: 1px solid #ecd9a3; color: #6b5313; text-align: center; padding: 8px 16px; font-size: 14px; font-weight: 600; }

/* ---------- Stufe 5 (01.11.2026): Wissens-Kästen – server/lib/kf-wissen.mjs ---------- */
.sa-wissen-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.sa-wissen-raster--eins { grid-template-columns: minmax(0, 760px); }
.sa-wissen-raster + .sa-masse { margin-top: 24px; }
@media (max-width: 760px) { .sa-wissen-raster { grid-template-columns: 1fr; } }
.sa-wissen { position: relative; padding: 20px 22px 18px; border-radius: 12px; background: #fbf7ee; border: 1px solid #e6dcc6; }
.sa-wissen--praxis { background: #f1f8f1; border-color: #cfe3cf; }
.sa-wissen__art { margin: 0 0 6px; font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase; font-weight: 700; color: #8a6a2a; }
.sa-wissen--praxis .sa-wissen__art { color: var(--color-primary-dark); }
.sa-wissen h2 { font-family: Georgia, "Times New Roman", serif; font-size: 21px; line-height: 1.25; margin: 0 0 10px; }
.sa-wissen p { font-size: 15.5px; line-height: 1.6; margin: 0 0 10px; max-width: none; }
.sa-wissen p:last-child { margin-bottom: 0; }
.sa-wissen__entwurf { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #fff4d6; color: #6b5313; letter-spacing: 0; text-transform: none; font-weight: 600; }

.sa-lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(18, 16, 12, .92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; }
.sa-lightbox[hidden] { display: none; }
.sa-lightbox img { max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain; }
.sa-lightbox__text { color: #eee; font-size: 14px; margin: 10px 0 0; text-align: center; }
.sa-lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .15); color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 22px; cursor: pointer; }
.sa-lightbox__zu { top: 14px; right: 14px; }
.sa-lightbox__pfeil { left: 14px; top: 50%; }
.sa-lightbox__pfeil--r { left: auto; right: 14px; }
.sa-lightbox button[hidden] { display: none; }

/* ---------- Stufe 4 (01.11.2026): Blätteralbum – js/sammleralbum-buch.js ---------- */
.sa-alle { font-size: 22px; margin: 34px 0 6px; }
.sab { position: relative; isolation: isolate; margin: 22px -16px 10px; padding: 26px 16px 8px; background: radial-gradient(1200px 500px at 50% 0%, #f4f1ec 0%, transparent 70%), #ebe6dd; border-radius: 14px; }
.sab[hidden] { display: none; }
.sab-zeile { display: flex; justify-content: center; }
.sab-rahmen { position: relative; margin-right: 104px; flex-shrink: 0; }
.sab-buch { position: relative; width: 100%; height: var(--sab-ph); perspective: 2600px; transition: transform .6s ease; outline: none; }
.sab-seite { box-shadow: 0 12px 22px -8px rgba(40, 30, 15, .28); }
.sab-buch.sab-ohne-animation, .sab-buch.sab-ohne-animation .sab-blatt { transition: none !important; }
.sab-blatt { position: absolute; top: 0; left: 50%; width: 50%; height: 100%; transform-origin: left center; transform-style: preserve-3d; transition: transform .95s cubic-bezier(.4, .1, .2, 1); }
.sab-blatt.sab-um { transform: rotateY(-180deg); }
.sab-seite { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; cursor: pointer; color: #1f1d1a; }
.sab-seite.sab-hinten { transform: rotateY(180deg); }
.sab-papier { background: radial-gradient(120% 90% at 50% 40%, rgba(255, 255, 255, .55), transparent 70%), repeating-linear-gradient(0deg, rgba(120, 100, 60, .025) 0 2px, transparent 2px 5px), #fbf7ee; }
.sab-seite.sab-vorn { border-radius: 0 4px 4px 0; box-shadow: inset 18px 0 26px -18px rgba(70, 50, 20, .35), 0 12px 22px -8px rgba(40, 30, 15, .28); }
.sab-seite.sab-hinten { border-radius: 4px 0 0 4px; box-shadow: inset -18px 0 26px -18px rgba(70, 50, 20, .35), 0 12px 22px -8px rgba(40, 30, 15, .28); }
.sab-deckel { background: #1f3a2a; color: #d6b56d; }
.sab-deckel-innen { container-type: inline-size; height: 100%; padding: 2em; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; font-size: 14px;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 4px), repeating-linear-gradient(-45deg, rgba(0, 0, 0, .08) 0 1px, transparent 1px 4px); }
.sab-praegung { border: 2px solid rgba(214, 181, 109, .55); outline: 1px solid rgba(214, 181, 109, .35); outline-offset: 6px; padding: 2.2em 1.4em; width: 84%; }
.sab-praegung h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: min(2.8em, 8.4cqi); margin: .35em 0 .2em; line-height: 1; color: #d6b56d; text-shadow: 0 1px 0 rgba(255, 240, 200, .25), 0 -1px 0 rgba(0, 0, 0, .45); }
.sab-marke { font-family: Georgia, serif; letter-spacing: .3em; opacity: .9; }
.sab-unter { font-family: Georgia, serif; font-style: italic; font-size: 1.15em; line-height: 1.4; }
.sab-linie { width: 40%; height: 1px; background: rgba(214, 181, 109, .6); margin: 1.1em auto; }
.sab-jahr { font-size: .85em; letter-spacing: .18em; text-transform: uppercase; opacity: .8; }
.sab-klein { font-size: .78em; line-height: 1.5; opacity: .85; }
.sab-tipp { margin-top: 2em; font-family: Georgia, serif; font-style: italic; color: #e9d7a6; opacity: .9; }
.sab-innen { position: relative; height: 100%; padding: 1.6em 1.7em 2.2em; display: flex; flex-direction: column; line-height: 1.5; overflow: hidden; box-sizing: border-box; }
.sab-innen p { margin: 0 0 .7em; max-width: none; font-size: 1em; }
.sab-kopf { display: flex; align-items: center; gap: .5em; font-size: .76em; letter-spacing: .08em; text-transform: uppercase; color: #5f5a52; font-weight: 700; }
.sab-kopf i { width: .9em; height: .9em; border-radius: 2px; background: var(--c, #43a047); display: inline-block; }
.sab-fuss { position: absolute; bottom: .9em; left: 0; right: 0; text-align: center; font-family: Georgia, serif; font-size: .8em; color: #9a8f7b; }
.sab-seitentitel { font-family: Georgia, serif; font-size: 1.65em; line-height: 1.15; margin: .5em 0 .4em; }
.sab-titel { font-family: Georgia, serif; font-size: 1.5em; line-height: 1.15; margin: .45em 0 .2em; }
.sab-von { color: #5f5a52; font-size: .86em; margin-bottom: .8em; }
.sab-von b { color: #1f1d1a; }
.sab-foto { flex: 1 1 auto; min-height: 0; border: 0; padding: .4em; background: none; cursor: zoom-in; display: flex; align-items: center; justify-content: center; container-type: size; }
.sab-rahmen-foto { --ar: 1.333; position: relative; display: block; width: min(100cqw, 100cqh * var(--ar)); height: min(100cqh, 100cqw / var(--ar));
  background: #fff; padding: .55em; box-shadow: 0 2px 8px rgba(60, 40, 10, .18); transform: rotate(-.6deg); box-sizing: border-box; }
.sab-rahmen-foto img { display: block; width: 100%; height: 100%; object-fit: contain; background: #f2efe8; pointer-events: none; }
.sab-ecke { position: absolute; width: 1.8em; height: 1.8em; pointer-events: none; }
.sab-ecke::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, #2b2621 0 50%, transparent 50%); opacity: .88; }
.sab-ol { top: -.35em; left: -.35em; } .sab-or { top: -.35em; right: -.35em; transform: rotate(90deg); }
.sab-ur { bottom: -.35em; right: -.35em; transform: rotate(180deg); } .sab-ul { bottom: -.35em; left: -.35em; transform: rotate(270deg); }
.sab-daumen { display: flex; gap: .4em; justify-content: center; margin-top: .5em; }
.sab-daumen button { flex: 0 1 3.4em; min-width: 0; aspect-ratio: 1; padding: 0; border: 2px solid #fff; border-radius: 3px; cursor: zoom-in; background: #eee; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); overflow: hidden; }
.sab-daumen img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.sab-zitat { margin: .7em 0 .8em; padding: .1em 0 .1em .9em; border-left: 3px solid var(--c, #43a047); font-family: Georgia, serif; font-style: italic; font-size: 1.05em; line-height: 1.4; }
.sab-zitat cite { display: block; font-family: inherit; font-style: normal; font-size: .78em; color: #5f5a52; margin-top: .3em; }
.sab-text { margin-top: .4em !important; }
.sab-weiter { color: #2e7d32; font-weight: 700; text-decoration: none; white-space: nowrap; }
.sab-weiter:hover { text-decoration: underline; }
.sab-masse { display: flex; gap: .8em; align-items: center; margin: .5em 0; }
.sab-masse .sa-skizze { flex: 0 0 auto; width: 14em; height: auto; border: 0; background: transparent; }
.sab-masse.sab-masse-gross { flex-direction: column; align-items: stretch; }
.sab-masse.sab-masse-gross .sa-skizze { width: 100%; }
.sab-masse dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .15em .6em; font-size: .84em; line-height: 1.35; }
.sab-masse dt { color: #5f5a52; } .sab-masse dd { margin: 0; font-weight: 600; }
.sab-masse .sab-masse-name { grid-column: 1 / -1; color: #1f1d1a; font-family: Georgia, serif; font-weight: 700; font-size: 1.05em; }
.sab-masse .sab-masse-name + dd { display: none; }
.sab-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: .45em; margin-top: auto; padding-top: .5em; }
.sab-knoepfe a { display: flex; flex-direction: column; justify-content: center; text-align: center; border-radius: 6px; padding: .55em .6em; font-size: .84em; font-weight: 600; text-decoration: none; border: 1px solid #cfc6b6; background: #fffdf8; color: #1f1d1a; line-height: 1.2; }
.sab-knoepfe a:hover { border-color: #43a047; }
.sab-knoepfe .sab-primaer { grid-column: 1 / -1; background: #43a047; border-color: #43a047; color: #fff; font-size: .9em; }
.sab-knoepfe .sab-primaer:hover { background: #2e7d32; }
.sab-knoepfe .sab-primaer small { font-weight: 400; font-size: .8em; opacity: .9; }
.sab-wissen { margin: .6em 0 .2em; padding: .55em .75em; border-radius: 6px; background: #f6efe0; border-left: 3px solid #c9a55c; font-size: .84em; line-height: 1.4; }
.sab-wissen-praxis { background: #eef6ee; border-left-color: #43a047; }
.sab-wissen b { display: block; font-size: .78em; letter-spacing: .06em; text-transform: uppercase; color: #8a6a2a; margin-bottom: .15em; }
.sab-wissen-praxis b { color: #2e7d32; }
.sab-wissen strong { font-family: Georgia, serif; }
.sab-wie { list-style: none; padding: 0; margin: .4em 0 1em; display: grid; gap: .5em; }
.sab-wie li { display: flex; gap: .6em; align-items: flex-start; }
.sab-wie span { flex: 0 0 1.8em; height: 1.8em; border-radius: 50%; background: #e8f5e9; color: #2e7d32; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9em; }
.sab-kleingedruckt { font-size: .76em !important; color: #5f5a52; margin-top: auto !important; }
.sab-inhalt { list-style: none; margin: .5em 0 0; padding: 0; overflow: hidden; }
.sab-inhalt a { display: grid; grid-template-columns: .5em 1fr auto; gap: .15em .7em; align-items: baseline; padding: .55em 0; border-bottom: 1px dashed #d8cdb8; text-decoration: none; color: inherit; }
.sab-inhalt i { width: .5em; height: 1.1em; background: var(--c); border-radius: 2px; align-self: center; }
.sab-inhalt b { font-family: Georgia, serif; font-size: 1em; }
.sab-inhalt em { font-style: normal; font-family: Georgia, serif; color: #9a8f7b; grid-row: 1; grid-column: 3; }
.sab-inhalt small { grid-column: 2; color: #5f5a52; font-size: .8em; }
.sab-welten { display: grid; grid-template-columns: 1fr 1fr; gap: .4em; margin-top: .4em; }
.sab-welten a { text-decoration: none; color: #1f1d1a; background: #fffdf8; border: 1px solid #ddd2bd; border-radius: 6px; padding: .5em .6em; font-size: .86em; font-weight: 600; }
.sab-welten a:hover { border-color: #43a047; color: #2e7d32; }
.sab-leer { margin: .8em auto; width: 70%; aspect-ratio: 4 / 3; background: #f3eee3; box-shadow: inset 0 0 0 1px #e2d8c3; display: flex; align-items: center; justify-content: center; color: #b3a689; font-family: Georgia, serif; font-style: italic; }
.sab-leerseite { margin: auto; color: #b3a689; font-family: Georgia, serif; font-style: italic; text-align: center; }
.sab-register { position: absolute; top: 46px; left: 100%; display: flex; flex-direction: column; gap: 6px; z-index: 60; }
.sab-register button { border: 0; cursor: pointer; text-align: left; width: 100px; padding: 9px 10px 9px 12px; border-radius: 0 9px 9px 0; font: inherit; font-size: 12.5px; font-weight: 700;
  color: #fff; background: var(--c); opacity: .78; box-shadow: 2px 3px 6px rgba(0, 0, 0, .18); transform: translateX(-6px); transition: transform .2s, opacity .2s; }
.sab-register button:hover, .sab-register button.aktiv { opacity: 1; transform: translateX(0); }
.sab-chips { display: none; gap: 6px; overflow-x: auto; padding: 0 0 10px; scrollbar-width: none; }
.sab-chips button { flex: 0 0 auto; border: 0; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; font-weight: 700; color: #fff; background: var(--c); opacity: .75; }
.sab-chips button.aktiv { opacity: 1; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c); }
.sab-steuerung { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.sab-rund { width: 42px; height: 42px; border-radius: 50%; border: 1px solid #cfc6b6; background: #fffdf8; font-size: 20px; cursor: pointer; line-height: 1; }
.sab-seitenzahl { min-width: 120px; text-align: center; font-size: 14px; color: #5f5a52; }
.sab-auto { border: 1px solid #1f3a2a; background: #1f3a2a; color: #fff; border-radius: 999px; padding: 9px 16px; font: inherit; font-size: 13.5px; cursor: pointer; }
.sab-auto.aus { background: #fffdf8; color: #1f3a2a; }
.sab-fortschritt { max-width: 420px; height: 3px; margin: 10px auto 0; background: rgba(0, 0, 0, .08); border-radius: 3px; overflow: hidden; }
.sab-fortschritt span { display: block; height: 100%; width: 0; background: #43a047; }
.sab-fortschritt.laeuft span { animation: sab-fortschritt 7s linear forwards; }
@keyframes sab-fortschritt { from { width: 0; } to { width: 100%; } }
.sab-info { text-align: center; font-size: 13px; color: #5f5a52; margin: 8px 0 6px; min-height: 18px; max-width: none; }
/* Einzelseiten (Handy) */
.sab-einzel-modus .sab-rahmen { margin-right: 0; }
.sab-einzel-modus .sab-register { display: none; }
.sab-einzel-modus .sab-chips { display: flex; }
.sab-einzel-modus .sab-deckel-innen { padding: 1.4em; }
.sab-einzel-modus .sab-praegung { width: 92%; padding: 2em 1em; }
.sab-einzel-modus .sab-buch { perspective: none; filter: none; }
.sab-spur { display: flex; width: var(--sab-pw); height: var(--sab-ph); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 6px; box-shadow: 0 10px 24px rgba(40, 30, 15, .22); }
.sab-spur::-webkit-scrollbar { display: none; }
.sab-spur .sab-seite { position: relative; inset: auto; flex: 0 0 var(--sab-pw); height: 100%; scroll-snap-align: start; backface-visibility: visible; -webkit-backface-visibility: visible; cursor: default; }
@media (prefers-reduced-motion: reduce) { .sab-blatt, .sab-buch { transition: none; } .sab-fortschritt.laeuft span { animation: none; } }
