:root {
    --bg-color: #000000;
    --card-bg: rgba(28, 28, 30, 0.8);
    --accent-color: #007AFF;
    --text-primary: #FFFFFF;
    --text-secondary: #8E8E93;
    --glass-blur: blur(20px);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
}

.app-container {
    width: 100%;
    max-width: 450px;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    position: relative;
    z-index: 10;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.video-section {
    flex: 1;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: #1c1c1e;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-bottom: 20px;
}

#video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1); /* Spiegelverkehrt für Self-Cam, falls gewünscht */
}

.status-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: var(--glass-blur);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--accent-color);
    font-weight: 600;
}

.shutter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    opacity: 0;
    transition: opacity 0.1s;
    pointer-events: none;
}

.controls {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.main-btn {
    background: var(--accent-color);
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.4);
    transition: transform 0.2s, background 0.2s;
}

.main-btn:active {
    transform: scale(0.95);
    background: #0062CC;
}

.result-card {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    padding: 20px;
    border-radius: 20px;
    min-height: 100px;
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.result-card h3 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#result-text {
    font-size: 16px;
    line-height: 1.5;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-card.active {
    animation: fadeIn 0.5s ease-out;
}
