/**
 * Herzlich Braut Sommer-Schmelze 2026 — Spiel-spezifische Styles
 */

/* --- Spielerklärung --- */
.explanation-card {
    max-width: 500px;
    margin: 2rem auto;
    padding: 1.75rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.explanation-card h2 {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    color: #1B2A4A;
    margin-bottom: 1.25rem;
}

.explanation-card ol {
    text-align: left;
    padding-left: 1.75rem;
    margin-bottom: 1.75rem;
}

.explanation-card li {
    font-size: clamp(1.15rem, 3.5vw, 1.4rem);
    margin-bottom: 0.85rem;
    line-height: 1.6;
    color: #333;
}

/* --- Spielbereich --- */
.game-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
}

#game-canvas {
    width: 100%;
    height: 100%;
    touch-action: none;
}

/* --- Spiel-UI Overlay (oben, über Canvas) --- */
.game-ui {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: env(safe-area-inset-top, 12px) 16px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: none;
}

.timer-display {
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #c73e6d;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.progress-bar-container {
    flex: 1;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #FFD700, #FF6B35);
    border-radius: 5px;
    transition: width 0.2s ease;
}

.progress-text {
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: bold;
    color: #1B2A4A;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

/* --- Ergebnis-Karte --- */
.result-card {
    max-width: 500px;
    margin: 1.25rem auto;
    padding: 2.25rem 1.75rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.result-title {
    font-size: clamp(1.6rem, 5vw, 2rem);
    color: #C8963E;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.result-message {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    color: #555;
    margin-bottom: 1.25rem;
}

.discount-badge {
    display: inline-block;
    padding: 1rem 2.25rem;
    background: linear-gradient(135deg, #C8963E, #FFD700);
    color: white;
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    font-weight: bold;
    border-radius: 12px;
    margin-bottom: 1.25rem;
}

.voucher-code {
    font-family: monospace;
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    color: #1B2A4A;
    background: #f5f0e8;
    padding: 1rem 1.75rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    letter-spacing: 2px;
}

.validity-note {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: #888;
    margin-top: 1.25rem;
}

/* --- QR-Code --- */
.qr-section {
    margin: 1.75rem 0;
}

.qr-code {
    width: 220px;
    height: 220px;
    border: 4px solid #C8963E;
    border-radius: 8px;
}

.qr-hint {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: #888;
    margin-top: 0.75rem;
}

/* --- Lead-Formular --- */
.lead-form {
    max-width: 500px;
    margin: 1.75rem auto;
    padding: 1.75rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.lead-form h2 {
    font-size: clamp(1.6rem, 5vw, 2rem);
    color: #1B2A4A;
    margin-bottom: 0.75rem;
    text-align: center;
}

.form-hint {
    font-size: clamp(1.1rem, 3.5vw, 1.3rem);
    color: #666;
    text-align: center;
    margin-bottom: 1.75rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: clamp(1.05rem, 3.5vw, 1.25rem);
    color: #333;
    margin-bottom: 0.5rem;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e0d5c5;
    border-radius: 8px;
    font-size: clamp(1.2rem, 4vw, 1.4rem);
    transition: border-color 0.2s;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: #C8963E;
}

.consent-label {
    display: flex !important;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: clamp(1.05rem, 3.5vw, 1.25rem) !important;
    cursor: pointer;
}

.consent-label input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* --- Erfolgs-Screen --- */
.success-card {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2.25rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.success-card h2 {
    color: #28a745;
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    margin-bottom: 1.25rem;
}

/* --- Ergebnis-Aktionen --- */
.result-actions {
    max-width: 500px;
    margin: 1.75rem auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* --- Fehler-Karte --- */
.error-card {
    max-width: 400px;
    margin: 3rem auto;
    padding: 2.25rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    text-align: center;
    color: #666;
}

/* --- Sperrseite --- */
.closed-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
}

.closed-message {
    font-size: clamp(1.5rem, 4.5vw, 1.8rem);
    color: #555;
    margin: 1.25rem 0;
}

.closed-info {
    background: rgba(255, 255, 255, 0.8);
    padding: 1.25rem 2.25rem;
    border-radius: 12px;
    margin: 1.25rem 0;
}

.closed-closing {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    color: #C8963E;
    margin: 1.75rem 0;
}

/* --- Utility --- */
.hidden {
    display: none !important;
}
