/* Allgemeines Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: url('https://gewinner-cloud.de/background-cloude.jpg') no-repeat center center fixed;
    background-size: cover;
    color: white;
}

/* Navigation */
header {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

/* Navigation für Desktop */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

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

/* Burger-Menü für Mobile */
.burger-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero-Bereich */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    margin: 50px auto;
    max-width: 800px;
}

/* Content-Bereich */
.content {
    text-align: center;
    padding: 50px 20px;
    /* background: white; */
    max-width: 600px;
    margin: 50px auto;
    box-shadow: none; /* Entferne den Schatten */
    border-radius: 0; /* Entferne die abgerundeten Ecken */
    color: black;
}

.content label, .content input, .content select, .content textarea {
    width: 100%;
    margin-bottom: 10px;
}

/* 📌 Social-Media Bereich (WhatsApp & Discord) */
.social-media {
    text-align: center;
    padding: 50px 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    margin: 50px auto;
    max-width: 900px;
}

/* Flexbox für WhatsApp & Discord */
.social-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

/* Karten-Stil */
.social-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin: 10px;
    text-align: center;
    width: 45%;
    min-width: 300px;
}

/* WhatsApp & Discord Buttons */
.whatsapp-btn, .discord-btn {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 10px;
    font-size: 16px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    width: 250px; /* Maximale Breite der Buttons */
    max-width: 80%; /* Passt sich kleineren Screens an */
    transition: background 0.3s ease;
    text-align: center;
}

