/* =========================================================================
   BELAU Prototyp – Projekte (Startseiten-Karten, Übersicht, Detailseite)
   ========================================================================= */
.ph { background: rgba(210, 181, 89, .16); outline: 1px dashed rgba(138, 113, 40, .55); outline-offset: 1px; padding: 0 3px; color: var(--b-gold-700); font-style: normal; }
.sep { display: inline-block; width: 18px; height: 1px; background: currentColor; vertical-align: .3em; margin: 0 8px; opacity: .6; }
.pg-h1 { font-size: clamp(3rem, 1rem + 6.4vw, 8rem); font-weight: 200; letter-spacing: -.04em; line-height: .95; }
.pg-lead { font-size: var(--b-fs-lead); font-weight: 300; color: var(--muted); max-width: 46ch; }

/* ---------- Startseite: Karten ---------- */
.card__meta, .pf__meta { display: flex; gap: 14px; align-items: center; margin-top: 18px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.card__status { display: inline-flex; align-items: center; gap: 6px; }
.card__status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rule); }
.card__status.is-laufend::before { background: var(--b-gold); }
.card h3 { margin-top: 6px !important; }
.card__kz { color: var(--ink); font-weight: 600; }
.card__go { display: inline-flex; gap: 8px; align-items: center; margin-top: 12px; font-size: 14px; font-weight: 600; opacity: 0; transform: translateX(-8px); transition: opacity .35s, transform .45s cubic-bezier(.22, 1, .36, 1); }
.card__img img { transition: filter .5s; }
@media (hover: hover) {
  .card:hover .card__go { opacity: 1; transform: none; }
  .card:hover .card__img img { filter: brightness(.94) saturate(1.05); }
}
@media (hover: none) { .card__go { opacity: 1; transform: none; } }

/* ---------- Übersicht ---------- */
.ov-hero { padding: clamp(120px, 18vh, 200px) 0 clamp(40px, 6vh, 72px); }
.ov-hero .wrap { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.ov-hero .pg-lead { margin-top: 28px; }
.ov-count { display: flex; gap: clamp(24px, 4vw, 56px); }
.ov-count div { display: grid; }
.ov-count b { font-size: clamp(2.5rem, 1.6rem + 3vw, 4.5rem); font-weight: 200; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.ov-count span { font-size: 13px; color: var(--muted); max-width: 18ch; margin-top: 6px; }
@media (max-width: 900px) { .ov-hero .wrap { grid-template-columns: 1fr; } }

.fbar { position: sticky; top: 0; z-index: 30; background: rgba(242, 243, 241, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-block: 1px solid var(--rule); transition: top .5s cubic-bezier(.22, 1, .36, 1); }
.hdr:not(.is-hidden) ~ main .fbar { top: 76px; }
.fbar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding-block: 14px; }
.fgrp { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 600 13px/1 var(--b-font); letter-spacing: .02em; height: 34px; padding: 0 14px; border: 1px solid var(--rule); background: transparent; color: var(--ink); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.fres { margin-left: auto; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .fbar .wrap { gap: 8px; } .fres { margin-left: 0; width: 100%; } .fgrp { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; } .chip { flex: none; } }

.ov-feat { padding: clamp(40px, 7vh, 80px) 0; }
.pf-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(32px, 4vw, 56px) clamp(16px, 2vw, 32px); }
.pf { text-decoration: none; grid-column: span 4; }
.pf--xl { grid-column: span 8; grid-row: span 2; }
.pf--wide { grid-column: span 8; }
.pf__img { aspect-ratio: 4 / 3; overflow: hidden; }
.pf--xl .pf__img { aspect-ratio: auto; height: calc(100% - 92px); min-height: 420px; }
.pf--wide .pf__img { aspect-ratio: 16 / 9; }
.pf__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.22, 1, .36, 1); }
.pf h3 { font-size: clamp(1.125rem, 1rem + .6vw, 1.625rem); font-weight: 500; margin-top: 6px; }
.pf p { font-size: 14px; color: var(--muted); margin-top: 4px; }
@media (hover: hover) { .pf:hover .pf__img img { transform: scale(1.04); } .pf:hover h3 { color: var(--b-brand-700); } }
.is-out { display: none !important; }
@media (max-width: 900px) { .pf, .pf--xl, .pf--wide { grid-column: span 12; grid-row: auto; } .pf--xl .pf__img { height: auto; min-height: 0; aspect-ratio: 4 / 3; } }

