/* Universelle Reset-Einstellungen */

/**@font-face {
    font-family: 'League Spartan';
    src: url('LeagueSpartan-VariableFont_wght.ttf');
}**/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
}

body {
    background-color: #f4f7fb;
    color: #333;
    line-height: 1.6;
}

/* Styling für das Login-Formular */
.login {
    width: 100%;
    max-width: 400px;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 100px auto;
    border-radius: 8px;
    padding: 30px;
}

.login h1 {
    text-align: center;
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e3;
    padding-bottom: 10px;
}

form {
    display: flex;
    flex-direction: column;
}

form label {
    font-size: 14px;
    color: #555;
    /**margin-bottom: 5px;**/
}

form input[type="password"],
form input[type="text"],
form input[type="email"],
form input[type="number"],
form input[type="date"],
form input[type="datetime-local"],
form input[type="select"],
form input[type="decimal"],
textarea,
form select {
    padding: 15px;
    border: 1px solid rgb(180 118 229);
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 16px;
    transition: border 0.3s;
}

form input[type="password"]:focus,
form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="number"]:focus,
form input[type="date"]:focus,
form input[type="datetime-local"]:focus,
form input[type="select"]:focus,
form input[type="decimal"]:focus,
textarea:focus,
form select:focus {
    border-color: rgb(180 118 229);
    outline: none;
}

form input[type="submit"], button {
    padding: 15px;
    background-color: rgb(180 118 229);
    border: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 4px;
}

form input[type="checkbox"] {
    align-self: start;
    background-color: black;
}

button:disabled {
    background-color: lightslategray;
}

form input[type="submit"]:hover {
    background-color: rgb(180 118 229);
}

input:read-only {
    background-color: lightgray;
}

/* Navbar Styling */
.navtop {
    background-color: rgb(180 118 229);
    height: 60px;
    width: 100%;
    border-bottom: 1px solid #e0e0e3;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.navtop div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
}

.navtop div h1 {
    font-size: 24px;
    color: #eaebed;
    font-weight: normal;
}

.navtop div a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    padding: 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.navtop div a:hover {
    color: #eaebed;
    background-color: #4b5865;
}

/* Inhalt Styling */
.content {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto 25px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
}

.content h2 {
    margin-bottom: 25px;
    font-size: 22px;
    color: rgb(180 118 229);
    border-bottom: 2px solid #e0e0e3;
    padding-bottom: 10px;
}

.content > p,
.content > div {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin: 20px 0;
    padding: 20px;
    border-radius: 8px;
}

.content > p table,
.content > div table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.content > p table th,
.content > div table th,
.content > p table td,
.content > div table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #f1f1f1;
}

.content > p table th,
.content > div table th {
    background-color: #f5f6f8;
    color: #4a536e;
    font-weight: bold;
}

.content > p table td,
.content > div table td {
    color: #555;
}

.content > p table tr:hover,
.content > div table tr:hover {
    background-color: #f9fafb;
}

/* Auth Fehler Styling */
.auth_error {
    background-color: #ff4d4f;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

.info_box {
    background-color: rgb(180 118 229) !important;
    color: #fff !important;
    padding: 20px !important;
    border-radius: 8px !important;
    margin: 20px 0 !important;
    text-align: center !important;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .navtop div {
        /** flex-direction: column;**/
        align-items: flex-start;
    }

    .navtop div h1 {
        font-size: 22px;
    }

    .login {
        width: 90%;
        padding: 20px;
    }

    .content {
        width: 90%;
        padding: 20px;
    }
}

table{
    border-collapse:collapse;
    border:1px solid #555;
    width: 100%;
    }
    
table td, th{
    border:1px solid #555;
    text-align: center;
}

.tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.tile {
    background-color: rgb(240, 240, 240);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: calc(33.333% - 20px);
    min-width: 200px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;

}

.tile-booking {
    background-color: rgb(240, 240, 240);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: auto;
    margin: auto;
    min-width: 200px;
    padding: 5px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;

}

.tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tile h3 {
    font-size: 18px;
    color: rgb(180, 118, 229);
    margin-bottom: 10px;
}

.tile p {
    font-size: 14px;
    color: #555;
}

.ticket-counter {
    margin: 15px;
}

.barcontainer {
    width: 100%;
    background-color: #f3f3f3;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #ccc;
    margin-bottom: 10px;
    position: relative;
}
.bar {
    height: 30px;
    background-color: #4caf50;
    text-align: center;
    color: white;
    line-height: 30px;
    font-weight: bold;
    border-radius: inherit;
    display: flex;
}
.category-segment {
    height: 30px;
    text-align: center;
    color: white;
    line-height: 30px;
    font-weight: bold;
    
}
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
  }

  /* Popup-Inhalt */
  .popup-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  .popup-content input[type="text"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }

  .popup-content button {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }

  .close-btn {
    background-color: #f44336;
    color: white;
  }
  .search-dropdown {
    
    top: 70px;
    left: 20px;
    right: 20px;
    background: #fff;
    border: 1px solid #ccc;
    max-height: 150px;
    overflow-y: auto;
    z-index: 10;
    border-radius: 4px;
  }

  .search-dropdown div {
    padding: 8px;
    cursor: pointer;
  }

  .search-dropdown div:hover {
    background-color: #f0f0f0;
  }