/* ══════════════════════════════════════════════════════════════════════════
   AUTOMATISCH ERZEUGT — nicht von Hand aendern!

   Quelle:    wp-content/bautent-css-src/*.css  (siehe README dort)
   Generator: build_bautent_css.py im SEO-Agent-Projekt
   Tokens:    wp-content/mu-plugins/bautent-tokens.php

   Aenderungen gehoeren in das passende Partial, danach den Generator laufen lassen.
   Handaenderungen an dieser Datei gehen beim naechsten Build verloren.

   Erzeugt: 16.11.2026 22:31
   ══════════════════════════════════════════════════════════════════════════ */

/* ── bundle-bauprojekte.css — bautent-bauprojekte.php: wp_head (Archiv-Shortcode + Einzelprojekt) ── */
/* Welle 5: frueher <style> in wp_head (mu-plugins/bautent-bauprojekte.php, Abschnitt 7 Frontend CSS).
   Der Hero-Block fuer /bauprojekte/ (Bild-URL aus PHP) bleibt inline. */

    /* === Single-Layout: Astra gibt dem CPT 'bauprojekt' keinen begrenzten Container === */
    .single-bauprojekt .entry-content {
        max-width: 1080px; margin-left: auto; margin-right: auto;
        padding: 32px 20px 0; box-sizing: border-box;
    }
    .single-bauprojekt .entry-content > p,
    .single-bauprojekt .entry-content > ul,
    .single-bauprojekt .entry-content > ol,
    .single-bauprojekt .entry-content > h2,
    .single-bauprojekt .entry-content > h3 {
        max-width: 760px; margin-left: auto; margin-right: auto;
    }
    .single-bauprojekt .entry-content > h2 {
        font-size: 22px; color: var(--bt-color-ink); line-height: 1.3;
        margin-top: 10px; margin-bottom: 14px;
    }

    /* === Leistungs-Liste im Projekt-Text === */
    .bp-leistungen { max-width: 760px; margin: 6px auto 26px; display: grid; gap: 10px; }
    .bp-leistung {
        display: flex; gap: 13px; align-items: flex-start;
        background: var(--bt-color-surface-alt); border-radius: var(--bt-radius-lg); padding: 15px 18px;
    }
    .bp-leistung::before {
        content: "\2713"; flex-shrink: 0;
        width: 24px; height: 24px; border-radius: var(--bt-radius-circle);
        background: #16a34a; color: var(--bt-color-white);
        display: flex; align-items: center; justify-content: center;
        font-size: 14px; font-weight: 700; line-height: 1;
    }
    .bp-leistung-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
    .bp-leistung-text strong { font-size: 16px; font-weight: 700; color: var(--bt-color-ink); }
    .bp-leistung-text > span { font-size: 15px; color: var(--bt-color-text-dim); line-height: 1.55; }

    /* === Archive Grid === */
    .bp-archive { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

    /* === Projekt-Header (H1) === */
    .bp-single-header { margin: 0 0 24px; }
    .bp-single-header h1 { font-size: 32px; line-height: 1.25; margin: 0 0 8px; color: var(--bt-color-ink); }
    .bp-single-sub { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; font-size: 15px; }
    .bp-sub-cat { color: var(--bt-color-primary); font-weight: 600; }
    .bp-sub-sep { color: var(--bt-color-grey-ccc); }
    .bp-sub-loc { color: var(--bt-color-grey-666); font-weight: 500; }
    .bp-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; justify-content: center; }
    .bp-filter-btn {
        background: var(--bt-color-border-soft); border: none; padding: 8px 20px; border-radius: 24px;
        font-size: 14px; font-weight: 500; cursor: pointer; transition: all .2s;
        color: #444;
    }
    .bp-filter-btn:hover { background: var(--bt-color-border-mid); }
    .bp-filter-btn.active { background: var(--bt-color-primary); color: var(--bt-color-white); }

    .bp-grid {
        display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
        gap: 24px;
    }
    .bp-card {
        background: var(--bt-color-white); border-radius: var(--bt-radius-xl); overflow: hidden;
        box-shadow: 0 2px 12px rgba(0,0,0,.08); transition: transform .25s, box-shadow .25s;
        text-decoration: none; color: inherit; display: block;
    }
    .bp-card:hover { transform: translateY(-4px); box-shadow: var(--bt-shadow-lg); }
    .bp-card-img { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--bt-color-border-soft); }
    .bp-card-img img { width: 100%; height: 100%; object-fit: cover; }
    .bp-card-placeholder {
        width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
        background: linear-gradient(135deg, var(--bt-color-surface-alt), var(--bt-color-border)); color: var(--bt-color-grey-999); font-size: 15px;
    }
    .bp-badge-cat {
        position: absolute; top: 12px; left: 12px; background: var(--bt-color-primary); color: var(--bt-color-white);
        padding: 4px 12px; border-radius: var(--bt-radius-2xl); font-size: 12px; font-weight: 600;
    }
    .bp-badge-status {
        position: absolute; top: 12px; right: 12px; padding: 4px 12px;
        border-radius: var(--bt-radius-2xl); font-size: 12px; font-weight: 600;
    }
    .bp-status-completed { background: #16a34a; color: var(--bt-color-white); }
    .bp-status-in_progress { background: var(--bt-color-warning); color: var(--bt-color-white); }

    .bp-card-body { padding: 16px 20px 20px; }
    .bp-card-body h3 { margin: 0 0 6px; font-size: 18px; color: var(--bt-color-ink); }
    .bp-card-loc { display: flex; align-items: center; gap: 4px; color: var(--bt-color-grey-666); font-size: 14px; margin: 0 0 6px; }
    .bp-card-loc svg { flex-shrink: 0; }
    .bp-card-excerpt { color: var(--bt-color-text-dim); font-size: 14px; margin: 0; line-height: 1.5;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

    /* === Empty State === */
    .bp-empty { text-align: center; padding: 60px 20px; color: var(--bt-color-grey-666); }
    .bp-empty h3 { color: var(--bt-color-text); margin: 16px 0 8px; }
    .bp-empty p { max-width: 480px; margin: 0 auto 24px; }

    /* === Archive CTA === */
    .bp-archive-cta, .bp-single-cta {
        background: linear-gradient(135deg, var(--bt-color-primary), var(--bt-color-primary-hover)); color: var(--bt-color-white);
        border-radius: var(--bt-radius-2xl); padding: 40px; text-align: center; margin: 48px 0 16px;
    }
    .bp-archive-cta h3, .bp-single-cta h3 { color: var(--bt-color-white) !important; margin: 0 0 8px; font-size: 22px; } /* Kontrast-Fix 18.09.2026: .page .entry-content h3 (bautent-unified.css, hoehere Spezifitaet) uebermalte sonst die weisse Schrift auf dem blauen Verlauf */
    .bp-archive-cta p, .bp-single-cta p { margin: 0 0 20px; opacity: .9; }
    .bp-cta-btn {
        display: inline-block; background: var(--bt-color-white); color: var(--bt-color-primary); padding: 12px 32px;
        border-radius: var(--bt-radius-md); font-weight: 600; text-decoration: none; font-size: 16px;
        transition: transform .2s, box-shadow .2s;
    }
    .bp-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.2); color: var(--bt-color-primary-hover); }

    /* === Before/After Slider === */
    .bp-compare { margin: 0 0 32px; }
    .bp-compare-wrap {
        position: relative; overflow: hidden; border-radius: var(--bt-radius-xl);
        aspect-ratio: 16/10; background: #111; cursor: col-resize;
        -webkit-user-select: none; user-select: none;
    }
    .bp-compare-img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
    .bp-compare-overlay {
        position: absolute; top: 0; right: 0; bottom: 0; width: 50%;
        overflow: hidden;
    }
    .bp-compare-overlay img { position: absolute; top: 0; right: 0; height: 100%; width: auto; min-width: 100%; object-fit: cover; }
    .bp-compare-handle {
        position: absolute; top: 0; bottom: 0; left: 50%;
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        pointer-events: none; z-index: 2; transform: translateX(-50%);
    }
    .bp-handle-line { width: 3px; flex: 1; background: var(--bt-color-white); border-radius: 2px; opacity: .8; }
    .bp-handle-circle {
        width: 44px; height: 44px; border-radius: var(--bt-radius-circle); background: rgba(0,99,221,.9);
        display: flex; align-items: center; justify-content: center; gap: 0;
        box-shadow: 0 2px 8px rgba(0,0,0,.3); flex-shrink: 0;
    }
    .bp-compare-range {
        position: absolute; top: 0; left: 0; width: 100%; height: 100%;
        opacity: 0; cursor: col-resize; z-index: 3; margin: 0;
        -webkit-appearance: none; appearance: none;
    }
    .bp-compare-labels { display: flex; justify-content: space-between; padding: 8px 4px 0; font-size: 14px; color: var(--bt-color-grey-666); font-weight: 500; }

    /* === Single Project Galleries === */
    .bp-gallery-section { margin: 32px 0; }
    .bp-gallery-section h2, .bp-gallery-section h3 { font-size: 20px; margin: 0 0 16px; color: var(--bt-color-ink); }
    .bp-gallery {
        display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px;
    }
    .bp-gallery-item { border-radius: var(--bt-radius-md); overflow: hidden; aspect-ratio: 4/3; display: block; }
    .bp-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
    .bp-gallery-item:hover img { transform: scale(1.05); }

    /* === Ergebnis-Galerie (Projekte ohne Vorher/Nachher-Paar) === */
    .bp-result-grid { display: flex; flex-wrap: wrap; gap: 14px; }
    .bp-result-item {
        flex: 1 1 300px; max-width: 100%; border-radius: var(--bt-radius-lg); overflow: hidden;
        display: block; background: var(--bt-color-border-soft);
    }
    .bp-result-item img {
        width: 100%; height: auto; max-height: 620px; object-fit: cover;
        display: block; transition: transform .3s;
    }
    .bp-result-item:hover img { transform: scale(1.03); }

    /* === Baustellenvideos === */
    .bp-video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .bp-video-item {
        position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
        aspect-ratio: 3/4; overflow: hidden; border-radius: var(--bt-radius-lg); background: var(--bt-color-border-soft);
    }
    .bp-video-item video { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
    .bp-video-play {
        position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: var(--bt-radius-circle);
        display: flex; align-items: center; justify-content: center;
        background: rgba(0,0,0,.55); color: var(--bt-color-white); opacity: .9; transition: background .2s;
    }
    .bp-video-item:hover .bp-video-play { background: rgba(0,0,0,.75); }
    .bp-video-item:focus-visible { outline: 3px solid var(--bt-color-primary); outline-offset: 3px; }
    .bp-vlb .bp-vlb-video { width: auto; height: auto; background: #000; }
    @media (max-width: 768px) { .bp-video-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

    /* === Projektfilm (ersetzt die Clip-Kacheln) === */
    .bp-film-frame {
        width: min(100%, 45vh); margin: 0 auto; aspect-ratio: 9/16; overflow: hidden;
        border-radius: var(--bt-radius-lg); background: var(--bt-color-border-soft);
    }
    .bp-film-frame { position: relative; }
    .bp-film-play {
        position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
        width: 72px; height: 72px; padding: 0; border: 0; border-radius: var(--bt-radius-circle); cursor: pointer;
        display: flex; align-items: center; justify-content: center;
        background: rgba(0,0,0,.6); color: var(--bt-color-white); transition: background .2s;
    }
    .bp-film-play:hover { background: rgba(0,0,0,.8); }
    .bp-film-play:focus-visible { outline: 3px solid var(--bt-color-primary); outline-offset: 3px; }
    .bp-film-started .bp-film-play { display: none; }
    @supports (height: 1dvh) { .bp-film-frame { width: min(100%, 45dvh); } }
    .bp-film { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
    /* Vollbild: nie beschneiden (FM 16.11.: „Vollbildmodus abgeschnitten“ – object-fit:cover galt auch im Vollbild) */
    .bp-film:fullscreen, .bp-film:-webkit-full-screen { object-fit: contain; width: 100%; height: 100%; }
    @media (max-width: 768px) { .bp-film-frame { width: 100%; } }
    /* Breitfassung (_bp_projektfilm_breit): Desktop ab 769 px 16:9, Handy bleibt Hochformat */
    .bp-film-frame.bp-film-breit { display: none; }
    @media (min-width: 769px) {
        .bp-film-frame.bp-film-hat-breit { display: none; }
        .bp-film-frame.bp-film-breit { display: block; width: 100%; max-width: 1100px; aspect-ratio: 16/9; background: #111; }
        .bp-film-breit .bp-film-play { background: rgba(255,255,255,.92); color: #111; }
        .bp-film-breit .bp-film-play:hover { background: #fff; }
    }

    /* === Projekt-Fakten === */
    .bp-facts {
        display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
        gap: 12px; margin: 24px 0 32px;
    }
    .bp-fact {
        display: flex; align-items: center; gap: 12px;
        background: var(--bt-color-surface-alt); border-radius: var(--bt-radius-xl); padding: 16px 18px;
    }
    .bp-fact > svg { flex-shrink: 0; color: var(--bt-color-primary); }
    .bp-fact-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
    .bp-fact-label {
        font-size: 12px; font-weight: 700; text-transform: uppercase;
        letter-spacing: .04em; color: #8a93a3;
    }
    .bp-fact-value { font-size: 16px; font-weight: 600; color: var(--bt-color-ink); line-height: 1.3; }
    .bp-fact-status.bp-st-completed { color: #16a34a; }
    .bp-fact-status.bp-st-in_progress { color: var(--bt-color-warning-text); }

    /* === Responsive === */
    @media (max-width: 768px) {
        .bp-grid { grid-template-columns: 1fr; gap: 16px; }
        .bp-filters { gap: 6px; }
        .bp-filter-btn { padding: 6px 14px; font-size: 13px; }
        .bp-archive-cta, .bp-single-cta { padding: 28px 20px; }
        .bp-facts { grid-template-columns: repeat(2, 1fr); }
        .bp-gallery { grid-template-columns: repeat(2, 1fr); }
        .bp-compare-wrap { aspect-ratio: 4/3; }
    }

    /* === Galerie-Lightbox === */
    .bp-lightbox {
        display: none; position: fixed; inset: 0; z-index: 99999;
        background: rgba(0,0,0,.93); align-items: center; justify-content: center;
    }
    .bp-lightbox.open { display: flex; }
    .bp-lb-img {
        max-width: 90vw; max-height: 88vh; object-fit: contain;
        border-radius: var(--bt-radius-sm); box-shadow: 0 8px 40px rgba(0,0,0,.5);
    }
    .bp-lb-close, .bp-lb-prev, .bp-lb-next {
        position: fixed; background: rgba(255,255,255,.14); border: none; color: var(--bt-color-white);
        cursor: pointer; display: flex; align-items: center; justify-content: center;
        transition: background .2s; line-height: 1;
    }
    .bp-lb-close:hover, .bp-lb-prev:hover, .bp-lb-next:hover { background: rgba(255,255,255,.3); }
    .bp-lb-close { top: 20px; right: 24px; width: 46px; height: 46px; border-radius: var(--bt-radius-circle); font-size: 28px; }
    .bp-lb-prev, .bp-lb-next { top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: var(--bt-radius-circle); font-size: 32px; }
    .bp-lb-prev { left: 24px; }
    .bp-lb-next { right: 24px; }
    .bp-lb-counter {
        position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
        color: var(--bt-color-white); font-size: 14px; background: rgba(0,0,0,.55); padding: 6px 16px; border-radius: var(--bt-radius-3xl);
    }
    @media (max-width: 768px) {
        .bp-lb-prev, .bp-lb-next { width: 44px; height: 44px; font-size: 26px; }
        .bp-lb-prev { left: 8px; }
        .bp-lb-next { right: 8px; }
        .bp-lb-close { top: 10px; right: 10px; }
    }
    
