* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #f0f2f5;
    --card-bg: #ffffff;
    --primary: #2563eb;
    --primary-light: #eff6ff;
    --primary-hover: #1d4ed8;
    --success: #16a34a;
    --success-hover: #15803d;
    --success-light: #dcfce7;
    --danger: #dc2626;
    --danger-hover: #b91c1c;
    --danger-light: #fee2e2;
    --warning: #ea580c;
    --purple: #7c3aed;
    --purple-light: #f3e8ff;
    --text: #1f2937;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --border: #e5e7eb;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --nav-height: 64px;
}

html {
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0;
    padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px) + 16px);
    font-size: 16px;
    overscroll-behavior: none;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 12px;
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg);
}

header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.strafpunkte-anzeige {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--card-bg);
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    font-weight: 600;
    font-size: 0.9rem;
}

.strafpunkte-label {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.strafpunkte-wert {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--danger);
}

.strafpunkte-wert.zero {
    color: var(--success);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--card-bg);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    z-index: 100;
    border-top: 1px solid var(--border);
}

.nav-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.65rem;
    font-weight: 600;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
    min-width: 56px;
}

.nav-tab .nav-icon {
    font-size: 1.4rem;
    line-height: 1;
    transition: transform 0.2s;
}

.nav-tab.aktiv {
    color: var(--primary);
}

.nav-tab.aktiv .nav-icon {
    transform: scale(1.1);
}

.nav-tab:active .nav-icon {
    transform: scale(0.9);
}

