/* kiosk.css */

* {
    box-sizing: border-box;
}

:root {
    --text-strong: #e0e0e0;
    --text: #cfcfcf;
    --text-dim: #b8b8b8;
    --text-muted: #9a9a9a;
    --accent-green: #7fe6a3;
    --accent-red: #ff7a7a;
}

body {
    background-color: #000;
    color: var(--text);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    height: auto;
    font-size: clamp(11px, 1vw + 0.5vh, 20px);
    margin: 0;
    padding: clamp(0.4rem, 0.9vw, 1.1rem) 0;
    cursor: none;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    overflow-x: hidden;
}


#links,
#rechts {
    font-size: 1.1rem;
    margin-top: 0;
    min-width: 0;
    max-width: 900px;
    width: min(46vw, 900px);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: stretch;
    background: rgba(255,255,255,0.04);
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    padding: clamp(0.6rem, 1.1vw, 1.2rem);
}

#weather, #waste, #sonstige, #train, #tram, #bus {
    min-width: 0;
    width: 100%;
}

#main-flex {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.8rem, 1.6vw, 2.1rem);
    justify-content: center;
    align-items: start;
    width: min(96vw, 1800px);
    padding: 0 clamp(0.8rem, 2vw, 2.5rem);
    box-sizing: border-box;
}

#train-list {
    width: 100%;
    text-align: left;
}

.train-title {
    font-size: clamp(1rem, 1.25vw + 0.25vh, 1.6rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.04em;
    color: var(--text-strong);
}

.train-row {
    display: grid;
    grid-template-columns: 4.5em 6em 1fr 6em;
    gap: 0.8em;
    align-items: center;
    width: 100%;
    background: rgba(255,255,255,0.07);
    border-radius: 0.7rem;
    padding: 0.5rem 0.9rem;
    font-size: clamp(0.9rem, 0.75vw + 0.2vh, 1.2rem);
    margin-bottom: 0.2rem;
}
.tram-row,
.bus-row {
    display: grid;
    grid-template-columns: 4.5em 6em 1fr;
    gap: 0.8em;
    align-items: center;
    width: 100%;
    background: rgba(255,255,255,0.07);
    border-radius: 0.7rem;
    padding: 0.5rem 0.9rem;
    font-size: clamp(0.9rem, 0.75vw + 0.2vh, 1.2rem);
    margin-bottom: 0.2rem;
}

.train-time {
    font-weight: 500;
    color: var(--text-dim);
}
.train-line {
    font-weight: 400;
    color: var(--text-muted);
}
.train-direction {
    font-weight: 500;
    color: var(--text-strong);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.train-platform {
    font-weight: 400;
    color: var(--text-muted);
}
.train-label {
    font-weight: 400;
    color: var(--text-muted);
}
.train-value {
    font-weight: 500;
    color: var(--text-strong);
}

.weather-title {
    font-size: clamp(1rem, 1.25vw + 0.25vh, 1.6rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.04em;
    color: var(--text-strong);
}

.waste-title {
    font-size: clamp(0.95rem, 1.1vw + 0.25vh, 1.45rem);
    font-weight: 700;
    margin: 0.7rem 0 0.4rem;
    letter-spacing: 0.03em;
    color: var(--text-strong);
}

.weather-row, .waste-row {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    width: 100%;
    background: rgba(255,255,255,0.07);
    border-radius: 0.7rem;
    padding: 0.5rem 0.9rem;
    font-size: clamp(0.95rem, 0.9vw + 0.2vh, 1.45rem);
    margin-bottom: 0.2rem;

}

.waste-row {
    flex-wrap: wrap;
    align-items: center;
}

.waste-date {
    font-weight: 500;
    color: var(--text);
}

.waste-type {
    font-weight: 600;
    color: var(--text-strong);
}

.waste-time {
    font-weight: 400;
    color: var(--text-muted);
}

.waste-row-muted .waste-date,
.waste-row-muted .waste-type,
.waste-row-muted .waste-time {
    color: var(--text-dim);
}

.sonstige-title {
    font-size: clamp(0.95rem, 1.1vw + 0.25vh, 1.45rem);
    font-weight: 700;
    margin: 0.7rem 0 0.4rem;
    letter-spacing: 0.03em;
    color: var(--text-strong);
}

.sonstige-row {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    width: 100%;
    background: rgba(255,255,255,0.07);
    border-radius: 0.7rem;
    padding: 0.5rem 0.9rem;
    font-size: clamp(0.95rem, 0.9vw + 0.2vh, 1.45rem);
    margin-bottom: 0.2rem;
    flex-wrap: wrap;
    align-items: center;
}

.sonstige-clickable {
    cursor: pointer;
}

.sonstige-date {
    font-weight: 500;
    color: var(--text);
}

.sonstige-type {
    font-weight: 600;
    color: var(--text-strong);
}

.sonstige-hint {
    font-weight: 400;
    color: var(--text-muted);
}

.sonstige-time {
    font-weight: 400;
    color: var(--text-muted);
}

.sonstige-status {
    font-size: 0.9em;
    font-weight: 600;
    margin-left: auto;
    color: var(--accent-green);
}

.sonstige-status-warn {
    color: var(--accent-red);
}

.waste-clickable {
    cursor: pointer;
}

.waste-done-row {
    opacity: 0.65;
}

.waste-status {
    font-size: 0.9em;
    margin-left: auto;
    font-weight: 600;
}

.waste-status-done {
    color: var(--accent-green);
}

.waste-status-open {
    color: var(--accent-red);
}

.task-title {
    font-size: clamp(0.95rem, 1.1vw + 0.25vh, 1.45rem);
    font-weight: 700;
    margin: 0.7rem 0 0.4rem;
    letter-spacing: 0.03em;
    color: var(--text-strong);
}

.task-row {
    display: block;
    width: 100%;
    background: rgba(255,255,255,0.07);
    border-radius: 0.7rem;
    padding: 0.5rem 0.9rem;
    font-size: clamp(0.95rem, 0.9vw + 0.2vh, 1.45rem);
    margin-bottom: 0.2rem;
}

.task-row-done {
    opacity: 0.7;
}

.task-clickable {
    cursor: pointer;
}

.task-line {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.task-date {
    font-weight: 500;
    color: var(--text);
}

.task-name {
    font-weight: 600;
    color: var(--text-strong);
}

.task-group {
    font-weight: 400;
    color: var(--text-muted);
}

.task-status {
    font-size: 0.9em;
    font-weight: 600;
    margin-left: auto;
}

.task-status-done {
    color: var(--accent-green);
}

.task-status-open {
    color: var(--accent-red);
}

#waste-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.72);
    z-index: 1000;
}

#waste-modal.is-open {
    display: flex;
}

.waste-modal-card {
    background: #111;
    border-radius: 1rem;
    padding: 1.2rem 1.4rem;
    width: min(86vw, 620px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.08);
}

.waste-modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.waste-modal-sub {
    color: #bbb;
    font-size: 0.95rem;
}

.waste-user-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.6rem;
    margin-top: 1rem;
}

.waste-user-button {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 0.7rem;
    padding: 0.6rem 0.8rem;
    font-size: 1rem;
}

.waste-user-button.is-selected {
    border-color: rgba(127, 230, 163, 0.8);
    box-shadow: 0 0 0 2px rgba(127, 230, 163, 0.2);
}

.waste-user-button:active {
    transform: scale(0.98);
}

.waste-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-top: 1rem;
}

