/* ===================== Bausteine: Navigation, Listen, Kacheln, Entdecken, Filter ===================== */
.knopf.klein { padding: 7px 12px; font-size: .85rem; }
.knopf.breit { width: 100%; }
.knopf:disabled { opacity: .5; cursor: default; }
.icon-knopf { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-raised); cursor: pointer; flex: none; }
.icon-knopf svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.filter-knopf .zahl { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 10px; background: var(--beacon); color: var(--on-beacon); font: 600 .72rem/1 var(--font-mono); padding: 0 5px; }
.filter-knopf.aktiv { border-color: var(--beacon); }
.seitenkopf-aktionen { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
@media (max-width: 760px) {
  .hauptnav .nur-breit { display: none; }
  .theme-schalter span { display: none; }
}

/* Fortschritt "35 / 153 besucht" */
.fortschritt-besucht { display: flex; flex-direction: column; gap: 5px; font-size: .85rem; min-width: 140px; max-width: 260px; }
.fortschritt-besucht i { display: block; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--akzent) 25%, transparent); overflow: hidden; }
.fortschritt-besucht b { display: block; height: 100%; background: var(--akzent); border-radius: 3px; }

/* Foto-Kacheln (Raster) */
.foto-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.foto-kachel { display: flex; flex-direction: column; text-decoration: none; background: var(--bg-raised); border: 1px solid var(--line); border-radius: 20px; padding: 6px; min-width: 0; transition: border-color .15s; }
.foto-kachel:hover { border-color: var(--akzent); }
.foto-kachel .bild { position: relative; aspect-ratio: 1; border-radius: 15px; overflow: hidden; background: color-mix(in srgb, var(--akzent) 14%, var(--bg)); }
.foto-kachel .bild img, .lt-zeile .mini-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ohne-bild { position: absolute; inset: 0; display: grid; place-items: center; color: color-mix(in srgb, var(--fg) 18%, transparent); }
.ohne-bild svg { width: 40%; height: 40%; }
.plakette { position: absolute; top: 8px; left: 8px; max-width: calc(100% - 50px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 .62rem/1 var(--font-body); letter-spacing: .04em; color: #fff; background: rgb(0 0 0 / .5); padding: 5px 8px; border-radius: 999px; }
.haken { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--akzent, var(--ok)); display: grid; place-items: center; }
.haken svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.haken.klein { top: auto; bottom: -4px; right: -4px; width: 20px; height: 20px; background: var(--ok); border: 2px solid var(--bg-raised); }
.haken.klein svg { width: 11px; height: 11px; }
.foto-kachel .text { padding: 8px 6px 6px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.foto-kachel .name { font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.status { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status.warnung { color: var(--bad); font-weight: 600; }
.status.aus { color: var(--warn); }

/* Listenzeilen */
.lt-liste { display: flex; flex-direction: column; gap: 8px; }
.lt-zeile { display: grid; grid-template-columns: auto 56px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 8px 14px 8px 8px; border-radius: 16px; background: var(--bg-raised); border: 1px solid var(--line); text-decoration: none; }
.lt-zeile:not(:has(> .nummer)) { grid-template-columns: 56px minmax(0, 1fr) auto; }
.lt-zeile:hover { border-color: var(--muted); }
.lt-zeile .nummer { font: 600 .9rem var(--font-mono); color: var(--muted); min-width: 1.6em; text-align: right; }
.lt-zeile .mini-bild { position: relative; width: 56px; height: 56px; border-radius: 12px; background: var(--bg-hover); }
.lt-zeile .mini-bild img, .lt-zeile .mini-bild .ohne-bild { border-radius: 12px; overflow: hidden; }
.lt-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lt-text .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-text .unter { color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-text .detail { white-space: pre-line; font-size: .8rem; }
.lt-rechts { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; max-width: 240px; min-width: 0; }
.lt-rechts .wert { font: 600 .95rem var(--font-mono); text-align: right; }
@media (max-width: 560px) { .lt-rechts .status { display: none; } .lt-zeile { gap: 10px; } }

.leer-hinweis { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 56px 16px; color: var(--muted); }
.leer-hinweis svg { width: 40px; height: 40px; fill: none; stroke: var(--akzent, var(--muted)); stroke-width: 1.8; }
.leer-hinweis strong { color: var(--fg); font-size: 1.1rem; }
.leer-hinweis p { max-width: 42ch; }
.nachladen { display: flex; justify-content: center; padding: 24px; }

/* Entdecken-Startseite */
.e-verlauf { position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / .75), rgb(0 0 0 / .05) 60%); pointer-events: none; }
.e-hero { position: relative; display: flex; align-items: flex-end; min-height: 300px; border-radius: 26px; overflow: hidden; text-decoration: none; color: #fff; background: #1d3a4a center / cover no-repeat; }
.e-hero-text { position: relative; padding: clamp(18px, 3vw, 32px); display: flex; flex-direction: column; gap: 10px; }
.e-hero h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); color: #fff; }
.eyebrow.hell { color: rgb(255 255 255 / .8); }
.e-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.e-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgb(255 255 255 / .18); backdrop-filter: blur(6px); color: #fff; font-size: .85rem; font-weight: 500; align-self: flex-start; }
.e-hero .fortschritt-besucht, .k-karte .fortschritt-besucht, .s-karte .fortschritt-besucht, .k-banner .fortschritt-besucht { color: #fff; }
.abschnitts-titel { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 40px 0 14px; text-decoration: none; }
.abschnitts-titel h2 { font-size: 1.6rem; }
.abschnitts-titel p { font-size: .9rem; margin-top: 4px; }
.alle-link { color: var(--brand); font-weight: 600; white-space: nowrap; }
a.abschnitts-titel:hover .alle-link { text-decoration: underline; }

.karussell { display: flex; gap: 8px; height: 240px; outline: none; touch-action: pan-y; user-select: none; }
.k-karte { position: relative; flex: 0 0 56px; min-width: 0; border: 0; padding: 0; border-radius: 18px; overflow: hidden; cursor: pointer; background: var(--farbe) center / cover no-repeat; color: #fff; text-align: left; transition: flex .45s cubic-bezier(.2, .8, .2, 1), border-radius .3s; }
.k-karte.aktiv { flex: 1 1 0; border-radius: 24px; }
.k-streifen { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 20px; height: 5px; border-radius: 3px; background: var(--farbe); transition: width .3s; }
.k-karte.aktiv .k-streifen { width: 28px; }
.k-text { position: absolute; left: 0; bottom: 0; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; width: max(300px, 100%); opacity: 0; transition: opacity .2s; }
.k-karte.aktiv .k-text { opacity: 1; transition-delay: .2s; }
.k-text strong { font: 800 2rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .01em; }
.k-text .anzahl { color: rgb(255 255 255 / .85); font-size: .92rem; }
.karussell:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 24px; }
.punkte-reihe { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.punkte-reihe i { width: 8px; height: 8px; border-radius: 4px; background: var(--line); transition: width .3s, background .3s; }
.punkte-reihe i.aktiv { width: 22px; background: var(--farbe); }

.e-zweispaltig { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0 40px; }
@media (max-width: 900px) { .e-zweispaltig { grid-template-columns: 1fr; } }
.stapel { position: relative; height: calc(200px + 3 * 34px); touch-action: pan-y; user-select: none; }
.s-karte { position: absolute; left: 0; right: 0; top: 0; height: 200px; border: 0; padding: 0; border-radius: 22px; overflow: hidden; cursor: pointer; color: #fff; text-align: left;
  background: var(--farbe) center / cover no-repeat; transform: translateY(calc(var(--stufe) * 34px)) scale(calc(1 - var(--stufe) * .035)); transform-origin: bottom center; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.s-karte .k-text { opacity: 1; }
.s-karte.hinten .k-text { display: none; }
.s-reiter { position: absolute; left: 0; right: 0; bottom: 0; height: 34px; display: none; align-items: center; padding-left: 20px; font-weight: 700; background: var(--farbe); color: #fff; }
.s-karte.hinten .s-reiter { display: flex; }
.stapel-pfeil { position: absolute; top: 12px; z-index: 20; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgb(0 0 0 / .45); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.stapel-pfeil.links { right: 54px; } .stapel-pfeil.rechts { right: 12px; }
.stapel-pfeil:hover { background: rgb(0 0 0 / .65); }
.stapel-hinweis { text-align: center; color: var(--muted); font-size: .8rem; margin-top: 10px; }
.bauart { border-radius: 22px; background: var(--bg-raised); border: 1px solid var(--line); overflow: hidden; }
.bauart-zeile { display: grid; grid-template-columns: 56px 1fr 20px; gap: 16px; align-items: center; padding: 14px 16px; text-decoration: none; }
.bauart-zeile + .bauart-zeile { border-top: 1px solid var(--line); }
.bauart-zeile:hover { background: var(--bg-hover); }
.bauart-zeile .rund { width: 56px; height: 56px; border-radius: 50%; background: var(--farbe) center / cover no-repeat; box-shadow: 0 0 0 3px color-mix(in srgb, var(--farbe) 40%, transparent); }
.bauart-text { display: flex; flex-direction: column; gap: 4px; }
.bauart-text strong { font-size: 1.05rem; }
.bauart-zeile svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; }

/* Kategorie-Banner */
.k-banner { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding: 22px; border-radius: 24px; color: #fff;
  background: linear-gradient(135deg, var(--farbe), color-mix(in srgb, var(--farbe) 55%, #000)); }
.k-zurueck { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgb(255 255 255 / .18); color: #fff; text-decoration: none; font-size: 1.2rem; }
.k-banner-text { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 200px; }
.k-banner h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); }
.k-banner-knoepfe { display: flex; gap: 8px; align-items: center; }
.banner-knopf { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .18); color: #fff; cursor: pointer; text-decoration: none; }
.banner-knopf:hover { background: rgb(255 255 255 / .3); }
.banner-knopf svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.banner-filter .knopf { background: rgb(255 255 255 / .18); border-color: transparent; color: #fff; }
.entdecken-kategorie .suche input:focus { border-color: var(--akzent); outline: none; }
.kategorie-karte { height: calc(100vh - 230px); min-height: 380px; margin-top: 18px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }

/* Filter-Panel */
.filter-schleier { position: fixed; inset: 0; z-index: 100; background: rgb(0 0 0 / .45); display: flex; justify-content: flex-end; animation: einblenden .15s ease; }
@keyframes einblenden { from { opacity: 0; } }
.filter-panel { width: min(440px, 100%); height: 100%; background: var(--bg); border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.filter-oben { display: flex; align-items: center; gap: 10px; padding: 18px 18px 12px; border-bottom: 1px solid var(--line); }
.filter-oben h2 { flex: 1; }
.filter-inhalt { flex: 1; overflow-y: auto; padding: 6px 18px; }
.filter-abschnitt { border-bottom: 1px solid var(--line); }
.filter-kopf { width: 100%; display: grid; grid-template-columns: auto 1fr 20px; align-items: center; gap: 12px; padding: 15px 0; background: none; border: 0; cursor: pointer; text-align: left; }
.filter-kopf span { font-weight: 600; }
.filter-kopf small { color: var(--muted); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filter-kopf svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; transition: transform .2s; }
.filter-kopf[aria-expanded="true"] svg { transform: rotate(180deg); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 16px; }
.chip-wert { border: 1px solid var(--line); background: var(--bg-raised); border-radius: 10px; padding: 8px 12px; cursor: pointer; font-size: .9rem; }
.chip-wert[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.filter-unten { padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
