/*
This file contains custom styles to override or add to the main theme styles.
*/

/* ==========================================================================
   WICHTIG: Alle stat-card-mini Texte und Zahlen müssen weiß sein
   ========================================================================== */
.stat-card-mini,
.stat-card-mini *,
.stat-card-mini > *,
.stat-card-mini .stat-number,
.stat-card-mini .stat-value,
.stat-card-mini .stat-label,
.stat-card-mini span,
.stat-card-mini div,
.stat-card-mini p,
.stat-card-mini h1,
.stat-card-mini h2,
.stat-card-mini h3,
.stat-card-mini h4,
.stat-card-mini h5,
.stat-card-mini h6,
.stat-card-mini.green *,
.stat-card-mini.blue *,
.stat-card-mini.compact * {
    color: #ffffff !important;
    fill: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

/* ==========================================================================
   Global & Base Styles
   ========================================================================== */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    transition: color 0.3s ease, background-color 0.3s ease;
}

.btn {
    display: inline-block;
    padding: 0.36rem 0.84rem;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    will-change: transform;
    border: 1.5px solid transparent;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: var(--primary-color, #74b72a);
    color: #fff;
    border-color: var(--primary-color, #74b72a);
}

.btn-primary:hover {
    background-color: #69a626; /* Slightly darker green */
    border-color: #69a626;
    color: #fff;
}

.btn-secondary {
    background-color: transparent;
    color: var(--dark-green, #558B2F);
    border-color: #ddd;
}

.btn-secondary:hover {
    background-color: var(--dark-green, #558B2F);
    color: #fff;
    border-color: var(--dark-green, #558B2F);
}

/* Add some margin to sections for better spacing */
.home-section, .page-content {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Frontpage Button Overrides - Make all buttons more compact */
.home .btn,
.page-template-default .btn {
    padding: 0.5rem 1.2rem; /* More compact than default */
    font-size: 0.9rem; /* Smaller font */
    font-weight: 500; /* Less bold */
}

.home .section-cta .btn,
.page-template-default .section-cta .btn {
    padding: 0.6rem 1.4rem; /* Section CTA buttons slightly larger */
    font-size: 0.95rem;
}

/* Frontpage Project Cards - Fix alignment and spacing */
.home .project-cards-grid,
.page-template-default .project-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Slightly smaller min-width */
    gap: 2rem; /* Reduced gap */
    align-items: start; /* Ensure cards align to top */
}

.home .project-card,
.page-template-default .project-card {
    height: auto; /* Remove fixed height to prevent alignment issues */
    min-height: 380px; /* Slightly taller for more square appearance */
    max-width: 320px; /* Limit width for more square proportions */
    margin: 0 auto; /* Center cards in grid */
}

/* Perfekte Zentrierung für Frontpage-Projektkarten */
.home .project-card-content,
.page-template-default .project-card-content {
    justify-content: flex-end; /* Content näher zum unteren Rand */
    align-items: center; /* Zentriert den Content horizontal */
    padding: 0.4rem 1rem 0.6rem 1rem; /* Reduziert für kompaktere Kacheln */
    text-align: center; /* Zentriert allen Text */
}

/* Spezielle Zentrierung für Meta-Items auf der Frontpage */
.home .project-card-meta,
.page-template-default .project-card-meta {
    align-items: center;
    justify-content: center;
}

.home .project-card-meta .meta-item,
.page-template-default .project-card-meta .meta-item {
    justify-content: center;
    text-align: center;
}

/* Zentrierung für Projekt-Titel auf der Frontpage */
.home .project-card-title,
.page-template-default .project-card-title {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Status Badge Zentrierung auf der Frontpage */
.home .project-status-badge,
.page-template-default .project-status-badge {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
}

/* Button Zentrierung auf der Frontpage */
.home .project-card .btn,
.page-template-default .project-card .btn {
    margin-left: auto;
    margin-right: auto;
    align-self: center;
}

/* ==========================================================================
   Content & Typography
   ========================================================================== */
.page-content {
    padding-top: 2rem;
    padding-bottom: 4rem;
    line-height: 1.6;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
    color: #558B2F; /* --dark-green */
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 1em;
}

.page-content h1 { font-size: 2.5rem; }
.page-content h2 { font-size: 2rem; }
.page-content h3 { font-size: 1.75rem; }
.page-content h4 { font-size: 1.5rem; }
.page-content h5 { font-size: 1.25rem; }
.page-content h6 { font-size: 1rem; }

.page-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5em;
    color: #333;
}

.page-content a {
    color: #74b72a; /* --primary-color */
    text-decoration: underline;
    text-decoration-color: #74b72a; /* --primary-color */
    transition: background-color 0.3s, color 0.3s;
}

.page-content a:hover {
    background-color: #74b72a; /* --primary-color */
    color: #ffffff; /* --white */
    text-decoration: none;
}

.page-content ul,
.page-content ol {
    padding-left: 2rem;
    margin-bottom: 1.5em;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.page-content li {
    margin-bottom: 0.75em;
}

.page-content blockquote {
    border-left: 4px solid #74b72a; /* --primary-color */
    padding-left: 1.5rem;
    margin: 2em 0;
    font-style: italic;
    font-size: 1.2rem;
    color: #555;
}

.legal-page p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Ensure all paragraphs within main sections get styled */
section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

/* --- General Page Headers --- */
.page-header {
    padding: 4rem 2rem;
    text-align: center;
}
.page-header .page-title {
    font-size: 3rem;
}
.page-header .page-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 1rem auto 0;
}

/* ==========================================================================
   Page: Über Uns
   ========================================================================== */

/* --- Values Section --- */
.values-section .three-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.highlight-box {
    background-color: var(--light-gray, #f9f9f9);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.highlight-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.07);
}

.highlight-box svg {
    width: 48px;
    height: 48px;
    color: var(--primary-color, #74b72a);
    margin-bottom: 1rem;
}

.highlight-box h3 {
    font-size: 1.5rem;
    color: var(--dark-green, #558B2F);
    margin-bottom: 0.5rem;
}

.highlight-box p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

/* --- Philosophy Section --- */
.philosophy-section {
    position: relative;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
}

.philosophy-quote {
    font-size: 2.5rem;
    font-weight: 700;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

/* --- Team Section --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-member {
    text-align: center;
}

.team-member-photo {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.team-member h3 {
    font-size: 1.25rem;
    color: var(--dark-green, #558B2F);
}

.team-member-position {
    font-size: 1rem;
    color: #555;
    margin-top: 0.25rem;
}

/* ==========================================================================
   Container Width Optimization for Large Screens
   ========================================================================== */

/* Erweitere Container für große Bildschirme */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1600px;
    }
}

@media (min-width: 1920px) {
    .container {
        max-width: 1800px;
    }
}

/* Spezielle Anpassungen für die Projekte-Seite auf großen Bildschirmen */
@media (min-width: 1600px) {
    /* Nutze volle Breite für Karte und Projektliste */
    .page-template-projekte-seite .container,
    .post-type-archive-project_solar_anlage .container,
    body.archive .container {
        max-width: 90vw;
    }
    
    /* Projektliste - mehr Spalten auf großen Bildschirmen */
    .project-cards-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        max-width: 100%;
    }
    
    /* Begrenzte maximale Kachelgröße */
    .project-card {
        max-width: 350px;
        justify-self: center;
        width: 100%; /* Ensure cards fill their grid cell */
    }
}

@media (min-width: 1920px) {
    .project-cards-list {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    /* 5-6 Spalten für sehr große Bildschirme */
    .project-cards-grid,
    .project-cards-list {
        grid-template-columns: repeat(auto-fill, minmax(300px, 320px));
        justify-content: center;
    }
}

@media (min-width: 2400px) {
    .page-template-projekte-seite .container,
    .post-type-archive-project_solar_anlage .container,
    body.archive .container {
        max-width: 2200px;
        margin: 0 auto;
    }
    
    .project-cards-list {
        grid-template-columns: repeat(auto-fill, minmax(320px, 340px));
        justify-content: center;
    }
}

/* ==========================================================================
   Page: Projekte
   ========================================================================== */

.page-template-page-projekte .page-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 992px) {
    .page-template-page-projekte .page-content {
        grid-template-columns: 280px 1fr;
    }
}

/* --- Filters Sidebar --- */
/* Full Width Horizontal Filter Sidebar */
.filters-sidebar {
    background: #fdfdfd;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    height: fit-content;
    width: 95%;
    margin: 0 auto 1rem auto; /* Reduced from 2rem to 1rem */
    max-width: none;
}

.filters-sidebar .filters-title {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--dark-green, #558B2F);
    font-weight: 600;
    text-align: left;
}

.project-filters-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: end;
}

.project-filters-form .filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 180px;
    flex: 1;
    margin-bottom: 0;
}

.project-filters-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    text-align: left;
}

.project-filters-form input[type="text"],
.project-filters-form select {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
    background: white;
}

.project-filters-form input[type="text"]:focus,
.project-filters-form select:focus {
    outline: none;
    border-color: var(--primary-color, #74b72a);
    box-shadow: 0 0 0 2px rgba(116, 183, 42, 0.15);
}

.project-filters-form button.btn {
    padding: 0.7rem 2rem;
    min-width: 150px;
    font-size: 0.9rem;
    align-self: flex-end;
    margin-top: 0.5rem;
}

/* --- Map & Project List --- */
.projects-map-section {
    margin-bottom: 2rem; /* Reduced from 3rem to 2rem */
}

.acf-map {
    width: 100%;
    height: 500px;
    border: 1px solid #eee;
    border-radius: 8px;
}

/* Enhanced project cards - modern green design */
.project-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* Reduced min-width for more square proportions */
    gap: 1.8rem; /* Smaller gap for compact layout */
    margin-top: 3rem;
}

.project-card {
    background: #ffffff;
    border-radius: 10px; /* Smaller radius for square look */
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08); /* Compact shadow */
    transition: all 0.3s ease;
    border: 2px solid #f0f9f0;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%; /* Flexible Höhe für bessere Bildanzeige */
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-color: var(--primary-color, #74b72a);
}

.project-card-image {
    position: relative;
    overflow: hidden;
    height: 180px; /* Wie vorher - genug Platz für sichtbares Bild */
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-card-image img {
    transform: scale(1.05);
}

.project-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(116, 183, 42, 0.1) 0%, rgba(85, 139, 47, 0.05) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-card-image::after {
    opacity: 1;
}

.project-card-content {
    padding: 0.4rem 1rem 0.6rem 1rem; /* Reduziert für kompaktere Kacheln */
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center; /* Center all content */
    min-height: auto; /* Flexible Höhe */
    justify-content: flex-end; /* Content näher zum unteren Rand */
}

.project-status-badge {
    display: inline-flex;
    padding: 0.26rem 0.65rem; /* 30% larger: 0.2rem*1.3, 0.5rem*1.3 */
    border-radius: 16px; /* Slightly larger radius */
    font-size: 0.78rem; /* 30% larger: 0.6rem*1.3 */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 5px; /* Minimal 5px Abstand als Standard */
    color: white;
    border: none;
    align-items: center;
    justify-content: center;
    gap: 0.2rem; /* 30% larger: 0.15rem*1.3 */
    min-width: 90px; /* Einheitliche Mindestbreite für alle Badges */
}

/* Center the badge in project cards - MINIMAL SPACING */
.project-card .project-status-badge {
    display: flex;
    margin: 0 auto 5px auto; /* Exakt 5px Abstand zur Überschrift */
}

/* Frontpage only - increase spacing between status badge and title by 24px - MUCH MORE SPECIFIC */
body.home.page-template-default .project-card .project-status-badge {
    margin: 0 auto 24px auto !important; /* 24px mehr Abstand nach unten vom Badge nur auf der echten Frontpage */
}

/* Archive pages - keep minimal spacing */
body.post-type-archive-project_solar_anlage .project-card .project-status-badge,
body.archive .project-card .project-status-badge {
    margin: 0 auto 5px auto; /* Exakt 5px Abstand für Archive-Seiten */
}

/* All override rules removed - let default 0.5rem rule apply everywhere except frontpage */

/* COPY EXACT FRONTPAGE STYLING TO PROJECTS PAGE */
.page-template-page-projekte .project-card-content,
.page-template-page-projekte #projects-list-section .project-card-content {
    justify-content: flex-end !important; /* Content näher zum unteren Rand */
    align-items: center !important; /* Zentriert den Content horizontal */
    padding: 0.4rem 1rem 0.6rem 1rem !important; /* Gleiche Abstände wie Frontpage */
    text-align: center !important; /* Zentriert allen Text */
}

.page-template-page-projekte .project-card-title,
.page-template-page-projekte #projects-list-section .project-card-title {
    text-align: center !important;
    margin: 0 0 0.8rem 0 !important; /* Gleicher Abstand wie Frontpage */
    margin-left: auto !important;
    margin-right: auto !important;
}

.page-template-page-projekte .project-card-meta,
.page-template-page-projekte #projects-list-section .project-card-meta {
    align-items: center !important;
    justify-content: center !important;
    gap: 0.4rem !important; /* Gleiche Abstände wie Frontpage */
    margin-bottom: 0.4rem !important; /* Gleicher Abstand zum Button */
}

.page-template-page-projekte .project-card-meta .meta-item,
.page-template-page-projekte #projects-list-section .project-card-meta .meta-item {
    justify-content: center !important;
    text-align: center !important;
}