/* Hover-Effekte */
.whatsapp-btn { background-color: #25D366; }
.whatsapp-btn:hover { background-color: #1da851; }

.discord-btn { background-color: #5865F2; }
.discord-btn:hover { background-color: #4a54d1; }

/* QR-Code Styling */
.qr-code {
    width: 150px;
    height: 150px;
    margin: 10px auto;
}

/* 📌 Responsive Design Anpassungen */
@media screen and (max-width: 768px) {
    /* Navigation umstellen */
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        background: rgba(0, 0, 0, 0.9);
        width: 100%;
        text-align: center;
        padding: 10px 0;
        z-index: 10; /* Ensure it's above other elements */
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 10px 0;
    }

    .burger-menu {
        display: block;
    }

    /* Hero-Bereich anpassen */
    .hero {
        padding: 50px 20px;
        margin: 20px;
        font-size: 18px;
    }

    /* Content-Bereich schmaler */
    .content {
        max-width: 90%;
        padding: 30px;
    }

    /* Social-Container auf Spalte umstellen */
    .social-container {
        flex-direction: column;
    }

    .social-card {
        width: 90%;
    }

    /* QR-Code kleiner */
    .qr-code {
        width: 120px;
        height: 120px;
    }
}

/* ****************************************************************** */
/* ******************* STYLING FÜR REGISTRIERUNG UND LOGIN ********** */
.auth-container {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 20px auto; /* Zentriert den Container horizontal */
    max-width: 700px; /* Begrenzt die maximale Breite */
}

.auth-form {
    padding: 40px;
    width: 50%; /* Nimmt die Hälfte des Containers ein */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Zentriert den Inhalt vertikal */
}

.register-form {
    background-color: #f9f9f9;
}

.auth-form h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.auth-form label {
    display: block;
    margin-bottom: 10px;
    color: #555;
    font-weight: bold;
}

.auth-form input[type="email"],
.auth-form input[type="text"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

.auth-form button {
    width: 100%;
    padding: 14px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.auth-form button:hover {
    background-color: #0056b3;
}

.feedback {
    color: #dc3545;
    margin-top: 10px;
    text-align: center;
}

.success {
    color: #28a745;
    margin-top: 10px;
    text-align: center;
}

.logout-link {
    text-align: right;
    padding: 20px;
    color: white; /* Anpassung an den Hintergrund */
}

.logout-link a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
}

.logout-link a:hover {
    text-decoration: underline;
}

.g-recaptcha {
    margin-bottom: 20px;
}

/* Responsive Anpassung für den Auth-Container */
@media screen and (max-width: 600px) {
    .auth-container {
        flex-direction: column; /* Unterhalb von 600px stacked die Formen übereinander */
    }
    .auth-form {
        width: 100%; /* Nimmt die volle Breite ein */
        padding: 30px;
    }
}

/* Styles für mobile Geräte */
@media screen and (max-width: 768px) {
    .auth-container {
        flex-direction: column; /* Die Formulare untereinander anordnen */
        align-items: center; /* Die Formulare horizontal zentrieren */
    }

    .auth-form {
        width: 90%; /* Den Formularen 90% der Bildschirmbreite geben */
        margin-bottom: 20px; /* Etwas Abstand zwischen den Formularen */
        padding: 20px; /* Innenabstand hinzufügen */
        box-sizing: border-box; /* Padding und Border in die Gesamtbreite einbeziehen */
    }

    .auth-form:last-child {
        margin-bottom: 0; /* Entfernt den unteren Abstand des letzten Formulars */
    }

    .auth-form h2 {
        font-size: 1.5em; /* Die Überschrift etwas kleiner machen */
        margin-bottom: 15px;
    }

    .auth-form label {
        display: block; /* Labels über den Eingabefeldern anzeigen */
        margin-bottom: 5px;
    }

    .auth-form input[type="email"],
    .auth-form input[type="text"],
    .auth-form input[type="password"] {
        width: 100%; /* Die Eingabefelder nehmen die volle Breite des Formulars ein */
        padding: 10px;
        margin-bottom: 10px;
        box-sizing: border-box; /* Padding und Border in die Gesamtbreite einbeziehen */
    }

    .auth-form button[type="submit"] {
        width: 100%; /* Der Button nimmt die volle Breite des Formulars ein */
        padding: 12px;
        font-size: 1em;
    }

    /* Optional: reCAPTCHA etwas kleiner machen, falls es zu breit ist */
    .auth-form .g-recaptcha {
        transform: scale(0.8);
        transform-origin: 0 0;
        margin-bottom: 10px;
    }

    /* ****************************************************************** */
    /* *************** RESPONSIVE ANPASSUNGEN FÜR ADMINBEREICH *********** */
    .admin-container {
        padding: 15px;
        width: 100%; /* Nimm die volle Breite auf kleineren Bildschirmen ein */
        margin: 10px auto;
        box-sizing: border-box; /* Sicherstellen, dass Padding und Border zur Breite gehören */
        color: white; /* Stelle sicher, dass die Standard-Textfarbe weiß ist */
    }

    .admin-container h1,
    .admin-container h2 {
        font-size: 1.5em; /* Kleinere Überschriften */
        color: white; /* Überschriftenfarbe beibehalten */
    }

    .admin-container table {
        font-size: 0.9em; /* Kleinere Schriftgröße für die Tabelle */
        width: 100%; /* Tabelle soll sich an den Container anpassen */
        display: block; /* Wichtig: Macht die Tabelle zum Block-Element */
        overflow-x: auto; /* Fügt horizontalen Scroll für die Tabelle hinzu, falls nötig */
    }

    .admin-container thead {
        display: none; /* Überschriften auf kleinen Bildschirmen ausblenden */
    }

    .admin-container tr {
        margin-bottom: 15px; /* Abstand zwischen den "Zeilen" (die jetzt wie Karten aussehen) */
        display: block;
        border-bottom: 1px solid #555;
        padding: 10px; /* Innenabstand für jede "Zeile" */
        box-sizing: border-box;
    }

    .admin-container tr:last-child {
        border-bottom: none;
    }

    .admin-container th,
    .admin-container td {
        padding: 8px 10px;
        text-align: left; /* Text links ausrichten, das ist oft besser lesbar */
        display: block;
        width: 100%;
        box-sizing: border-box;
        border-bottom: none; /* Keine doppelten unteren Rahmen */
        color: white; /* Stelle sicher, dass auch der Text in den Zellen weiß ist */
    }

    .admin-container td:before {
        content: attr(data-label); /* Label aus dem data-label-Attribut anzeigen */
        float: left;
        font-weight: bold;
        margin-right: 10px;
        color: #eee; /* Farbe für das Label beibehalten oder leicht anpassen */
        display: block; /* Stelle sicher, dass das Label eine eigene Zeile einnimmt */
        margin-bottom: 5px; /* Etwas Abstand zwischen Label und Wert */
    }

    .admin-container .action-links a {
        display: block; /* Die Links als Block-Elemente anzeigen, um sie untereinander anzuordnen */
        width: 100%; /* Die Buttons sollen die volle Breite des Containers einnehmen */
        margin-bottom: 5px; /* Etwas Abstand zwischen den Buttons */
        margin-right: 0; /* Den rechten Abstand entfernen, da sie nicht mehr nebeneinander sind */
        box-sizing: border-box; /* Sicherstellen, dass Padding und Border zur Breite gehören */
    }

    .admin-container .action-links a {
        display: inline-block; /* Links nebeneinander anzeigen */
        margin-bottom: 5px;
        margin-right: 5px; /* Etwas Abstand zwischen den Links */
        padding: 8px 12px;
        font-size: 0.85em;
        color: white; /* Farbe der Aktionslinks beibehalten */
    }

    .admin-container .logout-link {
        text-align: center;
        margin-top: 15px;
    }

    .admin-container .logout-link a {
        color: #007bff; /* Farbe des Logout-Links beibehalten */
    }
}

/* ****************************************************************** */
/* ******************* STYLING FÜR ADMINBEREICH ********************* */
/* Styling für den Admin-Container (angepasst für schwarzen, transparenten Hintergrund) */
.admin-container {
    background-color: rgba(0, 0, 0, 0.6); /* Schwarz mit 60% Deckkraft */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 1200px;
    margin: 20px auto; /* Zentriert den Container horizontal */
    color: white; /* Standard-Schriftfarbe für den Container */
}

.admin-container h1,
.admin-container h2 {
    color: white; /* Überschriften in Weiß */
    text-shadow: 1px 1px 0 black; /* Leichte schwarze Umrandung */
    text-align: center; /* Hinzugefügt: Text zentrieren */
}

.admin-container table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.admin-container th,
.admin-container td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #555; /* Dunklere Trennlinie für bessere Sichtbarkeit */
    color: white; /* Schriftfarbe in der Tabelle auf Weiß setzen */
    text-shadow: 1px 1px 0 black; /* Leichte schwarze Umrandung */
}

.admin-container th {
    background-color: rgba(255, 255, 255, 0.1); /* Leicht transparenter weißer Hintergrund für Tabellenüberschriften */
    color: #eee; /* Hellere Schriftfarbe für Tabellenüberschriften */
    font-weight: bold;
    text-shadow: 1px 1px 0 black; /* Leichte schwarze Umrandung */
}

.admin-container tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05); /* Noch etwas hellerer Hintergrund für gerade Zeilen */
}

.admin-container tr:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Noch etwas hellerer Hintergrund beim Hovern */
}

