﻿#bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image: url('../Kurzspieltest/bg2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    overflow: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

#bg-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(0,10,5,0.45);
    transition: background .3s;
}

#dimmer-bar {
    position: fixed;
    top: 70px;
    right: 14px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 30px;
    padding: 5px 14px 5px 10px;
}

    #dimmer-bar label {
        color: rgba(255,255,255,.85);
        font-size: 12px;
        margin: 0;
        white-space: nowrap;
    }

#dimmer {
    width: 80px;
    accent-color: #1D9E75;
    cursor: pointer;
}

body {
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background-color: rgba(39, 41, 39);
}

#app-wrap {
    position: relative;
    z-index: 10;
    max-width: 560px;
    margin: 0 auto;
    padding: 80px 12px 60px;
}

.page-title {
    color: #fff;
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 2px;
    text-shadow: 0 2px 8px rgba(0,0,0,.5);
}

.page-sub {
    color: rgba(255,255,255,.65);
    font-size: .8rem;
    margin-bottom: 1.25rem;
}

.btn-week {
    flex: 1;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,.25);
    color: rgba(255,255,255,.9);
    border-radius: 12px;
    padding: 9px;
    font-size: .82rem;
    transition: background .15s;
    cursor: pointer;
}

    .btn-week:hover {
        background: rgba(255,255,255,.22);
        color: #fff;
    }

.week-label {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 2px;
    text-shadow: 0 2px 8px rgba(0,0,0,.45);
}

.week-sub {
    color: rgba(255,255,255,.6);
    font-size: .78rem;
    margin-bottom: 1rem;
}

.glass {
    background: rgba(255,255,255,.10);
    backdrop-filter: blur(38px);
    -webkit-backdrop-filter: blur(38px);
    border: 1.5px solid rgba(255,255,255,.22);
    border-radius: 16px;
    box-shadow: 0 16px 32px rgba(0,0,0,.25);
}

.section-card {
    padding: 1rem 1.2rem;
    margin-bottom: 10px;
}

.section-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.section-title {
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
}

.task {
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

    .task:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

.task-desc {
    color: rgba(255,255,255,.82);
    font-size: .78rem;
    line-height: 1.55;
    margin-bottom: 4px;
}

.task-scoring {
    color: rgba(255,255,255,.45);
    font-size: .72rem;
    font-style: italic;
    margin-bottom: 7px;
}

.score-label {
    color: rgba(255,255,255,.8);
    font-size: .78rem;
    min-width: 78px;
}

.score-max {
    color: rgba(255,255,255,.45);
    font-size: .75rem;
}

.stepper {
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.08);
}

.stepper-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    font-size: 20px;
    font-weight: 300;
    cursor: pointer;
    color: rgba(255,255,255,.85);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .12s;
    flex-shrink: 0;
}

    .stepper-btn.minus {
        border-right: 1px solid rgba(255,255,255,.18);
    }

    .stepper-btn.plus {
        border-left: 1px solid rgba(255,255,255,.18);
    }

    .stepper-btn:hover {
        background: rgba(255,255,255,.15);
    }

    .stepper-btn:active {
        background: rgba(255,255,255,.25);
    }

.score-input {
    width: 44px;
    padding: 0;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    border: none;
    background: transparent;
    color: #fff;
    height: 36px;
    -moz-appearance: textfield;
}

    .score-input::-webkit-inner-spin-button {
        -webkit-appearance: none;
    }

    .score-input:focus {
        outline: none;
    }

.results-card {
    padding: 1.2rem;
    margin-top: 14px;
}

.results-title {
    color: rgba(255,255,255,.6);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 12px;
}

.result-item {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    padding: 10px;
}

.result-area {
    color: rgba(255,255,255,.5);
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 2px;
}

.result-score {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1;
}

    .result-score span {
        font-size: .72rem;
        font-weight: 400;
        color: rgba(255,255,255,.45);
    }

.result-hcp {
    color: rgba(255,255,255,.55);
    font-size: .68rem;
    margin-top: 3px;
}

.total-label {
    color: rgba(255,255,255,.55);
    font-size: .8rem;
}

.total-pts {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
}

.total-bar {
    height: 7px;
    background: rgba(255,255,255,.12);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.total-fill {
    height: 100%;
    border-radius: 4px;
    transition: width .4s ease;
    background: #1D9E75;
}

.hcp-badge {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(29,158,117,.25);
    color: #5eefc0;
    border: 1px solid rgba(29,158,117,.4);
    margin-bottom: 12px;
}

.btn-action {
    flex: 1;
    padding: 10px;
    font-size: .8rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.9);
    backdrop-filter: blur(8px);
    transition: background .15s;
}

    .btn-action:hover {
        background: rgba(255,255,255,.2);
        color: #fff;
    }

    .btn-action.btn-save {
        border-color: rgba(29,158,117,.6);
        background: rgba(29,158,117,.18);
        color: #5eefc0;
    }

    .btn-action.btn-reset {
        border-color: rgba(255,80,80,.5);
        background: rgba(255,60,60,.15);
        color: #ff9a9a;
    }

        .btn-action.btn-reset:hover {
            background: rgba(255,60,60,.28);
        }

    .btn-action.btn-save:hover {
        background: rgba(29,158,117,.3);
    }

    .btn-action.btn-dl {
        border-color: rgba(56,139,253,.6);
        background: rgba(56,139,253,.18);
        color: #88c0fd;
    }

        .btn-action.btn-dl:hover {
            background: rgba(56,139,253,.3);
        }

.prev-title {
    color: rgba(255,255,255,.4);
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 8px;
}

.prev-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
    font-size: .78rem;
}

    .prev-row:last-child {
        border-bottom: none;
    }

.prev-week {
    color: #fff;
    font-weight: 600;
}

.prev-date {
    color: rgba(255,255,255,.4);
    font-size: .72rem;
}

.prev-score {
    color: #fff;
    font-weight: 700;
    text-align: right;
}

.prev-hcp {
    color: rgba(255,255,255,.5);
    font-size: .68rem;
}

#toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10,30,20,.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(29,158,117,.4);
    color: #5eefc0;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: .8rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
    white-space: nowrap;
    z-index: 999;
}

    #toast.show {
        opacity: 1;
    }

@media print {
    #bg, #bg-overlay, #dimmer-bar, .btn-week, .btn-action {
        display: none !important;
    }
}

.mb-2, .my-2 {
    margin-bottom: 1.5rem !important;
}
