/* Globale Stile und Farbvariablen */
:root {
    --background-color: #1c1c24;
    --primary-color: #f0f0f0;
    --accent-color: #a370f7; /* Ein lila Akzent, ändern Sie es nach Wunsch */
    --card-color: #2a2a3a;
}

/* Sanftes Scrollen für die ganze Seite aktivieren */
html {
    scroll-behavior: smooth;
}

/* Navigationsleiste */

nav {
    position: fixed; /* Fixiert die Leiste am oberen Rand */
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--card-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000; /* Stellt sicher, dass die Leiste über allem liegt */
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav ul li a {
    display: block;
    color: var(--primary-color);
    text-decoration: none;
    padding: 15px 25px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: var(--accent-color);
}

/* WICHTIG: Verhindert, dass die fixierte Navigation die Überschriften verdeckt */
section {
    padding: 2rem 0;
    /* Erzeugt einen "Puffer" oben an jeder Sektion in Höhe der Navigationsleiste */
    scroll-margin-top: 60px; 
}

/* Bodybereich */

body {
    font-family: Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--primary-color);
    margin: 0;
    line-height: 1.6;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

/* Header-Bereich */
header {
    background-color: var(--card-color);
    text-align: center;
    padding: 4rem 1rem;
    border-bottom: 3px solid var(--accent-color);
}

header h1 {
    font-size: 3rem;
    margin: 0;
}

header p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #8a5cd6;
}

.msg-box {
    display: none;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 5px;
    font-weight: bold;
}

.msg-box.info {
    background-color: #cce5ff;
    color: #004085;
}

.msg-box.success {
    background-color: #d4edda;
    color: #155724;
}

.msg-box.error {
    background-color: #f8d7da;
    color: #721c24;
}

.modern-form {
    max-width: 100%; /* passt sich der Containerbreite an */
    margin: 30px 0;  /* zentriert im Container */
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    background: #1e1e2f;
    color: #fff;
}

.modern-form h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #ffcc00;
}

.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    padding: 10px 15px;
    border-radius: 10px;
    border: none;
    font-size: 1rem;
    background: #2a2a3f;
    color: #fff;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 10px #ffcc00;
}

.vote-button {
    background: #ffcc00;
    color: #1e1e2f;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
}

.vote-button:hover {
    background: #e6b800;
}

.suggestions-list {
    margin-top: 25px;
}


/* Setup Bereich */

.setup-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.setup-item {
    background-color: var(--card-color);
    padding: 30px;
    border-radius: 10px;
    border: 2px solid var(--accent-color);
    flex: 1 1 300px; /* Ermöglicht das Anpassen der Boxen auf kleineren Bildschirmen */
    min-width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.setup-item h3 {
    margin-top: 0;
    color: var(--accent-color);
    text-align: center;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 10px;
}

.setup-item ul {
    list-style-type: none;
    padding: 0;
}

.setup-item li {
    padding: 8px 0;
    border-bottom: 1px solid #3a3a4a;
}
.setup-item li:last-child {
    border-bottom: none;
}

/* Links in den Setup-Boxen */
.setup-item a {
    color: var(--accent-color); /* Deine Akzentfarbe für Links */
    text-decoration: none; /* Entfernt die Unterstreichung */
    font-weight: bold;
    transition: color 0.3s ease;
}

.setup-item a:hover {
    color: #fff; /* Wird weiß, wenn man mit der Maus darüber fährt */
    text-decoration: underline; /* Unterstreichung beim Hover */
}

/* Hauptinhalt & Sektionen */
section {
    padding: 2rem 0;
}

section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 10px;
}

hr {
    border: none;
    height: 1px;
    background-color: var(--card-color);
}

/* Zeitplan-Liste */
#schedule ul {
    list-style: none;
    padding: 0;
    text-align: center;
    font-size: 1.1rem;
}

/* Social Media Icons */
.social-links {
    text-align: center;
}

.social-links a {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
}

/* Clip-Bereich */
.clips-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.clip iframe {
    border: 2px solid var(--card-color);
    border-radius: 5px;
}


/* PokeMarathon */

/* In deiner style.css hinzufügen */

#pokemarathon-hero {
    text-align: center;
    padding: 4rem 1rem 2rem;
    background-color: var(--card-color);
    border-bottom: 3px solid var(--accent-color);
}

.pokemarathon-logo img {
    max-width: 550px; /* Oder die Größe deines Logos */
    height: auto;
    margin-bottom: 20px;
}