.waste-modal-cancel {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 0.6rem;
    padding: 0.5rem 0.9rem;
    font-size: 0.95rem;
}

.waste-modal-confirm {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 0.6rem;
    padding: 0.5rem 0.9rem;
    font-size: 0.95rem;
}

.waste-modal-undone {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 0.6rem;
    padding: 0.5rem 0.9rem;
    font-size: 0.95rem;
}

.waste-loading,
.waste-done-info {
    color: #bbb;
    font-size: 0.95rem;
    padding: 0.4rem 0;
}

#sonstige-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.72);
    z-index: 1000;
}

#sonstige-modal.is-open {
    display: flex;
}

.sonstige-modal-card {
    background: #111;
    border-radius: 1rem;
    padding: 1.2rem 1.4rem;
    width: min(86vw, 620px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.08);
}

.sonstige-modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.sonstige-modal-sub {
    color: #bbb;
    font-size: 0.95rem;
}

.sonstige-user-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.6rem;
    margin-top: 1rem;
}

.sonstige-user-button {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 0.7rem;
    padding: 0.6rem 0.8rem;
    font-size: 1rem;
}

.sonstige-user-button.is-selected {
    border-color: rgba(127, 230, 163, 0.8);
    box-shadow: 0 0 0 2px rgba(127, 230, 163, 0.2);
}

.sonstige-user-button:active {
    transform: scale(0.98);
}

