/* ================================
   Farbvariablen
   ================================ */
:root {
    --primary-dark: #2c2c2c; /* Header/Footer dunkelgrau */
    --primary-medium: #444; /* mittleres Grau */
    --accent-blue: #1976d2; /* Hauptblau */
    --accent-blue-dark: #0d47a1; /* Dunkleres Blau (Hover) */
    --bg-light: #f5f5f5; /* Seitenhintergrund */
    --white: #ffffff;
    --text-dark: #222;
    --text-muted: #6c757d;
}

/* ================================
   Allgemein
   ================================ */
body {
    font-family: "Roboto", "Lucida Console", monospace;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

/* ================================
   Header mit Logo & Navigation
   ================================ */
.main-header {
    background: var(--primary-dark);
    height: 100px; /* kompakter Header */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
    z-index: 1050;
    overflow: visible; /* wichtig, damit Logo rausstehen darf */
}

.logo-header {
    max-height: 220px; /* großes Logo */
    width: auto;
    object-fit: contain;
    display: block;
    margin-top: 20px; /* schiebt das Logo optisch etwas runter */
}


/* Navigation Links */
.main-header .nav-link {
    color: var(--white) !important;
    margin: 0 15px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

    .main-header .nav-link::after {
        content: "";
        position: absolute;
        bottom: -6px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--accent-blue);
        transition: width 0.3s;
    }

    .main-header .nav-link:hover {
        color: var(--accent-blue) !important;
    }

        .main-header .nav-link:hover::after {
            width: 100%;
        }

    .main-header .nav-link.active {
        color: var(--accent-blue) !important;
        font-weight: 600;
    }

        .main-header .nav-link.active::after {
            width: 100%;
        }

/* CTA Button */
.main-header .btn-primary {
    background: var(--accent-blue);
    border: none;
    padding: 8px 18px;
    font-weight: 600;
    border-radius: 6px;
    transition: background 0.3s, transform 0.2s;
}

    .main-header .btn-primary:hover {
        background: var(--accent-blue-dark);
        transform: translateY(-2px);
    }

/* Burger Icon */
.navbar-toggler {
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    width: 1.8em;
    height: 1.8em;
}

/* ================================
   Hero-Bereich (Claim)
   ================================ */
.hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
    color: var(--white);
    text-align: center;
    padding: 60px 20px;
    border-radius: 16px;
    margin: 30px auto;
    max-width: 1200px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

    .hero h1 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 1.2rem;
        margin-bottom: 25px;
        color: rgba(255,255,255,0.9);
    }

/* ================================
   Buttons
   ================================ */
.btn-primary {
    background: var(--accent-blue);
    border: none;
    color: var(--white);
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
}

    .btn-primary:hover {
        background: var(--accent-blue-dark);
        transform: translateY(-2px);
    }

.btn-outline-dark {
    background: transparent;
    border: 2px solid var(--white);
    border-radius: 8px;
    padding: 12px 28px;
    color: var(--white);
    font-weight: 600;
    transition: all 0.3s;
}

    .btn-outline-dark:hover {
        background: var(--accent-blue);
        border-color: var(--accent-blue);
        color: var(--white);
    }

/* ================================
   Cards (Service + Content)
   ================================ */
.card,
.service-card {
    border-radius: 16px;
    background: var(--white);
    color: var(--text-dark);
    border: none;
    padding: 25px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

    .card:hover,
    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    }

    .card h2,
    .card h3,
    .card h4,
    .service-card-title {
        color: var(--accent-blue);
        margin-bottom: 15px;
        font-weight: 700;
    }

    .card p,
    .service-card-text {
        color: var(--text-muted);
    }

    .card .icon,
    .service-card .icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
        color: var(--accent-blue);
    }

/* ================================
   Formulare
   ================================ */
form .form-control {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 12px;
    background: #fff;
    color: var(--text-dark);
    transition: border 0.3s, box-shadow 0.3s;
}

    form .form-control:focus {
        border-color: var(--accent-blue);
        box-shadow: 0 0 6px rgba(25, 118, 210, 0.3);
        outline: none;
    }

form .form-label {
    font-weight: 600;
    color: var(--accent-blue);
}

/* ================================
   Footer
   ================================ */
footer {
    background: var(--primary-dark);
    color: var(--white);
    font-size: 0.95rem;
    padding: 40px 0;
    margin-top: 40px;
    text-align: center;
}

    footer a {
        color: var(--white);
        margin: 0 10px;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s;
    }

        footer a:hover {
            color: var(--accent-blue);
        }

.social-icons a {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s;
}

    .social-icons a:hover {
        color: var(--accent-blue);
    }

/* ================================
   Cookie Banner
   ================================ */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--white);
    color: var(--text-dark);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
    flex-wrap: wrap;
}

    .cookie-banner p {
        margin: 0;
        font-size: 0.9rem;
    }

    .cookie-banner a {
        color: var(--accent-blue);
        text-decoration: underline;
    }

.cookie-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

    .cookie-buttons .btn {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

/* ================================
   Responsive Layout
   ================================ */

/* bis 992px (Tablets / kleine Fenster) */
@media (max-width: 992px) {
    .main-header {
        height: 170px; /* Header an Logo angepasst */
        display: flex;
        align-items: center; /* Logo & Burger vertikal mittig */
        justify-content: space-between;
        padding: 0 20px;
    }

    .logo-header {
        max-height: 160px; /* großes Logo */
        width: auto;
    }

    .navbar-toggler {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .navbar-collapse {
        background: var(--primary-dark);
        padding: 15px;
        border-radius: 8px;
    }

        .navbar-collapse .nav-link {
            color: var(--white) !important;
            padding: 12px 0;
            font-size: 1.2rem;
            display: block;
        }

            .navbar-collapse .nav-link:hover {
                color: var(--accent-blue) !important;
            }

        .navbar-collapse .btn {
            width: 100%;
            margin-top: 10px;
        }
}

/* bis 768px (kleinere Tablets / große Smartphones) */
@media (max-width: 768px) {
    .main-header {
        height: 150px;
    }

    .logo-header {
        max-height: 140px;
    }

    .navbar-toggler {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .navbar-collapse .nav-link {
        font-size: 1.15rem;
    }
}

/* bis 480px (Smartphones) */
@media (max-width: 480px) {
    .main-header {
        height: 130px;
    }

    .logo-header {
        max-height: 120px;
    }

    .navbar-toggler {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .navbar-collapse .nav-link {
        font-size: 1.1rem;
    }

    footer {
        font-size: 0.8rem;
        padding: 20px 10px;
    }

        footer a {
            display: block;
            margin: 5px 0;
        }
}


