html, body {
    height: 100%; /* Höhe auf 100% setzen */
    margin: 0;
    font-family: Arial, sans-serif;
    background: url("alphacar-bg.png") no-repeat center center fixed;
    background-size: cover;
    background-attachment: fixed;
    color: #fff;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Abdunkelung */
    z-index: -1;
}

.main-content {
    min-height: calc(100vh - 60px); /* Füllt den ganzen Bildschirm bis auf die Navbar */
    padding: 20px;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(31,31,31,0.9);
    padding: 10px 20px;
}
.navbar a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    
    background-color: rgba(50, 50, 50, 0.95);
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
}
.dropdown-content a {
    color: #fff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}
.dropdown-content a:hover {
    background-color: #6620d6;
}
.dropdown:hover .dropdown-content {
    display: block;
}

.user-info {
    display: flex;
    align-items: center;
}
.user-info img {
    border-radius: 50%;
    margin-right: 10px;
    height: 35px;
    width: 35px;
}
.logout-btn {
    background-color: #462ae4;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    margin-left: 10px;
}
.logout-btn:hover {
    background-color: #2f00ff;
}

/* Burger für Mobile */
.navbar .burger {
    display: none;
    cursor: pointer;
    font-size: 1.5em;
}
@media (max-width: 768px) {
    .navbar-links {
        display: none;
        flex-direction: column;
        background-color: rgba(31,31,31,0.95);
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
    }
    .navbar-links.show {
        display: flex;
    }
    .navbar .burger {
        display: block;
    }
    .dropdown-content {
        position: static;
    }
}
/*LOGIN FORM*/
#loginform{
  position: fixed;
  inset: 0px;
  width: 12rem;
  height: 5rem;
  max-width: 100vw;
  max-height: 100dvh;
  margin: auto;
}


.discord-button{
    display: inline-flex;
    align-items: center;
    background-color: #5865F2; /* Discord Blau */
    color: #fff;
    font-weight: 600;
    font-size: 1.2em;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.discord-button:hover {
    background-color: #4752C4; /* dunkleres Blau beim Hover */
}

.discord-button img {
    height: 24px;
    margin-right: 10px;
}



/*EINTRAGUNG*/

.formdiv {
    width: 30%;
    min-height: 400px; /* dynamische Höhe */
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid rgb(204, 0, 255);
    background-color: rgba(170, 114, 166, 0.23);
    margin: 50px auto; /* Abstand oben/unten */
    border-radius: 10px;
}

#entryform {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Inhalte mittig */
    align-items: stretch;
    gap: 15px;
    padding: 20px;
    box-sizing: border-box;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#entryform h1 {
    text-align: center;
    margin: 0 0 10px;
    color: cyan;
}

#entryform select,
#entryform input[type="number"],
#entryform input[type="text"],
#entryform input[type="submit"],
#entryform input[type="date"],
#entryform input[type="url"] {
    width: 100%;
    height: 40px;
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid cyan;
}

#button {
    width: 100%;
    padding: 10px;
    background: cyan;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

#button:hover {
    background: #00ffff;
}



/* BENACHRICHTIGUNG */
.notdropdown-content {
    position: absolute;
    right: 0;
    background-color: #222;
    min-width: 350px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 8px;
}
.notdropdown {
    position: relative;
    display: inline-block;
}
.notdropdown-content div {
    color: white;
    padding: 8px 12px;
    text-decoration: none;
}
.notdropdown-content div:hover {
    background-color: #333;
}
.changelog-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem;
  background: #111;
  color: #eee;
  border-radius: 8px;
}

.changelog-entry {
  border-left: 4px solid lime;
  margin-bottom: 2rem;
  padding-left: 1rem;
}


/* Basis für mobile Screens */
@media (max-width: 768px) {
  .formdiv {
    width: 100%;
    padding: 15px;
  }

  .form-group {
    margin-bottom: 20px;
  }

  label {
    font-size: 16px;
    margin-bottom: 5px;
    display: block;
  }

  input, select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #444;
    background: #111;
    color: #fff;
  }

  input:focus, select:focus {
    outline: none;
    border-color: #00e0ff;
    box-shadow: 0 0 4px #00e0ff;
  }

  input[type="submit"], button {
    background: #00e0ff;
    color: #000;
    font-weight: bold;
    padding: 14px;
    border: none;
    border-radius: 6px;
    width: 100%;
    cursor: pointer;
  }

  input[type="submit"]:hover {
    background: #00bcd4;
  }
}

/* --- Mobile Navigation --- */
@media (max-width: 768px) {
  .navbar-links a {
    padding: 14px;
    font-size: 18px;
  }

  .navbar-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #1a1a1a;
    padding: 10px;
  }

  .navbar-links.open {
    display: flex;
  }

  .navbar .dropdown,
  .navbar .notdropdown {
    width: 100%;
  }

  .burger {
    display: block;
    font-size: 28px;
    cursor: pointer;
    margin-left: 15px;
  }

  .user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .user-info img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
  }
}

/* Desktop: Burger ausblenden */
@media (min-width: 769px) {
  .burger {
    display: none;
  }

  .navbar-links {
    display: flex !important;
    flex-direction: row;
    gap: 15px;
  }
}
@media (max-width: 768px) {
  table {
    border: 0;
    width: 100%;
  }
  table thead {
    display: none;
  }
  table tr {
    display: block;
    margin: 10px 0;
    background: #242436;
    border-radius: 6px;
    padding: 10px;
  }
  table td {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    border: none;
    border-bottom: 1px solid #444;
  }
  table td:last-child {
    border-bottom: none;
  }
  table td::before {
    content: attr(data-label);
    font-weight: bold;
    color: #00d9ff;
  }
}
@media (max-width: 768px) {
  #button, input[type="submit"], button {
    font-size: 18px;
    padding: 16px;
  }
}
@media (max-width: 768px) {
  .container {
    display: flex;
    flex-direction: column;
  }
  .box {
    margin-bottom: 20px;
  }
}
