﻿/* Reset & Basis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    background-color: rgb(248, 249, 250);
    color: #3a3a3a;
    line-height: 1.6;
}

/* Fixe Menüleiste */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #F5F5F5;
    border-bottom: 2px solid #000000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 1000;
}

.logo img {
    height: 40px; /* Passt die Logo-Größe an die Navbar an */
    display: block;
}

/* Navigation Standard (Desktop) */
.nav-links {
    display: flex;
    gap: 30px;
}

    .nav-links a {
        text-decoration: none;
        color: #000;
        font-size: 16px;
        font-weight: 500;
        transition: opacity 0.2s ease;
    }

        .nav-links a:hover {
            opacity: 0.6;
        }

/* Hamburger Button Styling (Standard versteckt) */
.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #000;
    transition: 0.3s;
}

/* Content Abstand */
.content {
    padding: 100px 40px 40px 40px;
    max-width: 1200px;
    margin: 0 auto;
}


/* Container für die Spalten */
.column-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    justify-content: space-between; /* Verteilt den Platz gleichmäßig */
    /*border: 1px solid green;*/
}


/* Einzelne Spalte */
.column {
    /* Standard für Desktop: 3 Spalten minus Gap */
    flex: 0 1 calc(33.333% - 14px);
    background-color: #ffffff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
}

    /* Optional: Überschriften in den Spalten */
    .column h3 {
        margin-bottom: 15px;
        border-bottom: 1px solid #000;
        padding-bottom: 5px;
    }

    .column div {
        margin-bottom: 10px;
    }

/* --- MOBILE OPTIMIERUNG --- */
@media (max-width: 900px) {
    /* Ab 900px (oder deinem Wunschwert) springen ALLE Boxen untereinander */
    .column {
        flex: 1 1 100%; /* Jede Box nimmt 100% ein */
    }
}
/* --- MOBILE OPTIMIERUNG (Media Query) --- */

@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }

    .menu-toggle {
        display: flex; /* Hamburger anzeigen */
    }

    .nav-links {
        display: none; /* Menü standardmäßig ausblenden */
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #F5F5F5;
        border-bottom: 2px solid #000;
        padding: 20px;
        gap: 20px;
        text-align: center;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

        /* Wenn das Menü aktiv ist */
        .nav-links.active {
            display: flex;
        }

    .content {
        padding: 80px 20px 20px 20px;
    }

    /* Kleiner Effekt für das X beim Klicken (optional) */
    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}