.ov-list { padding: clamp(24px, 5vh, 56px) 0 clamp(72px, 12vh, 140px); }
.ov-list h2, .ov-before h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem); font-weight: 250; letter-spacing: -.02em; margin-bottom: 24px; }
.ov-list.is-empty { display: none; }
.ix { display: grid; grid-template-columns: 4fr 2.4fr 4fr 1.6fr 24px; gap: 20px; align-items: baseline; padding: 22px 0; border-top: 1px solid var(--rule); text-decoration: none; transition: padding .4s cubic-bezier(.22, 1, .36, 1), color .3s; }
.ix:last-child { border-bottom: 1px solid var(--rule); }
.ix__t { font-size: clamp(1.125rem, 1rem + .5vw, 1.5rem); font-weight: 400; letter-spacing: -.01em; }
.ix__o, .ix__l, .ix__z { font-size: 14px; color: var(--muted); }
.ix__z { font-variant-numeric: tabular-nums; }
.ix .ph-light { transform: rotate(-45deg); transition: transform .4s; }
@media (hover: hover) { .ix:hover { padding-left: 14px; color: var(--b-brand-700); } .ix:hover .ph-light { transform: none; } }
@media (max-width: 900px) { .ix { grid-template-columns: 1fr 24px; gap: 4px 12px; } .ix__t { grid-column: 1; } .ix .ph-light { grid-column: 2; grid-row: 1; } .ix__o, .ix__l, .ix__z { grid-column: 1; } .ix__l { display: none; } }

.ov-before { padding: 0 0 clamp(72px, 12vh, 140px); }
.ov-before .pg-lead { margin: -8px 0 28px; font-size: 1rem; }
.ov-empty { padding: 40px 0; color: var(--muted); }

/* ---------- Detailseite ---------- */
.pd-head { padding: clamp(120px, 18vh, 190px) 0 clamp(36px, 6vh, 64px); }
.pd-crumb { font-size: 14px; color: var(--muted); margin-bottom: clamp(28px, 5vh, 48px); }
.pd-crumb a { text-decoration: none; } .pd-crumb a:hover { color: var(--ink); }
.pd-place { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--b-brand-700); margin-bottom: 18px; }
.pd-head .pg-h1 { font-size: clamp(2.75rem, 1rem + 5.4vw, 7rem); max-width: 14ch; }
.pd-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: clamp(24px, 4vh, 40px); }
.pd-status { font-size: 14px; font-weight: 600; color: var(--muted); }
.pd-hero { height: min(88vh, 62vw); min-height: 340px; }

.pd-facts { padding: clamp(56px, 10vh, 110px) 0 0; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid var(--rule); }
.facts div { padding: 20px 24px 22px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.facts dd { margin: 0; font-size: 1.0625rem; font-weight: 500; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } }

