.user-bar {
   display: none !important;
}
.hidden {
    display: none !important;
}

a, button {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

body {
    margin: 0;
    padding: 10px;
    background-color: #fff;
    color: var(--terminal-green);
    font-family: "Akt", sans-serif;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

/* Das Hintergrundbild mit Opacity über ein Pseudo-Element */
bodydinner::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('img/dinnerbg.webp') fixed center;
    background-size: cover;
    opacity: 0.4; /* <-- Hier die Transparenz einstellen (0.0 bis 1.0) */
    z-index: -1; /* Legt das Bild hinter den Text */
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--current-bg);
    background-size: cover;
    background-position: center;
    opacity: 0.4; /* <-- Hier die Transparenz einstellen (0.0 bis 1.0) */
    z-index: -1; /* Legt das Bild hinter den Text */
}

/* Fester Container zur exakten Zentrierung */
.login-container {
    width: 320px;
    margin: 0 auto;
}

/* Einheitliche Formatierung für beide Elemente */
.login-element {
    width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
    background-color: #ffb6c1 !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    color: #000 !important;
    font-size: 16px !important;
    font-style: italic !important;
    border-radius: 4px !important;
}

/* Spezifisch für das Dropdown */
.form-select.login-element {
    padding: 12px 40px 12px 16px !important;
    text-align: center !important;
    text-align-last: center !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    cursor: pointer !important;
}

/* Spezifisch für den Button */
.btn.login-element {
    padding: 12px 16px !important;
    font-weight: bold !important;
    text-align: center !important;
    cursor: pointer !important;
    background-color: #5ebad2 !important;
    height: 45px;
}

.btn.login-element:hover {
    background-color: #ffb6c1 !important;
}

.panel { 
    background: var(--panel-bg); 
    border: 1px solid var(--border-color); 
    padding: 0px 20px 20px 20px; 
    box-shadow: 0 0 10px rgba(0,255,102,0.05); }
        

/* 2. Container & Layout */
.container { max-width: 900px; margin: 0 auto
}

