
/* Global Styles */
body { 
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f4f4f4;
    color: #333;
    text-align: center;
    
}

/* Toggle-Button */
.menu-toggle {
    position: fixed;
    top: 20px;
    left: 5px;
    background-color: #0d74db;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 1000;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.31);  
    }

 /* Header-Inhalt */ 

.custom-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: #003366;
    height: 80px;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    color:#f4f4f4
  }

.header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
  }
.header-title {
    font-size: 1.5em;
    color: white;
    font-weight: bold;
  }

/* News-Ticker */
.ticker-container {
    background-color: #fff;
    color: #003366;
    padding: 15px;
    font-size: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 20px auto;
    border-radius: 5px;
  }
    
.fade {
      opacity: 0;
      transition: opacity 2.5s ease-in-out;
    }
.show {
      opacity: 1;
    }

/* Navigation */
nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 180px;
    background-color: #3888d3;
    display: flex;
    flex-direction: column;
    padding: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.31);
}

nav.active {
    transform: translateX(0);
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px;
    display: block;
}

nav a:hover {
    background-color: #717272;
}

/* Hauptinhalt */
main {
    margin: 50px 20px 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Container */
.container, .container_big, .container_members, .container_ticker, .container_owner, .container_owner_members, .container_owner_big {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    box-shadow: 0 4px 8px rgb(12, 12, 12);
    overflow: visible;
}

@keyframes police-light {
  0%, 100% {
    box-shadow:
      0 0 16px 4px #0070ff,
      0 0 32px 8px #ff0033,
      -8px -8px 24px 0 #0070ff,
      8px 8px 24px 0 #ff0033,
      0 4px 16px rgba(0,0,0,0.15);
  }
  50% {
    box-shadow:
      0 0 32px 8px #ff0033,
      0 0 16px 4px #0070ff,
      8px 8px 24px 0 #0070ff,
      -8px -8px 24px 0 #ff0033,
      0 4px 16px rgba(0,0,0,0.15);
  }
}

.container_members_login {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    box-shadow:
        0 0 16px 4px #0070ff,
        0 0 32px 8px #ff0033,
        -8px -8px 24px 0 #0070ff,
        8px 8px 24px 0 #ff0033,
        0 4px 16px rgba(0,0,0,0.15);
    overflow: visible;
    animation: police-light 1s infinite alternate;
}

.container { width: 300px; }
.container_owner { width: 300px; }
.container_owner_login { width: 300px; }
.container_big { width: 400px; }
.container_owner_big { width: 400px; }
.container_members, .container_ticker { width: 650px; }
.container_owner_members { width: 650px; }


/* Überschriften */
h2 {
    color: #003366;
    margin-top: 0;
}

/* Buttons */
#button1 {
    background-color: #1e6fc0;
    color: white;
    cursor: pointer;
    font-weight: bolder;
    font-size: larger;
}

#button2 {
    background-color: #003366;
    color: white;
    cursor: pointer;
    font-weight: bolder;
    font-size: 1.4em;
    
}

#button1:hover {
    background-color: rgb(241, 103, 103);   
}
#button2:hover {
    background-color: #1e6fc0;   
}

#button3 {
    background-color: #003366;
    color: white;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.0em;
    padding: 5px 50px;
    border-radius: 8px;
}
#button3:hover {
    background: #0d74db;
    color: #fff !important;
}
.btn {
    display: inline-block;
    background-color: #003366;
    color: white;
    border: 1px solid #82a3eb;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    padding: 8px 26px;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.btn_logout {
    display: inline-block;
    background-color: #be4141;
    color: white;
    border: 1px solid #800000;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    padding: 8px 36px;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.btn:hover {
    background-color: #0959a5;
    transform: scale(1.05);
}

/* Damit <input> und <a> gleich aussehen */
input.btn {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #003366;
    color: white;
    text-align: center;
    padding: 0;
}

/* Responsives Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
    }
    main {
        flex-direction: column;
        align-items: center;
        margin-top: 250px;
    }
    .container {
        width: 90%;
    }
}

/* Cookie-Hinweis als Modal */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); /* halbtransparenter, dunkler Hintergrund */
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal-content {
  background: #3888d3;
  color: rgb(245, 244, 244);
  padding: 30px 30px 20px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(138,3,3,0.7);
  max-width: 400px;
  text-align: center;
}
.cookie-modal-content a {
  color: #fff;
  text-decoration: underline;
}
.cookie-modal-content button {
  margin: 0 10px;
  padding: 8px 18px;
  border: none;
  border-radius: 5px;
  background: #3888d3;
  color: white;
  font-weight: bold;
  cursor: pointer;
}
.cookie-modal-content button:hover {
  background: #1e6fc0;
}

/* Datum und Uhrzeit */
.ticker-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
#datetime {
  min-width: 180px;
  text-align: center;
  font-family: inherit;
  font-size: 18px;
  background-color: #fff;
  color: #003366;
  border-radius: 5px;
  padding: 15px;
  box-sizing: border-box;
}