/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    overflow-x: hidden;
    max-width: 100%;
}

:root {
    --red: #e02020;
    --red-dark: #b01818;
    --navy: #1a2f5a;
    --navy-light: #2a4494;
    --white: #ffffff;
    --gray-50: #f8f9fb;
    --gray-100: #f0f2f5;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --radius: 14px;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
    --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: var(--gray-700);
    line-height: 1.65;
    background: #fff;
    padding-top: 80px;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.08);
    z-index: 1000;
    transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.12); }

.nav-container {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 24px;
}
.logo-img { height: 56px; width: auto; }

.nav-links { display: flex; list-style: none; gap: 32px; align-items: center; }
.nav-links a {
    text-decoration: none; color: var(--gray-700); font-weight: 500;
    font-size: 0.95rem; transition: color var(--transition); position: relative;
}
.nav-links a:hover { color: var(--red); }
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px; background: var(--red); transition: width var(--transition);
}
.nav-links a:hover::after { width: 100%; }

.nav-cta {
    background: var(--red) !important; color: #fff !important;
    padding: 10px 24px; border-radius: 50px; font-weight: 600 !important;
    transition: all var(--transition) !important;
}
.nav-cta:hover { background: var(--red-dark) !important; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(224,32,32,0.35); }
.nav-cta::after { display: none !important; }

.menu-toggle { display: none; flex-direction: column; cursor: pointer; gap: 5px; }
.menu-toggle span { width: 24px; height: 2.5px; background: var(--gray-900); transition: all var(--transition); border-radius: 2px; }

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.48), rgba(0,0,0,0.52)), url('backerground.png');
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: #fff;
    padding: 120px 24px 100px;
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(8px);
    color: #fff; padding: 8px 20px; border-radius: 50px;
    font-size: 0.85rem; font-weight: 500; letter-spacing: 0.5px;
    margin-bottom: 28px;
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 800; line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeInDown 0.9s ease both;
}
.hero-accent { color: var(--red); }

.hero p {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    opacity: 0.92; margin-bottom: 44px; font-weight: 300;
    animation: fadeInDown 0.9s 0.15s ease both;
}

.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; animation: fadeInDown 0.9s 0.3s ease both; }

.cta-button {
    display: inline-block; background: var(--red); color: #fff;
    padding: 16px 40px; text-decoration: none; border-radius: 50px;
    font-size: 1rem; font-weight: 700; transition: all var(--transition);
    box-shadow: 0 6px 24px rgba(224,32,32,0.4);
}
.cta-button:hover { background: var(--red-dark); transform: translateY(-3px); box-shadow: 0 10px 32px rgba(224,32,32,0.5); }

.cta-outline {
    display: inline-block; background: rgba(255,255,255,0.1); color: #fff;
    padding: 16px 40px; text-decoration: none; border-radius: 50px;
    font-size: 1rem; font-weight: 600; border: 2px solid rgba(255,255,255,0.6);
    transition: all var(--transition);
}
.cta-outline:hover { background: rgba(255,255,255,0.22); transform: translateY(-3px); }

.cta-small { padding: 12px 28px; font-size: 0.92rem; margin-top: 24px; }

.hero-scroll-hint {
    position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
    z-index: 2;
}
.hero-scroll-hint span {
    display: block; width: 22px; height: 36px; border: 2px solid rgba(255,255,255,0.5);
    border-radius: 12px; position: relative;
}
.hero-scroll-hint span::after {
    content: ''; position: absolute; left: 50%; top: 6px;
    transform: translateX(-50%);
    width: 4px; height: 8px; background: #fff;
    border-radius: 2px; animation: scrollDot 1.8s infinite;
}

/* ===== STATS ===== */
.stats-section {
    background: var(--navy);
    padding: 48px 24px;
}
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 24px; text-align: center;
}
.stat-item { padding: 20px; }
.stat-number {
    font-size: 2.8rem; font-weight: 800; color: #fff;
    line-height: 1; margin-bottom: 8px;
}
.stat-label { font-size: 0.9rem; color: rgba(255,255,255,0.7); font-weight: 400; }

/* ===== SECTION HELPERS ===== */
.section-tag {
    display: inline-block; color: var(--red);
    font-size: 0.8rem; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; margin-bottom: 12px;
}
.section-header { text-align: center; margin-bottom: 56px; }
h2 {
    font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800;
    color: var(--navy); line-height: 1.15; margin-bottom: 12px;
}
.section-title-left { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; color: var(--navy); line-height: 1.15; margin-bottom: 20px; }
.section-sub { font-size: 1.05rem; color: var(--gray-500); max-width: 520px; margin: 0 auto; }

