/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Schriftarten und Body-Stile */
body {
    font-family: 'Roboto', sans-serif;
    color: #e0e0e0;
    line-height: 1.6;
    background-color: #1e2a47;
    flex-direction: column;  /* Damit die Elemente (Navbar, Content, Footer) untereinander sind */
    min-height: 100vh;  /* Der Body soll mindestens die Höhe des Viewports einnehmen */
    font-size: 16px; /* Kleinere Schriftgröße für den gesamten Body */
}






/* Navbar */
.navbar {
    display: flex;
    justify-content: center;  /* Die Links bleiben in der Mitte */
    align-items: center;
    padding: 20px;
    background-color: #052e54;
    position: sticky;
    top: 0;
    z-index: 10;
    gap: 30px;
    width: 100%;
}

/* Der Container für die mittigen Links (Home, Über uns, etc.) */
.left-links {
    display: flex;
    align-items: center;
    justify-content: center;  /* Zentriert die Links in der Mitte */
    gap: 30px;  /* Abstände zwischen den Links */
    flex-grow: 1;  /* Lässt diese Gruppe wachsen, um Platz für die rechte Gruppe zu schaffen */
}

/* Der Container für die rechten Links (Glocke, Zahnrad, Login/Logout) */
.right-links {
    display: flex;
    align-items: center;
    gap: 15px;  /* Abstände zwischen den Icons */
}

/* Links-Style */
.navbar a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.navbar a:hover {
    color: #38bdf8;
}

.notification-icon {
    position: relative;  /* Positioniert das Badge relativ zur Glocke */
}

/* Das Badge wird nun direkt oben rechts an der Glocke positioniert */
.notification-badge {
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 5px 10px;
    font-size: 12px;
    position: absolute;
    top: -3px;  /* Setzt das Badge leicht oberhalb der Glocke */
    right: -3px; /* Versetzt es leicht nach rechts */
    z-index: 10; /* Stellt sicher, dass das Badge über der Glocke liegt */
}


.flag-icon {
    font-size: 1.5em;
    vertical-align: middle;
    margin-left: 10px;
}


/* Camps Container */
.camps-container {
    padding: 40px 10px;
    max-width: 1100px;
    margin: 0 auto;
    background-color: #2d3b58;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.camps-container h2 {
    font-family: 'Poppins', sans-serif;
    color: #fff;
    text-align: center;
    font-size: 2rem; /* Kleinere Schriftgröße */
    margin-bottom: 25px;  /* Weniger Abstand */
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Camps Grid */
.camps {
    display: grid;  /* Verwendung von Grid statt Flexbox für bessere Anpassung */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));  /* Flexible Spalten mit Mindestbreite */
    gap: 15px;
}

/* Camp Card */
.camp-card {
    background-color: #3b4b6b;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Camp Card Hover Effekt */
.camp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Text in den Camp Cards */
.camp-card h3 {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 600;
}

.camp-card p {
    font-size: 0.95rem;
    color: #b0b7c2;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .camps {
        grid-template-columns: 1fr;  /* Eine Spalte auf kleinen Bildschirmen */
    }

    .camp-card {
        width: 90%;  /* Weniger breite Karten auf kleinen Bildschirmen */
        margin-bottom: 20px;  /* Weniger Abstand */
    }
}

/* Stornierungs-Button (Neon Rot) */
.cancel-btn {
    background-color: #FF073A; /* Neon Rot */
    color: #fff;
    padding: 12px 24px;  /* Kompaktere Buttons */
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 1px;
    transition: transform 0.3s ease;
}

.cancel-btn:hover {
    background-color: #FF073A; /* Immer Neon Rot, keine Farbänderung */
    transform: translateY(-2px);
}

/* Teilnahme-Button (Neon Blau) */
button[type="submit"] {
    background-color: #38BDF8; /* Neon Blau */
    color: #fff;
    padding: 12px 24px;  /* Kompaktere Buttons */
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 1px;
    transition: transform 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #38BDF8; /* Dunkleres Blau bei Hover */
    transform: translateY(-2px);
}


/* Buttons */
button {
    background-color: #38bdf8;
    border: none;
    padding: 10px 22px; /* Kompaktere Buttons */
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-weight: 600;
    letter-spacing: 1px;
}