#pokemarathon-hero h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

#pokemarathon-hero .subtitle {
    font-size: 1.3rem;
    color: #ccc;
    margin-bottom: 2rem;
}

.generation-card {
    background-color: var(--card-color);
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.generation-card h3 {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-top: 0;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 10px;
}

.generation-card .status {
    font-weight: bold;
    color: #4CAF50; /* Grün für Abgeschlossen */
    margin-top: 15px;
}

.generation-card.grayed-out {
    opacity: 0.6;
    border-color: #555;
}

.generation-card.grayed-out h3,
.generation-card.grayed-out .status {
    color: #999;
}

.poll-options {
    margin-top: 20px;
}

.poll-options ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.poll-options li {
    background-color: #3a3a4a;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.poll-options li i {
    color: var(--accent-color);
}

#marathon-rules ul {
    list-style: none;
    padding: 0;
}

#marathon-rules li {
    background-color: var(--card-color);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 5px solid var(--accent-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#marathon-rules li strong {
    color: var(--accent-color);
}

/* Umfragecontainer */

/* In deiner style.css hinzufügen */

.poll-container {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    margin-bottom: 20px;
}


.poll-option {
    cursor: pointer;
    position: relative;
    padding: 15px;
    background-color: #3a3a4a;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    overflow: hidden;
    color: var(--primary-color);
    margin-bottom: 15px; /* Abstand zwischen den Optionen */
}

.poll-option:last-child {
    margin-bottom: 0; /* kein extra Abstand nach der letzten Option */
}

.poll-option:hover {
    background-color: #4a4a5a;
}

.poll-option.selected {
    border: 2px solid var(--accent-color);
    background-color: #5a5a6a;
}

.poll-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--accent-color);
    width: 0;
    transition: width 0.5s ease;
    z-index: 1;
    opacity: 0.5;
}

.poll-option span {
    position: relative;
    z-index: 2;
    display: block;
    font-weight: bold;
}

.poll-votes {
    font-size: 0.9em;
    color: #ccc;
    margin-top: 5px;
}

#voteButton {
    width: 100%;  /* volle Breite */
    max-width: 300px;
    margin: 20px auto 0 auto; /* zentriert */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.vote-button:hover:not([disabled]) {
    background-color: #8a5cd6;
}

.vote-button[disabled] {
    background-color: #5a5a6a;
    cursor: not-allowed;
}

/* --- Twitch Abstimmungs Button --- */
#voteButton {
    background-color: #9146FF; /* Twitch Lila */
    color: #FFFFFF;
    padding: 12px 25px;
    border: none;
    border-radius: 6px; /* Leicht abgerundet */
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    width: 100%; /* Volle Breite, wie die Poll-Optionen */
    max-width: 300px; /* Optional: Maximale Breite begrenzen */
    margin: 20px auto 0 auto; /* Zentrieren und Abstand nach oben */
    display: block; /* Damit margin:auto funktioniert */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4); /* Leichter Schatten */
    display: flex; /* Für Icon und Text */
    align-items: center;
    justify-content: center;
    gap: 10px; /* Abstand zwischen Icon und Text */
}

#voteButton:hover:not([disabled]) {
    background-color: #772ceb; /* Dunkleres Lila beim Hover */
    transform: translateY(-2px); /* Leichter "Pop"-Effekt */
}

#voteButton:active:not([disabled]) {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

#voteButton[disabled] {
    background-color: #5a5a6a; /* Grau, wenn deaktiviert */
    cursor: not-allowed;
    box-shadow: none;
}

/* --- Optional: Icon für den Button --- */
#voteButton i {
    font-size: 1.2em; /* Größe des Icons */
}

/* --- Stil für die Wählerliste --- */
#voters-list {
    margin-top: 40px;
	margin-bottom: 40px;
    background-color: var(--card-color);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#voters-list h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

#voters-list ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap; /* Namen können umbrechen */
    gap: 10px; /* Abstand zwischen den Namen */
    justify-content: center; /* Namen zentrieren */
}

#voters-list li {
    background-color: #3a3a4a;
    color: #eee;
    padding: 8px 15px;
    border-radius: 20px; /* Pill-Form */
    font-size: 0.95em;
    white-space: nowrap; /* Verhindert Zeilenumbruch innerhalb eines Namens */
    border: 1px solid #5a5a6a;
}

/* Footer-Bereich */
footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    background-color: var(--card-color);
}

.impressum-text {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 1rem;
}
footer a {
    color: var(--accent-color);
}