/* 
   NovaPro Bau & Reinigung GmbH 
   Modern & Professional Stylesheet 
*/

/* Local Fonts - Inter */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Color Palette */
    --color-primary: #004883;
    /* Deep Blue from Logo */
    --color-primary-dark: #003360;
    --color-secondary: #5DAE46;
    /* Fresh Green from Logo */
    --color-secondary-dark: #4a8c38;

    --color-text-main: #1f2937;
    --color-text-light: #6b7280;
    --color-background: #ffffff;
    --color-background-alt: #f3f4f6;
    --color-white: #ffffff;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;

    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text-main);
    line-height: 1.6;
    background-color: var(--color-background);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-white {
    background-color: #ffffff;
}

.section-light {
    background-color: #f8f9fa;
}

.section-alt {
    background-color: var(--color-background-alt);
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--color-primary);
}

.text-secondary {
    color: var(--color-secondary);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
}

/* --- Buttons Global Overhaul --- */
.btn {
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

/* Primärer CTA-Button */
.btn-primary {
    background-color: #5DAE46;
    color: #ffffff !important;
    border-radius: 8px;
    padding: 14px 32px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(93, 174, 70, 0.3);
    border: none;
}

.btn-primary:hover {
    background-color: #4a8c38;
    box-shadow: 0 6px 18px rgba(93, 174, 70, 0.4);
    transform: translateY(-2px);
    color: #ffffff;
}

/* Sekundärer Button */
.btn-secondary {
    background-color: transparent;
    border: 2px solid #004883;
    color: #004883;
    border-radius: 8px;
    padding: 14px 32px;
    font-weight: 600;
}

.btn-secondary:hover {
    background-color: #004883;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Specific button style for the hero banner secondary button */
.btn-hero-outline {
    background-color: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    border-radius: 8px;
    padding: 14px 32px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-hero-outline:hover {
    background-color: #ffffff;
    color: #004883 !important;
    transform: translateY(-2px);
}

/* Header & Navigation */
.header {
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
}

.logo {
    height: 90px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* Navigation Links Details */
.nav-link {
    font-weight: 500;
    color: var(--color-text-main);
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.nav-link.active {
    color: #5DAE46;
    border-bottom: 3px solid #5DAE46;
}

.nav-link:not(.active)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: #5DAE46;
    transition: width 0.3s ease;
}

.nav-link:not(.active):hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #5DAE46;
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 72, 131, 0.85) 0%, rgba(0, 51, 96, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-title {
    color: var(--color-white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 20px auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Services Grid */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* --- Karten (Service-Kästchen, Vorteile-Kästchen) --- */
.card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Accent variable default to blue */
    --card-accent: #004883;
}

.card-cleaning {
    --card-accent: #5DAE46;
}

.card-construction {
    --card-accent: #004883;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--card-accent);
    border-radius: 12px 12px 0 0;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--card-accent);
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-title {
    margin-bottom: 1rem;
}

.card-text {
    flex-grow: 1;
}

/* For Info Cards in Contact */
.info-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

/* About Preview */
.about-preview {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-image {
    flex: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Placeholder Details */
.img-placeholder-wrapper {
    background-color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.img-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #e5e7eb;
    color: transparent;
}

.about-content {
    flex: 1;
}

/* Features List */
.feature-list {
    list-style: none;
    margin-top: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.check-icon {
    color: var(--color-secondary);
    font-weight: bold;
}

/* Contact Section & Forms */
.contact-wrapper {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.contact-form-container {
    padding: 2rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #5DAE46;
    box-shadow: 0 0 0 3px rgba(93, 174, 70, 0.15);
}

/* Footer */
.footer {
    background-color: #111827;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    display: block;
}

.footer-text {
    color: #9ca3af;
    max-width: 300px;
}

.footer-heading {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #9ca3af;
}

.footer-links a:hover {
    color: var(--color-secondary);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Sticky Mobile Anruf-Button */
.mobile-sticky-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 56px;
    background-color: #5DAE46;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease;
}

.mobile-sticky-btn:hover {
    background-color: #4a8c38;
}

/* Responsive */
@media (min-width: 769px) {
    .mobile-sticky-btn {
        display: none !important;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }

    .about-preview {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .logo {
        height: 65px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        text-align: center;
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 60vh;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    body {
        padding-bottom: 56px;
    }
}

/* --- New UI Components --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    /* Fallback */
    left: 0;
    right: 0;
    background-color: var(--color-text-main);
    color: var(--color-white);
    padding: 1rem 0;
    z-index: 2000;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .cookie-banner {
        bottom: 56px;
        /* Above the mobile sticky button */
    }
}

.cookie-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-banner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .cookie-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

.maps-consent-wrapper {
    width: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="%23e5e7eb" width="100" height="100"/><path fill="%23d1d5db" d="M10 10h80v80H10zM20 20h60v60H20z"/></svg>');
    background-size: cover;
}

.form-status {
    display: block;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 500;
}

.form-status-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.form-status-error {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #ef4444;
}