.admin-container .status-active {
    color: green;
    font-weight: bold;
    text-shadow: 1px 1px 0 black; /* Leichte schwarze Umrandung */
}

.admin-container .status-inactive {
    color: red;
    font-weight: bold;
    text-shadow: 1px 1px 0 black; /* Leichte schwarze Umrandung */
}

.admin-container .action-links a {
    display: inline-block;
    padding: 8px 12px;
    margin-right: 5px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    background-color: rgba(0, 123, 255, 0.7); /* Blauer Hintergrund für die Links */
    color: white;
    text-shadow: 1px 1px 0 black; /* Leichte schwarze Umrandung */
}

.admin-container .action-links a:hover {
    background-color: rgba(0, 123, 255, 0.9);
}

.admin-container .logout-link {
    display: block;
    margin-top: 20px;
    text-align: center;
}

.admin-container .logout-link a {
    color: #007bff; /* Behalte die blaue Farbe für den Logout-Link */
    text-decoration: none;
    text-shadow: 1px 1px 0 black; /* Leichte schwarze Umrandung */
}

.admin-container .logout-link a:hover {
    text-decoration: underline;
}

.admin-container .message {
    background-color: rgba(0, 128, 0, 0.3); /* Dunklerer Grünton für Nachrichten */
    color: white;
    border: 1px solid #008000;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 5px;
    text-shadow: 1px 1px 0 black; /* Leichte schwarze Umrandung */
}

