/* ==========================================================================
   Projekt Einzelseiten (Idee, Projekt, Erfolgsgeschichte) - 1:1 matching HTML
   ========================================================================== */

/* Layout & Page Container Overrides */
body.single-projekte #main {
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: hidden;
}

body.single-projekte #main .fusion-row {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}

body.single-projekte #content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.projekt-single-page {
    font-family: var(--body_typography-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    color: #333333;
}

/* 1. Hero Header */
.projekt-hero-banner {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    height: 60vh;
    min-height: 440px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.projekt-hero-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 28, 22, 0.5) 0%, rgba(20, 28, 22, 0) 30%);
    pointer-events: none;
}

/* 2. Header Meta: Zurück-Link, Badge, Autor */
.projekt-zurueck-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 28px;
    color: #8a8378 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    font-family: var(--body_typography-font-family, inherit);
    transition: color 0.2s ease, transform 0.2s ease;
}

.projekt-zurueck-link svg {
    vertical-align: -0.15em;
    transition: transform 0.2s ease;
}

.projekt-zurueck-link:hover {
    color: #e8641e !important;
    text-decoration: none !important;
}

.projekt-zurueck-link:hover svg {
    transform: translateX(-3px);
}

.projekt-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.projekt-kategorie-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    border-radius: 50px;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    line-height: 1;
    text-transform: uppercase;
}

.projekt-kategorie-badge svg {
    vertical-align: -0.15em;
}

.projekt-kategorie-badge.badge-idee {
    background: #fbeec2;
    color: #9a7b1a;
}

.projekt-kategorie-badge.badge-projekt {
    background: #d6f0dd;
    color: #2e7d46;
}

.projekt-kategorie-badge.badge-erfolgsgeschichte,
.projekt-kategorie-badge.badge-erfolg {
    background: #ece2f6;
    color: #6b46a8;
}

.projekt-autor-info {
    color: #8a8378;
    font-size: 15px;
}

.projekt-autor-info strong {
    color: #555555;
    font-weight: 700;
}

/* 3. Spenden & Helfer 2-Spalten Aktions-Grid */
.projekt-aktion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    margin-bottom: 52px;
    align-items: start;
    box-sizing: border-box;
}

/* 4. Spendenstand Modul – bewusst identisch zur Helfer-Box (assets/css/helfer.css) */
.projekt-spenden-box {
    border: 1px solid #ece8e2;
    border-radius: 12px;
    background: #ffffff;
    font-family: var(--body_typography-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

.projekt-spenden-body {
    padding: 24px;
}

.projekt-spenden-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.projekt-spenden-title {
    margin: 0 !important;
    font-family: var(--h1_typography-font-family, var(--headings_typography-font-family, inherit)) !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    color: #333333 !important;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.projekt-spenden-icon {
    color: #2e7d46;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.projekt-spenden-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid #eeeeee;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 14px;
    text-align: center;
}

.projekt-spenden-stat-item {
    padding: 12px 6px;
    border-right: 1px solid #eeeeee;
}

.projekt-spenden-stat-item:last-child {
    border-right: none;
}

.projekt-spenden-stat-val {
    font-weight: 700 !important;
    font-size: 15px;
    color: #333333;
}

.projekt-spenden-stat-lbl {
    color: #8a8378;
    font-size: 13px;
    margin-top: 2px;
}

.projekt-spenden-progress-track {
    height: 8px;
    border-radius: 5px;
    background: #eeeeee;
    overflow: hidden;
    margin-bottom: 6px;
}

.projekt-spenden-progress-bar {
    height: 100%;
    background: #2e7d46;
    border-radius: 5px;
    transition: width 0.6s ease;
}

.projekt-spenden-labels {
    display: flex;
    justify-content: space-between;
    color: #8a8378;
    font-size: 13px;
    margin-bottom: 20px;
}

.projekt-spenden-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    background: #2e7d46;
    color: #ffffff !important;
    border: none;
    border-radius: 50px;
    font-weight: 700 !important;
    font-size: 15px !important;
    cursor: pointer;
    text-decoration: none !important;
    font-family: var(--body_typography-font-family, inherit);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.projekt-spenden-btn svg {
    vertical-align: -0.15em;
    transition: transform 0.2s ease;
}

.projekt-spenden-btn:hover {
    background: #256639;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(46, 125, 70, 0.3);
    color: #ffffff !important;
    text-decoration: none !important;
}

.projekt-spenden-btn:hover svg {
    transform: translateX(3px);
}

.projekt-spenden-secure {
    text-align: center;
    color: #8a8378;
    font-size: 13px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.projekt-spenden-secure svg {
    vertical-align: -0.15em;
}

/* Spenderliste – gleiche Chips wie .helfer-liste */
.projekt-spenden-liste-wrap {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0ede8;
}

.projekt-spenden-liste-titel {
    margin: 0 0 10px 0 !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888888;
}

.projekt-spenden-liste {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.projekt-spenden-liste li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #f7f6f4;
    border: 1px solid #ebe7e1;
    border-radius: 20px;
    font-size: 13px;
    color: #444444;
    font-weight: 500;
}

.projekt-spenden-liste li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2e7d46;
    display: inline-block;
}

.projekt-spenden-liste-mehr {
    color: #8a8378 !important;
}

.projekt-spenden-liste-mehr::before {
    background: #c9c4bb !important;
}

/* 5. Kern der Idee Callout-Box */
.projekt-kern-idee-box {
    margin: 0 0 56px;
    background: #faf8f5;
    border: 1px solid #ece8e2;
    border-radius: 12px;
    padding: 40px 48px;
    text-align: center;
    box-sizing: border-box;
}

.projekt-kern-idee-label {
    font-weight: 700 !important;
    font-size: 13px !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase;
    color: #e8641e !important;
    margin-bottom: 14px;
}

.projekt-kern-idee-quote {
    font-family: var(--h1_typography-font-family, var(--headings_typography-font-family, inherit)) !important;
    color: #333333 !important;
    font-size: clamp(19px, 2.2vw, 22px) !important;
    line-height: 1.55 !important;
    font-style: italic;
}

/* 6. Bildergalerie */
.projekt-galerie-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 56px;
    width: 100%;
    box-sizing: border-box;
}

.projekt-galerie-item {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f4efe9;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.projekt-galerie-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    transition: transform 0.25s ease;
}

.projekt-galerie-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.projekt-galerie-item:hover img {
    transform: scale(1.03);
}

/* 7. Logbuch Modul */
.projekt-logbuch-box {
    border: 1px solid #ece8e2;
    border-radius: 12px;
    padding: 30px 34px;
    margin-bottom: 56px;
    background: #faf8f5;
    box-sizing: border-box;
}

.projekt-logbuch-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: #2e7d46 !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase;
}