.sonstige-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.sonstige-modal-cancel,
.sonstige-modal-clear,
.sonstige-modal-confirm {
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-radius: 0.6rem;
    padding: 0.5rem 0.9rem;
    font-size: 0.95rem;
}

.sonstige-modal-clear {
    color: #ff7a7a;
}

.sonstige-modal-confirm {
    color: #7fe6a3;
}

.sonstige-loading {
    color: #bbb;
    font-size: 0.95rem;
    padding: 0.4rem 0;
}

#task-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.72);
    z-index: 1000;
}

#task-modal.is-open {
    display: flex;
}

.task-modal-card {
    background: #111;
    border-radius: 1rem;
    padding: 1.2rem 1.4rem;
    width: min(86vw, 620px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.08);
}

.task-modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.task-modal-sub {
    color: #bbb;
    font-size: 0.95rem;
}

.task-user-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.6rem;
    margin-top: 1rem;
}

.task-user-button {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 0.7rem;
    padding: 0.6rem 0.8rem;
    font-size: 1rem;
}

.task-user-button.is-selected {
    border-color: rgba(127, 230, 163, 0.8);
    box-shadow: 0 0 0 2px rgba(127, 230, 163, 0.2);
}

.task-user-button:active {
    transform: scale(0.98);
}

.task-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-top: 1rem;
}

.task-modal-cancel {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 0.6rem;
    padding: 0.5rem 0.9rem;
    font-size: 0.95rem;
}

.task-modal-undone {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 0.6rem;
    padding: 0.5rem 0.9rem;
    font-size: 0.95rem;
}

.task-modal-confirm {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 0.6rem;
    padding: 0.5rem 0.9rem;
    font-size: 0.95rem;
}

.task-loading {
    color: #bbb;
    font-size: 0.95rem;
    padding: 0.4rem 0;
}

.weather-label {
    font-weight: 400;
    color: var(--text-muted);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.weather-value {
    font-weight: 500;
    color: var(--text-strong);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    gap: 0.6rem;
    align-items: center;
    justify-content: flex-end;
}

.weather-status {
    font-weight: 700;
}

.weather-status-time {
    font-weight: 500;
    color: var(--text-strong);
}

.weather-status-open {
    color: var(--accent-red);
}

.weather-status-closed {
    color: var(--accent-green);
}

@media (max-width: 1200px) {
    #main-flex {
        grid-template-columns: 1fr;
        width: 100%;
    }

    #links, #rechts {
        width: 100%;
        max-width: 100%;
    }

}

@media (max-width: 1920px) {
    #main-flex {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(1rem, 2vw, 2.5rem);
        justify-content: center;
        align-items: start;
        width: min(96vw, 1800px);
        padding: 0 clamp(0.8rem, 2vw, 2.5rem);
        box-sizing: border-box;
    }
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    #links, #rechts {
        width: 100%;
        max-width: 100%;
        padding: 1rem;
        margin: 0;
    }
    
    #weather, #waste, #sonstige, #train, #tram, #bus {
        min-width: auto;
        width: 100%;
    }
    
    .weather-title, .train-title, .sonstige-title {
        margin-bottom: 0.5rem;
    }
    
    .weather-row, .waste-row, .sonstige-row {
        padding: 0.5rem 0.8rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
    
    .train-row {
        grid-template-columns: 3em 4em 1fr 4em;
        padding: 0.5rem 0.8rem;
        gap: 0.5rem;
    }
    
    .tram-row, .bus-row {
        grid-template-columns: 3em 4em 1fr;
        padding: 0.5rem 0.8rem;
        gap: 0.5rem;
    }
    
    #main-flex {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
        padding: 0 1rem;
    }
}

/* Sehr kleine Bildschirme */
@media (max-width: 480px) {
    body {
        padding: 0.5rem;
    }
    
    #links, #rechts {
        padding: 0.8rem;
    }
    
    .weather-title, .train-title {
        font-size: 1.1rem;
    }
    
    .weather-row, .waste-row {
        padding: 0.4rem 0.6rem;
    }
    
    .train-row {
        grid-template-columns: 2.5em 3em 1fr;
        padding: 0.4rem 0.6rem;
    }
    
    .tram-row, .bus-row {
        grid-template-columns: 2.5em 3em 1fr;
        padding: 0.4rem 0.6rem;
    }
    
    /* Platform-Spalte auf sehr kleinen Bildschirmen ausblenden */
    .train-platform {
        display: none;
    }
}
