/* Design-System Variablen */
:root {
    --color-primary: #3b82f6;
    --color-primary-dark: #2563eb;
    --color-success: #10b981;
    --color-danger: #ef4444;
    --color-warning: #f59e0b;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #1a1a2e;
    --text-secondary: #6b7280;
    --radius-md: 8px;
    --radius-lg: 16px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #0f172a;
        --bg-secondary: #1e293b;
        --text-primary: #f8fafc;
        --text-secondary: #cbd5e1;
    }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body { font-family: system-ui, -apple-system, sans-serif; background-color: var(--bg-secondary); color: var(--text-primary); min-height: 100vh; display: flex; flex-direction: column; }

/* Fokus-Ring für Barrierefreiheit */
*:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; border-radius: 4px; }

.main-content { flex: 1; padding: 1.5rem; max-width: 800px; width: 100%; margin: 0 auto; }

/* Umfrage-Karte */
.survey-card { background: var(--bg-primary); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.survey-card:hover { transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }

/* Abstimmungs-Button */
.vote-btn { min-height: 48px; min-width: 48px; display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1.25rem; border-radius: var(--radius-md); background: white; border: 2px solid #e2e8f0; transition: all 0.2s ease; }
.vote-btn:hover { border-color: var(--color-primary); background: #eff6ff; }
.vote-btn[aria-pressed="true"] { border-color: var(--color-success); background: #ecfdf5; color: #065f46; }

/* Ergebnis-Balken */
.result-bar { position: relative; height: 32px; background: #e2e8f0; border-radius: var(--radius-md); overflow: hidden; margin-bottom: 1rem; }
.result-fill { height: 100%; transition: width 0.5s ease; display: flex; align-items: center; padding-left: 0.75rem; color: white; font-weight: 600; min-width: 40px; }

/* Badge */
.badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.875rem; font-weight: 600; }
.badge--open { background: #ecfdf5; color: #065f46; }
.badge--closed { background: #fef2f2; color: #991b1b; }
.badge--draft { background: #fffbeb; color: #92400e; }

/* Formular */
input, textarea, select { width: 100%; padding: 0.75rem 1rem; border: 2px solid #e2e8f0; border-radius: var(--radius-md); background: white; color: var(--text-primary); font-size: 1rem; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }

/* Button */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border-radius: var(--radius-md); font-weight: 600; transition: all 0.2s ease; min-height: 48px; cursor: pointer; }
.btn-primary { background: var(--color-primary); color: white; }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-success { background: var(--color-success); color: white; }
.btn-danger { background: var(--color-danger); color: white; }

/* Navigation */
.nav-link { padding: 0.5rem 1rem; border-radius: var(--radius-md); transition: all 0.2s ease; text-decoration: none; color: var(--text-secondary); font-weight: 500; }
.nav-link:hover, .nav-link[aria-current="page"] { background: #eff6ff; color: var(--color-primary); }

/* Header */
header { background: var(--bg-primary); border-bottom: 1px solid #e2e8f0; padding: 1rem 1.5rem; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); }
header nav { display: flex; justify-content: space-between; align-items: center; max-width: 800px; margin: 0 auto; }

/* Footer */
footer { background: var(--bg-primary); border-top: 1px solid #e2e8f0; padding: 1.5rem; text-align: center; color: var(--text-secondary); margin-top: auto; }
