/*
  Team 01 – Thema: Umweltschutz
  Autoren: Marouane Oubrayme, Hüseyin Bildikari, Moritz Sieger
  Aufgabenbereich: CSS/Layout & Design
*/

/* Basis-Styling für die gesamte Seite */
body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #e8f5e9;
    /* Sticky Footer */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container-Elemente auf 1000px begrenzen und zentrieren */
header, nav, main, footer {
    max-width: 1000px;
    margin: 0 auto;
}

/* Header-Bereich */
header {
    padding: 20px;
    text-align: center;
}

header h1 {
    color: #2e7d32;
    font-size: 2em;
    margin: 0;
}

/* Navigation */
nav {
    background-color: #4caf50;
    padding: 10px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

/* Main-Bereich */
main {
    padding: 20px;
    background-color: white;
    min-height: 400px;
    flex: 1; /* Nimmt restlichen Platz für Sticky Footer */
}

section {
    margin-bottom: 30px;
}

section h2 {
    color: #2e7d32;
    border-bottom: 2px solid #4caf50;
    padding-bottom: 5px;
}

/* Formular */
form {
    max-width: 500px;
}

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

input[type="text"],
select {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}


input:focus, select:focus {
    outline: none;              /* Standard-Rahmen weg */
    border-color: #4caf50;      /* Grüner Rand */
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);  /* Grünes Leuchten */
}

input[type="radio"] {
    margin-right: 5px;
}

button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

/* Footer */
footer {
    background-color: #2e7d32;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 30px;
    /* Volle Breite für Footer */
    width: 100%;
    max-width: none;
}

/* Erweiterung für EA2: Links deren Implementierung bisher aussteht. */
/* Wählt alle Links aus dessen href leer sind. */
nav a[href=""] {
    color: #a5d6a7;
    cursor: not-allowed;
    text-decoration: line-through;
    opacity: 0.7;
}

/* Verhindert den Hover-Effekt bei Links, die nicht aktiv sind. */
nav a[href=""]:hover {
    text-decoration: line-through;
    color: #a5d6a7;
}