
:root {
    --primary: #141a15;      /* Taktisches Mattschwarz/Oliv */
    --accent: #556b2f;       /* Olivgrün / Ranger Green (Mil-Spec) */
    --accent-light: #8fbc8f; /* Helleres Oliv/Salbei */
    --coyote: #8b7d6b;       /* Taktisches Coyote Brown */
    --dark: #070a08;         /* Tiefes Nachtschwarz */
    --light: #eaece8;        /* Taktisches Off-White / HUD-Weiß */
    --border: #334433;       /* Robuste taktische Rahmenlinie */
    --glass: rgba(15, 22, 16, 0.9); /* Abgedunkeltes, taktisches Glas */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--light);
    background-color: var(--dark);
    margin: 0;
    padding: 0;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Neues Logo als Wasserzeichen */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('assets/images/logo_dark.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.08;
    z-index: -1;
    pointer-events: none;
}

header.site-header {
    background: var(--dark);
    border-bottom: 3px solid var(--accent);
    text-align: center;
    position: relative;
}


header.site-header img.banner {
    width: 100%;
    max-width: 100%; /* Banner über die volle Fensterbreite */
    height: auto;
    max-height: 400px; /* Optional: verhindert, dass es auf riesigen Monitoren zu hoch wird */
    object-fit: cover; /* Schneidet die Ränder leicht ab, wenn das Format nicht passt, aber hält es vollflächig */
    display: block;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
}


.header-logo {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    z-index: 10;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.8));
}



/* Desktop Nav Styles (Default) */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}
.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--light);
    border-radius: 2px;
    transition: 0.3s;
}
.nav-links {
    display: flex;
    gap: 40px; /* ABSTAND ZWISCHEN DEN LINKS */
    justify-content: center;
    align-items: center;
}
.social-icon {
    display: flex;
    align-items: center;
    transition: transform 0.3s;
}
.social-icon:hover {
    transform: scale(1.1);
}

nav.main-nav {
    background: var(--primary);
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.8);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav.main-nav a {
    color: var(--light);
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

nav.main-nav a:hover {
    color: var(--accent-light);
}


.container {
    max-width: 1400px; /* Breitere Hauptbox */
    margin: 40px auto;
    padding: 0 20px;
    flex: 1;
}

/* 3-Spalten Layout */
.main-layout {
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    gap: 30px;
}
.sidebar {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    height: fit-content;
}
.sidebar h3 {
    color: var(--accent);
    margin-top: 0;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
}

@media screen and (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr; /* Alles untereinander auf kleinen Bildschirmen */
    }
    .left-sidebar { order: 2; margin-top: 20px; }
    .center-content { order: 1; }
    .right-sidebar { order: 3; }
}


.card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-left: 6px solid var(--accent);
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    border-radius: 6px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

h2 {
    color: var(--accent-light);
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    margin-top: 0;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h3 {
    color: var(--accent);
    margin-top: 25px;
    font-size: 1.2rem;
}

p, li {
    font-size: 1rem;
    color: #cccccc;
}

ul, ol {
    padding-left: 20px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--accent-light);
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--light);
    border-radius: 4px;
    font-family: inherit;
    box-sizing: border-box;
    font-size: 1rem;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 8px rgba(74, 107, 77, 0.5);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-group input {
    margin-top: 5px;
    accent-color: var(--accent);
}

.checkbox-group label {
    font-weight: normal;
    font-size: 0.95rem;
    color: #aaaaaa;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    border: 1px solid #5a805e;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--accent-light);
    box-shadow: 0 0 15px rgba(108, 140, 111, 0.4);
}

#formFeedback {
    margin-top: 15px;
    font-weight: bold;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

footer {
    text-align: center;
    padding: 30px;
    color: #888888;
    background: var(--primary);
    border-top: 2px solid var(--border);
    font-size: 0.9rem;
    margin-top: auto;
}

footer a {
    color: var(--accent-light);
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    text-decoration: underline;
    color: white;
}

/* =========================================
   Smartphone / Responsive Styles 
   ========================================= */
@media screen and (max-width: 768px) {
    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden !important;
        margin: 0;
        padding: 0;
        font-size: 14px !important;
    }

    
.container {
    max-width: 1400px; /* Breitere Hauptbox */
    margin: 40px auto;
    padding: 0 20px;
    flex: 1;
}

/* 3-Spalten Layout */
.main-layout {
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    gap: 30px;
}
.sidebar {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    height: fit-content;
}
.sidebar h3 {
    color: var(--accent);
    margin-top: 0;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
}

@media screen and (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr; /* Alles untereinander auf kleinen Bildschirmen */
    }
    .left-sidebar { order: 2; margin-top: 20px; }
    .center-content { order: 1; }
    .right-sidebar { order: 3; }
}


    
nav.main-nav {
        padding: 10px 15px;
        align-items: flex-end; /* Align hamburger to the right */
    }
    
    
    /* When active class is toggled via JS */
    nav.main-nav.active 
    nav.main-nav.active .mobile-menu-toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    nav.main-nav.active .mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }
    nav.main-nav.active .mobile-menu-toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }


    h1 { font-size: 1.8rem !important; word-break: break-word; overflow-wrap: break-word; }
    h2 { font-size: 1.4rem !important; word-break: break-word; overflow-wrap: break-word; letter-spacing: 1px !important; margin-top: 15px; }
    h3 { font-size: 1.2rem !important; word-break: break-word; overflow-wrap: break-word; }
    p, li, label, span { font-size: 0.95rem !important; word-break: break-word; overflow-wrap: break-word; }

    .hero-content h1 { font-size: 1.8rem !important; }
    .hero-content p { font-size: 1rem !important; }

    .card, .content-box { 
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px !important; 
        margin: 15px 0 !important; 
        border-radius: 8px; 
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    form {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    input[type="text"], 
    input[type="email"], 
    textarea, 
    select { 
        width: 100% !important; 
        max-width: 100% !important; 
        box-sizing: border-box !important; 
        margin: 0 0 15px 0 !important;
    }

    .form-group {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 10px !important;
        padding: 0 !important;
    }

    .btn { 
        display: block; 
        width: 100%; 
        box-sizing: border-box; 
        text-align: center; 
        margin-bottom: 15px; 
    }

    .grid-container, .flex-container {
        display: flex;
        flex-direction: column;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}


/* =========================================
   Mobile & Tablet Left-Side Drawer Menu (< 1024px)
   ========================================= */
@media screen and (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex !important;
        position: absolute;
        left: 20px;
        top: 20px;
        z-index: 1100;
        background: var(--primary);
        border: 1px solid var(--border);
        padding: 8px 12px;
        border-radius: 4px;
        cursor: pointer;
    }

    nav.main-nav {
        justify-content: flex-end;
        padding: 15px 20px;
        position: relative;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%; /* Hidden off-screen to the left */
        width: 280px;
        height: 100vh;
        background: var(--primary);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 30px 30px;
        gap: 20px;
        box-shadow: 5px 0 25px rgba(0,0,0,0.9);
        border-right: 2px solid var(--border);
        transition: left 0.3s ease-in-out;
        z-index: 1050;
        box-sizing: border-box;
        overflow-y: auto;
    }

    nav.main-nav.active .nav-links {
        left: 0; /* Slide in from left */
    }

    /* Hamburger Animation to 'X' */
    nav.main-nav.active .mobile-menu-toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    nav.main-nav.active .mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }
    nav.main-nav.active .mobile-menu-toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}
