/* ==========================================
   SHK-MATE - Eingabefelder, Auswahllisten, Buttons und Ergebnisbox
   Teil von style.css - die Reihenfolge der <link>-Tags
   in index.html entspricht der urspruenglichen Datei.
   ========================================== */

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-family: "JetBrains Mono", monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input,
select {
    width: 100%;
    padding: 13px 14px;
    margin-bottom: 12px;
    background-color: var(--input-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    color: white;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
    touch-action: auto;
    -webkit-tap-highlight-color: rgba(0, 86, 179, 0.2);
    /* Mobile Fixes - minimal */
    appearance: none;
    -webkit-appearance: none;
    -webkit-text-size-adjust: 100%;
    /* WICHTIG: Pointer-Events auf auto - damit Inputs anwählbar sind */
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

input[type="number"],
input[type="text"],
textarea {
    /* Mindestens 16px um iOS Auto-Zoom zu verhindern */
    font-size: 16px;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.15);
}

button {
    width: 100%;
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--primary) 0%, #003d82 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.25);
    margin-bottom: 10px;
}

button:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

button:active {
    transform: scale(0.97);
    box-shadow: 0 2px 6px rgba(0, 86, 179, 0.3);
}

button.secondary {
    background: linear-gradient(135deg, #444 0%, #2d2d2d 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.result-box {
    background-color: rgba(0, 86, 179, 0.2);
    border: 2px solid var(--primary);
    color: #e8e8e8;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    display: none;
    font-weight: bold;
    line-height: 1.6;
}

.result-box[style*="background:rgba(180, 0, 0"] {
    background-color: rgba(200, 0, 0, 0.2) !important;
    border-color: #ff6b6b !important;
}

/* Aktionsleiste unter einem Rechenergebnis */
.result-actions {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-share {
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