.projekt-logbuch-header svg {
    vertical-align: -0.15em;
}

.projekt-logbuch-timeline {
    display: flex;
    flex-direction: column;
}

.projekt-logbuch-entry {
    display: flex;
    gap: 16px;
}

.projekt-logbuch-bullet-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.projekt-logbuch-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #2e7d46;
    margin-top: 4px;
    flex-shrink: 0;
}

.projekt-logbuch-line {
    width: 2px;
    flex: 1;
    background: #dfe7e1;
    min-height: 20px;
}

.projekt-logbuch-text {
    padding-bottom: 22px;
    color: #555555;
    font-size: 15px;
    line-height: 1.4;
}

.projekt-logbuch-entry:last-child .projekt-logbuch-text {
    padding-bottom: 0;
}

.projekt-logbuch-entry:last-child .projekt-logbuch-line {
    display: none;
}

/* 8. Ergebnisse Modul (Erfolgsgeschichte) */
.projekt-ergebnisse-box {
    border: 1px solid rgba(107, 70, 168, 0.27);
    border-radius: 12px;
    padding: 30px 34px;
    margin-bottom: 52px;
    background: #ffffff;
    box-sizing: border-box;
}

.projekt-ergebnisse-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: #6b46a8 !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase;
}

.projekt-ergebnisse-header svg {
    vertical-align: -0.15em;
}

.projekt-ergebnisse-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.projekt-ergebnisse-card {
    border: 1px solid #eeeeee;
    border-radius: 10px;
    padding: 22px;
    background: #ffffff;
}

.projekt-ergebnisse-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.projekt-ergebnisse-card-title {
    font-weight: 700 !important;
    color: #333333 !important;
    letter-spacing: 0.03em !important;
    font-size: 14px;
    text-transform: uppercase;
}

.projekt-ergebnisse-card-icon {
    color: #6b46a8;
}

.projekt-ergebnisse-card-lbl {
    color: #8a8378;
    font-size: 14px;
    margin-bottom: 4px;
}

.projekt-ergebnisse-card-val {
    font-family: var(--h1_typography-font-family, var(--headings_typography-font-family, inherit)) !important;
    font-weight: 700 !important;
    font-size: 28px !important;
    color: #333333 !important;
    line-height: 1.1;
    margin-bottom: 4px;
}

.projekt-ergebnisse-card-sub {
    color: #8a8378;
    font-size: 13px;
}

/* 9. Abschlussbericht Modul (Erfolgsgeschichte) */
.projekt-abschlussbericht-box {
    border: 1px solid rgba(107, 70, 168, 0.27);
    border-radius: 12px;
    padding: 30px 34px;
    margin-bottom: 56px;
    background: rgba(107, 70, 168, 0.03);
    box-sizing: border-box;
}

.projekt-abschlussbericht-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: #6b46a8 !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase;
}

.projekt-abschlussbericht-header svg {
    vertical-align: -0.15em;
}

.projekt-abschlussbericht-text {
    margin: 0;
    color: #555555;
    font-size: 16px;
    line-height: 1.75;
    text-wrap: pretty;
}

/* Responsive */
@media (max-width: 860px) {
    .projekt-aktion-grid,
    .projekt-ergebnisse-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .projekt-galerie-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .projekt-kern-idee-box {
        padding: 30px 24px;
    }
    .projekt-logbuch-box,
    .projekt-ergebnisse-box,
    .projekt-abschlussbericht-box {
        padding: 24px 20px;
    }
}

@media (max-width: 520px) {
    .projekt-galerie-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .projekt-galerie-item {
        height: 100px;
    }
    .projekt-meta-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* GiveWP Spenden Modal Overlay (mit Blur-Effekt analog zu Helfer & Idee einreichen) */
.projekt-give-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(18, 24, 20, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.projekt-give-modal-content {
    background: #ffffff;
    border-radius: 16px;
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 34px 30px 30px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
    font-family: var(--body_typography-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}

.projekt-give-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f3f4f6;
    border: none;
    color: #666666;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    z-index: 10;
}

.projekt-give-modal-close:hover {
    background: #e5e7eb;
    color: #111111;
    transform: scale(1.05);
}

.projekt-give-modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #eaf6ee;
    color: #2e7d46;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

.projekt-give-modal-title {
    margin: 0 0 16px 0 !important;
    font-family: var(--h1_typography-font-family, var(--headings_typography-font-family, inherit)) !important;
    font-weight: 700 !important;
    font-size: 22px !important;
    color: #222222 !important;
    line-height: 1.25;
}