button:hover {
    background-color: #16a085;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: #111d33;
    color: #fff;
    padding: 30px 0;
    text-align: center;
    font-size: 14px;
    margin-top: auto; /* Stellt sicher, dass der Footer immer unten bleibt */
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links a,
.footer-social a {
    color: #b0b7c2;
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-social a:hover {
    color: #38bdf8;
}

/* Social Media Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px; /* Kleinere Abstände */
    margin-top: 20px;
}

.social-icon {
    width: 35px;
    height: 35px;
    background-color: #333;
    color: #fff;
    padding: 8px;
    border-radius: 50%;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.3s ease;
}

.social-icon:hover {
    background-color: #38bdf8;
    transform: scale(1.1);
}

/* Spezifisches Styling für TikTok-Icon */
.social-icon.tiktok {
    background-color: #000;
}

/* Spezifisches Styling für Instagram-Icon */
.social-icon.instagram {
    background-color: #E4405F;
}

/* Eingabeformulare */
form input,
form textarea,
form button {
    width: 100%;
    padding: 12px;
    margin: 12px 0;
    border: 2px solid #444;
    border-radius: 8px;
    background-color: #3b4b6b;
    color: #fff;
    font-size: 1rem;
    transition: border 0.3s ease;
}

form input[type="submit"] {
    background-color: #38bdf8;
    color: white;
    cursor: pointer;
}

form input[type="submit"]:hover {
    background-color: #16a085;
}

/* Responsive Design */
@media (max-width: 768px) {
    .camps {
        grid-template-columns: 1fr; /* Eine Spalte */
    }

    .camp-card {
        width: 90%;  /* Weniger breite Karten auf kleinen Bildschirmen */
        margin-bottom: 20px;  /* Weniger Abstand */
    }

    .register-btn,
    .cancel-btn {
        width: 100%;
        margin-top: 20px;
    }
}

/* Impressum */
.impressum-section {
    padding: 40px 20px;
    background-color: #2d3b58;
    color: #fff;
}

.impressum-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
}

.impressum-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: #3b4b6b;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
    line-height: 1.6;
}

.impressum-content p {
    margin-bottom: 15px;
}

/* Mobile Styles - nur für Bildschirme bis 768px Breite */
@media (max-width: 768px) {

    /* Camps nebeneinander unterbinden, stattdessen untereinander */
    .camps {
      display: block; /* block statt flex */
      gap: 0;
    }
  
    .camp-card {
      width: 100%; /* volle Breite */
      margin-bottom: 20px;
      box-shadow: none; /* optional: Schatten abschwächen für mobile */
    }
  
    /* Formular: mobile einspaltig und übersichtlicher */
    form {
      display: block;
    }
  
    form input,
    form textarea,
    form button {
      width: 100% !important; /* volle Breite */
      margin-bottom: 10px;
    }
  
    form textarea {
      resize: vertical;
    }
  
    /* Storno Button ohne blauen Hintergrund */
    .cancel-btn {
      background-color: #d32f2f;
      color: white;
      border: none;
      padding: 10px;
      width: 100%;
      margin-left: 0;
      margin-top: 10px;
      border-radius: 5px;
      cursor: pointer;
    }
  
    .cancel-btn:hover {
      background-color: #b71c1c;
    }
  
    /* Formular Buttons nebeneinander (Anmelden + Storno) auf Mobile untereinander */
    form > button,
    form a > .cancel-btn {
      display: block;
      width: 100%;
    }
  
    form a {
      display: block;
    }
  }
    /* Sprache oben rechts, Hamburger oben links */
.language-switcher {
    position: fixed;
    top: 10px;
    right: 15px;
    z-index: 1100;
    cursor: pointer;
  }
  
  /* Hamburger Icon oben links */
  .hamburger {
    display: none;
    position: fixed;
    top: 10px;
    left: 15px;
    z-index: 1100;
    cursor: pointer;
  }
  
  /* Mobile Menü als Sidebar */
  .mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 250px;
    background-color: #222;
    padding-top: 60px;
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
  }
  
  .mobile-menu ul {
    padding: 0;
    margin: 0;
    list-style: none;
  }
  
  .mobile-menu li {
    border-bottom: 1px solid #444;
  }
  
  .mobile-menu a {
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .mobile-menu a:hover {
    background-color: #444;
  }
  
  .notification-badge {
    background: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.75rem;
    margin-left: 5px;
  }
  
  /* Desktop: Navbar sichtbar, Hamburger und Mobile-Menu versteckt */
  @media only screen and (max-width: 768px) {
    nav .left-links,
    nav .right-links {
      display: none;
    }
    .hamburger {
      display: block;
    }
    .language-switcher {
      display: block;
    }
  }