.page-template-page-projekte .project-card .btn,
.page-template-page-projekte #projects-list-section .project-card .btn {
    margin-left: auto !important;
    margin-right: auto !important;
    align-self: center !important;
}

/* Match colors from map legend - Updated with correct class names */
.project-status-badge.status-planning {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); /* Blue - Planning */
}

.project-status-badge.status-construction {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%); /* Orange - Construction */
}

.project-status-badge.status-operation {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%); /* Green - Operation */
}

.project-status-badge.status-fertiggestellt {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%); /* Green - Completed/Operation */
}

/* Default status if none of the above match */
.project-status-badge.status-unknown {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%); /* Gray - Unknown */
}

/* 
These old incorrect classes are now disabled and replaced with the correct class names above
.project-status-badge.status-in-planung
.project-status-badge.status-in-bau
.project-status-badge.status-in-betrieb
.project-status-badge.status-verkauft
*/

.project-card-title {
    margin: 0 0 0.8rem 0; /* Reduzierter Abstand nach unten für kompakte Kacheln */
    font-size: 0.95rem; /* Smaller font size for 30% reduction */
    font-weight: 700;
    line-height: 1.1; /* Noch enger für vertikal kompakten Content */
    text-align: center; /* Center the project name */
}

.project-card-title a {
    color: var(--dark-green, #558B2F);
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Hover-Effekt entfernt, da Text auf grünem Hintergrund unlesbar wurde
.project-card-title a:hover {
    color: var(--primary-color, #74b72a);
} */

.project-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem; /* Reduzierter Abstand zwischen Meta-Items für kompakte Kacheln */
    margin-bottom: 0.4rem; /* Reduzierter Abstand zum Button */
    font-size: 0.8rem; /* Smaller font for compact layout */
    align-items: center; /* Zentriert die Meta-Items horizontal */
}

.project-card-meta .meta-item {
    display: flex;
    align-items: center;
    justify-content: center; /* Zentriert Icon und Text */
    gap: 0.4rem;
    color: #666;
    font-weight: 500;
    text-align: center; /* Zusätzliche Textzentrierung */
}

.project-card-meta .meta-item svg {
    width: 16px;
    height: 16px;
    color: var(--primary-color, #74b72a);
    flex-shrink: 0;
    margin-top: 0; /* Ensure no top margin */
}

/* Specific fix for location meta items */
.project-card-meta .project-location-meta {
    align-items: flex-start; /* Align icon to start of text line */
}

.project-card-meta .project-location-meta svg {
    margin-top: 0.1rem; /* Slight adjustment to align with text baseline */
}

.project-card .btn {
    padding: 0.35rem 0.85rem; /* Smaller, consistent with front page */
    font-weight: 600;
    border-radius: 5px;
    background: linear-gradient(135deg, var(--primary-color, #74b72a), #5a9d20);
    color: white;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-top: auto;
    align-self: center;
    white-space: nowrap;
    font-size: 0.85rem; /* Readable size, consistent with front page */
    line-height: 1.2;
    height: auto;
    min-height: unset;
}

.project-card .btn:hover {
    background: linear-gradient(135deg, var(--dark-green, #558B2F), #4a7b25);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(116, 183, 42, 0.3);
    color: white;
}

/* Animation and responsive rules */
.project-card[data-aos] {
    opacity: 0;
    transform: translateY(30px);
}

.project-card[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .project-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem; /* Smaller gap for mobile */
    }
    
    .project-card-content {
        padding: 0.2rem 0.8rem; /* 70px vertikal reduziert - Mobile Version */
    }
    
    .project-card-meta {
        gap: 0.1rem; /* Minimal mobile gap für 70px Verkleinerung */
    }
}

/* --- Loader --- */
.loader {
  border: 5px solid transparent;
  border-top: 5px solid var(--primary-color, #74b72a);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 2rem auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ==========================================================================
   Page: Für Eigentümer
   ========================================================================== */

/* --- Intro Section --- */
.page-template-page-fuer-eigentuemer .intro-section .two-columns-text {
    /* Larger gap for this specific page */
    gap: 4rem;
}

.page-template-page-fuer-eigentuemer .intro-section p {
    font-size: 1.15rem;
    line-height: 1.8;
}

/* --- Requirements Section --- */
.requirements-checklist {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .requirements-checklist {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

.requirement-item {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9e9e9;
    font-size: 1.05rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.03);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.requirement-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color, #74b72a);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.requirement-item svg {
    width: 24px;
    height: 24px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.requirement-item.is-mandatory svg {
    color: var(--primary-color, #74b72a);
}

.requirement-item.is-plus svg {
    color: #f0b429; /* A gold/yellow color for "plus" points */
}

/* --- Renovation Section --- */
.renovation-section .column-text .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.renovation-section .column-text p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.renovation-section .column-text strong {
    color: var(--dark-green, #558B2F);
}

/* --- Dark Section Overrides --- */
.dark-bg .section-title,
.dark-bg h1,
.dark-bg h2,
.dark-bg h3,
.dark-bg p,
.dark-bg span {
    color: #fff;
}

.dark-bg .icon-text-block svg {
    color: var(--primary-color, #74b72a);
}

.dark-bg .icon-text-block strong,
.dark-bg a {
    color: #fff;
}

.dark-bg .highlight-box {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark-bg .highlight-box h3,
.dark-bg .highlight-box p {
    color: #fff;
}

/* --- Icon Features --- */
.icon-text-block {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem; /* Add space between blocks */
}

.icon-text-block svg {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    color: var(--primary-color, #74b72a);
    margin-top: 5px;
}

.icon-text-block p,
.icon-text-block span {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
}

.icon-list {
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding-left: 0;
    list-style: none;
}

.as-process-steps {
    counter-reset: process-counter;
    list-style-type: none;
    padding-left: 0;
}

.as-process-steps .icon-text-block,
.as-process-steps .process-step {
    position: relative;
    padding-left: 50px; /* Space for the counter */
    margin-bottom: 2rem;
}

.as-process-steps .icon-text-block::before,
.as-process-steps .process-step::before {
    counter-increment: process-counter;
    content: counter(process-counter);
    position: absolute;
    left: 0;
    top: 0; /* Align to the top of the text block */
    width: 32px;
    height: 32px;
    background-color: var(--primary-color, #74b72a);
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.as-process-steps .process-step-content {
    padding-top: 5px; /* Fine-tune vertical alignment with the number circle */
}

.as-process-steps .process-step h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.as-process-steps .process-step p {
    margin: 0;
    opacity: 0.9;
}

.as-process-steps .icon-text-block svg {
    display: none; /* Hide old icon, we use the number now */
}

.mt-4 {
    margin-top: 2rem;
}

/* ==========================================================================
   Page: Für Investoren
   ========================================================================== */

/* --- Yield Security Section --- */
.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.metric-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    text-align: center;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color, #74b72a);
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 1rem;
    color: #555;
    line-height: 1.4;
}

/* --- IAB Calculator Section --- */
.iab-calculator-section {
    padding-top: 2.5rem !important; /* Reduced from default 5rem */
    padding-bottom: 2.5rem !important; /* Reduced from default 5rem */
}

.iab-calculator-section .section-title {
    margin-bottom: 1rem !important; /* Reduced vertical spacing */
}

.iab-calculator-section .section-subtitle {
    margin-bottom: 1rem !important; /* Reduced from 2rem */
}

.calculator-wrapper {
    max-width: 400px; /* Reduced from 800px (50% smaller) */
    margin: 1.5rem auto 0; /* Reduced from 3rem */
    background: var(--light-gray, #f9f9f9);
    padding: 1rem; /* Reduced from 2rem */
    border-radius: 8px;
    border: 1px solid #eee;
}

@media (min-width: 768px) {
    .calculator-wrapper {
        padding: 1.5rem; /* Reduced from 3rem */
    }
}

.calculator-inputs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem; /* Reduced from 1.5rem */
    margin-bottom: 1rem; /* Reduced from 2rem */
}

@media (min-width: 768px) {
    .calculator-inputs {
        grid-template-columns: 1fr 1fr auto;
        gap: 0.75rem; /* Reduced from 1.5rem */
        align-items: end;
    }
    .calculator-inputs .form-group {
        margin-bottom: 0;
    }
}

.calculator-inputs .form-group {
    display: flex;
    flex-direction: column;
}

.calculator-inputs .form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.25rem; /* Reduced from 0.5rem */
    color: var(--dark-green, #558B2F);
}

.calculator-inputs input {
    width: 100%;
    max-width: 150px; /* Limit input field width */
    padding: 0.8rem 1rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.calculator-inputs input:focus {
    outline: none;
    border-color: var(--primary-color, #74b72a);
    box-shadow: 0 0 0 3px rgba(116, 183, 42, 0.1);
}

#calculate-iab {
    padding: 0.8rem 1.5rem !important; /* Match input padding */
    white-space: nowrap;
    height: calc(1rem * 1.5 + 0.8rem * 2 + 4px); /* Match exact input height */
    margin-top: 0.75rem; /* Reduced from 1.5rem */
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 2px solid var(--primary-color, #74b72a) !important; /* Match input border thickness */
    font-size: 1rem !important; /* Match input font size */
    line-height: 1.5; /* Match input line-height for consistent height */
    font-weight: 600 !important; /* Keep button font weight */
}

#calculate-iab:hover {
    border-color: #69a626 !important;
}

@media (min-width: 768px) {
    #calculate-iab {
        margin-top: 0;
    }
}

.calculator-results {
    background: #fff;
    padding: 1rem; /* Reduced from 2rem */
    border-radius: 8px;
}

.calculator-results h3 {
    margin-top: 0;
    margin-bottom: 0.75rem; /* Reduced from 1.5rem */
    font-size: 1.5rem;
    color: var(--dark-green, #558B2F);
}

.calculator-results .result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0; /* Reduced from 1rem */
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
}

.calculator-results .result-item:last-of-type {
    border-bottom: none;
}

.calculator-results .result-item strong {
    font-size: 1.2rem;
}

.calculator-results .result-highlight {
    background-color: #f0fff0;
    padding: 0.5rem; /* Reduced from 1rem */
    margin: 0 -0.5rem; /* Adjusted to match new padding */
    border-radius: 5px;
}

.calculator-results .result-highlight strong {
    color: var(--primary-color, #74b72a);
    font-size: 1.4rem;
}

.calculator-results .disclaimer {
    display: block;
    margin-top: 0.75rem; /* Reduced from 1.5rem */
    font-size: 0.9rem;
    color: #777;
    text-align: center;
}

/* ==========================================================================
   Front Page
   ========================================================================== */

/* --- Stats Section --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

/* Legacy stat-item styles removed - replaced with professional stats section */

/* --- Intro Section --- */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 992px) {
    .intro-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.intro-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.intro-content .section-title {
    text-align: left;
}

/* --- CTA Cards Section --- */
.cta-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .cta-cards-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.cta-card {
    background-color: var(--dark-green, #558B2F);
    color: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-card-icon svg {
    width: 48px;
    height: 48px;
    color: var(--primary-color, #74b72a);
    margin-bottom: 1.5rem;
}

.cta-card-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #fff;
}

.cta-card-text {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-card .btn.btn-primary {
    width: auto;
    padding: 0.36rem 0.84rem;
    font-weight: 600;
}

.cta-card .btn.btn-primary:hover {
    background-color: #fff;
    color: var(--dark-green, #558B2F);
}

/* --- Testimonials Section --- */
.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 3rem auto 0;
}

.testimonial-slide {
    display: none; /* Hidden by default, shown by JS */
}

.testimonial-slide.is-active {
    display: block;
}

.testimonial-item {
    border-left: none;
    text-align: center;
    padding: 0;
    margin: 0;
}

.testimonial-item p {
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.6;
    color: #333;
    margin-bottom: 2rem;
}

.testimonial-item footer {
    font-style: normal;
}

.testimonial-item footer cite {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark-green, #558B2F);
}

.testimonial-item footer span {
    font-size: 0.9rem;
    color: #777;
}

.testimonial-slider-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.testimonial-slider-nav button {
    background: none;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.testimonial-slider-nav button:hover {
    background-color: var(--primary-color, #74b72a);
    border-color: var(--primary-color, #74b72a);
    color: #fff;
}
.testimonial-slider-nav button svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Responsive Navigation
   ========================================================================== */
.mobile-menu-toggle {
    display: none; /* Hide on desktop */
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.hamburger-icon {
    display: block;
    width: 14px; /* 30% kleiner: 20px → 14px */
    height: 1.4px; /* 30% kleiner: 2px → 1.4px */
    background-color: var(--black, #000);
    position: relative;
    transition: background-color 0.3s;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.4px; /* 30% kleiner: 2px → 1.4px */
    background-color: var(--black, #000);
    transition: transform 0.3s, top 0.3s;
}

.hamburger-icon::before {
    top: -4.2px; /* 30% kleiner: -6px → -4.2px */
}

.hamburger-icon::after {
    top: 4.2px; /* 30% kleiner: 6px → 4.2px */
}

/* Screen reader text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ==========================================================================
   Active Menu Item Highlighting
   ========================================================================== */
   
/* Schönes grünes Highlighting für aktuelle Seite */
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.main-navigation .current-page-ancestor > a {
    color: var(--primary-color, #74b72a) !important;
    background: linear-gradient(135deg, rgba(116,183,42,0.15), rgba(85,139,47,0.08));
    position: relative;
    border-radius: 6px;
    font-weight: 700;
    padding: 0.6rem 1.6rem !important; /* Identisch groß für alle grünen Hintergründe */
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

/* Professioneller Hover-Effekt für aktuelle Seite */
.main-navigation .current_page_item > a:hover,
.main-navigation .current-page-ancestor > a:hover {
    background: linear-gradient(135deg, rgba(116,183,42,0.25), rgba(85,139,47,0.12)) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(116,183,42,0.2);
    /* Padding bleibt unverändert - keine Größenänderung */
}

/* Eleganter Hover-Effekt für normale Menüpunkte - keine Größenänderung */
.main-navigation li:not(.current_page_item):not(.current-page-ancestor) a:hover {
    color: var(--primary-color, #74b72a);
    background: linear-gradient(135deg, rgba(116,183,42,0.15), rgba(85,139,47,0.08));
    border-radius: 6px;
    /* Padding bleibt unverändert - keine Größenänderung */
    transform: translateY(-0.5px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Aktiver Menüpunkt mit Gradient-Underline - ENTFERNT */
/*
.main-navigation .current-menu-item > a::after,
.main-navigation .current_page_item > a::after,
.main-navigation .current-page-ancestor > a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color, #74b72a), transparent);
    border-radius: 2px;
    animation: activeMenuGlow 2s ease-in-out infinite alternate;
}
*/

/* Subtile Glow-Animation für aktiven Menüpunkt - ENTFERNT */
/*
@keyframes activeMenuGlow {
    0% {
        box-shadow: 0 0 5px rgba(116,183,42,0.3);
        opacity: 0.8;
    }
    100% {
        box-shadow: 0 0 15px rgba(116,183,42,0.6);
        opacity: 1;
    }
}
*/

/* Hover-Verhalten für aktive Menüpunkte */
.main-navigation .current-menu-item > a:hover,
.main-navigation .current_page_item > a:hover,
.main-navigation .current-page-ancestor > a:hover {
    background: linear-gradient(135deg, rgba(116,183,42,0.2), rgba(85,139,47,0.1));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(116,183,42,0.2);
}

/* Desktop-spezifische Styles */
@media (min-width: 769px) {
    .main-navigation .current-menu-item > a,
    .main-navigation .current_page_item > a,
    .main-navigation .current-page-ancestor > a {
        padding: 0.7rem 1.5rem; /* Gleiche Größe wie normale Menüpunkte */
        margin: 0 0.2rem; /* Ursprüngliche Größe beibehalten */
    }
}

@media (max-width: 768px) {
    /* 30% kleinere Mobile Header */
    .site-header {
        padding: 0.28rem 0.7rem; /* 30% kleiner: 0.4rem 1rem → 0.28rem 0.7rem */
        min-height: 31.5px; /* 30% kleiner: 45px → 31.5px */
    }
    
    .site-title a {
        font-size: 1.2rem; /* Ursprüngliche Größe beibehalten */
    }
    
    .main-navigation ul {
        display: none; /* Hide main menu on mobile */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white, #fff);
        padding: 0.5rem 0; /* Ursprüngliche Größe beibehalten */
        box-shadow: 0 2px 6px rgba(0,0,0,0.05); /* Subtiler Schatten */
    }

    .main-navigation.is-open ul {
        display: flex; /* Show when open */
    }

    .main-navigation li {
        margin: 0;
    }

    .main-navigation li a {
        display: block;
        padding: 0.7rem 1.5rem; /* Ursprüngliche Größe beibehalten */
        text-align: center;
        font-size: 0.926rem; /* Ursprüngliche Größe beibehalten */
    }
    
    /* Mobile Styles für aktive Menüpunkte */
    .main-navigation .current-menu-item > a,
    .main-navigation .current_page_item > a,
    .main-navigation .current-page-ancestor > a {
        background: linear-gradient(135deg, var(--primary-color, #74b72a), var(--dark-green, #558B2F));
        color: white !important;
        border-radius: 6px; /* Ursprüngliche Größe beibehalten */
        margin: 0.2rem 1rem; /* Ursprüngliche Größe beibehalten */
        box-shadow: 0 2px 8px rgba(116,183,42,0.3);
        transform: none; /* Keine transform auf Mobile */
    }
    
    /* Kein Underline auf Mobile - bereits entfernt */
    /*
    .main-navigation .current-menu-item > a::after,
    .main-navigation .current_page_item > a::after,
    .main-navigation .current-page-ancestor > a::after {
        display: none; 
    }
    */
    
    .main-navigation .current-menu-item > a:hover,
    .main-navigation .current_page_item > a:hover,
    .main-navigation .current-page-ancestor > a:hover {
        background: linear-gradient(135deg, var(--dark-green, #558B2F), #4a7b25);
        transform: none;
        box-shadow: 0 4px 12px rgba(116,183,42,0.4);
    }
    
    .mobile-menu-toggle {
        display: block; /* Show on mobile */
        padding: 0.3rem; /* Ursprüngliche Größe beibehalten */
    }

    .main-navigation.is-open .hamburger-icon {
        background-color: transparent; /* Hide middle line */
    }

    .main-navigation.is-open .hamburger-icon::before {
        transform: rotate(45deg);
        top: 0;
    }

    .main-navigation.is-open .hamburger-icon::after {
        transform: rotate(-45deg);
        top: 0;
    }
}

/* ==========================================================================
   Plugins & 3rd Party
   ========================================================================== */

/* --- WPForms --- */
.contact-form-wrapper .wpforms-container {
    margin-top: 2rem;
}

.wpforms-form .wpforms-field {
    margin-bottom: 1.5rem;
}

.wpforms-form .wpforms-field-label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark-green, #558B2F);
}

.wpforms-form input[type="text"],
.wpforms-form input[type="email"],
.wpforms-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.wpforms-form input[type="text"]:focus,
.wpforms-form input[type="email"]:focus,
.wpforms-form textarea:focus {
    outline: none;
    border-color: var(--primary-color, #74b72a);
    box-shadow: 0 0 0 3px rgba(116, 183, 42, 0.2);
}

.wpforms-form .wpforms-submit-container {
    text-align: right;
}

.wpforms-form .wpforms-submit {
    background-color: var(--primary-color, #74b72a);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.wpforms-form .wpforms-submit:hover {
    background-color: var(--dark-green, #558B2F);
}

/* === Professional Stats Section Design === */
.stats-section {
    background: linear-gradient(135deg, #f8fffe 0%, #ffffff 100%);
    padding: 4rem 0;
}

.stats-section .stat-item {
    background: white;
    padding: 2.5rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(116, 183, 42, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stats-section .stat-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color, #74b72a);
}

.stats-section .stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color, #74b72a), #5a9d20);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.stats-section .stat-item:hover::before {
    transform: scaleX(1);
}

/* Number and unit on same line */
.stats-section .stat-number-line {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 1rem;
    line-height: 1;
}

.stats-section .stat-number {
    font-size: 3.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, white, white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 0.3rem;
}

.stats-section .stat-unit {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color, #74b72a);
}

.stats-section .stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Animation on scroll */
.stats-section .stat-item[data-aos] {
    opacity: 0;
    transform: translateY(30px);
}

.stats-section .stat-item[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive design for stats */
@media (max-width: 768px) {
    .stats-section {
        padding: 3rem 0;
    }
    
    .stats-section .stat-item {
        padding: 2rem 1rem;
    }
    
    .stats-section .stat-number {
        font-size: 3rem;
    }
    
    .stats-section .stat-unit {
        font-size: 1.1rem;
    }
    
    .stats-section .stat-label {
        font-size: 1rem;
        letter-spacing: 0.3px;
    }
}

@media (max-width: 480px) {
    .stats-section .stat-item {
        padding: 1.5rem 0.8rem;
    }
    
    .stats-section .stat-number {
        font-size: 2.5rem;
    }
    
    .stats-section .stat-unit {
        font-size: 0.9rem;
    }
    
    .stats-section .stat-label {
        font-size: 0.9rem;
    }
}

/* Buttons height & alignment */
.btn {
    padding: 0.36rem 0.84rem;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Ensure hero CTA buttons sit side-by-side nicely */
.hero-cta .btn {
    margin: 0 0.5rem;
    padding: 0.5rem 1.2rem; /* Slightly more compact */
}
.hero-cta .btn:last-child {
    margin-right: 0;
}

/* Restore loader spin */
@keyframes spinFix { to { transform: rotate(360deg); } }
.loading-indicator .spinner,
.loader,
.loading-indicator svg {
    animation: spinFix 1s linear infinite;
}

/* ==========================================================================
   Page: Qualität
   ========================================================================== */

/* --- Quality Features Section --- */
.quality-features .quality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.quality-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid #e8f5e8;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quality-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-color: var(--primary-color, #74b72a);
}

.quality-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color, #74b72a), #5a9d20);
    transition: left 0.5s ease;
}

.quality-card:hover::before {
    left: 0;
}

.quality-icon {
    background: linear-gradient(135deg, var(--primary-color, #74b72a), #5a9d20);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 20px rgba(116, 183, 42, 0.3);
}

.quality-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.quality-card h3 {
    font-size: 1.4rem;
    color: var(--dark-green, #558B2F);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.quality-card p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
}

.quality-benefit {
    background: #e8f5e8;
    color: var(--primary-color, #74b72a);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
}

/* --- Benefits Section (Statistics) --- */
.benefits-section .benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
    text-align: center;
}

.benefit-stat {
    background: white;
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 2px solid #f0f8f0;
    transition: all 0.3s ease;
    position: relative;
}

.benefit-stat:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-color: var(--primary-color, #74b72a);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, white, white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-green, #558B2F);
    margin-bottom: 0.8rem;
}

.benefit-stat p {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

/* --- Guarantees Section --- */
.guarantees-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.guarantees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.guarantee-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.guarantee-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.guarantee-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color, #74b72a), #5a9d20);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.guarantee-card:hover::before {
    transform: scaleX(1);
}

.guarantee-years {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color, #74b72a);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.guarantee-card h3 {
    font-size: 1.2rem;
    color: var(--dark-green, #558B2F);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.guarantee-card p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

/* --- Warning Section (Why cheap is expensive) --- */
.warning-section .warning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.warning-item {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.08);
    border: 2px solid #ffeaea;
    transition: all 0.3s ease;
    position: relative;
}

.warning-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(231, 76, 60, 0.15);
    border-color: #e74c3c;
}

.warning-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}

.warning-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.warning-item h3 {
    font-size: 1.3rem;
    color: #e74c3c;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.warning-item p {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

/* --- Investment Section --- */
.investment-section .investment-highlight {
    background: linear-gradient(135deg, var(--primary-color, #74b72a), #5a9d20);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    margin: 2rem 0;
    box-shadow: 0 15px 35px rgba(116, 183, 42, 0.3);
}

.investment-stat {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.investment-highlight p {
    font-size: 1.2rem;
    margin: 0;
    opacity: 0.95;
}

.investment-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.benefit-point {
    background: #e8f5e8;
    color: var(--primary-color, #74b72a);
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-point:hover {
    background: var(--primary-color, #74b72a);
    color: white;
    transform: scale(1.05);
}

.investment-summary {
    background: #f8f9fa;
    border: 2px solid var(--primary-color, #74b72a);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin-top: 2rem;
}

.investment-summary strong {
    color: var(--primary-color, #74b72a);
    font-size: 1.2rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .quality-grid,
    .benefits-grid,
    .guarantees-grid,
    .warning-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .quality-card,
    .benefit-stat,
    .guarantee-card,
    .warning-item {
        padding: 1.5rem;
    }
    
    .quality-icon,
    .warning-icon {
        width: 60px;
        height: 60px;
    }
    
    .stat-number {
        font-size: 2.8rem;
    }
    
    .guarantee-years {
        font-size: 2rem;
    }
    
    .investment-benefits {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .investment-stat {
        font-size: 2.5rem;
    }
    
    .investment-highlight {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   Page: Vermittler (Broker/Partner) – Modern Compact Styling
   ========================================================================== */

/* --- General Layout --- */
.page-template-default .benefits-section {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fffe 0%, #f0f9f0 50%, #ffffff 100%);
}

.page-template-default .benefits-section::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -25%;
    width: 150%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(116,183,42,0.08) 0%, transparent 70%);
    transform: rotate(35deg);
    z-index: -1;
    pointer-events: none;
}

/* --- Two Columns Feature --- */
.two-columns-feature {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    align-items: center;
}

.two-columns-feature .column-text {
    animation: fadeSlideIn 1s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.two-columns-feature .column-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    animation: zoomIn 1s ease forwards 0.4s;
    opacity: 0;
    transform: scale(0.95);
}

.two-columns-feature .column-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Benefits List --- */
.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    background: #ffffff;
    padding: 1rem 1.2rem;
    border: 1px solid #e9e9e9;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transition: transform 0.3s, box-shadow 0.3s;
}

.benefits-list li:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: var(--primary-color, #74b72a);
}

.benefits-list li svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--primary-color, #74b72a);
    margin-top: 4px;
}

.benefits-list li span {
    flex: 1;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #444;
}

/* --- Process Section --- */
.process-section {
    background: linear-gradient(135deg, #3a6b20 0%, #2d5318 100%); /* Much darker, saturated green */
    padding: 80px 0;
}

.process-section .three-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    position: relative;
}

.process-section .step-item {
    background: #ffffff;
    border: 2px solid #e8f5e8;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    perspective: 600px;
}

.process-section .step-item:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--primary-color, #74b72a);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.process-section .step-item h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-green, #558B2F);
    margin-bottom: 0.6rem;
}

.process-section .step-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

/* --- Subtle floating animation for steps --- */
@keyframes floatStep {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.process-section .step-item {
    animation: floatStep 6s ease-in-out infinite;
}

/* --- Custom reveal animations --- */
@keyframes fadeSlideIn {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
    to { opacity: 1; transform: scale(1); }
}

/* --- Responsive Tweaks --- */
@media (max-width: 600px) {
    .benefits-list li {
        flex-direction: column;
        text-align: left;
    }
    .benefits-list li svg {
        margin-top: 0;
    }
}

/* ==========================================================================
   Page: Contact – Compact Form Layout
   ========================================================================== */

/* --- Contact Layout Grid --- */
.contact-content-section {
    padding: 3rem 0;
}

.contact-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 768px) {
    .contact-layout-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* --- Contact Details --- */
.contact-details {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.contact-details h3 {
    color: var(--dark-green, #558B2F);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-details p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #555;
}

.contact-details a {
    color: var(--primary-color, #74b72a);
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

/* --- Compact Contact Form --- */
.contact-form-wrapper {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.contact-form-wrapper h3 {
    color: var(--dark-green, #558B2F);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

/* Compact form fields */
.contact-form-wrapper .wpforms-container {
    margin-top: 0;
}

.contact-form-wrapper .wpforms-form .wpforms-field {
    margin-bottom: 1rem; /* Reduced from 1.5rem */
}

.contact-form-wrapper .wpforms-form .wpforms-field-label {
    font-size: 0.9rem; /* Smaller label */
    font-weight: 600;
    margin-bottom: 0.4rem; /* Reduced spacing */
    color: var(--dark-green, #558B2F);
}

.contact-form-wrapper .wpforms-form input[type="text"],
.contact-form-wrapper .wpforms-form input[type="email"],
.contact-form-wrapper .wpforms-form textarea {
    padding: 0.7rem 0.9rem; /* Reduced padding */
    font-size: 0.95rem; /* Slightly smaller text */
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form-wrapper .wpforms-form textarea {
    min-height: 80px; /* Reduced textarea height */
    max-height: 120px;
    resize: vertical;
}

.contact-form-wrapper .wpforms-form input[type="text"]:focus,
.contact-form-wrapper .wpforms-form input[type="email"]:focus,
.contact-form-wrapper .wpforms-form textarea:focus {
    outline: none;
    border-color: var(--primary-color, #74b72a);
    box-shadow: 0 0 0 2px rgba(116, 183, 42, 0.15);
}

.contact-form-wrapper .wpforms-form .wpforms-submit-container {
    text-align: left; /* Left-align submit button */
    margin-top: 1rem;
}

.contact-form-wrapper .wpforms-form .wpforms-submit {
    background-color: var(--primary-color, #74b72a);
    color: #fff;
    border: none;
    padding: 0.8rem 2rem; /* Slightly reduced padding */
    font-size: 1rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.contact-form-wrapper .wpforms-form .wpforms-submit:hover {
    background-color: var(--dark-green, #558B2F);
    transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .contact-details,
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .contact-form-wrapper .wpforms-form .wpforms-submit {
        width: 100%;
    }
}

/* ==========================================================================
   FAQ Section - Contact Page
   ========================================================================== */

.faq-section {
    background: #f8f9fa;
    padding: 4rem 0;
}

.faq-section .section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-green, #558B2F);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.faq-item.is-open {
    border-color: var(--primary-color, #74b72a);
    box-shadow: 0 4px 12px rgba(116, 183, 42, 0.15);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem 2rem;
    text-align: left;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-green, #558B2F);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
    color: var(--primary-color, #74b72a);
}

.faq-item.is-open .faq-question {
    background: linear-gradient(135deg, var(--primary-color, #74b72a), #5a9d20);
    color: white;
}

.faq-question svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.is-open .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #ffffff;
}

.faq-answer p {
    padding: 0 2rem 1.5rem 2rem;
    margin: 0;
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
}

.faq-answer p:first-child {
    padding-top: 1rem;
}

.faq-answer ul,
.faq-answer ol {
    padding: 0 2rem 1.5rem 2rem;
    margin: 0;
    color: #555;
}

.faq-answer li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.faq-answer strong {
    color: var(--dark-green, #558B2F);
}

.faq-answer a {
    color: var(--primary-color, #74b72a);
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* FAQ Responsive */
@media (max-width: 768px) {
    .faq-section {
        padding: 3rem 0;
    }
    
    .faq-question {
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
    }
    
    .faq-answer p,
    .faq-answer ul,
    .faq-answer ol {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .faq-answer p:first-child {
        padding-top: 1rem;
    }
}

@media (max-width: 600px) {
    .faq-question {
        padding: 1rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .faq-answer p,
    .faq-answer ul,
    .faq-answer ol {
        padding-left: 1.2rem;
        padding-right: 1.2rem;
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   Vermittler (Agent) Page - Modern Interactive Design
   ========================================================================== */

.page-template-page-vermittler {
    background: linear-gradient(135deg, #f8fffe 0%, #e8f5e8 100%);
    min-height: 100vh;
}

.page-template-page-vermittler .page-header {
    background: linear-gradient(135deg, var(--primary-color, #74b72a) 0%, var(--dark-green, #558B2F) 100%);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.page-template-page-vermittler .page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.page-template-page-vermittler .page-header .container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.page-template-page-vermittler .page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background: linear-gradient(45deg, #ffffff, #f0f8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-template-page-vermittler .page-subtitle {
    font-size: 1.3rem;
    line-height: 1.6;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* Benefits Section - Interactive Cards */
.page-template-page-vermittler .benefits-section {
    padding: 5rem 0;
    background: white;
}

.page-template-page-vermittler .benefits-section .section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-green, #558B2F);
    margin-bottom: 3rem;
    position: relative;
}

.page-template-page-vermittler .benefits-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color, #74b72a), var(--dark-green, #558B2F));
    border-radius: 2px;
}

.page-template-page-vermittler .two-columns-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.page-template-page-vermittler .benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-template-page-vermittler .benefits-list li {
    background: white;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    border: 2px solid transparent;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.page-template-page-vermittler .benefits-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color, #74b72a), var(--dark-green, #558B2F));
    transition: width 0.3s ease;
}

.page-template-page-vermittler .benefits-list li:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary-color, #74b72a);
    box-shadow: 0 20px 40px rgba(116, 183, 42, 0.15);
}

.page-template-page-vermittler .benefits-list li:hover::before {
    width: 8px;
}

.page-template-page-vermittler .benefits-list li svg {
    width: 32px;
    height: 32px;
    color: var(--primary-color, #74b72a);
    flex-shrink: 0;
    margin-top: 4px;
    transition: all 0.3s ease;
}

.page-template-page-vermittler .benefits-list li:hover svg {
    color: var(--dark-green, #558B2F);
    transform: scale(1.1) rotate(5deg);
}

.page-template-page-vermittler .benefits-list li span {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

.page-template-page-vermittler .benefits-list li span strong {
    color: var(--dark-green, #558B2F);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.page-template-page-vermittler .column-image {
    position: relative;
}

.page-template-page-vermittler .column-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.page-template-page-vermittler .column-image:hover img {
    transform: scale(1.05);
}

/* Process Section - Dynamic Steps */
.page-template-page-vermittler .process-section {
    background: linear-gradient(135deg, #f8fffe 0%, #e8f5e8 100%) !important;
    padding: 5rem 2rem !important;
    border-radius: 0 !important;
    position: relative;
    overflow: hidden;
}

.page-template-page-vermittler .process-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(116, 183, 42, 0.05) 0%, transparent 70%);
    animation: processFloat 20s ease-in-out infinite;
}

@keyframes processFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.page-template-page-vermittler .process-section .section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-green, #558B2F);
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.page-template-page-vermittler .three-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.page-template-page-vermittler .step-item {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.page-template-page-vermittler .step-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color, #74b72a), var(--dark-green, #558B2F));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.page-template-page-vermittler .step-item:hover::before {
    transform: scaleX(1);
}

.page-template-page-vermittler .step-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(116, 183, 42, 0.15);
    border-color: var(--primary-color, #74b72a);
}

.page-template-page-vermittler .step-item h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-green, #558B2F);
    margin-bottom: 1rem;
    position: relative;
}

.page-template-page-vermittler .step-item h3::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    top: -3rem;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color, #74b72a), var(--dark-green, #558B2F));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(116, 183, 42, 0.3);
    transition: all 0.3s ease;
}

.page-template-page-vermittler .step-item:hover h3::before {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(116, 183, 42, 0.4);
}

.page-template-page-vermittler .three-columns {
    counter-reset: step-counter;
}

.page-template-page-vermittler .step-item p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
}

/* CTA Section */
.page-template-page-vermittler .cta-section {
    background: linear-gradient(135deg, var(--dark-green, #558B2F) 0%, var(--primary-color, #74b72a) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-template-page-vermittler .cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: ctaFloat 15s ease-in-out infinite;
}

@keyframes ctaFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.page-template-page-vermittler .cta-section .cta-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.page-template-page-vermittler .cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-template-page-vermittler .cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.page-template-page-vermittler .cta-section .btn {
    background: white;
    color: var(--primary-color, #74b72a);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border: 3px solid white;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-template-page-vermittler .cta-section .btn:hover {
    background: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-template-page-vermittler .two-columns-feature {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .page-template-page-vermittler .three-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .page-template-page-vermittler .step-item h3::before {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        margin: 0 auto 1rem auto;
    }
}

@media (max-width: 768px) {
    .page-template-page-vermittler .page-header {
        padding: 3rem 0;
    }
    
    .page-template-page-vermittler .page-title {
        font-size: 2.2rem;
    }
    
    .page-template-page-vermittler .page-subtitle {
        font-size: 1.1rem;
    }
    
    .page-template-page-vermittler .benefits-section .section-title,
    .page-template-page-vermittler .process-section .section-title {
        font-size: 2rem;
    }
    
    .page-template-page-vermittler .benefits-list li {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .page-template-page-vermittler .step-item {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 600px) {
    .page-template-page-vermittler .benefits-section,
    .page-template-page-vermittler .process-section {
        padding: 3rem 1rem !important;
    }
    
    .page-template-page-vermittler .page-header {
        padding: 2rem 0;
    }
    
    .page-template-page-vermittler .page-title {
        font-size: 1.8rem;
    }
}

/* ==========================================================================
   Page: Vermittler – Less White Background
   ========================================================================== */

/* Add subtle background to the entire page */
.page-template-page-vermittler {
    background: linear-gradient(to bottom, #f8fffe 0%, #f4f9f4 50%, #ffffff 100%);
    min-height: 100vh;
}

.page-template-page-vermittler .page-header {
    background: linear-gradient(135deg, var(--primary-color, #74b72a) 0%, var(--dark-green, #558B2F) 100%);
    color: white;
    padding: 3rem 0;
}

.page-template-page-vermittler .page-header .page-title,
.page-template-page-vermittler .page-header .page-subtitle {
    color: white;
}

.page-template-page-vermittler .container.page-content {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 3rem 2rem;
    margin-top: -2rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* ==========================================================================
   Page: Projects – Improved Spacing
   ========================================================================== */

/* Reduce gap between page header and filters */
.page-template-page-projekte .page-header {
    margin-bottom: 2rem; /* Reduced spacing after header */
}

/* Ensure map section has proper spacing */
.page-template-page-projekte .projects-map-section {
    margin-top: 0.5rem; /* Small top margin for visual separation */
}

/* ===== Solar Promo Video Section ===== */
.solar-video-section {
    margin: 4rem 0;
}

.solar-video-section .responsive-video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 ratio */
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.solar-video-section .responsive-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .solar-video-section {
        margin: 3rem 0;
    }
}

/* Reduce button height on dark backgrounds */
.dark-bg .btn,
.process-section .btn {
    padding: 0.3rem 0.8rem; /* Reduced height from default */
    font-size: 0.9rem;
    border-radius: 5px;
}

/* Status badges for project list and other views - same styling as project-status-badge */
.status-badge {
    display: inline-flex;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0;
    color: white;
    border: none;
    align-items: center;
    gap: 0.25rem;
}

/* Status badge colors matching project-status-badge and map legend */
.status-badge.status-planning,
.status-badge.status-planung,
.status-badge.status-in-planung,
.project-status-badge.status-planning,
.project-status-badge.status-planung,
.project-status-badge.status-in-planung {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important; /* Blue - Planning */
    color: white !important;
}

.status-badge.status-construction,
.status-badge.status-bau,
.status-badge.status-in-bau,
.project-status-badge.status-construction,
.project-status-badge.status-bau,
.project-status-badge.status-in-bau {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%) !important; /* Orange - Construction */
    color: white !important;
}

.status-badge.status-operation,
.status-badge.status-betrieb,
.status-badge.status-in-betrieb,
.status-badge.status-fertiggestellt,
.project-status-badge.status-operation,
.project-status-badge.status-betrieb,
.project-status-badge.status-in-betrieb,
.project-status-badge.status-fertiggestellt {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%) !important; /* Green - Operation */
    color: white !important;
}

.status-badge.status-verkauft,
.project-status-badge.status-verkauft {
    background: linear-gradient(135deg, #9C27B0, #7B1FA2) !important; /* Purple - Sold */
    color: white !important;
}

/* Default status */
.status-badge.status-unknown,
.status-badge {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%); /* Gray - Unknown */
}

/* Project list item specific status badge styling */
.project-list-item .status-badge {
    margin-bottom: 0;
    margin-left: auto; /* Push to right in list view */
}

/* Project Image Manager Modal Specific Styles */
#projectImageManagerModal .project-image-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f5f5f5;
    border-radius: 8px;
}

#projectImageManagerModal .filter-group {
    flex: 1;
}

#projectImageManagerModal .filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

#projectImageManagerModal .filter-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#projectImageManagerModal .control-group {
    flex-shrink: 0;
}

#projectImageManagerModal .btn-refresh {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

#projectImageManagerModal .project-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

#projectImageManagerModal .project-image-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

#projectImageManagerModal .project-image-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

#projectImageManagerModal .project-image-preview {
    width: 100%;
    height: 200px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#projectImageManagerModal .project-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#projectImageManagerModal .project-image-preview.no-image {
    background: #f9f9f9;
    flex-direction: column;
    gap: 0.5rem;
}

#projectImageManagerModal .project-image-preview.no-image svg {
    color: #ccc;
}

#projectImageManagerModal .project-image-preview.no-image span {
    color: #999;
    font-size: 0.875rem;
}

#projectImageManagerModal .project-image-info {
    padding: 1rem;
}

#projectImageManagerModal .project-image-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

#projectImageManagerModal .project-image-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #666;
}

#projectImageManagerModal .project-image-actions {
    display: flex;
    gap: 0.5rem;
}

#projectImageManagerModal .btn-image-action {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.875rem;
}

#projectImageManagerModal .loading-state {
    text-align: center;
    padding: 3rem;
}

#projectImageManagerModal .loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #74b72a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

#projectImageManagerModal .no-projects-found {
    text-align: center;
    padding: 3rem;
    color: #666;
}

/* =============================
   Vermittler-Portal – Clean & Minimal Styles
   ============================= */
/* Category cards */
.portal-management-grid .management-category {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.portal-management-grid .management-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
/* Category header */
.management-category .category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.management-category .category-icon {
    background: linear-gradient(135deg, #74b72a 0%, #558b2f 100%);
    color: #fff;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}
.management-category .category-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.2px;
}
.management-category .category-content h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}
.management-category .category-content p {
    margin: 0;
    color: #4b5563;
    font-size: 0.925rem;
}
/* Action items */
.management-category .category-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(220px,1fr));
    gap: 1rem;
}
.action-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.6rem; /* Reduziert von 1rem für weniger weißen Raum */
    display: flex;
    gap: 0.75rem;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.action-item:hover {
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
.action-item .action-icon {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: #0284c7;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}
.action-item:hover .action-icon {
    background: linear-gradient(135deg, #74b72a 0%, #5a9d20 100%);
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(116, 183, 42, 0.25);
    border-color: transparent;
}
.action-item .action-icon svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    z-index: 2;
}

/* Subtle pulse animation on hover */
.action-item:hover .action-icon svg {
    transform: scale(1.1);
}

/* Add a subtle glow effect */
/* Removed decorative pseudo-element styling */

/* Different color variants for different action types */
.action-item[data-action-type="upload"] .action-icon,
.action-item.action-upload .action-icon {
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    color: #6366f1;
}

.action-item[data-action-type="upload"]:hover .action-icon,
.action-item.action-upload:hover .action-icon {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

.action-item[data-action-type="view"] .action-icon,
.action-item.action-view .action-icon {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
}

.action-item[data-action-type="view"]:hover .action-icon,
.action-item.action-view:hover .action-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
}

.action-item[data-action-type="manage"] .action-icon,
.action-item.action-manage .action-icon {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    color: #ec4899;
}

.action-item[data-action-type="manage"]:hover .action-icon,
.action-item.action-manage:hover .action-icon {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.25);
}

.action-item .action-content {
    display: flex;
    flex-direction: column;
}
.action-item .action-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}
.action-item .action-desc {
    font-size: 0.8rem;
    color: #6b7280;
}
/* Portal Modals */
/* Portal Modal Container */
.portal-modal { 
    position: fixed !important; 
    top: 0 !important; 
    left: 0 !important; 
    width: 100% !important; 
    height: 100% !important; 
    background-color: rgba(0, 0, 0, 0.7) !important; 
    z-index: 9999 !important; 
    display: none !important; 
    align-items: center !important; 
    justify-content: center !important; 
    padding: 20px;
    overflow-y: auto;
}

/* Modal Content Styling */
.portal-modal-content {
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15) !important;
    width: 90% !important;
    max-width: 900px !important;
    max-height: 85vh !important;
    margin: auto !important;
    overflow-y: auto !important; /* Enable vertical scrolling */
    overflow-x: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    padding: 20px !important;
}

/* Active Modal State */
.portal-modal.modal-active {
    display: flex !important;
    opacity: 1 !important;
}

/* Close Button Styling */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    font-size: 24px;
    color: #6b7280;
    z-index: 1;
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: #1f2937;
    transform: scale(1.1);
}

/* Keep .content-panel for backward compatibility */
.content-panel {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    width: 85%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
    z-index: 9999;
}
.content-panel.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}
.content-panel .panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.75rem;
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
}
.content-panel .panel-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}
.content-panel .close-panel {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}
.content-panel .close-panel:hover {
    color: #ef4444;
    transform: rotate(90deg);
}
.content-panel .panel-content {
    padding: 1.75rem;
    overflow-y: auto;
    max-height: calc(90vh - 60px); /* Subtracting header height */
}
/* Smooth fade-in for cards inside panels */
.content-panel .project-card {
    animation: fadeSlideIn 0.4s ease both;
}
@keyframes fadeSlideIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}
/* Loading spinner minimal */
.loading-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #74b72a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =============================
   Projects Page Dynamic Layout 
   ============================= */
.page-template-page-projekte .filters-sidebar {
    transition: all 0.3s ease;
}

/* When filters are hidden */
.page-template-page-projekte .filters-sidebar[style*="display: none"] + .main-content {
    width: 100%;
    margin: 0 auto;
}

/* Better layout for projects page */
.page-template-page-projekte .page-content {
    display: block; /* Override flex to prevent layout issues */
}

.page-template-page-projekte .main-content {
    width: 100%;
}

/* Ensure list section displays properly */
#projects-list-section {
    width: 100%;
}

#projects-list-section .project-cards-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* View switcher removed - filters and list are now always visible */

/* Map section spacing */
#projects-map-section {
    margin-bottom: 2rem;
}

/* List section styling */
#projects-list-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    animation: slideDown 0.3s ease-out;
}

#projects-list-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive grid for project cards list */
@media (max-width: 1200px) {
    #projects-list-section .project-cards-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 900px) {
    #projects-list-section .project-cards-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    #projects-list-section .project-cards-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ==========================================================================
   Front Page Button Size Optimization - Larger text and uniform padding
   ========================================================================== */
/* Hero section buttons - uniform padding with others */
.home .hero-cta .btn,
.home .hero-buttons .btn {
    padding: 0.48rem 1.2rem !important; /* 20% larger padding for uniformity */
    font-size: 1.14rem !important; /* 30% larger text: 0.875rem * 1.3 */
    height: auto !important;
    line-height: 1.2 !important;
    border-width: 2px !important; /* Keep original border thickness */
    margin: 0 0.3rem !important; /* Balanced spacing */
}

/* CTA Card buttons */
.home .cta-card .btn {
    padding: 0.42rem 1.02rem !important; /* 20% larger padding */
    font-size: 1.1rem !important; /* 30% larger text: 0.85rem * 1.3 */
    height: auto !important;
    line-height: 1.2 !important;
    min-height: unset !important;
}

/* Other section buttons */
.home .intro-content .btn,
.home .section-cta .btn {
    padding: 0.48rem 1.2rem !important; /* 20% larger padding */
    font-size: 1.14rem !important; /* 30% larger text: 0.875rem * 1.3 */
    height: auto !important;
    line-height: 1.2 !important;
    min-height: unset !important;
}

/* Hero button container spacing */
.home .hero-cta {
    gap: 0.6rem !important;
}

/* ==========================================================================
   Project List Item Location Icon Alignment Fix
   ========================================================================== */
.project-list-item-meta {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-list-item-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.project-list-item-meta svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 0.05rem; /* Slight adjustment for text baseline alignment */
}

/* ==========================================================================
   Fix: Startseite Portfolio-Karten Styling - NUR für Homepage
   ========================================================================== */
/* FIX 1: Weißer Text auf grünem Button - NUR auf Startseite */
.home .project-card .btn-secondary {
    background: linear-gradient(135deg, var(--primary-color, #74b72a), #5a9d20) !important;
    color: white !important;
    border: none !important;
}

.home .project-card .btn-secondary:hover {
    background: linear-gradient(135deg, var(--dark-green, #558B2F), #4a7b25) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(116, 183, 42, 0.3);
}

/* FIX 2: Einheitliche Kartenhöhe - NUR auf Startseite */
.home .project-card {
    min-height: 420px !important;
    display: flex;
    flex-direction: column;
}

.home .project-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* FIX 3: Bessere Ausrichtung der Inhalte - NUR auf Startseite */
.home .project-card-image {
    height: 200px !important; /* Einheitliche Bildhöhe */
}

.home .project-card .project-card-title {
    min-height: 2.5rem; /* Platz für 2-zeilige Titel */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   Modern Hero Section Redesign - Startseite
   ========================================================================== */
.hero-modern {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 50%, #dcfce7 100%);
}

.hero-background-modern {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(116,183,42,0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(156,204,101,0.06) 0%, transparent 50%),
                radial-gradient(circle at 90% 80%, rgba(197,225,165,0.05) 0%, transparent 40%);
}

.hero-pattern-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: repeating-linear-gradient(45deg, 
        transparent,
        transparent 35px,
        rgba(116,183,42,0.1) 35px,
        rgba(116,183,42,0.1) 70px);
}

.hero-content-modern {
    position: relative;
    z-index: 1;
    padding: 3rem 0;
}

.hero-header-modern {
    text-align: center;
    margin-bottom: 3rem;
}

.hero-title-modern {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-title-modern .title-line-1 {
    display: block;
    margin-bottom: 0.5rem;
}

.hero-title-modern .title-line-2 {
    display: block;
    font-size: 0.85em;
}

.hero-title-modern .gradient-text {
    background: linear-gradient(135deg, #74b72a 0%, #5a9023 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-trust-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding: 1rem 2rem;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    display: inline-flex;
    border: 1px solid rgba(116,183,42,0.1);
}

.trust-item-inline {
    color: #64748b;
    font-size: 1rem;
}

.trust-item-inline strong {
    color: #74b72a;
    font-weight: 700;
    font-size: 1.25rem;
}

.trust-separator {
    color: #cbd5e1;
}

/* Dual Path Cards */
.hero-dual-path {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.hero-path-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid rgba(116,183,42,0.1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    overflow: hidden;
}

.hero-path-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #74b72a 0%, #5a9023 100%);
}

.hero-path-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(116,183,42,0.15);
    border-color: rgba(116,183,42,0.2);
}

.card-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #15803d;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-path-card .card-title {
    color: #1a202c;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.card-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.card-benefits li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: #4a5568;
}

.check-icon {
    width: 20px;
    height: 20px;
    color: #22c55e;
    margin-right: 0.75rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.card-benefits strong {
    color: #1a202c;
    font-weight: 600;
}

.btn-card {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #74b72a 0%, #5a9023 100%);
    color: white !important;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(116,183,42,0.3);
}

.btn-card:hover {
    background: linear-gradient(135deg, #5a9023 0%, #4a7520 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(116,183,42,0.4);
}

.btn-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn-card:hover .btn-arrow {
    transform: translateX(4px);
}

/* Scroll Indicator */
.hero-scroll-indicator {
    text-align: center;
    animation: bounce 2s infinite;
    color: #64748b;
}

.scroll-text {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    color: #74b72a;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-modern {
        min-height: auto;
        padding: 4rem 0 2rem;
    }
    
    .hero-title-modern {
        font-size: 2rem;
    }
    
    .hero-trust-bar {
        padding: 0.75rem 1.5rem;
        gap: 1rem;
    }
    
    .trust-item-inline {
        font-size: 0.875rem;
    }
    
    .trust-item-inline strong {
        font-size: 1rem;
    }
    
    .hero-dual-path {
        grid-template-columns: 1fr;
    }
    
    .hero-path-card {
        padding: 2rem 1.5rem;
    }
    
    .hero-scroll-indicator {
        display: none;
    }
}

/* ==========================================================================
   Fix for Projects Page Navigation Highlighting
   ========================================================================== */
/* Force active styling for projects navigation when on projects page */
.page-projects-active .main-navigation a[href*="projekte"],
.page-projects-active .main-navigation a[href*="project_solar_anlage"],
.page-projects-active .main-navigation a[href*="archive_projekte"] {
    color: var(--primary-color, #74b72a) !important;
    background: linear-gradient(135deg, rgba(116,183,42,0.1), rgba(85,139,47,0.05));
    position: relative;
    border-radius: 4px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.page-projects-active .main-navigation a[href*="projekte"]:hover,
.page-projects-active .main-navigation a[href*="project_solar_anlage"]:hover,
.page-projects-active .main-navigation a[href*="archive_projekte"]:hover {
    background: linear-gradient(135deg, rgba(116,183,42,0.2), rgba(85,139,47,0.1));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(116,183,42,0.2);
}

/* Desktop-specific */
@media (min-width: 769px) {
    .page-projects-active .main-navigation a[href*="projekte"],
    .page-projects-active .main-navigation a[href*="project_solar_anlage"],
    .page-projects-active .main-navigation a[href*="archive_projekte"] {
        padding: 0.6rem 1rem;
        margin: 0 0.2rem;
    }
}

/* Mobile-specific */
@media (max-width: 768px) {
    .page-projects-active .main-navigation a[href*="projekte"],
    .page-projects-active .main-navigation a[href*="project_solar_anlage"],
    .page-projects-active .main-navigation a[href*="archive_projekte"] {
        background: linear-gradient(135deg, var(--primary-color, #74b72a), var(--dark-green, #558B2F));
        color: white !important;
        border-radius: 6px;
        margin: 0.2rem 1rem;
        box-shadow: 0 2px 8px rgba(116,183,42,0.3);
    }
    
    .page-projects-active .main-navigation a[href*="projekte"]:hover,
    .page-projects-active .main-navigation a[href*="project_solar_anlage"]:hover,
    .page-projects-active .main-navigation a[href*="archive_projekte"]:hover {
        background: linear-gradient(135deg, var(--dark-green, #558B2F), #4a7b25);
        box-shadow: 0 4px 12px rgba(116,183,42,0.4);
    }
}

/* ==========================================================================
   Installation Standards Section Styling (Quality Page)
   ========================================================================== */
.installation-standards-section .section-intro {
    font-size: 1.15rem;
    color: #666;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.installation-standards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.standard-item {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: left;
}

.standard-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: var(--primary-color, #74b72a);
}

.standard-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color, #74b72a), #5a9d20);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.standard-item:hover::before {
    transform: scaleY(1);
}

.standard-content {
    width: 100%;
}

.standard-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-green, #558B2F);
    margin: 0 0 1rem 0;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.standard-content h4::before {
    content: '✓';
    color: var(--primary-color, #74b72a);
    font-weight: 900;
    font-size: 1.1rem;
    background: rgba(116, 183, 42, 0.1);
    border-radius: 50%;
    width: 1.8rem;
    height: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.standard-content p {
    font-size: 1rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .installation-standards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .standard-item {
        padding: 1.75rem;
    }
}

@media (max-width: 767px) {
    .installation-standards-section .section-intro {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .standard-item {
        padding: 1.5rem;
    }
    
    .standard-content h4 {
        font-size: 1.1rem;
        gap: 0.6rem;
    }
    
    .standard-content h4::before {
        font-size: 1rem;
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .standard-content p {
        font-size: 0.95rem;
    }
}