/* ===== ABOUT ===== */
.about-section { padding: 100px 24px; background: var(--gray-50); }
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
}
.about-text p { color: var(--gray-500); margin-bottom: 16px; font-size: 1.02rem; line-height: 1.75; }

.about-values { display: flex; flex-direction: column; gap: 20px; }
.value-card {
    display: flex; align-items: flex-start; gap: 20px;
    background: #fff; padding: 24px 28px; border-radius: var(--radius);
    box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition);
    border-left: 4px solid var(--red);
}
.value-card:hover { transform: translateX(6px); box-shadow: var(--shadow-lg); }
.value-icon { font-size: 1.6rem; flex-shrink: 0; margin-top: 2px; }
.value-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.value-card p { font-size: 0.9rem; color: var(--gray-500); margin: 0; }

/* ===== LEISTUNGEN ===== */
.services-section { padding: 100px 24px; background: #fff; }
.services {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
    max-width: 1200px; margin: 0 auto;
}
.service-card {
    background: #fff; padding: 40px 32px; border-radius: var(--radius);
    box-shadow: var(--shadow); transition: all var(--transition);
    border-top: 4px solid transparent; cursor: pointer;
    display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-top-color: var(--red); }
.service-icon-wrap { font-size: 2.8rem; margin-bottom: 20px; }
.service-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.service-card p { font-size: 0.95rem; color: var(--gray-500); line-height: 1.7; flex: 1; }
.service-link { display: inline-block; margin-top: 20px; color: var(--red); font-weight: 600; font-size: 0.88rem; transition: letter-spacing var(--transition); }
.service-card:hover .service-link { letter-spacing: 0.5px; }

/* ===== GALERIE ===== */
.gallery-section { padding: 100px 24px; background: var(--gray-50); }
.gallery-filters {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 48px;
}
.filter-btn {
    padding: 10px 26px; border: 2px solid var(--gray-300);
    background: #fff; color: var(--gray-700); border-radius: 50px;
    cursor: pointer; font-size: 0.9rem; font-weight: 600;
    transition: all var(--transition); font-family: inherit;
}
.filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.filter-btn.active { background: var(--red); border-color: var(--red); color: #fff; }

.gallery {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px; max-width: 1200px; margin: 0 auto;
}
.gallery-item {
    position: relative; overflow: hidden; border-radius: var(--radius);
    box-shadow: var(--shadow); aspect-ratio: 4/3; background: var(--gray-100);
    cursor: pointer; transition: all var(--transition);
}
.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }
.gallery-item.hidden { display: none; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-label {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff; padding: 36px 20px 18px;
    font-size: 1rem; font-weight: 600;
}

/* ===== KONTAKT ===== */
.contact-section-wrapper { padding: 100px 24px; background: #fff; }
.contact-grid {
    display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start;
}

.contact-form-wrap {
    background: var(--gray-50); padding: 48px; border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 24px; }
.form-group label {
    display: block; margin-bottom: 8px; color: var(--navy);
    font-weight: 600; font-size: 0.9rem;
}
.form-group input,
.form-group textarea {
    width: 100%; padding: 14px 16px;
    border: 2px solid var(--gray-300); border-radius: 10px;
    font-size: 0.97rem; transition: all var(--transition);
    font-family: inherit; background: #fff; color: var(--gray-900);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none; border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(42,68,148,0.1);
}
.form-group textarea { min-height: 130px; resize: vertical; }

/* Checkboxen */
.checkbox-group { display: flex; flex-wrap: wrap; gap: 12px; }
.checkbox-item {
    display: flex; align-items: center; gap: 8px;
    cursor: pointer; font-size: 0.9rem; font-weight: 500; color: var(--gray-700);
    background: #fff; padding: 10px 16px; border-radius: 8px;
    border: 2px solid var(--gray-300); transition: all var(--transition);
}
.checkbox-item input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--red); cursor: pointer; }
.checkbox-item:hover { border-color: var(--red); color: var(--red); }

.submit-button {
    width: 100%; padding: 16px; background: var(--red);
    color: #fff; border: none; border-radius: 10px;
    font-size: 1rem; font-weight: 700; cursor: pointer;
    transition: all var(--transition); font-family: inherit;
    box-shadow: 0 4px 16px rgba(224,32,32,0.3);
}
.submit-button:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(224,32,32,0.4); }