h1, h3 {
    text-transform: uppercase;
    color: #4d6bcf;
    text-align: center;
    font-family: "Akt", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

h2 {
    text-align: center;
    color: #5ebad2;
}

h4 {
    text-transform: uppercase;
    font-size: 20px;
    background-color: rgba(94, 186, 210, 0.7);
    text-align: center;
    font-family: "Akt", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

h5 {
    text-transform: uppercase;
    font-size: 16px;
    background-color: rgba(94, 186, 210, 0.7);
    text-align: center;
    font-family: "Akt", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    margin: 0px;
    display: inline;
}

h6 {
    font-size: 16px;
    background-color: rgba(94, 186, 210, 0.7);
    text-align: center;
    font-family: "Akt", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    padding: 14px;
}

p.login {
    font-size: 18px;
    padding: 20px;
}

.playerselect {
    font-size: 18px;
}

/* 3. Button-Grid (Die "Global Actions") */
.global-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

/* Globales Button-Tag für die Action-Buttons oben */
button {
    width: 100%;
    padding: 12px;
    background:rgba(255, 0, 255, 0.15);
    color: #000;
    border: 0px;
    font-style: italic;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    margin: -5px 0px -5px 0;
}

button:hover { 
    background: #5ebad2;
    color: #000;
}

.challenge-type-grid {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.tile-option {
    flex: 1;
    cursor: pointer;
}

/* Challenge Auswahl Modal */
.tile-option input[type="radio"] {
    display: none;
}

.tile-box {
    background: #fff;
    color: #FF00FF;
    border: 2px solid #FF00FF;
    border-radius: 5px;
    padding: 8px 4px;
    text-align: center;
    font-size: 13px;
    font-weight: bold;
    transition: all 0.2s ease-in-out;
}

/* Design, wenn die Kachel ausgewählt ist */
.tile-option input[type="radio"]:checked + .tile-box {
    background: #FF00FF;
    color: #000;
}

/* 4. Responsive Tabelle */
.table-wrapper {
    overflow-x: auto;
    width: 100%;
}

th {
    background: rgba(255, 255, 255, 0.4);
    padding: 10px;
    text-transform: uppercase;
    font-size: 14px;
}

td {
    padding: 10px;
    background-color: rgb(255, 255, 255, 0.4)
}

.bier-counter {
    color: var(--terminal-yellow);
    font-weight: bold;
    display: block;
    margin-top: 5px;
}

.highlight-box {
    border: 2px solid rgba(236, 58, 42, 0.4);
    padding: 15px 15px 15px 15px;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 5px;
}

.highlight-box-s {
    border: 2px solid rgba(236, 58, 42, 0.4);
    padding: 15px;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 5px;
}

.highlight-box-c {
    border: 2px solid #5ebad2;
    padding: 5px 15px 15px 15px ;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 5px;
}

.highlight-box-rank {
    border: 2px solid #5ebad2;
    padding: 0 15px 15px;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 5px;
}

.highlight-box-dinner {
    border: 2px solid #03eeb1;
    padding:10px 15px 10px 15px;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 5px;
}

.highlight-box h3 {
    margin-top: 0;
    color: var(--terminal-yellow);
}

@media (min-width: 600px) {
    .global-actions {
        grid-template-columns: repeat(3, 1fr);
    }
    body { padding: 40px; }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    margin: 2px;
    background-color: #000;
    color: #FF00FF;
    border: 2px solid #FF00FF;
    text-decoration: none;    
    font-family: "Akt", sans-serif;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    box-sizing: border-box;
    height: 35px;
    width: 150px;
    vertical-align: middle;
}

/* Der "Speichern"-Button bleibt breit (100%) */
.save-btn { 
    width: 100%; 
    padding: 15px; 
    background: #FF00FF; 
    color: #000; 
    border: none; 
    font-weight: bold; 
    cursor: pointer; 
    margin-top: 20px; 
    font-family: "Akt", sans-serif;
}

.btn-babypeach {
    background-color: rgb(255, 171, 118);
    color: #000;
}

.btn-babypeach:hover {
    background-color: #21829a;
    color: #000;
}

.btn-babyquest {
    display: block;
    width: 100%;
    padding: 12px;
    background: rgba(94, 186, 210, 0.7);
    color: #000;
    border: 0px;
    font-style: italic;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    box-sizing: border-box;
    margin: 5px 0px -5px 0;
}

.btn-babyquest:hover {
    background: #5ebad2;
    background-color: rgb(94, 186, 210);
    color: #000;
}
.btn-babyblue { 
    text-align: center;
    display: block;
    width: 100%;
    padding: 12px;
    text-decoration: none;
    background: rgba(255, 0, 255, 0.6);
    color: #03eeb1;
    border: 2px solid #ff00ff;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    margin: -5px 10px -5px 10px;
}
.btn-babyblue:hover {
    background-color: #ff00ff;
}

.btn-babyblueg { 
    text-align: center;
    display: block;
    width: 100%;
    padding: 12px;
    text-decoration: none;
    background: rgba(94, 186, 210, 0.7); 
    color: #000;
    border: 2px solid rgb(3, 238, 175); 
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    margin: -5px 10px -5px 10px;
}
.btn-babyblueg:hover {
    background-color: rgb(94, 186, 210);
}


.btn-babychallenge { 
    display: block;
    width: 100%;
    padding: 12px;
    background: rgba(94, 186, 210, 0.7); /* Türkis mit 70% Transparenz, Text bleibt voll deckend */
    color: #000;
    border: 0px;
    font-style: italic;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    box-sizing: border-box;
    margin: 5px 0px -5px 0;
}
.btn-babychallenge:hover {
    background-color: rgb(94, 186, 210); /* Beim Hover wird es komplett opak (100%) */
}

.btn-babydinner { 
    display: block;
    width: 100%;
    padding: 12px;
    background: rgba(3, 238, 177, 0.7); /* Türkis/Mint mit 70% Transparenz */
    color: #000;
    border: 0px;
    font-style: italic;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    box-sizing: border-box;
    margin: -5px 0px -5px 0;
}
.btn-babydinner:hover {
    background-color: rgb(3, 238, 175); /* Beim Hover wird es wieder 100% opak */
}

.btn-babyblue2 { 
    display: block;
    width: 100%;
    padding: 12px;
    background: #5ebad2;
    color: #000;
    border: 0px;
    font-style: italic;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    box-sizing: border-box;
    margin: -5px 0px -5px 0;
}
.btn-babyblue2:hover {
    background-color: rgba(255, 0, 255, 0.15);
}

.btn-babyblue3 { 
    display: block;
    width: 100%;
    padding: 12px;
    background: #03eeb1;
    color: #000;
    border: 0px;
    font-style: italic;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    box-sizing: border-box;
    margin: -5px 0px -5px 0;
}
.btn-babyblue3:hover {
    background-color: #03eeaf94;
}

/* Hover-Effekt für Standard Buttons */
.btn:hover,
.btn_index:hover {
    background-color: #ff00ff;
    color: #000;
}

/* Dein Index Button Stil */
.btn_index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    color: #FF00FF;
    border: 3px solid #FF00FF;
    text-decoration: none;    
    font-family: "Akt", sans-serif;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    box-sizing: border-box;
    height: 50px;
    vertical-align: middle;
    padding: 0 15px;
}

/* Alternierender Tabellen-Hintergrund für Zeilen */
.user-list tr:nth-child(odd) td {
    background-color: rgba(255, 255, 255, 0.25); /* Kaum durchsichtiges Weiß */
}

.user-list tr:nth-child(even) td {
    background-color: rgba(255, 255, 255, 0.05); /* Stärker durchsichtig */
}

/* Kopfzeile (th) behält einen eigenen Ton, damit sie sich abhebt */
.user-list th {
    background: rgba(255, 255, 255, 0.4);
}

/* Badge für Statistiken */
.stat-badge1 {
    background: rgba(0, 255, 255, 0.2); 
    border: 1px solid #333;
    padding: 2px 6px;
    border-radius: 6px;
    display: inline-block;
    margin: 1px;
    font-size: 13px;
}
.stat-badge2 {
    background:rgba(255, 0, 255, 0.2);
    border: 1px solid #333;
    padding: 2px 2px;
    border-radius: 6px;
    display: inline-block;
    margin: 1px;
    font-size: 13px;
}

.stat-badge3 {
    background: #ececec;
    border: 1px solid #333;
    padding: 2px 6px;
    border-radius: 6px;
    display: inline-block;
    margin: 1px;
    font-size: 13px;
}

/* Erzwingt feste Spaltenbreiten für die Tabelle */
.user-list {
    width: 100%;
    background: rgba(255, 255, 255, 0.4);
    table-layout: fixed; /* WICHTIG: Tabelle ignoriert nun den Inhalt bei der Breitenberechnung */
    border-collapse: collapse;
    border: 2px solid rgba(94, 186, 210, 0.4)
}

/* Begrenzung der Namensspalte */
.col-rank {
    width: 1px;            
    max-width: 15px;
    overflow: hidden;       
    white-space: nowrap;    
    text-align: left;
}

.col-name {
    width: 32px;            
    overflow: hidden;       
    white-space: nowrap;
    vertical-align: middle;
    text-align: left;
}

.mini-games-col {
    width: auto;
    word-wrap: break-word;
    text-align: center;
}

.col-points { 
    width: 20px; 
    text-align: left; 
    white-space: nowrap; 
}

/* Das Overlay, das den Hintergrund abdunkelt */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8); /* 80% Schwarz */
    z-index: 99;
}



/* Scrollbares Modal für Mobilgeräte */
#tasksModal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 94%;
    max-width: 500px;
    /* Hier die Höhenbegrenzung: */
    max-height: 80vh; 
    background: rgba(209, 176, 155, 0.9);
    border: 2px solid #ffab76;
    padding: 20px;
    z-index: 1000;
    border-radius: 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column; /* Damit Header oben bleibt */
}

/* Der Bereich der die Buttons enthält, wird scrollbar */
.task-scroll-area {
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 5px;
    margin-bottom: 15px;
}

/* Das Grid für die Buttons */
.task-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 Spalten */
    gap: 8px;
}

.task-grid button {
    height: 60px; /* Einheitliche Höhe für alle Buttons */
    font-size: 13px !important;
    padding: 4px !important;
    line-height: 1.2;
}