@import url('https://fonts.googleapis.com/css2?family=Mulish:wght@300;400;600;700&display=swap');

:root {
    --navy: #41556b;
    --navy-dark: #2e3e4f;
    --navy-light: #5a7290;
    --bg: #f0f4f7;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --text: #333333;
    --text-light: #666666;
    --border: #d0d8e0;
    --link: #41556b;
    --link-hover: #2e3e4f;
}

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

body {
    font-family: 'Mulish', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background: var(--bg-light);
    line-height: 1.7;
    font-size: 15px;
}

a { color: var(--link); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--link-hover); text-decoration: underline; }

h1, h2, h3, h4 { font-weight: 600; line-height: 1.3; color: var(--navy); }
h1 { font-size: 24px; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
h2 { font-size: 20px; margin: 25px 0 15px; }
h3 { font-size: 17px; margin: 20px 0 10px; }

p { margin-bottom: 15px; }
ul, ol { margin: 0 0 15px 20px; }
li { margin-bottom: 5px; }

img { max-width: 100%; height: auto; }

/* HEADER / BANNER */
.site-header {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

/* NAVIGATION */
.main-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(65, 85, 107, 0.7);
}

.main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav > ul > li { position: relative; }

.main-nav a {
    display: block;
    padding: 14px 18px;
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: background 0.2s;
}

.main-nav a:hover,
.main-nav .active > a {
    background: rgba(255,255,255,0.15);
    text-decoration: none;
    color: var(--white);
}

/* Dropdowns */
.has-dropdown > .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--navy);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 200;
    list-style: none;
    padding: 0;
    margin: 0;
}

.has-dropdown:hover > .dropdown { display: block; }

.dropdown li a {
    padding: 10px 18px;
    font-size: 12.5px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dropdown li:last-child a { border-bottom: none; }

/* Burger Menu */
.burger-menu {
    display: none;
    position: absolute;
    top: 15px;
    right: 20px;
    background: var(--navy);
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 300;
    border-radius: 3px;
}

.burger-menu span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    margin: 5px 0;
    transition: 0.3s;
}

/* CONTENT LAYOUT */
.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 30px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.main-content {
    background: var(--white);
    padding: 35px;
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* SIDEBAR */
.sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

.sidebar-section {
    background: var(--white);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.sidebar-section h3 {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--navy);
}

.sidebar-section table { width: 100%; font-size: 14px; }
.sidebar-section td { padding: 3px 8px 3px 0; vertical-align: top; }
.sidebar-section td:first-child { font-weight: 600; white-space: nowrap; }

.sidebar-nav { list-style: none; padding: 0; margin: 0; }
.sidebar-nav li { border-bottom: 1px solid var(--border); }
.sidebar-nav li:last-child { border-bottom: none; }
.sidebar-nav a { display: block; padding: 8px 0; font-size: 14px; }
.sidebar-nav .active a { font-weight: 700; color: var(--navy-dark); }

.btn-sidebar {
    display: inline-block;
    padding: 8px 20px;
    background: var(--navy);
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    border-radius: 3px;
    text-decoration: none;
    margin-top: 8px;
    transition: background 0.2s;
}

.btn-sidebar:hover {
    background: var(--navy-dark);
    color: var(--white);
    text-decoration: none;
}

/* HOMEPAGE CARDS */
.home-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 30px;
}

.home-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.home-main {
    background: var(--white);
    padding: 35px;
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.home-main img {
    float: left;
    max-width: 250px;
    margin: 0 20px 15px 0;
    border-radius: 3px;
}

.leistungen-links {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.leistungen-links li {
    margin-bottom: 5px;
}

.leistungen-links a {
    display: inline-block;
    padding: 3px 0;
    font-weight: 600;
}

.leistungen-links a::before {
    content: '» ';
    color: var(--navy);
}

/* FOOTER */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.8);
    text-align: center;
    padding: 25px;
    font-size: 13px;
    margin-top: 40px;
}

.site-footer a { color: rgba(255,255,255,0.9); }
.site-footer a:hover { color: var(--white); }
.footer-links { margin-bottom: 8px; }
.footer-links a { margin: 0 8px; }

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    color: var(--white);
    padding: 20px 30px;
    z-index: 9999;
    display: none;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

.cookie-banner.visible { display: block; }
.cookie-banner h4 { color: var(--white); margin-bottom: 8px; }
.cookie-banner p { font-size: 13px; margin-bottom: 12px; color: rgba(255,255,255,0.85); }

.cookie-buttons { display: flex; gap: 10px; }
.cookie-buttons button {
    padding: 8px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
}

.btn-accept { background: #4CAF50; color: white; }
.btn-reject { background: rgba(255,255,255,0.2); color: white; }

/* TABLE */
table { border-collapse: collapse; width: 100%; margin: 15px 0; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
th { background: var(--bg); font-weight: 600; color: var(--navy); }

/* RESPONSIVE */
@media (max-width: 900px) {
    .main-nav { position: relative; display: none; }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; }
    .main-nav a { padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .has-dropdown > .dropdown {
        position: static;
        display: none;
        box-shadow: none;
        background: rgba(0,0,0,0.2);
    }
    .has-dropdown.open > .dropdown { display: block; }
    .burger-menu { display: block; }
    .banner-image { height: 250px; }
    .page-wrapper, .home-grid { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .home-main img { float: none; max-width: 100%; margin: 0 0 15px 0; }
}

@media (max-width: 600px) {
    .banner-image { height: 180px; }
    .main-content, .home-main { padding: 20px; }
    h1 { font-size: 20px; }
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form {
    margin: 25px 0;
}
.contact-form .form-row {
    display: flex;
    gap: 20px;
}
.contact-form .form-group {
    margin-bottom: 18px;
    flex: 1;
}
.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #41556b;
    font-size: 14px;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Mulish', sans-serif;
    font-size: 15px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #41556b;
    outline: none;
    box-shadow: 0 0 0 2px rgba(65, 85, 107, 0.15);
}
.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}
.contact-form .captcha-group {
    background: #f0f4f7;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #41556b;
}
.contact-form .captcha-group label {
    font-size: 15px;
    margin-bottom: 8px;
}
.contact-form .form-hint {
    font-size: 13px;
    color: #888;
    margin: 5px 0 15px;
}
.contact-form .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
}
.contact-form .checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}
.btn-submit {
    background: #41556b;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-family: 'Mulish', sans-serif;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.5px;
}
.btn-submit:hover {
    background: #2d3d4f;
    transform: translateY(-1px);
}
.btn-submit:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* ============================================
   BANNER SLIDER
   ============================================ */
.banner-slider {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
}
.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}
.slider-slide.active {
    opacity: 1;
}
.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    border: 2px solid rgba(255,255,255,0.8);
}
.slider-dots .dot.active {
    background: #fff;
    transform: scale(1.2);
}
.slider-dots .dot:hover {
    background: rgba(255,255,255,0.85);
}

@media (max-width: 768px) {
    .banner-slider {
        height: 250px;
    }
}
