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; }
}



/* ----------------------------- */
/* BLOCKS – FIXED RESPONSIVE */
/* ----------------------------- */

.Blocks {
    max-width: 90%;        /* vorher 80vh (Problem) */
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.Blocks2 {
    background-color: #000;
    border: solid black 20px;  /* vorher 5vh (Overflow-Problem) */
    max-width: 100%;
    box-sizing: border-box;     /* verhindert Überbreite! */
}

.Fotos {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ----------------------------- */
/* FLEX BOXES */
/* ----------------------------- */

.container {
    display: flex;
    gap: 20px;
    padding: 20px;
    flex-wrap: wrap;
}

.box {
    flex: 1;
    min-width: 250px;
    padding: 20px;
    background-color: #f2f2f2;
    border-radius: 10px;
}

/* ----------------------------- */
/* MAP */
/* ----------------------------- */

.map-container {
    position: relative;
    width: 75%;
    padding-bottom: 56%;
    height: 0;
    overflow: hidden;
    margin: auto;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ----------------------------- */
/* FORMULAR */
/* ----------------------------- */

form {
    
    width: 90%;
    max-width: 500px;
    margin: auto;
}

label {
    font-weight: bold;
    display: block;
    margin: 15px 0 5px;
}

input,
textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ccc;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus {
    border-color: #d79b29;
}

button {
    margin-top: 20px;
    padding: 12px 25px;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

button:hover {
    opacity: 0.8;
}

/* ----------------------------- */
/* MEDIA QUERIES */
/* ----------------------------- */

@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%;
}

.legal-container {
    width: 100%;
    display: flex;
    justify-content: center; /* Zentriert den Iframe horizontal */
    padding-top: 20px;       /* Abstand zum Header */
    padding-bottom: 40px;
}

.legal-container iframe {
    /* 75% Breite bedeutet automatisch 12,5% Platz auf jeder Seite */
    width: 75%; 
    height: 80vh;            /* 80% der Bildschirmhöhe */
    border: 1px solid #ccc;  /* Dezenter Rahmen */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* Profi-Look */
}

/* Responsive: Auf Handys sind 75% zu schmal */
@media (max-width: 768px) {
    .legal-container iframe {
        width: 95%;          /* Fast volle Breite auf dem Handy */
        height: 70vh;
    }
}

/* Container für die Ausrichtung (analog zum Iframe 75% Breite) */
.sticky-title-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.sticky-title {
    width: 75%;              /* Gleiche Breite wie der Iframe */
    background-color: white; /* Verhindert, dass Text beim Scrollen durchscheint */
    margin: 0;
    padding: 15px 0;
    text-align: left;        /* Bündig mit dem linken Rand des Iframes */
    
    /* STICKY LOGIK */
    position: -webkit-sticky; /* Support für Safari */
    position: sticky;
    top: 70px;               /* Bleibt exakt unter dem Header (70px) kleben */
    z-index: 900;            /* Höher als der Iframe, aber niedriger als der Header (1000) */
    
    border-bottom: 2px solid #1f2b33; /* Optionale Trennlinie */
}

/* Anpassung für Mobile (analog zu deinem Iframe 95%) */
@media (max-width: 768px) {
    .sticky-title {
        width: 95%;
        top: 70px; /* Bleibt auch mobil unter dem Header */
    }
}