/* 1. LOKALE SCHRIFTEN */
@font-face {
    font-family: 'FranziskaPro-Black';
    src: url('./fonts/FranziskaPro-Black.otf') format('opentype');
    font-weight: 900;
}

@font-face {
    font-family: 'FrutigerNext';
    src: url('./fonts/FrutigerNextLTW1G-Regular.otf') format('opentype');
}

/* 2. LAYOUT */
body {
    background-color: #aa0000;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'FrutigerNext', Helvetica, Arial, sans-serif;
}

.gcl-calculator {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    border: 1px solid #333;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.gcl-header { text-align: center; margin-bottom: 30px; }
.gcl-subtitle { color: #a68c59; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; }
.gcl-title { font-family: 'FranziskaPro-Black', serif; font-size: 2rem; margin: 5px 0; text-transform: uppercase; }

/* 3. OVLÁDACÍ PRVKY */
.gcl-control-group { margin-bottom: 25px; }

.gcl-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.gcl-label-row label { font-size: 0.85rem; color: #ccc; }

/* Wrapper pro tlačítka a input */
.gcl-interaction-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Numerický vstup */
.gcl-num-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid #a68c59;
    color: #a68c59;
    font-family: 'FranziskaPro-Black', serif;
    font-size: 1.1rem;
    width: 45px;
    text-align: center;
    padding: 2px 0;
}
.gcl-num-input:focus { outline: none; border-bottom: 1px solid #fff; color: #fff; }

/* Skrytí šipek u inputu */
.gcl-num-input::-webkit-outer-spin-button, 
.gcl-num-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Tlačítka +/- */
.gcl-btn-minus, .gcl-btn-plus {
    background: #2a2a2a;
    border: 1px solid #a68c59;
    color: #fff;
    width: 26px;
    height: 26px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gcl-btn-minus:active, .gcl-btn-plus:active { background: #a68c59; }

.gcl-unit { color: #a68c59; font-size: 0.8rem; margin-left: -2px; margin-right: 5px; }

/* 4. SLIDER */
.gcl-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 3px;
    background: #444;
    outline: none;
    margin: 15px 0;
}
.gcl-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px; height: 20px;
    background: #a68c59;
    border: 1px solid #fff;
    cursor: pointer;
}

/* 5. VÝSLEDEK */
.gcl-result-area {
    margin-top: 30px;
    padding: 25px;
    text-align: center;
    background: #000;
    border: 1px solid #a68c59;
}
.gcl-result-label { font-size: 0.75rem; color: #a68c59; text-transform: uppercase; letter-spacing: 1px; }
.gcl-result-value { font-family: 'FranziskaPro-Black', serif; font-size: 3.2rem; color: #fff; margin-top: 10px; }

/* ... ponechte vše stávající a přidejte/upravte následující: ... */

/* Hlavička s info tlačítkem */
.gcl-header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.gcl-info-btn {
    position: absolute;
    right: 0;
    background: transparent;
    border: 1px solid #a68c59;
    color: #a68c59;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s;
}

.gcl-info-btn:hover {
    background: #a68c59;
    color: #000;
}

/* Milníky pod výsledkem */
.gcl-milestone {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
    min-height: 1.2em;
}

/* Jednoduchý Modal */
.gcl-modal {
    display: none;
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 100;
    padding: 20px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
}

.gcl-modal.active { display: flex; }

.gcl-modal-content {
    background: #1a1a1a;
    border: 1px solid #a68c59;
    padding: 20px;
    text-align: left;
}

.gcl-modal-content h3 { color: #a68c59; font-family: 'FranziskaPro-Black', serif; margin-top: 0; }
.gcl-modal-content ul { padding-left: 20px; color: #ccc; font-size: 0.9rem; }
.gcl-modal-content li { margin-bottom: 10px; }

#gcl-modal-close {
    background: #a68c59;
    border: none;
    color: #000;
    padding: 8px 15px;
    width: 100%;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
}

/* ... ponechejte stávající ... */

.gcl-info-btn {
    position: absolute;
    right: 0;
    background: transparent;
    border: 1px solid #a68c59;
    color: #a68c59;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.8rem;
    cursor: pointer;
}

.gcl-milestone {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
    min-height: 1.2em;
}

.gcl-modal {
    display: none;
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.92);
    z-index: 100;
    padding: 20px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
}
.gcl-modal.active { display: flex; }
.gcl-modal-content { background: #1a1a1a; border: 1px solid #a68c59; padding: 25px; }
.gcl-modal-content h3 { color: #a68c59; margin-top: 0; font-family: 'FranziskaPro-Black', serif; }
#gcl-modal-close { background: #a68c59; border: none; padding: 10px; width: 100%; cursor: pointer; font-weight: bold; margin-top: 15px; }

/* Vaše úprava slideru */
.gcl-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 20px; /* Upraveno dle vašeho požadavku */
    background: #a68c59;
    border: 1px solid #fff;
    cursor: pointer;
}

@media (max-width: 480px) {
    .gcl-calculator {
        padding: 20px 15px;
        border: none;
        box-shadow: none;
        height: 100vh; /* Roztáhne se na celou výšku mobilu */
    }
    .gcl-result-value {
        font-size: 2.8rem; /* Trochu zmenšíme pro menší telefony */
    }
}

/* Zlepšení dotykové odezvy pro tlačítka */
.gcl-btn-minus, .gcl-btn-plus {
    min-width: 35px; /* Větší plocha pro prst */
    min-height: 35px;
}
/* Modus-Switch (Punkte vs. Preisgeld) */
.gcl-mode-switch {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 20px;
    border: 1px solid #333;
}

.gcl-mode-switch button {
    background: #000;
    border: none;
    color: #888;
    padding: 10px 20px;
    cursor: pointer;
    font-family: 'FrutigerNext', Arial, sans-serif;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    width: 50%;
    transition: all 0.3s;
}

.gcl-mode-switch button.active {
    background: #a68c59;
    color: #000;
    font-weight: bold;
}

/* Info über bezahlte Plätze */
.gcl-itm-tag {
    text-align: center;
    font-size: 0.85rem;
    color: #a68c59;
    margin-top: -10px;
    margin-bottom: 20px;
    font-family: 'FrutigerNext', Arial, sans-serif;
    letter-spacing: 1px;
}

/* Verhindern, dass die Währung (CHF) über den Rand ragt auf kleinen Displays */
@media (max-width: 480px) {
    .gcl-result-value {
        font-size: 2.5rem !important; 
    }
}