
/* Basis responsive Mobile CSS */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

header, nav, main, footer {
    width: 100%;
    box-sizing: border-box;
    padding: 15px;
}

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

nav ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    flex: 1 1 100%;
    text-align: center;
    margin: 5px 0;
}

button, a.button {
    display: inline-block;
    min-height: 50px;
    padding: 12px 20px;
    font-size: 16px;
    margin: 5px 0;
    text-align: center;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 6px;
}

button:hover, a.button:hover {
    background-color: #0056b3;
}

/* Container für Inhalt */
.container {
    padding: 15px;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Responsive Grids / Cards */
.grid, .cards {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.grid > div, .cards > div {
    flex: 1 1 100%;
}

/* Tablet Layout */
@media (min-width: 600px) and (max-width: 1024px) {
    .grid > div, .cards > div {
        flex: 1 1 48%;
    }
    nav ul li {
        flex: 1 1 50%;
    }
}

/* Stelle sicher, dass Body und HTML korrekt scrollen */
html, body {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* für iOS flüssiges Scrollen */
}

/* Hauptcontainer overflow sichern */
main, .container {
    overflow: visible;
}
