/**
 * DRK Check-in Frontend Styles
 * Mobile-first, grosse Touch-Targets, DRK-Farbschema
 */

.drk-checkin-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333;
}

/* States */
.drk-state {
    text-align: center;
}

/* Loading spinner */
.drk-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #eee;
    border-top-color: #cc0000;
    border-radius: 50%;
    margin: 40px auto 20px;
    animation: drk-spin 0.8s linear infinite;
}

@keyframes drk-spin {
    to { transform: rotate(360deg); }
}

/* Error */
.drk-error-icon {
    width: 64px;
    height: 64px;
    line-height: 64px;
    border-radius: 50%;
    background: #cc0000;
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    margin: 40px auto 16px;
}

/* Success */
.drk-success-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background: #46b450;
    color: #fff;
    font-size: 48px;
    margin: 40px auto 16px;
}

.drk-success-in {
    color: #46b450;
}

.drk-success-out {
    color: #cc0000;
}

.drk-success-details {
    font-size: 18px;
    margin: 8px 0;
}

.drk-success-time {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

/* Event header */
.drk-event-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #cc0000;
}

.drk-event-header h2 {
    margin: 0 0 4px;
    color: #cc0000;
    font-size: 22px;
}

.drk-event-meta {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Scanner area */
.drk-scanner-area {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 16px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.drk-video {
    width: 100%;
    display: block;
    min-height: 280px;
    object-fit: cover;
}

.drk-scan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.drk-scan-frame {
    width: 200px;
    height: 200px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
}

.drk-scan-status {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin: 8px 0;
}

/* Buttons */
.drk-btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    min-height: 48px;
    min-width: 120px;
    transition: background 0.2s, border-color 0.2s;
}

.drk-btn-primary {
    background: #cc0000;
    color: #fff;
    border-color: #cc0000;
}

.drk-btn-primary:hover,
.drk-btn-primary:active {
    background: #aa0000;
    border-color: #aa0000;
}

.drk-btn-secondary {
    background: #fff;
    color: #333;
    border-color: #ccc;
}

.drk-btn-secondary:hover,
.drk-btn-secondary:active {
    background: #f5f5f5;
    border-color: #999;
}

.drk-btn-large {
    padding: 18px 36px;
    font-size: 18px;
    min-width: 160px;
}

/* Confirmation buttons */
.drk-confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

.drk-confirm-details {
    font-size: 16px;
    color: #666;
}

/* Manual entry */
.drk-manual-entry {
    margin: 16px 0;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 8px;
}

.drk-manual-entry label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.drk-manual-row {
    display: flex;
    gap: 8px;
}

.drk-input {
    flex: 1;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 8px;
    min-height: 48px;
}

.drk-input:focus {
    border-color: #cc0000;
    outline: none;
}

.drk-toggle-manual {
    display: block;
    width: 100%;
    margin-top: 12px;
    font-size: 14px;
    padding: 10px;
}

/* DSGVO notice */
.drk-dsgvo-notice {
    margin-top: 16px;
    padding: 12px;
    background: #f0f4f8;
    border-left: 3px solid #666;
    border-radius: 4px;
    font-size: 12px;
    color: #555;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 480px) {
    .drk-checkin-container {
        padding: 8px;
    }

    .drk-scan-frame {
        width: 160px;
        height: 160px;
    }

    .drk-confirm-buttons {
        flex-direction: column;
    }

    .drk-btn-large {
        width: 100%;
    }
}
