*, *:before, *:after {
  box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f4f4;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden; /* Verstecke horizontalen Überlauf */ 
}

header {
    background: #37474F;
    color: #4e7ca3;
    text-shadow: 3px 2px 4px #0f1e2b;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 80px 40px;
    font-size: 35px;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    text-align: center;
    border-bottom: 3px solid black;
    background-image: url('navbar-banner.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 100px; /* Beispiel für eine minimale Höhe von 400px */
}


header nav ul {
    list-style-type: none;
    padding: 0;
}

header nav ul li {
    display: inline;
    margin: 0 20px;
}

header nav ul li a {
    background-color: #27ae60; /* Sanftes Dunkelgrün */
    color: #fff;
    border-radius: 5px;
    text-shadow: 0px 0px 0px #000000;
    padding: 10px 45px;
    text-decoration: none;
    font-weight: bold;
    font-size: 25px;
}

section {
    background: white;
    margin: 20px;
    padding: 30px;
    border-radius: 8px;
    width: 80%; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

a.button {
    background-color: #27ae60; 
    color: white;
    text-decoration: none; 
    padding: 12px 24px;
    border-radius: 5px;
    display: inline-block;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
}

a.button:hover {
    background-color: #00897B; 
    transform: scale(1.05); 
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #37474F; 
    color: white;
    width: 100%;
    margin-top: auto; 
    box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
}




/* Tablets and small desktops */
@media only screen and (min-width: 768px) {
    header {
        padding: 20px 15px; /* Verkleinerte Polsterung */
        font-size: 20px; /* Angepasste Schriftgröße */
    }

    header nav ul li a {
        padding: 10px 20px; /* Kleinere Knöpfe */
        font-size: 18px; /* Kleinere Schriftgröße */
    }

    section {
        width: 85%; /* Leicht angepasste Breite */
        padding: 20px; /* Angepasste Polsterung */
    }

    a.button {
        padding: 10px 18px; /* Angepasste Knopfgröße */
        font-size: 14px; /* Kleinere Schriftgröße */
    }
}

/* Smartphones */
@media only screen and (max-width: 767px) {
    header {
        padding: 10px 2px; /* Reduzierte Polsterung im Header */
        font-size: 16px; /* Kleinere Schriftgröße im Header */
    }

    header nav ul {
        display: flex;
        justify-content: center;
        width: 100%;
        padding: 0; /* Keine zusätzliche Polsterung */
    }

    header nav ul li {
        flex: 1; /* Gleicher Platz für alle Li-Elemente */
        text-align: center;
        padding: 0; /* Geringe Polsterung um die Texte zu trennen, aber den Platz zu optimieren */
        margin: 0 2px;
    }

    header nav ul li a {
        display: block;
        padding: 8px 6px; /* Reduzierte Polsterung */
        font-size: 10px; /* Reduzierte Schriftgröße */
        white-space: nowrap; /* Verhindert den Textumbruch */
    }

    section {
        width: 90%; /* Maximale Breite für kleine Bildschirme */
        padding: 15px; /* Reduzierte Polsterung in Sections */
    }

    a.button {
        padding: 6px 12px; /* Kleinere Knöpfe */
        font-size: 12px; /* Kleinere Schriftgröße für Buttons */
    }
}