/* Cards */
.aufgabe-karte {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.aufgabe-karte h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.aufgabe-karte.timer-aktiv {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-md), 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.aufgabe-karte.strafpunkte-aufgabe {
    border-left: 4px solid var(--purple);
}

/* Stat-Cards (Übersicht oben) */
.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.stat-card-karma {
    grid-column: 1 / -1;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1.5px solid var(--border);
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.stat-card .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Job-Buttons Duo */
.job-buttons-duo {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 24px 0 16px;
}

.job-ziehen-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn-job-circle {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-family: inherit;
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.btn-job-circle:active {
    transform: scale(0.95);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-job-erledigen {
    background: linear-gradient(135deg, var(--success) 0%, #22c55e 100%);
    box-shadow: 0 8px 30px rgba(22, 163, 74, 0.35);
}

.btn-job-erledigen:active {
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

.btn-job-circle .job-icon {
    font-size: 1.8rem;
}

.btn-job-circle .job-text {
    font-size: 0.9rem;
    font-weight: 700;
}

.job-ziehen-hint {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--purple);
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: #6d28d9;
}

.btn-tertiary {
    background: #f3f4f6;
    color: var(--text-muted);
}

.btn-tertiary:hover:not(:disabled) {
    background: #e5e7eb;
}

.btn-start {
    background: var(--success);
    color: white;
}

.btn-start:hover:not(:disabled) {
    background: var(--success-hover);
}

.btn-skip {
    background: var(--warning);
    color: white;
}

.btn-skip:hover:not(:disabled) {
    background: #c2410c;
}

.btn-ja {
    background: var(--success);
    color: white;
}

.btn-ja:hover:not(:disabled) {
    background: var(--success-hover);
}

.btn-nein {
    background: var(--danger);
    color: white;
}

.btn-nein:hover:not(:disabled) {
    background: var(--danger-hover);
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-klein {
    padding: 8px 14px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

.btn-danger-outline {
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--danger);
}

/* Start-Buttons */
.start-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.button-form {
    width: 100%;
}

/* Aufgabe Buttons */
.aufgabe-buttons {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

/* Aufgabe Infos */
.aufgabe-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
    letter-spacing: -0.01em;
}

.aufgabe-dauer {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

/* Timer */
.timer-container {
    margin: 20px 0;
    text-align: center;
}

.timer {
    font-size: 3.5rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--primary);
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.timer.finished {
    color: var(--success);
}

.timer-hinweis {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.erledigt-buttons {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.timer-frage {
    font-weight: 600;
    margin-bottom: 10px;
    width: 100%;
}

#erledigt-erste-frage,
#erledigt-erste-frage-straf {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}

.neue-aufgabe-frage {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}

.inline-form {
    flex: 1;
    min-width: 120px;
}

.inline-form .btn {
    width: 100%;
}

/* Meldungen */
.meldung {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 12px;
    font-weight: 500;
    font-size: 0.9rem;
}

.meldung-fehler {
    background: var(--danger-light);
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.meldung-ok {
    background: var(--success-light);
    color: #166534;
    border: 1px solid #bbf7d0;
}

.hinweis {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 8px 0;
}

.skip-hinweis {
    font-size: 0.85rem;
    color: var(--warning);
    font-weight: 500;
    margin-top: 8px;
    padding: 10px 12px;
    background: #fff7ed;
    border-radius: var(--radius-sm);
    border: 1px solid #fed7aa;
}

.ganztaegig-hinweis {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin: 12px 0;
    font-weight: 500;
    color: #92400e;
    font-size: 0.9rem;
}

/* Slot Machine */
.slot-machine {
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(160deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.05);
    margin-bottom: 16px;
    border: 2px solid #f59e0b;
    transition: all 0.3s;
}

.slot-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 16px 10px;
    background: linear-gradient(to bottom, rgba(245, 158, 11, 0.15), transparent);
}

.slot-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fbbf24;
    letter-spacing: 0.15em;
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
    text-transform: uppercase;
}

.slot-light {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 8px #f59e0b, 0 0 16px rgba(245, 158, 11, 0.4);
    animation: lightBlink 1s ease-in-out infinite alternate;
}

.slot-light:nth-child(1) { animation-delay: 0s; }
.slot-light:nth-child(3) { animation-delay: 0.5s; }

@keyframes lightBlink {
    from { opacity: 0.4; box-shadow: 0 0 4px #f59e0b; }
    to { opacity: 1; box-shadow: 0 0 12px #f59e0b, 0 0 24px rgba(245, 158, 11, 0.5); }
}

.slot-display {
    padding: 0 20px;
}

.slot-reel-container {
    position: relative;
    height: 72px;
    overflow: hidden;
    border-radius: 12px;
    background: #0a0a1a;
    border: 2px solid #334155;
    box-shadow: inset 0 4px 20px rgba(0, 0, 0, 0.6);
}

.slot-pointer {
    position: absolute;
    right: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 12px solid #f59e0b;
    z-index: 10;
    filter: drop-shadow(-2px 0 4px rgba(245, 158, 11, 0.5));
}

.slot-reel-container::before,
.slot-reel-container::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 20px;
    z-index: 5;
    pointer-events: none;
}

.slot-reel-container::before {
    top: 0;
    background: linear-gradient(to bottom, #0a0a1a, transparent);
}

.slot-reel-container::after {
    bottom: 0;
    background: linear-gradient(to top, #0a0a1a, transparent);
}

.slot-reel {
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.slot-item {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #cbd5e1;
    text-align: center;
    padding: 0 16px;
    flex-shrink: 0;
    transition: color 0.15s;
}

.slot-item:nth-child(odd) { background: rgba(30, 58, 95, 0.3); }
.slot-item:nth-child(even) { background: rgba(15, 23, 42, 0.5); }

.slot-item-winner {
    color: #fbbf24 !important;
    text-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
}

.slot-zeit-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
}

.slot-zeit-label {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 600;
}

.slot-zeit-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: #e2e8f0;
    min-width: 80px;
    text-align: center;
    transition: color 0.1s, transform 0.1s;
}

.slot-zeit-value.zeit-flash {
    color: #fbbf24;
    transform: scale(1.15);
}

.slot-zeit-value.zeit-locked {
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.slot-status {
    text-align: center;
    padding: 8px 16px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.03em;
}

.slot-winner {
    border-color: #22c55e;
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.3), 0 10px 40px rgba(0, 0, 0, 0.4);
    animation: winnerPulse 0.6s ease 2;
}

@keyframes winnerPulse {
    0%, 100% { box-shadow: 0 0 30px rgba(34, 197, 94, 0.3), 0 10px 40px rgba(0, 0, 0, 0.4); }
    50% { box-shadow: 0 0 50px rgba(34, 197, 94, 0.5), 0 10px 40px rgba(0, 0, 0, 0.4); }
}

/* Ergebnis-Anzeige */
.aufgabe-ergebnis {
    padding-top: 0;
}

.ergebnis-card {
    text-align: center;
    padding: 8px 0;
}

.mission-badge {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.25em;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.reveal-line {
    opacity: 0;
    transform: scale(0.9) translateY(8px);
}

@keyframes popIn {
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Aufgaben-Grid: Karten nebeneinander */
.aufgaben-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

@media (max-width: 380px) {
    .aufgaben-grid {
        grid-template-columns: 1fr;
    }
}

.aufgaben-grid .aufgabe-karte {
    display: flex;
    flex-direction: column;
    padding: 16px;
    position: relative;
}

.aufgaben-grid .aufgabe-name {
    font-size: 1.05rem;
    margin-top: 4px;
}

.aufgaben-grid .aufgabe-dauer {
    font-size: 0.85rem;
    flex: 1;
}

.aufgaben-grid .aufgabe-buttons {
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.aufgaben-grid .btn {
    font-size: 0.85rem;
    padding: 10px 12px;
}

.aufgabe-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 6px;
    width: fit-content;
}

.badge-aktuell {
    background: var(--primary-light);
    color: var(--primary);
}

.badge-spaeter {
    background: #fef3c7;
    color: #92400e;
}

.aufgabe-aktuell {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-md), 0 0 0 2px rgba(37, 99, 235, 0.08);
}

.aufgabe-spaeter {
    border: 1.5px dashed #d1d5db;
    opacity: 0.85;
}

.btn-spaeter {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.btn-spaeter:hover:not(:disabled) {
    background: #fde68a;
}

/* Formulare */
.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    margin-top: 16px;
    color: var(--text);
}

.form-label:first-of-type {
    margin-top: 0;
}

.form-select, .form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    margin-bottom: 12px;
    font-family: inherit;
    background: var(--card-bg);
    color: var(--text);
    transition: border-color 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.form-select:focus, .form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-hinweis {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: -4px 0 12px;
}

.form-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.form-row .form-input {
    flex: 1;
    margin-bottom: 0;
}

.form-row .btn {
    flex-shrink: 0;
    width: auto;
    padding: 12px 20px;
}

/* Bereich-Beschreibung */
.bereich-beschreibung {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.sub-heading {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 20px 0 10px;
    color: var(--text);
}

/* Listen */
.challenge-liste, .mitbewohner-liste {
    list-style: none;
}

.challenge-eintrag, .mitbewohner-eintrag {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #f9fafb;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.challenge-text {
    flex: 1;
    font-size: 0.9rem;
}

.mitbewohner-eintrag span {
    font-weight: 600;
}

.inline-form-klein {
    flex-shrink: 0;
}

/* Historie */
.historie {
    margin-top: 20px;
}

.historie h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.historie-liste {
    list-style: none;
}

.historie-eintrag {
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 8px;
    box-shadow: var(--shadow);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.historie-datum {
    color: var(--text-light);
    font-size: 0.75rem;
}

.historie-name {
    font-weight: 600;
}

.historie-details {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.historie-status.erledigt {
    color: var(--success);
    font-weight: 600;
}

.historie-status.nicht-erledigt {
    color: var(--danger);
    font-weight: 600;
}

.historie-modus {
    color: var(--purple);
    font-weight: 600;
}

.historie-strafpunkte {
    font-size: 0.75rem;
    font-weight: 700;
}

/* Auth-Seiten */
.auth-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0 20px;
    text-align: center;
}

.auth-logo {
    font-size: 3rem;
    margin-bottom: 8px;
}

.auth-title {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.auth-form {
    width: 100%;
    max-width: 360px;
    text-align: left;
}

.auth-form .form-label {
    margin-top: 12px;
}

.auth-btn {
    margin-top: 20px;
}

.auth-link {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* Header-User */
.header-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-name {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.btn-logout {
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-muted);
    transition: all 0.15s;
}

.btn-logout:hover {
    background: var(--danger-light);
    color: var(--danger);
    border-color: var(--danger);
}

/* Belohnungen */
.belohnungen-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.belohnung-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f9fafb;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
    flex-wrap: wrap;
}

.belohnung-verfuegbar {
    border-color: var(--success);
    background: var(--success-light);
}

.belohnung-gesperrt {
    opacity: 0.5;
}

.belohnung-name {
    flex: 1;
    font-weight: 600;
    font-size: 0.95rem;
    min-width: 120px;
}

.belohnung-kosten {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
    white-space: nowrap;
}

.belohnung-card form {
    flex-shrink: 0;
}

/* Beweis-Upload */
.beweis-upload-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.file-input {
    padding: 10px;
    font-size: 0.85rem;
}

.beweise-liste {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.beweis-thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.beweis-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Verwaltung-Tabs */
.verwaltung-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 4px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.verwaltung-tab {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.verwaltung-tab.aktiv {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.verwaltung-tab:not(.aktiv):hover {
    background: #f3f4f6;
}

/* Checkbox */
.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

/* Aufgaben-Verwaltung */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-grid-2 .form-label {
    margin-top: 0;
}

.aufgaben-liste {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.aufgaben-liste-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    background: #f9fafb;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: opacity 0.2s;
}

.aufgaben-liste-item.aufgabe-inaktiv {
    opacity: 0.45;
}

.aufgaben-liste-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.aufgaben-liste-name {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aufgaben-liste-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.aufgaben-liste-aktionen {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
    align-items: center;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.1rem;
    text-decoration: none;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.btn-icon:hover {
    background: #e5e7eb;
}

.btn-icon-danger:hover {
    background: var(--danger-light);
}

/* Modi */
.modi-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.modi-liste {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.modi-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--purple-light);
    color: var(--purple);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.modi-tag-remove {
    background: none;
    border: none;
    color: var(--purple);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.15s;
}

.modi-tag-remove:hover {
    opacity: 1;
    color: var(--danger);
}

.aufgaben-liste-modi {
    font-size: 0.7rem;
    color: var(--purple);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Modus-Anzeige bei gezogenem Job */
.aufgabe-modus {
    display: inline-block;
    padding: 4px 12px;
    background: var(--purple-light);
    color: var(--purple);
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 6px;
    margin-bottom: 4px;
}

/* Seiten-Footer */
.seiten-footer {
    text-align: center;
    padding: 24px 0 8px;
    font-size: 0.78rem;
    color: var(--text-light);
}

.seiten-footer a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}

.seiten-footer a:hover {
    color: var(--primary);
}

.footer-trenner {
    margin: 0 6px;
    color: var(--border);
}

/* Impressum */
.impressum-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.impressum-link:hover {
    text-decoration: underline;
}

/* AGB-Seite */
.agb-box {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    margin: 16px 0;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
    max-height: 50vh;
    overflow-y: auto;
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text);
    -webkit-overflow-scrolling: touch;
}

.agb-box p {
    margin-bottom: 10px;
}

.agb-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 18px;
    margin-bottom: 6px;
}

.agb-heading:first-child {
    margin-top: 0;
}

.agb-liste {
    margin: 8px 0 12px 20px;
    padding: 0;
}

.agb-liste li {
    margin-bottom: 4px;
    padding-left: 4px;
}

.agb-form {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.agb-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #f9fafb;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    transition: border-color 0.2s, background 0.2s;
}

.agb-checkbox:has(input:checked) {
    border-color: var(--success);
    background: var(--success-light);
}

.agb-checkbox input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: var(--success);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 1px;
}

@media (min-width: 640px) {
    body {
        padding-top: 16px;
    }

    .container {
        padding: 0 24px;
    }
}
