body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: #aa9e99;
    color: #eaeaea;
    /*background-image: url(https://wallpapers.com/images/hd/karate-fight-at-beach-during-sunset-labusey48xs9la94.jpg);
    background-position: center;
      background-repeat: no-repeat;
      background-size: cover;*/
  }

  .header {
    /*position: fixed;*/
    top: 0;
    width: 100%;
    background: #393e5e;
    padding-top: 5px;
    padding-bottom: 5px;
    overflow-x: auto;
    overflow-y: hidden;
    /*z-index: 1000;*/
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    box-sizing: border-box;
  }

  .header h1 {
    font-size: 24px;
    color: #c68a3c;
  }

  /* Footer */
  .footer {
      text-align: center;
      padding-top: 20px;
      padding-bottom: 20px;
      background: #0b1121;
      color: #eaeaea;
      width: 100%;
  }

  .footer a {
      color: #f77f00;
  }

  .distancer{
    width: 100%;
    height: 0px;
  }

  @media screen and (max-width: 768px) {
    .distancer{
      height: 80px;
    }
  }

  .logo-div{
    /*padding: 5px; 
    background-color: #c68a3c; 
    width: 20%; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    border: 1px solid #c68a3c;
    border-radius: 4px;*/
    margin-left: 30px;
  }

  @media screen and (max-width: 900px) {
    .logo-div{
      display: none;
    }
  }

  .img_logo{
    height: 50px;
    transform: scale(1.5) translateX(40px);
  }

  .header nav {
    display: flex;
    right: 0;
    padding-left: 10px;
    padding-right: 5px;
    align-items: center;
    float: right;
    margin-right: 50px;
  }

  .header nav a {
    margin-right: 20px;
    color: #c68a3c;
    text-decoration: none;
    font-weight: bold;
    float: right;
  }

  .header nav a:hover {
    color: #ffffff;
  }

  .logout-btn {
    background-color: rgba(57, 62, 94);
    color: #c68a3c;
    border: 1px solid #c68a3c;
    padding: 8px 15px;
    margin-right: 0px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
  }

  .logout-btn:hover {
    background-color: #c68a3c;
    color: #ffffff;
  }

  .tabs {
    display: flex;
    justify-content: center;
    margin: 30px 0 0;
    padding-bottom: 25px;
    width: 100%;
    overflow: auto;
  }

  .tab {
    padding: 10px 20px;
    margin: 0 10px;
    background: #dda146;
    border-radius: 5px;
    color: #eaeaea;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.5s ease-in-out;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
  }

  @media screen and (max-width: 600px) {
    .tab{
      margin: 0 2px;
      box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    }
  }

  .tab:hover {
    background: #393e5e;
  }

  .tab.active {
    background: #393e5e;
  }

  .container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: rgba(47, 51, 74, 0.95); /* Etwas kräftiger für mehr Tiefe */
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  }

  .logincontainer{
    width: 50%;
  }

  @media screen and (max-width: 600px) {
    .responsivecontainer{
      width: 80%;
    }
  }

  h2 {
    color: #c68a3c;
    text-align: center;
  }

  .section {
    margin-bottom: 20px;
  }

  .section-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #c68a3c;
  }


  .item {
    display: flex;
    justify-content: space-between;
    align-items: center; /* <<< vertikal zentriert */
    padding: 12px;
    border-radius: 5px;
    background: rgba(80, 85, 115, 0.9);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    color: #e0e0e0;
    margin-bottom: 10px;
  }

  .item:hover {
    background: rgba(100, 105, 140, 1); /* Etwas heller beim Hover */
    transform: scale(1.01);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  }

  .item_text {
    display: flex;
    flex-direction: column;                /* Abstand zwischen Button und Text */
  }

  .item_links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;      /* rechts ausrichten */
    justify-content: center;    /* vertikal zentrieren */
    text-align: right;
    color: #f8a733;
    margin-left: 20px;
  }

  .item_links a {
    color: #c68a3c; /* Bleibt warm für Kontrast */
    text-decoration: none;
    font-weight: bold;
    box-sizing: border-box;
  }

  .item_links a:hover {
    text-decoration: underline;
    color: #e0a76d; /* Dezenter Goldton */
  }

  .hero {
    position: relative; 
    text-align: center;
    padding: 60px 20px;
    /*background: linear-gradient(135deg, #0b1121, #1c2833);*/
    background-image: url('./images/hero_background.webp');
    background-size: cover;        /* ⬅️ Skaliert das Bild so, dass das div ganz ausgefüllt ist */
    background-position: center;   /* ⬅️ Zentriert das Bild im div */
    background-repeat: no-repeat;  /* ⬅️ Kein Kacheln */
    overflow: hidden;
    box-sizing: border-box;
  }

  .hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* ⬅️ halbtransparentes Grau */
    z-index: 1;
  }

  /* Text im div muss über dem Overlay liegen */
  .hero > * {
    position: relative;
    z-index: 2;
  }
  
  .hero h2 {
    font-size: 40px;
    margin-bottom: 10px;
  }
  
  .hero p {
    font-size: 18px;
    margin-top: 10px;
    color: #ffffff;
  }

  .sports-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 50px 20px;
    gap: 20px;
  }
  
  .sport-card {
    background: #393e5e;
    border-radius: 15px;
    overflow: hidden;
    width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
  }
  
  .sport-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6);
  }
  
  .sport-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  
  .sport-card h3 {
    text-align: center;
    margin: 15px 0;
  }
  
  .sport-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px;
  }
  
  .btn {
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    color: #0b1121;
  }
  
  .btn.primary {
    background: #c68a3c;
    text-decoration: none;
  }
  
  .btn.primary:hover {
    background: #9d6e30;
  }
  
  .btn.secondary {
    background: #eaeaea;
    text-decoration: none;
  }
  
  .btn.secondary:hover {
    background: #c9c9c9;
  }

  .loginforminputtext {
    width: 100%;
    padding: 10px;
    margin: 0 0 11px;
    border: 2px solid #ccc;
    border-radius: 5px;
    background-color: #f8f8f8;
    font-size: 16px;
    transition: border-color 0.3s ease-in-out;
    box-sizing: border-box;
  }

  .loginforminputtext:focus {
    border-color: #d48c37;
    outline: none;
  }

  .login-button {
    width: 100%;
    padding: 10px;
    background-color: #d48c37;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
  }

  .login-button:hover {
    background-color: #b6742f;
  }

  .script_icons{
    float: right;
  }

  .sport_membership{
    float: left;
    margin-top: -40px;
    margin-left: 0;
  }

  .leave_sport{
    width: auto;
    padding: 5px 5px;
    color: #d80000;
    border: 1px solid #d80000;
    border-radius: 3px;
    background-color: #0b1121;
    transition: background-color 0.3s ease-in-out;
  }

  .leave_sport:hover{
    background-color: white;
    cursor: pointer;
  }

  .join_sport{
    width: auto;
    padding: 5px 5px;
    color: white;
    border: 1px solid white;
    border-radius: 3px;
    background-color: #0b1121;
    transition: background-color 0.3s ease-in-out;
  }

  .join_sport:hover{
    background-color: white;
    cursor: pointer;
    color: black;
  }

  .audio_button{
    padding: 4px 4px;
    border: 1px solid white;
    border-radius: 4px;
    background-color: rgba(80, 85, 115, 0.9);
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease-in-out;
  }

  .audio_button:hover{
    background-color: white;
    color: rgba(80, 85, 115, 0.9);
  }

  /*Roter Kreis mit Zahl - Notification-Alert*/
  .notification {
    position: absolute;
    bottom: -8px; /* übersteht nach unten */
    right: 5px;   /* übersteht nach rechts */
    background-color: red;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
    animation: pulse 1.5s infinite;
  }

  .messages {
    position: absolute;
    bottom: -14px; /* übersteht nach unten */
    right: -14px;   /* übersteht nach rechts */
    background-color: rgb(255, 153, 0);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
    animation: pulse 1.5s infinite;
  }

  @keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
  }


  /* Nachrichten Pop Up*/
  .nachrichten-popup {
    position: fixed;
    top: 70px; /* Position unter dem Button */
    right: 20px;
    background: #393e5e;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    width: 300px;
    z-index: 1000;
    border: 1px solid rgb(255, 153, 0);
    max-height: 250px;
    overflow: auto;
    scrollbar-width: none;   
    -ms-overflow-style: none;
  }

  .nachrichten-popup::-webkit-scrollbar {
    display: none;               
  }
  

  .nachrichten-container {
    padding: 10px;
    display: flex;
    flex-direction: column;
  }

  .nachricht {
    padding: 7px;
    display: flex;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
    text-decoration: none;
    color: white;
  }

  .nachricht_a{
    text-decoration: none;
    color: white;
    font-size: 14px;
  }

  .nachricht_text{
    display: flex;
    width: 80%;
    justify-content: center;
  }

  .nachricht_icon{
    display: flex;
    width: 20%;
    align-items: center;
    justify-content: center;
  }

  .nachrichten-container .nachricht:nth-last-of-type(1) {
    border-bottom: none;
    margin-bottom: 5px;
  }

  .clear_msgs{
    padding: 5px;    
    width: auto;
    float: right;
    cursor: pointer;
    background: rgb(255, 153, 0);
    transition: background 0.2s;
    font-size: 14px;
    text-decoration: none;
    color: #393e5e;
    font-weight: bold;
    border-radius: 5px;

  }

  .nachricht:hover {
    background-color: rgba(100, 105, 140, 1);
  }

  .clear_msgs:hover{
    background: rgb(198, 119, 0);
  }






/* Hintergrund-Overlay */
#overlay_bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7); /* abgedunkelt */
    z-index: 9998; /* unter dem Popup */
    display: none;
}

/* Popup-Container */
#big_popup {
    position: fixed;          /* relativ zum Bildschirm */
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 80%;
    background: rgba(80, 85, 115);
    border-radius: 10px;
    border: 2px solid #ad6e07;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: visible;         /* Scrollbar */
    z-index: 9999;            /* über allem */
    display: none;            /* an/aus */
    position: fixed;
}

/* Innerer Inhalt */
#big_popup .big_popup_content {
    padding: 20px;
}

/* Close-Button oben rechts */
#big_popup .big_popup_close_btn {
    position: absolute;
    top: -15px;
    right: -20px;
    width: 36px;
    height: 36px;
    background: rgba(80, 85, 115); /* gleiche Farbe wie Popup-Hintergrund */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    border: 2px solid #ad6e07;
    color: white;
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 0 5px rgba(0,0,0,0.3); /* optional leichter Schatten */
}

/* Optional: etwas längeren Inhalt erzeugen */
#big_popup p {
    margin-bottom: 15px;
}

  
  