/* Grundlegende Reset-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Grid Layout für den Hauptbereich */
body {
    font-family: Arial, sans-serif;
    display: grid;
    grid-template-columns: 1fr; /* Eine einzelne Spalte für kleine Bildschirme */
    grid-template-rows: auto 1fr auto; /* Header, Inhalt, Footer */
    grid-template-areas:
        "header"
        "main"
        "footer";
    height: 100vh;
    background-color: #f4f4f4;
    justify-items: center; /* Inhalt zentrieren */
}

/* Header und Navigation */
header {
    background-color: #ba7d0c4f;
    color: rgba(255, 255, 255, 0);
    padding: 15px;
    display: flex;
    justify-content: space-between; /* Platz für Hamburger-Menü */
    align-items: center; /* Vertikale Zentrierung */
    width: 100%;
    position: relative;
}
.submenu {
    position: relative;
}

.iframe-container {
    display: flex;
    justify-content: center; /* Horizontal zentrieren */
    
    height: 100vh; /* Ganze Höhe des Viewports */
}

.submenu .subnav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #333;
    list-style: none;
    padding: 0;
    min-width: 150px;
    z-index: 10;
}

.submenu:hover .subnav {
    display: block;
}

.subnav li {
    width: 100%;
}

.subnav li a {
    display: block;
    padding: 10px;
    color: white;
    text-decoration: none;
    background-color: #444;
}

.subnav li a:hover {
    background-color: #555;
}
.logo {
    height: 50px; /* Größe anpassen */
    margin-right: 15px;
}
nav ul {
    display: flex;
    justify-content: center; /* Links in der Mitte anordnen */
    list-style: none;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 10px;
    display: inline-block;
}

nav ul li a:hover {
    background-color: #555;
}

.submenu .subnav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #333;
    list-style: none;
}

.submenu:hover .subnav {
    display: block;
}

.subnav li a {
    padding: 10px;
    color: white;
}

.subnav li a:hover {
    background-color: #444;
}

/* Grid Layout für den Inhalt */
main {
    display: grid;
    grid-template-columns: 1fr; /* Eine einzelne Spalte für kleine Bildschirme */
    gap: 20px;
    padding: 20px;
    grid-area: main;
    justify-items: center; /* Inhalt in der Mitte ausrichten */
}

.content, .about {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 90%; /* Breiter als vorher (vorher 80%) */
    max-width: 1000px; /* Maximale Breite für große Bildschirme */
}

/* Footer */
footer {
    text-align: center;
    padding: 10px;
    background-color: #333;
    color: white;
    grid-area: footer;
    width: 100%;
}

.footer-link {
    color: white;
    text-decoration: none;
    margin-left: auto;
    padding: 10px;
}

.footer-link:hover {
    text-decoration: underline;
}
.button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap; /* Falls Platzmangel besteht, rücken die Buttons um */
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.button-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Immer zwei Buttons nebeneinander */
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    max-width: 800px;
}

/* Styling der Buttons */
.image-button {
    width: 100%; /* Füllt den verfügbaren Platz */
    height: 180px; /* Große Buttons */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background-color: #808080; /* Grauer Hintergrund */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Leichter Schatten */
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    color: white;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Hover-Effekt */
.image-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Sicherstellen, dass die Buttons auf kleinen Bildschirmen groß bleiben */
@media (max-width: 600px) {
    .button-container {
        grid-template-columns: repeat(2, 1fr); /* Weiterhin zwei pro Reihe */
        gap: 10px;
    }

    .image-button {
        height: 160px; /* Kleinere Höhe auf kleineren Bildschirmen */
        font-size: 20px;
    }
}








@media (min-width: 768px) {
    /* Layout für größere Bildschirme */
    body {
        grid-template-columns: 1fr; /* Eine Spalte, zentrierter Inhalt */
        grid-template-areas:
            "header"
            "main"
            "footer";
    }

    nav ul {
        flex-direction: row;
    }

    main {
        grid-column: 1 / -1; /* Hauptinhalt zentrieren */
    }
}

/* Hamburger-Menü für kleine Bildschirme */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-left: auto;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px;
    transition: 0.4s;
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        align-items: center; /* Inhalte in der Mitte ausrichten */
        width: 100%;
        background-color: #333;
        position: absolute;
        top: 60px;
        left: 0;
    }

    nav ul.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }
}