:root {
    --primary: #0066cc;
    --primary-dark: #004d99;
    --secondary: #0a1f33;
    /* Dark Blue from Mockup footer and cta */
    --secondary-light: #15385c;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #f5f8fa;
    --bg-white: #ffffff;

    --severity-red: #d32f2f;
    --severity-red-bg: #ffebee;
    --severity-yellow: #fbc02d;
    --severity-yellow-bg: #fff9c4;
    --severity-green: #388e3c;
    --severity-green-bg: #e8f5e9;

    --font-main: 'Inter', sans-serif;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

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

.bg-light {
    background-color: var(--bg-light);
}

.text-white {
    color: white;
}

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

.section-subtitle {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 20px;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Header */
.main-header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar {
    background-color: #175470;
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.top-bar-container div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    object-fit: contain;
}

.header-contact a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.header-contact a:hover {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-white {
    background-color: white;
    color: var(--secondary);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-outline-white {
    background-color: transparent;
    border-color: white;
    color: white;
}

.btn-outline-white:hover {
    background-color: white;
    color: var(--secondary);
}

/* Hero Section */
.hero {
    position: relative;
    background-image: url('./images/hero.png');
    background-color: var(--secondary);
    background-size: cover;
    background-position: center;
    color: white;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 30px;
    padding-bottom: 50px;
}

/* Hide overlay to keep image bright */
.hero-overlay {
    display: none;
}

.hero-top-text {
    position: relative;
    z-index: 2;
    color: #175470;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(255,255,255,0.8);
    text-align: left; /* linksbündig */
    width: 100%;
}

.hero-bottom-area {
    position: relative;
    z-index: 2;
    width: 100%;
    background-color: rgba(18, 59, 87, 0.85); /* background spans entire width */
    padding: 15px 0 25px 0; /* schmaler in der höhe */
}

.hero-headline-bg {
    margin-bottom: 20px; /* reduced space */
}

.hero-headline-bg h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
    text-align: center; /* keep h1 centered or left? The mockup shows it left aligned! Let me left-align it. */
    text-align: left;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 30px; /* less gap */
    flex-wrap: nowrap; /* enforce side-by-side */
    width: 100%;
}

.hero-btn-col {
    flex: 0 0 auto;
}

.btn-large {
    padding: 12px 35px; /* less padding for a 'schmaler' height */
    font-size: 1.15rem;
    background-color: #0088cc;
}

.btn-large:hover {
    background-color: #006699;
}

.hero-text-col {
    flex: 1; /* expand on area */
}

.hero-text-col p {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.4;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    text-align: left;
}

/* Plant Overview Section */
.plant-overview {
    background-color: var(--secondary);
    color: white;
}

.plant-overview .section-title {
    color: white;
}

.plant-overview .section-subtitle {
    color: #4da6ff;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.detail-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.detail-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.detail-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: 1px;
}

.detail-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Issues Section */
.issue-category {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    margin-bottom: 40px;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.issue-category-header {
    display: flex;
    align-items: center;
    padding: 20px 30px;
    gap: 15px;
    font-weight: 700;
    font-size: 1.25rem;
}

.severity-badge {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1rem;
}

/* Severity Colors */
.issue-category[data-severity="red"] .issue-category-header {
    background-color: var(--severity-red-bg);
    color: var(--severity-red);
}

.issue-category[data-severity="red"] .severity-badge {
    background-color: var(--severity-red);
}

.issue-category[data-severity="yellow"] .issue-category-header {
    background-color: var(--severity-yellow-bg);
    color: #b8860b;
}

.issue-category[data-severity="yellow"] .severity-badge {
    background-color: #f39c12;
}

.issue-category[data-severity="green"] .issue-category-header {
    background-color: var(--severity-green-bg);
    color: var(--severity-green);
}

.issue-category[data-severity="green"] .severity-badge {
    background-color: var(--severity-green);
}

.issue-item {
    padding: 30px;
    border-top: 1px solid #eee;
}

.issue-item-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.issue-item-status {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

.issue-category[data-severity="red"] .issue-item-status {
    background-color: var(--severity-red);
}

.issue-category[data-severity="yellow"] .issue-item-status {
    background-color: #f39c12;
}

.issue-category[data-severity="green"] .issue-item-status {
    background-color: var(--severity-green);
}

.issue-item-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0;
}

.issue-desc {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.issue-measures {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    border-left: 3px solid var(--primary);
}

.issue-measures h6 {
    font-size: 0.95rem;
    color: var(--secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.measures-list {
    list-style: none;
}

.measures-list li {
    position: relative;
    padding-left: 25px;
    color: var(--text-main);
    margin-bottom: 8px;
    font-weight: 500;
}

.measures-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary);
    position: absolute;
    left: 0;
    top: 2px;
}

.issue-table-wrap {
    overflow-x: auto;
}

.issue-cost-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.issue-cost-table th {
    background-color: #f8f9fa;
    color: var(--text-muted);
    font-weight: 600;
    text-align: left;
    padding: 12px 20px;
    border-bottom: 2px solid #ddd;
}

.issue-cost-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    color: var(--text-main);
}

.issue-cost-table tr:hover td {
    background-color: #fcfcfc;
}

.issue-total-cost {
    text-align: right;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.issue-total-cost span {
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
}

.issue-total-cost strong {
    font-size: 1.5rem;
    color: var(--primary);
}

/* Cost Summary Section */
.cost-summary {
    background-color: var(--secondary);
    background-image: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
    margin-top: 30px;
}

.summary-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.summary-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.summary-card i {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.summary-val {
    display: block;
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.summary-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.total-cost-box {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--secondary);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    flex-wrap: wrap;
    gap: 30px;
}

.total-text h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.total-text p {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0;
}

.total-amount {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

/* Services Sections Static */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    text-align: left;
    transition: var(--transition);
}

.service-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.service-card-link:hover,
.service-card-link:focus-visible {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background-color: #eaeaea;
    /* fallback */
}

.service-card h4 {
    padding: 25px 25px 15px;
    font-size: 1.25rem;
    color: var(--secondary);
    font-weight: 700;
}

.service-card ul {
    list-style: none;
    padding: 0 25px 35px;
}

.service-card ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.service-card ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary);
    position: absolute;
    left: 0;
    top: 2px;
}

/* CTA & Footer */
.cta {
    background-color: var(--primary);
    color: white;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    flex-wrap: wrap;
    font-weight: 500;
}

.trust-indicators i {
    color: #fff;
    margin-right: 5px;
}

.main-footer {
    background-color: #05101a;
    color: white;
    padding-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-info img {
    height: 40px;
    margin-bottom: 25px;
    filter: brightness(0) invert(1);
}

.footer-info p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

.footer-links h4 {
    margin-bottom: 25px;
    color: white;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
}

/* Loader */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.loader {
    border: 4px solid rgba(0, 102, 204, 0.1);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }

    .hero-headline-bg h1 {
        font-size: 2rem;
    }

    .hero {
        padding-top: 20px;
        padding-bottom: 40px;
        min-height: auto;
        gap: 40px;
    }
    
    .hero-actions {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .hero-text-col p {
        text-align: center;
    }

    .total-cost-box {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .total-amount {
        font-size: 3rem;
    }

    .trust-indicators {
        gap: 15px;
        flex-direction: column;
    }

    .full-width-mobile {
        width: 100%;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}
