/*  Main-CSS für das Projekt
    Autoren: Meyer, Maurice; Schreiber, Albert
*/

/* Basiseinstellungen */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* Header und Navigation */
header {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 3000;
}

header h1 {
    margin: 0;
}

/* Navigation (Slide-In Menü) */
nav {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100vh;
    background-color: #222;
    transition: left 0.3s ease-in-out;
    z-index: 1000;
    padding-top: 60px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.5);
}

nav.active {
    left: 0;
}

nav ul {
    list-style-type: none;
    padding: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
}

nav ul li {
    display: inline-block;
    margin: 0 15px;
    border-bottom: 1px solid #444;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    display: block;
    padding: 15px 20px;
    transition: background-color 0.2s;
}

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

/* Hamburger Menü */
.hamburger-menu {
    display: flex;
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1100;
}

.hamburger-menu span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hauptlayout (Grid) */
main {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Sektion: Übersicht der Planeten */
section#uebersicht {
    grid-column: 1 / span 2; /* Überschrift nimmt beide Spalten ein */
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

section h2 {
    text-align: center;
    color: #333;
}

/* Karten-Design für einzelne Planeten */
article.planeten {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

article.planeten h3 {
    text-align: center;
    color: #333;
}

article.planeten img {
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

article.planeten p {
    text-align: center;
    font-style: italic;
    color: #777;
}

/* Aufklappbare Details innerhalb der Planeten-Karten */
details {
    margin-top: 10px;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
}

details summary {
    font-weight: bold;
    cursor: pointer;
}

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

details ul li {
    padding: 5px 0;
}

/* Sektion: Links */
section#links {
    grid-column: 1 / span 2;
    background-color: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,.1);
    text-align: center;
}

section#links h2 {
    margin-top: 0;
    color: #333;
}

/* Styling für den Rechner */
section#rechner {
    grid-column: 1 / span 2;
    background-color: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,.1);
    text-align: center;
}

/* Button im Rechner */
section#rechner button {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

section#rechner button:hover {
    background-color: #555;
}

section#rechner input,
section#rechner select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

section#links p {
    margin: 0 0 16px;
    color: #444;
}

/* Button in der Umfrage-Karte */
section#links a button,
section#links button {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: transform .06s ease, background-color .2s ease;
}

section#links a button:hover,
section#links button:hover {
    background-color: #555;
    transform: translateY(-1px);
}

section#links a button:focus-visible,
section#links button:focus-visible {
    outline: 2px solid #222;
    outline-offset: 2px;
}

/* Layout für Tabelle und Abstimmung */
section#tabelle,
section#abstimmung{
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 0;
    padding-right: 0;
    margin: 0 auto;
    width: 30%;
}

#abstimmung h2,
#abstimmung > p:first-of-type {
    text-align: center;
}

/* Formular */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

form p {
    margin-bottom: 15px;
}

form label {
    margin-right: 10px;
    font-weight: bold;
}

form input[type="text"] {
    padding: 8px;
    font-size: 1rem;
    width: 80%;
    max-width: 300px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

form input[type="radio"], form select {
    margin-top: 10px;
}

form button {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

form button:hover {
    background-color: #555;
}

/* Footer */
footer {
    margin-top: 40px;
    background-color: #222;
    color: #eee;
    padding: 20px 0;
    text-align: center;
}

footer p {
    margin: 0 0 8px;
    font-size: .95rem;
}

footer nav ul {
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
}

footer nav ul li {
    display: inline-block;
    margin: 0 10px;
}

footer nav ul li a {
    color: #eee;
    text-decoration: none;
    font-weight: 600;
}

footer nav ul li a:hover,
footer nav ul li a:focus-visible {
    text-decoration: underline;
    outline: none;
}