/* Styling für den Wunsch-Container (angepasst für schwarzen, transparenten Hintergrund) */
.wish-container {
    background-color: rgba(0, 0, 0, 0.6); /* Schwarz mit 60% Deckkraft für Transparenz */
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
    color: white; /* Weiße Schriftfarbe für den Inhalt */
    text-align: left;
}

.wish-container h2 {
    color: white; /* Weiße Farbe für die Überschrift */
    text-align: center;
    margin-bottom: 15px;
}

.wish-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #eee; /* Eine etwas hellere Farbe für die Labels, um sie hervorzuheben */
}

.wish-container input[type="text"],
.wish-container input[type="email"],
.wish-container select,
.wish-container textarea {
    width: calc(100% - 12px); /* Volle Breite abzüglich Padding */
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #555; /* Eine dunklere Umrandung für die Eingabefelder */
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.1); /* Ein leicht transparenter weißer Hintergrund für die Eingabefelder */
    color: white; /* Weiße Schriftfarbe für die Eingabefelder */
}

.wish-container select {
    /* Hier könntest du noch spezifische Stile für das Select-Element hinzufügen, falls nötig */
}

.wish-container textarea {
    min-height: 100px; /* Eine Mindesthöhe für das Textfeld */
}

.wish-container button[type="submit"] {
    background-color: #007bff; /* Die blaue Farbe für den Button beibehalten */
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.wish-container button[type="submit"]:hover {
    background-color: #0056b3;
}

.wish-container .feedback {
    color: #dc3545; /* Die rote Farbe für die Feedback-Nachricht beibehalten */
    margin-top: 10px;
    text-align: center;
}

/* Zusätzliches Styling für die Admin-Aktionen */
.action-links a.admin-link {
    background-color: #007bff; /* Passt zum Blau der anderen Admin-Links */
    color: white;
}
.action-links a.admin-link:hover {
    background-color: #0056b3; /* Dunklerer Blauton beim Hovern */
}
.news-form textarea {
    width: 100%;
    min-height: 150px;
    margin-bottom: 10px;
    background-color: rgba(255, 255, 255, 0.1); /* Helle, leicht transparente Hintergrundfarbe passend zum Adminbereich */
    color: white; /* Weiße Textfarbe passend zum Adminbereich */
    border: 1px solid #555; /* Dunklere Umrandung für bessere Sichtbarkeit */
    border-radius: 4px;
    padding: 8px;
    box-sizing: border-box;
}
.news-form input[type="text"] {
    width: 100%;
    margin-bottom: 10px;
    background-color: rgba(255, 255, 255, 0.1); /* Helle, leicht transparente Hintergrundfarbe passend zum Adminbereich */
    color: white; /* Weiße Textfarbe passend zum Adminbereich */
    border: 1px solid #555; /* Dunklere Umrandung für bessere Sichtbarkeit */
    border-radius: 4px;
    padding: 8px;
    box-sizing: border-box;
}
.news-form button {
    padding: 10px 15px;
    background-color: #007bff; /* Anpassung an das Blau der Webseite für konsistente Buttons */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.news-form button:hover {
    background-color: #0056b3; /* Dunklerer Blauton beim Hovern */
}
.news-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
}
.news-message.success {
    background-color: rgba(202, 255, 202, 0.3); /* Leicht transparente grüne Farbe */
    color: #2E8B57; /* Dunkelgrüne Textfarbe */
    border: 1px solid #2E8B57;
}
.news-message.error {
    background-color: rgba(255, 204, 204, 0.3); /* Leicht transparente rote Farbe */
    color: #B22222; /* Dunkelrote Textfarbe */
    border: 1px solid #B22222;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #f5f5f5; /* Heller Hintergrund */
  padding: 15px;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
  text-align: center;
  font-size: 0.9em;
  z-index: 1000;
  color: #000; /* Schwarzer Text */
}

.cookie-banner p {
  margin: 0;
  display: inline;
}

.cookie-banner button {
  margin-left: 20px;
  padding: 5px 10px;
  background-color: #007BFF;
  color: white;
  border: none;
  cursor: pointer;
}

.cookie-banner button:hover {
  background-color: #0056b3;
}

.cookie-banner a {
  color: #007BFF; /* Falls du einen anderen Blauton bevorzugst */
  text-decoration: underline;
}
