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

/* ===== FARBEN ===== */
:root {
    --primary-blue: #004a8f;
    --primary-blue-dark: #003366;

    --accent-red: #c62828;
    --accent-red-dark: #a61e1e;

    --accent-yellow: #f9b233;

    --text-dark: #2b2b2b;
    --text-muted: #6b6b6b;

    --bg-light: #f8f9fa;
    --line: rgba(0,0,0,0.1);
}

/* ===== BASIS ===== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
}

/* ===== LAYOUT ===== */
.main-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.section {
    background: white;
}

.section-blue {
    background: rgba(0, 74, 143, 0.04);
}

.section-blue p {
    margin-top: 15px;
    line-height: 1.7;
}

/* Abstand für fixed header */
.mt-header {
    margin-top: 160px;
}

@media (max-width: 768px) {
    .mt-header {
        margin-top: 120px;
    }
}

/* ===== HEADER ===== */
.fixed-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.header-title {
    text-align: center;
    padding: 30px 0 10px;
}

.logo {
    max-width: 200px;
    display: block;
    margin: auto;
}

/* ===== NAVIGATION ===== */
.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 15px 30px;
    background-color: var(--bg-light);
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
}

.nav-menu a {
    text-decoration: none;
    display: inline-block;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 17px;
    border-radius: 8px;
    position: relative;
    transition: 0.3s;
}

.nav-menu a:hover {
    background-color: #e0e0e0;
    color: #000;
}

.nav-menu a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background-color: var(--accent-red);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 160px;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    padding: 5px 0;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
}

.dropdown-content a {
    display: block;
    padding: 12px 18px;
    color: #333;
    text-decoration: none;
    position: relative;
}

.dropdown-content a:hover {
    background-color: whitesmoke;
}

.dropdown-content a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 8px;
    height: 2px;
    width: 0;
    background-color: var(--accent-red);
    transition: width 0.3s ease;
}

.dropdown-content a:hover::after {
    width: 100%;
}

/* ===== CAROUSEL ===== */
.carousel img {
    max-height: 400px;
    object-fit: cover;
}

/* ===== BUTTONS ===== */
.btn-primary-custom {
    background: var(--accent-red);
    color: white;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    transition: 0.3s;
}

.btn-primary-custom:hover {
    background: var(--accent-red-dark);
    transform: translateY(-2px);
}

/* ===== FEATURES ===== */
.feature-box {
    padding: 20px;
    border-radius: 10px;
    transition: 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.icon-blue {
    color: var(--primary-blue);
}

/* ===== CARDS ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card-custom {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.card-custom img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.card-custom-body {
    padding: 15px;
    text-align: center;
}

.card-custom-body p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ===== PROJECTS ===== */
.project-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin: 40px 0 60px;
}

.project-item {
    background: white;
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #eee;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* ===== IMAGE COMPARISON ===== */
.image-comparison-static {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.img-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.img-wrapper:hover img {
    transform: scale(1.05);
}

/* Labels */
.label {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 5px 15px;
    font-size: 0.8rem;
    border-radius: 4px;
}

.label-after {
    background: rgba(0, 86, 179, 0.8);
}

/* ===== FOOTER ===== */
footer {
    background: lightslategrey;
    color: white;
}

.copyright-bar {
    background: var(--bg-light);
    padding: 10px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .cards {
        grid-template-columns: 1fr;
    }

    .image-comparison-static {
        grid-template-columns: 1fr;
    }

    .project-item {
        padding: 15px;
    }
}

ul {
    list-style: none;
}


/* ===== SERVICE CARDS ===== */
.service-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    transition: 0.3s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-8px);
}



/* Steps Section */
.step-box {
    position: relative;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 15px;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 20px;
    background: var(--primary-blue);
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
}