/*
Theme Name: Projecta Redesign
Author: Chana-Maria Bordtfeldt & Gemini
Description: Ein individuelles Theme für das Redesign der Projecta Solar GmbH & Co. KG Webseite, basierend auf dem Creative Workbook.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
*/

:root {
    --primary-color: #74b72a;
    --dark-green: #558B2F; /* New, lighter green for backgrounds and text */
    --white: #ffffff;
    --black: #000000;
    --light-gray: #f9f9f9;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--black);
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

/* ======================================== 
   Payment Progress Bar Styles (Global)
   ======================================== */
.payment-progress-container {
    margin-top: 0.5rem;
    width: 100%;
}

.payment-progress-bar {
    width: 100%;
    height: 20px;
    background: #f3f4f6;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}

.payment-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #74b72a 0%, #558B2F 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
    position: relative;
    box-shadow: 0 2px 4px rgba(116, 183, 42, 0.2);
}

.payment-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    border-radius: 10px;
}

.payment-progress-fill[style*="width: 100%"] {
    background: linear-gradient(90deg, #4caf50 0%, #388e3c 100%);
}

.payment-progress-text {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.payment-progress-text .amount-paid {
    color: #74b72a;
    font-weight: 600;
}

.payment-progress-text .amount-remaining {
    color: #6b7280;
}

/* ======================================== 
   Payment History Styles (Global)
   ======================================== */
.payment-history-container {
    margin-top: 0.75rem;
}

.btn-show-history {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-show-history:hover {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    transform: translateY(-1px);
}

.payment-history-details {
    margin-top: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.payment-history-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #74b72a;
}

.payment-history-item:last-child {
    margin-bottom: 0;
}

.payment-date {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

.payment-amount {
    color: #74b72a;
    font-weight: 600;
    text-align: right;
}

.payment-note {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f3f4f6;
    color: #6b7280;
    font-size: 0.875rem;
    font-style: italic;
}

.payment-updater {
    grid-column: 1 / -1;
    color: #9ca3af;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Compact history for customer view */
.payment-history-compact {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.btn-history-toggle {
    background: transparent;
    border: 1px solid #74b72a;
    color: #74b72a;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-history-toggle:hover {
    background: #74b72a;
    color: white;
}

.payment-history-list {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 6px;
}

.history-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 4px;
}

.history-entry:last-child {
    margin-bottom: 0;
}

.history-date {
    color: #6b7280;
    font-size: 0.875rem;
}

.history-amount {
    color: #74b72a;
    font-weight: 600;
}

.history-note {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-left: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --- Header & Navigation - 30% Smaller --- */
.site-header {
    background-color: var(--white);
    padding: 0.5rem 1.5rem; /* Angepasstes Padding für Logo */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05); /* Subtiler Schatten */
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
    min-height: 60px; /* Angepasste Höhe für Logo */
    max-width: 100%;
}

/* Logo Styling */
.site-branding {
    display: flex;
    align-items: center;
}

.site-logo {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.site-logo:hover {
    opacity: 0.9;
}

.header-logo {
    height: 55px; /* Deutlich größer für bessere Sichtbarkeit */
    width: auto;
    display: block;
    max-width: 100%;
    object-fit: contain;
}

/* Legacy site-title - hidden but kept for SEO/fallback */
.site-title {
    position: absolute;
    clip: rect(1px, 1px, 1px, 1px);
    overflow: hidden;
    height: 1px;
    width: 1px;
}

.main-navigation {
    flex: 1; /* Nimmt den verfügbaren Platz zwischen Logo und rechtem Rand */
    display: flex;
    justify-content: flex-end; /* Rechtsbündig standardmäßig */
    margin: 0 2rem; /* Abstand zum Logo */
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 1.2rem; /* Gleichmäßige Abstände zwischen allen Menüpunkten */
}

.main-navigation li {
    margin: 0;
    text-align: center;
}

.main-navigation a {
    text-decoration: none;
    font-weight: 600;
    color: var(--black);
    font-size: 0.98rem;
    display: block;
    white-space: nowrap;
    padding: 0.6rem 0.6rem; /* Einheitliches vertikales Padding für Alignment */
}

.main-navigation a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Redundante li a Regel entfernt - bereits durch .main-navigation a abgedeckt */

/* --- Conditional Portal Link (Service-Portal / Abmelden) --- */
/* Service-Portal link when user is logged in but OUTSIDE portal */
.main-navigation a[href*="portal"] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
}

.main-navigation a[href*="portal"] svg {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

/* Logout link when user is IN portal */
.main-navigation a[href*="wp-login.php?action=logout"] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary-color); /* Green by default */
    transition: all 0.3s ease;
}

.main-navigation a[href*="wp-login.php?action=logout"]:hover {
    color: #dc2626; /* Red on hover - signals "logout" action */
}

.main-navigation a[href*="wp-login.php?action=logout"] svg {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.main-navigation a[href*="wp-login.php?action=logout"]:hover svg {
    transform: scale(1.1) translateX(2px); /* Slight arrow animation on hover */
}

/* --- Hero Section --- */
.hero-section-home {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video-wrapper .hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This is key */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay, increased from 0.5 */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--white);
}

.hero-buttons .btn {
    padding: 0.6rem 1.4rem; /* Reduced from 1rem 2rem */
    border: 2px solid transparent;
    border-radius: 5px;
    font-weight: 600; /* Reduced from 700 */
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
    font-size: 0.9rem; /* Added smaller font size */
}

.hero-buttons .btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.hero-buttons .btn-primary:hover {
    background-color: #5a9d20; /* Etwas dunkleres Grün */
}

.hero-buttons .btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.hero-buttons .btn-secondary:hover {
    background-color: var(--white);
    color: var(--black);
}

/* --- General Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* --- General Section Styles --- */
.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-top: 0;
    margin-bottom: 3rem;
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* --- Home Page Specific --- */
.home-section {
    padding: 80px 0;
}
.home-section:nth-of-type(even) {
    background-color: var(--light-gray);
}
.dark-bg {
    background-color: var(--dark-green);
}
.dark-bg .page-title, .dark-bg .page-subtitle {
    color: var(--white);
}
.full-width-section {
    width: 100%;
    padding: 80px 0;
}

/* --- Two Column Layouts --- */
.two-columns-text {
    display: block;
}
@media (min-width: 768px) {
    .two-columns-text {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}
.two-columns-media-text {
    display: block;
}
@media (min-width: 768px) {
    .two-columns-media-text {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: start; /* Align items at the top */
    }
    .two-columns-media-text .column-media {
        order: 1; /* Default order, can be swapped */
    }
}
.two-columns-media-text img {
    width: 100%;
    min-height: 580px; /* Set minimum height to match the 4 cards */
    object-fit: cover; /* Maintain aspect ratio while filling */
    object-position: center; /* Center the image content */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ==========================================================================
   Page: Für Eigentümer / Flächen verpachten
   ========================================================================== */

.requirements-section {
    padding: 80px 0;
}

.requirements-checklist {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    gap: 20px;
}

.requirement-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.requirement-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.requirement-item.is-mandatory svg {
    color: #27ae60; /* Green */
}

.requirement-item.is-plus svg {
    color: #f2c94c; /* Yellow */
}

.renovation-section .two-columns-media-text .column-text p {
    white-space: pre-wrap;
}

/* --- Footer --- */
.site-footer {
    background-color: #222;
    color: #ccc;
    padding: 1.5rem 1rem 0.5rem;
}
.site-footer a {
    color: var(--white);
    text-decoration: none;
}
.site-footer a:hover {
    text-decoration: underline;
    color: var(--primary-color);
}
.site-footer .footer-widgets {
    padding-bottom: 1rem;
    border-bottom: 1px solid #444;
}
.site-footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
.site-footer .footer-widget-area h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.site-footer .footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.site-footer .footer-menu li {
    margin-bottom: 0.25rem;
}
.site-footer .social-links a {
    margin-right: 0.5rem;
}
.site-footer .site-info {
    padding-top: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
}
.site-footer .site-info .container {
    padding: 0.5rem 1rem 0;
}

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

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

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

/* --- Stats section --- */
.stats-section {
    background-color: var(--light-gray);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item .stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: white;
}

.stat-item .stat-label {
    font-size: 1rem;
    color: #555;
    margin-top: 5px;
}

/* --- CTA Cards --- */
.cta-cards-section {
    padding-bottom: 4rem;
}
.cta-cards-section.light-bg {
    padding-top: 4rem;
    background-color: var(--light-gray);
}
.cta-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.cta-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    text-decoration: none;
    color: var(--black);
    transition: all 0.3s ease;
}
.cta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}
.cta-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.cta-card-content {
    padding: 1.5rem;
}
.cta-card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

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

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
    color: var(--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: var(--primary-color);
    text-decoration: underline;
    text-decoration-color: var(--primary-color);
    transition: background-color 0.3s, color 0.3s;
}

.page-content a:hover {
    background-color: var(--primary-color);
    color: var(--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 var(--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;
}

/* --- 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;
}

/* ================================================
   NUCLEAR PORTAL CSS SOLUTION - ALWAYS LOADS
   ================================================ */

/* Portal Dashboard Base */
.portal-dashboard {
    background: #f1f1f1 !important;
    min-height: calc(100vh - 200px) !important;
    padding: 2rem 1rem !important;
}

/* Portal Header */
.portal-header {
    background: linear-gradient(135deg, #74b72a, #558B2F) !important;
    color: white !important;
    padding: 2rem !important;
    border-radius: 8px !important;
    margin-bottom: 2rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 1.5rem !important;
}

.portal-header *,
.portal-header h2,
.portal-header p {
    color: white !important;
}

.portal-header h2 {
    margin: 0 0 0.5rem 0 !important;
    font-size: 1.8rem !important;
    font-weight: 600 !important;
}

.portal-header p {
    margin: 0 !important;
    opacity: 0.9 !important;
    font-size: 1.1rem !important;
}

.portal-header-icon {
    width: 60px !important;
    height: 60px !important;
    background: rgba(255,255,255,0.2) !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Management Grid */
.portal-management-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
    gap: 1.5rem !important;
    margin-bottom: 2rem !important;
}

.management-category {
    background: white !important;
    border-radius: 16px !important;
    padding: 1.5rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #e5e7eb !important;
    position: relative !important;
    overflow: hidden !important;
}

.management-category::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, #74b72a 0%, #558B2F 100%) !important;
}

.management-category.full-width {
    grid-column: 1 / -1 !important;
}

/* Category Header */
.category-header {
    display: flex !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    margin-bottom: 1.5rem !important;
    padding-bottom: 1rem !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.category-icon {
    background: linear-gradient(135deg, #74b72a 0%, #558B2F 100%) !important;
    color: white !important;
    border-radius: 12px !important;
    padding: 0.75rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.category-content h3 {
    margin: 0 0 0.25rem 0 !important;
    color: #1f2937 !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
}

.category-content p {
    margin: 0 !important;
    color: #6b7280 !important;
    font-size: 0.875rem !important;
}

/* Action Items */
.action-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 6px !important;
    border: 1px solid #e5e7eb !important;
    background: #f9fafb !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    color: inherit !important;
    margin-bottom: 0.5rem !important;
}

.action-item:hover {
    background: #f3f4f6 !important;
    border-color: #74b72a !important;
    transform: translateX(2px) !important;
}

.action-icon {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
    border-radius: 4px !important;
    padding: 0.15rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #16a34a !important;
    width: 15px !important;
    height: 15px !important;
    flex-shrink: 0 !important;
    transition: all 0.3s ease !important;
}

.action-title {
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    color: #1f2937 !important;
    margin: 0 !important;
}

.action-desc {
    font-size: 0.75rem !important;
    color: #6b7280 !important;
    margin: 0 !important;
}

/* Stats Grid */
.stats-grid-compact {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 1rem !important;
    margin-bottom: 1rem !important;
}

/* stat-card-mini removed - using portal-dashboard.css as single source */

.stat-icon {
    background: rgba(255,255,255,0.2) !important;
    border-radius: 8px !important;
    padding: 0.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.stat-number {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

.stat-label {
    font-size: 0.875rem !important;
    opacity: 0.9 !important;
    margin: 0 !important;
}

/* Buttons */
.btn-primary,
.portal-button,
.action-btn,
.modern-btn {
    background: #74b72a !important;
    color: white !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

.btn-primary:hover,
.portal-button:hover,
.action-btn:hover,
.modern-btn:hover {
    background: #558B2F !important;
    color: white !important;
    text-decoration: none !important;
}

/* Project Items */
.project-item-compact {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    padding: 1rem !important;
    background: #f9fafb !important;
    border-radius: 8px !important;
    border: 1px solid #e5e7eb !important;
    margin-bottom: 1rem !important;
}

.project-item-compact:hover {
    background: white !important;
    border-color: #74b72a !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
}

.modern-project-card {
    background: white !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #e5e7eb !important;
    transition: all 0.3s ease !important;
    margin-bottom: 1.5rem !important;
}

.modern-project-card:hover {
    box-shadow: 0 8px 25px -3px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-2px) !important;
}

.project-title {
    font-weight: 500 !important;
    color: #1f2937 !important;
    margin-bottom: 0.25rem !important;
    font-size: 0.875rem !important;
}

.project-meta {
    display: flex !important;
    gap: 1rem !important;
    font-size: 0.75rem !important;
    color: #6b7280 !important;
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.5rem !important;
    border-radius: 4px !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
}

.status-planung {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
    color: white !important;
}

.status-bau {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%) !important;
    color: white !important;
}

.status-betrieb,
.status-fertiggestellt {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%) !important;
    color: white !important;
}

.status-unbekannt {
    background: #6b7280 !important;
    color: white !important;
}

.modern-status-badge {
    padding: 0.5rem 1rem !important;
    border-radius: 20px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
}

/* Progress bars */
.progress-bar-small {
    height: 6px !important;
    background: #e0e0e0 !important;
    border-radius: 3px !important;
    overflow: hidden !important;
    flex: 1 !important;
}

.progress-fill {
    height: 100% !important;
    background: linear-gradient(90deg, #74b72a 0%, #558B2F 100%) !important;
    transition: width 0.6s ease !important;
}

.progress-container-inline {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.progress-text-inline {
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    color: #666 !important;
    white-space: nowrap !important;
}

.modern-progress-track {
    height: 8px !important;
    background: #e5e7eb !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    position: relative !important;
}

.modern-progress-fill {
    height: 100% !important;
    background: linear-gradient(90deg, #74b72a 0%, #558B2F 100%) !important;
    border-radius: 4px !important;
    transition: width 0.8s ease !important;
}

/* Content panels */
.content-panel {
    background: white !important;
    border-radius: 16px !important;
    padding: 1.5rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    margin-top: 2rem !important;
    border: 1px solid #e5e7eb !important;
}

.panel-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 1.5rem !important;
    padding-bottom: 1rem !important;
    border-bottom: 2px solid #e5e7eb !important;
}

.panel-header h3 {
    margin: 0 !important;
    color: #1f2937 !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
}

.close-panel {
    background: none !important;
    border: none !important;
    font-size: 1.5rem !important;
    cursor: pointer !important;
    color: #6b7280 !important;
    padding: 0.5rem !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
}

.close-panel:hover {
    background: #f3f4f6 !important;
    color: #1f2937 !important;
}

/* Portal Grid */
.portal-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)) !important;
    gap: 1.5rem !important;
}

/* Portal Overview Stats */
.portal-stats-overview {
    margin-bottom: 2rem !important;
}

/* Forms */
.portal-form input,
.portal-form select,
.portal-form textarea {
    width: 100% !important;
    padding: 10px !important;
    margin: 8px 0 !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
}

.portal-form button {
    background: #74b72a !important;
    color: white !important;
    padding: 12px 24px !important;
    border: none !important;
    cursor: pointer !important;
    border-radius: 4px !important;
}

.portal-form button:hover {
    background: #558B2F !important;
}

/* Modals */
/* Allow JavaScript to control visibility of portal modals */
.portal-modal {
    /* Default to hidden, but without !important so JS can override */
    display: none;
}

.portal-modal-content {
    background: white !important;
    border-radius: 8px !important;
    max-width: 90vw !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    padding: 0 !important;
}

/* Force visibility and override any hiding */
.portal-dashboard,
.portal-header,
.portal-management-grid,
.management-category,
.stats-grid-compact,
.stat-card-mini {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.portal-management-grid {
    display: grid !important;
}

.stats-grid-compact {
    display: grid !important;
}

.stat-card-mini {
    display: flex !important;
}

/* ================================================
   END NUCLEAR PORTAL CSS SOLUTION
   ================================================ */

/* ================================================
   WPFORMS GREEN BUTTON OVERRIDE
   Ensures consistent brand colors across all plugins
   ================================================ */
.jconfirm .jconfirm-box .jconfirm-buttons button.btn-green {
    background-color: #74b72a !important;
}
.jconfirm .jconfirm-box .jconfirm-buttons button.btn-green:hover {
    background-color: #5a9023 !important;
}
.jconfirm.jconfirm-type-green .jconfirm-box {
    border-top-color: #74b72a !important;
}
.jconfirm.jconfirm-type-green .jconfirm-title-c .jconfirm-icon-c {
    color: #74b72a !important;
} 