.kz { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(40px, 7vh, 72px); }
.kz div { display: grid; gap: 6px; padding-left: 20px; border-left: 1px solid var(--rule); }
.kz__v { font-size: clamp(2.25rem, 1.4rem + 3vw, 4.25rem); font-weight: 200; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.kz__l { font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .kz { grid-template-columns: 1fr; } }

.lp { margin-top: clamp(40px, 7vh, 72px); }
.lp__head { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.lp__aho { color: var(--b-brand-700); }
.lp__bar { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; }
.lp__bar li { position: relative; height: 64px; background: rgba(27, 37, 43, .05); display: flex; flex-direction: column; justify-content: space-between; padding: 8px 10px; overflow: hidden; }
.lp__bar li.is-on { background: var(--b-brand); color: var(--b-ink-900); }
.lp__n { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lp__name { font-size: 11px; line-height: 1.2; color: var(--muted); }
.lp__bar li.is-on .lp__name { color: var(--b-ink-900); }
.lp__note { font-size: 15px; color: var(--muted); max-width: 60ch; }
@media (max-width: 900px) { .lp__bar li { height: 46px; padding: 6px; } .lp__name { display: none; } }

.pd-story { padding: clamp(80px, 14vh, 160px) 0; }
.pd-story h2, .pd-gal h2 { font-size: clamp(2rem, 1.2rem + 3vw, 4rem); font-weight: 200; letter-spacing: -.03em; line-height: 1; margin-bottom: clamp(32px, 6vh, 64px); }
.st__row { display: grid; grid-template-columns: 4fr 8fr; gap: 24px; padding: clamp(28px, 5vh, 48px) 0; border-top: 1px solid var(--rule); }
.st__k { font-size: 1.0625rem; font-weight: 600; display: flex; gap: 14px; align-items: baseline; position: sticky; top: 110px; align-self: start; }
.st__k span { font-size: 12px; color: var(--b-brand-700); font-variant-numeric: tabular-nums; }
.st__v { font-size: clamp(1.25rem, 1rem + 1vw, 1.875rem); font-weight: 300; line-height: 1.4; letter-spacing: -.01em; max-width: 34ch; }
@media (max-width: 760px) { .st__row { grid-template-columns: 1fr; } .st__k { position: static; } }

.pd-gal { padding: 0 0 clamp(80px, 14vh, 160px); }
.pd-facts + .pd-gal { padding-top: clamp(80px, 13vh, 150px); }
/* Raster liest zeilenweise (chronologisch links → rechts); Hochformate über zwei Reihen */
.gl { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(150px, 16vw, 260px); grid-auto-flow: row dense; gap: clamp(12px, 1.6vw, 24px); }
.gl__it { margin: 0; display: flex; flex-direction: column; min-height: 0; }
.gl__it.is-tall { grid-row: span 2; }
.gl__btn { display: block; width: 100%; flex: 1; min-height: 0; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gl__img { width: 100%; height: 100%; }
.gl__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.22, 1, .36, 1); }
@media (max-width: 760px) { .gl { grid-template-columns: 1fr 1fr; grid-auto-rows: 38vw; } }
.gl__it figcaption { font-size: 13px; color: var(--muted); padding-top: 8px; flex: none; }
@media (hover: hover) { .gl__btn:hover .gl__img img { transform: scale(1.03); } }

.pd-next { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; min-height: 62vh; text-decoration: none; background: var(--b-ink-900); color: #fff; overflow: hidden; }
.pd-next__txt { padding: clamp(32px, 6vw, 96px) var(--g); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.pd-next__k { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--b-brand); }
.pd-next__t { font-size: clamp(2.25rem, 1rem + 4vw, 5.5rem); font-weight: 200; letter-spacing: -.035em; line-height: 1; }
.pd-next__p { color: var(--b-stone-300); }
.pd-next__img { overflow: hidden; }
.pd-next__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s cubic-bezier(.22, 1, .36, 1); }
@media (hover: hover) { .pd-next:hover .pd-next__img img { transform: scale(1); } }
@media (max-width: 760px) { .pd-next { grid-template-columns: 1fr; } .pd-next__img { height: 44vh; } }

/* Lightbox (Prototyp) */
.lb { position: fixed; inset: 0; z-index: 120; background: rgba(20, 27, 31, .94); display: grid; place-items: center; padding: 64px 72px; }
.lb[hidden] { display: none; }
.lb figure { margin: 0; display: grid; gap: 12px; max-height: 100%; }
.lb img { max-width: min(1400px, 86vw); max-height: 80vh; width: auto; height: auto; object-fit: contain; }
.lb figcaption { color: #C9D1D5; font-size: 14px; white-space: pre; }
.lb button { position: absolute; background: none; border: 0; color: #fff; font-size: 30px; width: 52px; height: 52px; cursor: pointer; }
.lb__x { top: 16px; right: 16px; } .lb__p { left: 12px; top: 50%; transform: translateY(-50%); } .lb__n { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-open, .lb-open body { overflow: hidden; }
@media (max-width: 700px) { .lb { padding: 56px 8px; } .lb__p, .lb__n { top: auto; bottom: 8px; transform: none; } }

/* ---------- Rechtliche Seiten ---------- */
.legal { padding: clamp(120px, 18vh, 190px) 0 clamp(80px, 12vh, 140px); }
.legal__body { max-width: 68ch; margin-top: clamp(40px, 7vh, 72px); }
.legal__body section { padding: 22px 0; border-top: 1px solid var(--rule); }
.legal__body h2 { font-size: 1.0625rem; font-weight: 600; margin-bottom: 8px; }
.legal__body p { color: var(--ink); }
.legal__body a { color: var(--b-brand-700); }
.legal__note { margin-top: 32px; font-size: 14px; color: var(--muted) !important; }
.legal__draft { padding: 16px 18px; background: rgba(210, 181, 89, .14); border-left: 3px solid var(--b-gold); margin-bottom: 24px; font-size: 15px; }
