/* ----------------------------------------------------------- */
/* -------------------------Main Site--------------------------*/
/* ----------------------------------------------------------- */


html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* ----------------------------- */
/* HEADER */
/* ----------------------------- */

/* WICHTIG: Schiebt den Content unter den Header */
body {
    
        padding-top: 70px !important; 
    margin: 0;

    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: black;
}


header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: #1f2b33;
    display: flex;
    justify-content: space-between; /* Trennt Logo und Menü */
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 1000;
}

header img {
    height: 40px;
    width: auto;
}

/* Menü-Styling (Desktop) */
.menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
}

.menu li a {
    color: #1f2b33;
    background-color: white;
    padding: 8px 15px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
}

/* --- MOBILE ANSICHT --- */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }

    .hamburger span {
        width: 25px;
        height: 3px;
        background-color: white;
        border-radius: 2px;
        transition: 0.3s;
    }

    .menu {
        position: fixed;
        top: 70px;
        right: -100%; /* Versteckt */
        width: 200px;
        height: auto;
        background-color: #1f2b33;
        flex-direction: column;
        padding: 20px;
        transition: 0.4s;
        border-bottom-left-radius: 10px;
    }

    .menu.active {
        right: 0; /* Erscheint bei Klick */
    }

    /* X-Animation */
    .hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .hamburger.open span:nth-child(2) { opacity: 0; }
    .hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -7px); }
}

/* Desktop-Fallback (Hamburger verstecken) */
@media (min-width: 769px) {
    .hamburger { display: none; }
}

@media (max-width: 600px) {

    .menu {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .menu li a {
        width: 80%;
        text-align: center;
        font-size: 16px;
        margin-bottom: 15px;
    }

    .map-container {
        width: 100%;
        padding-bottom: 70%;
    }

    .container {
        flex-direction: column;
    }

    /* Block border auf Handy verkleinern */
    .Blocks2 {
        border-width: 10px;
    }

    body {
        padding-top: 110px;
    }
}

@media (max-width: 900px) {

    .menu {
        gap: 10px;
    }

    .menu li a {
        font-size: 17px;
        padding: 6px 12px;
    }

    .container {
        gap: 15px;
    }
}
.footer {
    background-color: #f8f8f8;
    padding: 60px 20px;
    margin-top: 60px;
    border-top: 1px solid #ddd;
    color: #222;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;   /* wichtig für responsive! */
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 180px;
}

.footer-col h4 {
    margin-bottom: 10px;
    font-size: 18px;
}

.footer-col a {
    text-decoration: none;
    color: #333;
    font-size: 15px;
}

.footer-col a:hover {
    color: #000;
}

.footer-brand h3 {
    margin: 10px 0 10px;
}

.footer-brand p {
    max-width: 350px;
    line-height: 1.5;
    color: #444;
}

.footer-logo {
    width: 120px;
    margin-bottom: 5px;
}

/* -------- Responsive Footer ------ */

@media (max-width: 900px) {
    .footer-container {
        gap: 40px;
    }
}

@media (max-width: 700px) {

    .footer-container {
        flex-direction: column;
        text-align: left; /* wie auf dem Bild */
    }

    .footer-col {
        min-width: unset;
    }

    .footer-brand p {
        max-width: 100%;
    }
}
.container{
    margin-left: 15%;
    margin-right: 15%;
}




/* ----------------------------------------------------------- */
/* GALERIE SPEZIFISCHE STYLES (galerie.css)                    */
/* ----------------------------------------------------------- */

/* Hauptcontainer für die Galerie-Sektion */
.referenzen-sektion {
    width: 90%; 
    max-width: 1200px;
    margin: 40px auto; /* Abstand oben/unten */
    text-align: center;
}

.referenzen-sektion h1 {
    margin-bottom: 30px;
    color: #1f2b33; /* Deine Header-Farbe für Konsistenz */
}

/* Das Grid-System */
.referenzen-grid {
    display: grid;
    /* Erzeugt automatisch so viele Spalten wie Platz ist */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 10px;
}

/* Einzelne Foto-Kachel */
.foto-item {
    position: relative;
    aspect-ratio: 1 / 1; /* Alle Bilder werden zu perfekten Quadraten */
    overflow: hidden;
    border-radius: 15px; /* Passend zu deinen Formular-Inputs */
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background-color: #f2f2f2; /* Platzhalterfarbe während des Ladens */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.foto-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Bild-Verhalten innerhalb der Kachel */
.foto-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Verhindert Verzerrung bei Hoch-/Querformat */
    display: block;
}

/* --- LIGHTBOX (Vergrößerung) --- */
.lightbox {
    display: none; /* Standardmäßig versteckt */
    position: fixed;
    z-index: 2000; /* Höher als dein Header (1000) */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(31, 43, 51, 0.95); /* Dunkelblau-Ton deines Headers */
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    cursor: default;
    /* Animation beim Öffnen */
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-btn {
    position: absolute;
    top: 25px;
    right: 30px;
    color: white;
    font-size: 45px;
    font-family: Arial, sans-serif;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #d79b29; /* Gold-Ton aus deinem Formular-Focus */
}

/* --- RESPONSIVE ANPASSUNGEN --- */
@media (max-width: 768px) {
    .referenzen-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 Spalten auf Tablets */
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .referenzen-grid {
        grid-template-columns: 1fr; /* 1 Spalte auf kleinen Handys */
    }
    .referenzen-sektion {
        width: 95%;
    }
}