.success-message {
    background: #16a34a; color: #fff;
    padding: 16px 20px; border-radius: 10px;
    margin-bottom: 24px; text-align: center; font-weight: 600;
}

/* Kontakt-Info Card */
.contact-info-wrap { position: sticky; top: 100px; }
.contact-info-card {
    background: var(--navy); color: #fff;
    padding: 40px 36px; border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.contact-info-card h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 32px; }
.contact-info-item {
    display: flex; align-items: flex-start; gap: 16px; margin-bottom: 28px;
}
.ci-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.contact-info-item strong { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.6); margin-bottom: 4px; }
.contact-info-item a { color: #fff; text-decoration: none; font-weight: 500; transition: color var(--transition); display: block; }
.contact-info-item a:hover { color: #f87171; }
.contact-info-item span { font-size: 0.95rem; color: rgba(255,255,255,0.85); line-height: 1.6; }

.contact-social { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.15); }
.contact-social p { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.6); margin-bottom: 12px; }
.social-btn {
    display: inline-block; background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25); color: #fff;
    padding: 10px 20px; border-radius: 50px; text-decoration: none;
    font-size: 0.9rem; font-weight: 500; transition: all var(--transition);
}
.social-btn:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }

/* ===== FOOTER ===== */
footer { background: var(--gray-900); color: rgba(255,255,255,0.85); padding: 72px 24px 32px; }
.footer-content {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 48px; margin-bottom: 48px;
}
.footer-section h3 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 20px; }
.footer-section p, .footer-section a {
    color: rgba(255,255,255,0.65); font-size: 0.9rem; line-height: 1.7;
    text-decoration: none; display: block; margin-bottom: 8px; transition: color var(--transition);
}
.footer-section a:hover { color: #fff; }
.social-links { display: flex; gap: 12px; margin-top: 16px; }
.social-links a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; background: rgba(255,255,255,0.08);
    border-radius: 50%; font-size: 1.2rem; transition: all var(--transition);
}
.social-links a:hover { background: var(--red); transform: translateY(-4px); }
.footer-bottom {
    text-align: center; padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.4); font-size: 0.875rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollDot {
    0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
    80%  { opacity: 0; transform: translateX(-50%) translateY(12px); }
    100% { opacity: 0; }
}

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .services { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-info-wrap { position: static; }
    .footer-content { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    body { padding-top: 70px; }

    .nav-container {
        padding: 12px 16px;
    }

    .nav-links {
        position: fixed; top: 70px; left: -100%;
        flex-direction: column; background: #fff; width: 100%;
        padding: 32px 24px; box-shadow: 0 8px 32px rgba(0,0,0,0.12);
        transition: left var(--transition); gap: 20px;
        overflow-x: hidden;
    }
    .nav-links.active { left: 0; }
    .menu-toggle { display: flex; }

    .hero {
        padding: 100px 16px 80px;
        min-height: 90vh;
    }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .hero-buttons { flex-direction: column; align-items: center; width: 100%; }
    .cta-button, .cta-outline { width: 100%; text-align: center; padding: 15px 24px; }

    .stats-section { padding: 36px 16px; }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .stat-number { font-size: 2.2rem; }

    .about-section { padding: 64px 16px; }
    .about-grid { grid-template-columns: 1fr; gap: 36px; }
    .value-card { padding: 18px 20px; }

    .services-section { padding: 64px 16px; }
    .services { grid-template-columns: 1fr; }
    .service-card { padding: 28px 24px; }

    .gallery-section { padding: 64px 16px; }
    .gallery { grid-template-columns: 1fr; }
    .gallery-filters { gap: 8px; }
    .filter-btn { padding: 8px 18px; font-size: 0.85rem; }

    .contact-section-wrapper { padding: 64px 16px; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-info-wrap { position: static; }
    .contact-form-wrap { padding: 28px 20px; }
    .form-row { grid-template-columns: 1fr; }
    .checkbox-group { gap: 8px; }

    footer { padding: 48px 16px 24px; }
    .footer-content { grid-template-columns: 1fr; gap: 28px; }

    section { padding: 64px 16px; }
    .container { padding: 0 16px; }
}