/* ========================================
   Leben in Deutschland - Styles
   Colors: German flag - Black, Red, Gold
   ======================================== */

:root {
    --black: #000000;
    --red: #DD0000;
    --gold: #FFCC00;
    --dark-red: #B30000;
    --dark-gold: #D4A900;
    --bg: #FAFAFA;
    --card-bg: #FFFFFF;
    --text: #1A1A1A;
    --text-light: #595959;
    --text-muted: #757575;
    --border: #E5E5E5;
    --border-light: #F0F0F0;
    --success: #22C55E;
    --success-bg: #F0FDF4;
    --error: #EF4444;
    --error-bg: #FEF2F2;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --transition: 0.2s ease;
}

/* Dark Mode */
body.dark-mode {
    --bg: #121212;
    --card-bg: #1E1E1E;
    --text: #E0E0E0;
    --text-light: #B8B8B8;
    --text-muted: #989898;
    --border: #333333;
    --border-light: #2A2A2A;
    --success-bg: #0D2818;
    --error-bg: #2D1111;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

body.dark-mode .question-translation,
body.dark-mode .aq-translation {
    background: #1a1a2e;
}

body.dark-mode .about-translation-note {
    background: rgba(255,204,0,0.05);
}

body.dark-mode .about-mission {
    background: rgba(255,204,0,0.05);
    border-color: rgba(255,204,0,0.15);
}

body.dark-mode .info-page-header {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

body.dark-mode .about-header {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

body.dark-mode .info-page-stat {
    background: #2A2A2A;
}

body.dark-mode .info-page-cat {
    background: #2A2A2A;
}

body.dark-mode .about-connect {
    background: #2A2A2A;
}

body.dark-mode .option-btn {
    background: #2A2A2A;
    color: var(--text);
    border-color: #444;
}

body.dark-mode .option-letter {
    background: #444;
    color: #ccc;
}

body.dark-mode .question-card {
    background: var(--card-bg);
    border-color: #444;
}

body.dark-mode .question-text {
    color: #E0E0E0;
}

body.dark-mode .question-number {
    color: var(--red);
}

body.dark-mode .quiz-counter {
    color: #E0E0E0;
}

body.dark-mode .btn-secondary {
    background: var(--card-bg);
    color: #ccc;
    border-color: #444;
}

body.dark-mode .btn-quit {
    color: #999;
    border-color: #444;
}

body.dark-mode .question-tip {
    background: rgba(255,204,0,0.05);
    border-color: rgba(255,204,0,0.2);
}

body.dark-mode .aq-tip {
    background: rgba(255,204,0,0.05);
}

body.dark-mode .filter-bar input,
body.dark-mode .filter-bar select {
    background: #2A2A2A;
    color: var(--text);
}

body.dark-mode .dark-mode-btn {
    opacity: 1;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hidden { display: none !important; }
.page { display: none; }
.page.active { display: block; }

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    background: var(--black);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.flag-icon {
    display: flex;
    flex-direction: column;
    width: 24px;
    height: 16px;
    border-radius: 2px;
    overflow: hidden;
}

.flag-icon.small {
    width: 18px;
    height: 12px;
}

.flag-stripe {
    flex: 1;
}

.flag-stripe.black { background: var(--black); }
.flag-stripe.red { background: var(--red); }
.flag-stripe.gold { background: var(--gold); }

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}

.nav-link.active {
    color: var(--gold);
    background: rgba(255,204,0,0.1);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Language Selector */
.language-selector {
    position: relative;
}

.lang-tooltip {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--gold);
    color: #000;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    z-index: 1000;
    animation: tooltipFadeIn 0.3s ease, tooltipPulse 2s ease 0.3s 2;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.lang-tooltip-arrow {
    position: absolute;
    top: -6px;
    right: 24px;
    width: 12px;
    height: 12px;
    background: var(--gold);
    transform: rotate(45deg);
}

@keyframes tooltipFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes tooltipPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.lang-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.lang-btn:hover {
    background: rgba(255,255,255,0.2);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 70vh;
    display: none;
    min-width: 160px;
    z-index: 200;

    /* Option 1: Visible gold scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--gold) transparent;
}

/* Option 1: Webkit gold scrollbar */
.lang-dropdown::-webkit-scrollbar {
    width: 6px;
}

.lang-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.lang-dropdown::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 3px;
}

.lang-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--dark-gold);
}



.lang-dropdown.show {
    display: block;
}

.lang-dropdown button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.9rem;
    color: #1A1A1A;
    transition: var(--transition);
    text-align: left;
}

.lang-dropdown button:hover {
    background: rgba(255,204,0,0.15);
}

body.dark-mode .lang-dropdown {
    background: #2A2A2A;
}

body.dark-mode .lang-dropdown button {
    color: #E0E0E0;
}

body.dark-mode .lang-dropdown button:hover {
    background: rgba(255,204,0,0.15);
}

body.dark-mode .lang-dropdown-header {
    color: #A0A0A0;
}

.lang-flag {
    font-size: 1.1rem;
}

.dark-mode-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    opacity: 0.7;
    transition: var(--transition);
}

.dark-mode-btn:hover {
    opacity: 1;
    background: rgba(255,255,255,0.1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
}

.mobile-menu {
    display: none;
    background: var(--black);
    padding: 0 20px 16px;
    position: sticky;
    top: 60px;
    z-index: 99;
}

.mobile-menu.show {
    display: block;
}

.mobile-menu a {
    display: block;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-weight: 500;
}

/* ========================================
   HERO
   ======================================== */
.hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--black) 33%, var(--red) 33%, var(--red) 66%, var(--gold) 66%);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--black) 33%, var(--red) 33%, var(--red) 66%, var(--gold) 66%);
}

.hero-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 8px;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.hero-demo-btn {
    display: inline-block;
    padding: 10px 24px;
    border: 2px solid rgba(255,204,0,0.5);
    border-radius: 30px;
    color: var(--gold);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 28px;
    transition: all 0.2s ease;
    animation: demoPulse 2s ease-in-out infinite;
}

@keyframes demoPulse {
    0%, 100% {
        border-color: rgba(255,204,0,0.3);
        box-shadow: 0 0 0 0 rgba(255,204,0,0);
    }
    50% {
        border-color: #FFCC00;
        box-shadow: 0 0 20px rgba(255,204,0,0.35), 0 0 40px rgba(255,204,0,0.1);
    }
}

.hero-demo-btn:hover {
    background: rgba(255,204,0,0.15);
    border-color: var(--gold);
    animation: none;
    box-shadow: 0 0 20px rgba(255,204,0,0.3);
}

.hero-tagline {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 32px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.15rem;
    opacity: 0.85;
    max-width: 500px;
    margin: 0 auto 12px;
    line-height: 1.5;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.hero-trust {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.75;
    margin-top: 18px;
    color: rgba(255,255,255,0.85);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--gold);
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   SECTION TITLES
   ======================================== */
/* ========================================
   FEATURES BAR
   ======================================== */
.features-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 24px 0 8px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
}

.feature-item-cta {
    background: rgba(255,204,0,0.15) !important;
    border-color: var(--gold) !important;
    color: var(--dark-gold) !important;
    text-decoration: none;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feature-item-cta:hover {
    background: var(--gold) !important;
    color: #000 !important;
    transform: translateY(-1px);
}

.feature-item span {
    font-size: 0.9rem;
}

@media (max-width: 480px) {
    .features-bar { gap: 6px; }
    .feature-item { padding: 5px 10px; font-size: 0.75rem; }
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 40px 0 24px;
    text-align: center;
}

/* ========================================
   MODE CARDS
   ======================================== */
.mode-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.mode-cards-3 {
    grid-template-columns: repeat(3, 1fr);
}

.mode-secondary {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
}

.mode-secondary-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mode-secondary-item:hover {
    border-color: var(--gold);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.mode-secondary-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.mode-secondary-text {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .mode-cards-3 { grid-template-columns: 1fr; }
    .mode-secondary { flex-direction: column; }
}

.mode-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.mode-card:hover {
    border-color: var(--red);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.mode-icon {
    font-size: 2.4rem;
    margin-bottom: 12px;
}

.mode-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.mode-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.5;
}

.mode-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--black);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.mistake-count {
    background: var(--error-bg);
    color: #991B1B; /* darker red; passes WCAG AA on light red bg */
}

/* ========================================
   CATEGORY CARDS
   ======================================== */
.category-selection {
    margin-bottom: 40px;
}

.category-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.category-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.category-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.category-card h3 {
    font-size: 0.95rem;
    margin-bottom: 6px;
    font-weight: 600;
}

.category-card p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.category-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ========================================
   PWA HINT
   ======================================== */
.pwa-hint {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 20px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.pwa-hint span:first-child {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.pwa-hint p {
    flex: 1;
    margin: 0;
}

.pwa-hint-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0 4px;
}

.pwa-hint-close:hover {
    color: var(--text);
}

/* ========================================
   SEO CONTENT
   ======================================== */
.seo-content {
    margin-top: 32px;
    padding: 28px;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
}

.seo-content h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.seo-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 8px;
}

.seo-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 8px;
}

/* ========================================
   STATISTICS DASHBOARD
   ======================================== */
.stats-dashboard {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 40px;
}

.stats-dashboard h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.stats-dashboard h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.readiness-card {
    background: linear-gradient(135deg, rgba(255,204,0,0.08), rgba(221,0,0,0.04));
    border: 1px solid rgba(255,204,0,0.25);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 28px;
}

.readiness-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.readiness-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.readiness-icon {
    font-size: 1.4rem;
}

.readiness-info {
    position: relative;
    cursor: help;
    font-size: 0.95rem;
    opacity: 0.6;
    margin-left: auto;
    transition: opacity 0.2s;
}

.readiness-info:hover,
.readiness-info:focus {
    opacity: 1;
    outline: none;
}

.readiness-tooltip {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--text);
    color: #fff;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    line-height: 1.5;
    font-weight: 400;
    width: 260px;
    max-width: calc(100vw - 48px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 100;
    pointer-events: none;
    text-align: left;
}

.readiness-info:hover .readiness-tooltip,
.readiness-info:focus .readiness-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

body.dark-mode .readiness-tooltip {
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.1);
}

.readiness-main {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.readiness-number {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--error);
    line-height: 1;
    transition: color 0.3s;
}

.readiness-number.ready {
    color: var(--success);
}

.readiness-number.almost {
    color: var(--gold);
}

.readiness-label {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}

.readiness-bar-bg {
    height: 10px;
    background: rgba(0,0,0,0.08);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

body.dark-mode .readiness-bar-bg {
    background: rgba(255,255,255,0.08);
}

.readiness-bar {
    height: 100%;
    background: linear-gradient(to right, var(--red), var(--gold), var(--success));
    border-radius: 5px;
    transition: width 0.5s ease;
}

.readiness-detail {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.stats-overall {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

.stats-circle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.stats-mini-circle {
    width: 80px;
    height: 80px;
    position: relative;
}

.stats-mini-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.stats-circle-bg {
    fill: none;
    stroke: var(--border-light);
    stroke-width: 5;
}

.stats-circle-fill {
    fill: none;
    stroke: var(--gold);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 213.6;
    stroke-dashoffset: 213.6;
    transition: stroke-dashoffset 0.8s ease;
}

.stats-circle-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.1rem;
    font-weight: 700;
}

.stats-circle-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.stats-numbers {
    display: flex;
    gap: 24px;
    flex: 1;
}

.stats-num-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stats-num {
    font-size: 1.5rem;
    font-weight: 700;
}

.stats-num-item.correct .stats-num { color: var(--success); }
.stats-num-item.wrong .stats-num { color: var(--error); }

.stats-num-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.stats-cat-item {
    margin-bottom: 16px;
}

.stats-cat-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.stats-cat-icon {
    font-size: 1rem;
}

.stats-cat-name {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 500;
}

.stats-cat-pct {
    font-size: 0.85rem;
    font-weight: 700;
    min-width: 40px;
    text-align: right;
}

.stats-cat-bar-bg {
    height: 8px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 4px;
}

.stats-cat-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
    background: var(--gold);
}

.stats-cat-item:nth-child(1) .stats-cat-bar { background: var(--red); }
.stats-cat-item:nth-child(2) .stats-cat-bar { background: var(--gold); }
.stats-cat-item:nth-child(3) .stats-cat-bar { background: var(--success); }
.stats-cat-item:nth-child(4) .stats-cat-bar { background: #6366F1; }

.stats-cat-detail {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.stats-tip {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 16px;
    background: rgba(255,204,0,0.08);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
}

.stats-tip-icon {
    flex-shrink: 0;
}

.stats-reset-btn {
    width: 100%;
    font-size: 0.85rem;
    padding: 10px;
    color: var(--text-muted);
    border-color: var(--border-light);
}

.stats-reset-btn:hover {
    color: var(--error);
    border-color: var(--error);
}

@media (max-width: 480px) {
    .stats-overall { flex-direction: column; gap: 16px; }
    .stats-numbers { justify-content: center; }
}

/* ========================================
   PRINT BUTTON & PRINT MODE
   ======================================== */
.aq-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.aq-title-row h2 {
    margin-bottom: 0;
}

.aq-updated-badge {
    padding: 12px 16px;
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.25);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.5;
}

.btn-print {
    background: var(--card-bg);
    border: 2px solid var(--border);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    color: var(--text-light);
    transition: var(--transition);
}

.btn-print:hover {
    border-color: var(--gold);
    color: var(--text);
}

@media print {
    .navbar, .footer, .filter-bar, .aq-tabs, .btn-print,
    .aq-title-row button, .mobile-menu {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
        font-size: 11pt;
    }

    .page { display: block !important; }
    #homePage, #quizPage, #resultsPage, #infoPage, #aboutPage, #locationsPage { display: none !important; }
    #allQuestionsPage { display: block !important; }

    .container { max-width: 100%; padding: 0; }

    .aq-item {
        border: 1px solid #ddd !important;
        break-inside: avoid;
        margin-bottom: 8px;
    }

    .aq-body { display: block !important; }

    .aq-header { cursor: default; }
    .aq-toggle { display: none; }

    .aq-translation { display: none; }
    .aq-tip { display: none; }

    .all-questions-header { padding-top: 0; }
    .aq-title-row { justify-content: center; }
}

/* ========================================
   SPEAK BUTTON (Audio Narration)
   ======================================== */
.speak-btn {
    background: rgba(255,204,0,0.15);
    border: 1px solid rgba(255,204,0,0.3);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    vertical-align: middle;
}

.flag-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
    vertical-align: middle;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: inherit;
}

.flag-btn:hover {
    background: rgba(221,0,0,0.08);
    border-color: var(--red);
    color: var(--red);
}

.flag-btn.flagged {
    background: rgba(221,0,0,0.12);
    border-color: var(--red);
    color: var(--red);
    font-weight: 600;
}

.flag-btn.flagged:hover {
    background: rgba(221,0,0,0.2);
}

.note-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
    vertical-align: middle;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: inherit;
}

.note-btn:hover {
    background: rgba(255,204,0,0.12);
    border-color: var(--gold);
    color: var(--dark-gold);
}

.note-btn.has-note {
    background: rgba(255,204,0,0.15);
    border-color: var(--gold);
    color: var(--dark-gold);
    font-weight: 600;
}

.note-box {
    margin-top: 10px;
    padding: 10px 12px;
    background: rgba(255,204,0,0.06);
    border: 1px solid rgba(255,204,0,0.25);
    border-radius: var(--radius-sm);
}

.note-box textarea {
    width: 100%;
    min-height: 70px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--card-bg);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    box-sizing: border-box;
}

.note-box textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.fc-btn-row .note-btn {
    margin-left: 0;
}

.speak-btn:hover {
    background: rgba(255,204,0,0.3);
    border-color: var(--gold);
}

.speak-btn.speaking {
    opacity: 1;
    animation: pulse-speak 1s infinite;
}

.speak-btn-aq {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-family: inherit;
    color: var(--text-muted);
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-top: 12px;
    margin-bottom: 12px;
    opacity: 1;
}

.speak-btn-aq:hover {
    border-color: var(--gold);
    color: var(--text);
    background: rgba(255,204,0,0.05);
}

@keyframes pulse-speak {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* ========================================
   FLASHCARD MODE
   ======================================== */
.fc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.fc-counter {
    font-weight: 700;
    font-size: 1rem;
}

.fc-card {
    perspective: 1000px;
    cursor: pointer;
    margin-bottom: 24px;
    min-height: 300px;
}

.fc-inner {
    position: relative;
    width: 100%;
    min-height: 300px;
    transition: transform 0.5s ease;
    transform-style: preserve-3d;
}

.fc-inner.flipped {
    transform: rotateY(180deg);
}

.fc-front, .fc-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 300px;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    text-align: center;
}

.fc-front {
    background: var(--card-bg);
}

.fc-back {
    background: var(--success-bg);
    border-color: var(--success);
    transform: rotateY(180deg);
}

.fc-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.fc-label-answer {
    color: var(--success);
}

.fc-question {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text);
    margin: 0;
}

.fc-answer {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--success);
    margin: 0;
}

.fc-translation {
    display: block;
    margin-top: 12px;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.5;
}

.fc-back .fc-translation {
    color: rgba(34,197,94,0.6);
}

.speak-btn-fc {
    display: block;
    margin: 0 auto 16px;
}

.fc-btn-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.fc-btn-row .flag-btn {
    margin-left: 0;
}

.fc-hint {
    margin-top: 24px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.fc-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 40px;
}

.fc-shuffle-btn {
    background: none;
    border: 2px solid var(--border);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fc-shuffle-btn:hover {
    border-color: var(--gold);
    background: rgba(255,204,0,0.05);
}

body.dark-mode .fc-front {
    background: var(--card-bg);
}

body.dark-mode .fc-back {
    background: #0D2818;
    border-color: var(--success);
}

body.dark-mode .fc-question,
body.dark-mode .fc-answer {
    color: #E0E0E0;
}

body.dark-mode .fc-answer {
    color: var(--success);
}

@media (max-width: 480px) {
    .fc-front, .fc-back, .fc-inner, .fc-card { min-height: 250px; }
    .fc-question, .fc-answer { font-size: 1rem; }
    .fc-front, .fc-back { padding: 28px 20px; }
}

/* ========================================
   BUNDESLAND GRID
   ======================================== */
.bundesland-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 700px;
    margin: 0 auto;
}

.bl-btn {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 12px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    transition: all 0.2s ease;
    text-align: center;
}

.bl-btn:hover {
    border-color: var(--gold);
    background: rgba(255,204,0,0.05);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
    .bundesland-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* ========================================
   FEEDBACK CARD
   ======================================== */
.feedback-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 40px;
}

.feedback-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.feedback-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.feedback-content strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.feedback-content p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0;
}

.feedback-btn {
    flex-shrink: 0;
    padding: 10px 20px;
    background: var(--gold);
    color: var(--black);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.feedback-btn:hover {
    background: var(--dark-gold);
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .feedback-card { flex-direction: column; text-align: center; }
    .feedback-content { flex-direction: column; }
}

/* ========================================
   INFO BOX
   ======================================== */
.info-box {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 32px;
}

.info-box h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.info-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.info-item strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.info-item p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ========================================
   PROGRESS
   ======================================== */
.progress-section {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 40px;
}

.progress-section h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.progress-bar-container {
    background: var(--border-light);
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar {
    background: linear-gradient(90deg, var(--red), var(--gold));
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ========================================
   QUIZ
   ======================================== */
.quiz-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    flex-wrap: nowrap;
    gap: 8px;
}

@media (max-width: 480px) {
    .quiz-header {
        flex-wrap: wrap;
        justify-content: center;
    }
    .quiz-info {
        width: 100%;
        justify-content: space-between;
    }
    .quiz-timer {
        min-width: 80px;
        text-align: center;
    }
    .btn-quit {
        width: 100%;
    }
}

.quiz-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.quiz-counter {
    font-weight: 700;
    font-size: 1rem;
}

.quiz-category {
    background: rgba(221,0,0,0.1);
    color: var(--red);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.quiz-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--red);
    font-variant-numeric: tabular-nums;
    min-width: 90px;
}

.timer-icon {
    font-size: 1.2rem;
}

.btn-quit {
    background: none;
    border: 2px solid var(--border);
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
}

.btn-quit:hover {
    border-color: var(--error);
    color: var(--error);
}

.quiz-progress {
    background: var(--border-light);
    border-radius: 6px;
    height: 6px;
    margin-bottom: 24px;
    overflow: hidden;
}

.quiz-progress-bar {
    background: linear-gradient(90deg, var(--red), var(--gold));
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 6px;
}

.question-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
}

.question-number {
    color: var(--red);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.question-text {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 8px;
}

.question-translation {
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 12px;
    padding: 10px 14px;
    background: #F8F8FF;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--gold);
}

.question-img {
    display: block;
    max-width: 500px;
    max-height: 350px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    margin: 16px auto;
}

@media (max-width: 480px) {
    .question-img { max-width: 100%; max-height: 250px; }
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.option-btn {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
    font-size: 0.95rem;
    line-height: 1.5;
}

.option-btn:hover:not(.disabled) {
    border-color: var(--gold);
    background: rgba(255,204,0,0.05);
}

.option-btn.selected {
    border-color: var(--gold);
    background: rgba(255,204,0,0.08);
}

.option-btn.correct {
    border-color: var(--success);
    background: var(--success-bg);
}

.option-btn.wrong {
    border-color: var(--error);
    background: var(--error-bg);
}

.option-btn.disabled {
    cursor: default;
}

.option-letter {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--border-light);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-light);
    transition: var(--transition);
}

.option-btn.selected .option-letter {
    background: var(--gold);
    color: var(--black);
}

.option-btn.correct .option-letter {
    background: var(--success);
    color: white;
}

.option-btn.wrong .option-letter {
    background: var(--error);
    color: white;
}

.option-content {
    flex: 1;
}

.option-text {
    display: block;
}

.option-translation {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 4px;
}

/* Question Tip */
.question-tip {
    margin-top: 20px;
    padding: 16px 20px;
    background: rgba(255,204,0,0.08);
    border: 1px solid rgba(255,204,0,0.3);
    border-radius: var(--radius);
}

.tip-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.question-tip p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Quiz Navigation */
.quiz-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 40px;
}

.btn-primary {
    background: var(--red);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--dark-red);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text);
    border: 2px solid var(--border);
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    border-color: var(--text-light);
}

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

/* ========================================
   RESULTS
   ======================================== */
.results-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    margin-top: 24px;
}

.results-header {
    margin-bottom: 32px;
}

.results-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.results-header h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.results-subtitle {
    color: var(--text-light);
    font-size: 1rem;
}

.results-score {
    margin-bottom: 32px;
}

.score-circle {
    width: 160px;
    height: 160px;
    margin: 0 auto;
    position: relative;
}

.score-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-bg {
    fill: none;
    stroke: var(--border-light);
    stroke-width: 6;
}

.score-fill {
    fill: none;
    stroke: var(--gold);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1s ease;
}

.score-fill.pass { stroke: var(--success); }
.score-fill.fail { stroke: var(--error); }

.score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-number {
    display: block;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text);
}

.score-total {
    font-size: 0.9rem;
    color: var(--text-light);
}

.results-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 32px;
}

.result-stat {
    text-align: center;
}

.result-stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
}

.result-stat.correct .result-stat-number { color: var(--success); }
.result-stat.wrong .result-stat-number { color: var(--error); }
.result-stat.skipped .result-stat-number { color: var(--text-muted); }

.result-stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Share Section */

.share-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.share-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    transition: all 0.2s ease;
    color: white;
}

.share-btn.whatsapp { background: #25D366; }
.share-btn.whatsapp:hover { background: #1DA851; }
.share-btn.facebook { background: #1877F2; }
.share-btn.facebook:hover { background: #0D65D9; }
.share-btn.linkedin { background: #0A66C2; }
.share-btn.linkedin:hover { background: #004182; }
.share-btn.xing { background: #006567; }
.share-btn.xing:hover { background: #004A4C; }
.share-btn.twitter { background: #000000; }
.share-btn.twitter:hover { background: #333333; }
.share-btn.copy { background: var(--text-light); }
.share-btn.copy:hover { background: var(--text); }

.share-btn svg { flex-shrink: 0; }

@media (max-width: 480px) {
    .share-buttons { flex-direction: column; }
    .share-btn { justify-content: center; }
}

/* Review Section */
.review-section {
    margin-top: 32px;
}

.review-section h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 40px;
}

.review-item {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: left;
}

.review-item.correct { border-left: 4px solid var(--success); }
.review-item.wrong { border-left: 4px solid var(--error); }
.review-item.skipped { border-left: 4px solid var(--text-muted); }

.review-question {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.review-answer {
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.review-answer.user-answer { color: var(--error); }
.review-answer.correct-answer { color: var(--success); font-weight: 500; }

/* ========================================
   ALL QUESTIONS PAGE
   ======================================== */
.all-questions-header {
    padding-top: 32px;
    margin-bottom: 24px;
}

.all-questions-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.aq-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.aq-tab {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card-bg);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.aq-tab:hover {
    border-color: var(--gold);
}

.aq-tab.active {
    border-color: var(--gold);
    background: rgba(255,204,0,0.08);
    color: var(--text);
}

.aq-tab-count {
    background: var(--border-light);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.aq-tab.active .aq-tab-count {
    background: var(--gold);
    color: var(--black);
}

.filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-bar input,
.filter-bar select {
    padding: 10px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    background: var(--card-bg);
    transition: var(--transition);
}

.filter-bar input {
    flex: 1;
    min-width: 200px;
}

.filter-bar input:focus,
.filter-bar select:focus {
    outline: none;
    border-color: var(--gold);
}

.all-questions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 40px;
}

.aq-item {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.aq-item:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.aq-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    gap: 12px;
}

.aq-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border-light);
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-light);
}

.aq-number.correct { background: var(--success-bg); color: var(--success); }
.aq-number.wrong { background: var(--error-bg); color: var(--error); }

.aq-question {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
}

.aq-toggle {
    flex-shrink: 0;
    font-size: 1.2rem;
    transition: transform 0.2s;
    color: var(--text-muted);
}

.aq-toggle.open {
    transform: rotate(180deg);
}

.aq-body {
    display: none;
    padding: 0 20px 20px;
    border-top: 1px solid var(--border-light);
}

.aq-body.open {
    display: block;
}

.aq-translation {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    padding: 8px 12px;
    background: #F8F8FF;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    border-left: 3px solid var(--gold);
}

.aq-options {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
}

.aq-option {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.aq-option.correct-option {
    background: var(--success-bg);
    font-weight: 500;
}

.aq-option-letter {
    font-weight: 600;
    color: var(--text-light);
    flex-shrink: 0;
}

.aq-option.correct-option .aq-option-letter {
    color: var(--text-light);
}

.aq-tip {
    margin-top: 12px;
    padding: 12px 14px;
    background: rgba(255,204,0,0.08);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-light);
}

.aq-tip strong {
    color: var(--text);
}

/* ========================================
   ABOUT PAGE
   ======================================== */
.about-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 32px 0 40px;
}

.about-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 48px 32px;
    text-align: center;
    position: relative;
}

.about-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--black) 33%, var(--red) 33%, var(--red) 66%, var(--gold) 66%);
}

.about-avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--red);
    margin: 0 auto 16px;
    display: block;
}

.about-avatar {
    width: 80px;
    height: 80px;
    background: var(--gold);
    color: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 auto 16px;
}

.about-header h1,
.about-header h2 {
    font-size: 1.6rem;
    margin-bottom: 4px;
}

/* BAMF state picker (Bundesland-specific direct routing) */
.bamf-state-picker {
    max-width: 420px;
    margin: 0 auto;
    text-align: left;
}
.bamf-state-picker label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}
.bamf-state-picker select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card-bg);
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s;
}
.bamf-state-picker select:focus {
    outline: none;
    border-color: var(--red);
}
.bamf-state-picker .btn-primary {
    display: none;
    margin-top: 14px;
    text-decoration: none;
    text-align: center;
    width: 100%;
}
.bamf-state-picker .btn-primary.show {
    display: inline-block;
}

/* Page byline (author attribution under page heading) */
.page-byline {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
    margin-bottom: 16px;
}
.page-byline a {
    color: var(--text-muted);
    text-decoration: underline;
}
.page-byline a:hover {
    color: var(--red);
}

.about-role {
    opacity: 0.8;
    font-size: 1rem;
}

.about-content {
    padding: 32px;
}

.about-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 16px;
}

/* ========================================
   INFO PAGE
   ======================================== */
.info-page-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 32px 0 40px;
}

.info-page-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 40px 32px;
    text-align: center;
    position: relative;
}

.info-page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--black) 33%, var(--red) 33%, var(--red) 66%, var(--gold) 66%);
}

.info-page-header h1,
.info-page-header h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.info-page-header p {
    opacity: 0.8;
    font-size: 0.95rem;
}

.info-page-section {
    padding: 20px 32px;
    border-bottom: 1px solid var(--border-light);
}

.info-page-section:last-child {
    border-bottom: none;
}

.page-datenstand {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.5;
}

.page-datenstand a {
    color: var(--text-light);
    text-decoration: underline;
}

.info-page-section h2,
.info-page-section h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.info-page-stat-note {
    display: block;
    margin-top: 6px;
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.info-page-section > p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 12px;
}

.info-page-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.info-page-stat {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
}

.info-page-stat-hero {
    grid-column: 1 / -1;
}

.info-page-stat-hero-note {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--text-light);
    font-style: italic;
}

.info-page-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-gold);
    margin-bottom: 4px;
}

.info-page-stat span:not(.info-page-stat-number):not(.info-page-stat-hero-note) {
    font-size: 0.8rem;
    color: var(--text-light);
}

.info-page-categories {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.info-page-cat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--bg);
    border-radius: var(--radius-sm);
}

.info-page-cat-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

.info-page-cat-content {
    flex: 1;
}

.info-page-cat strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.info-page-cat p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 0;
}

.info-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 16px;
}

.info-compare-card {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 18px;
    border: 2px solid var(--border);
}

.info-compare-card:first-child {
    border-color: var(--success);
}

.info-compare-card:last-child {
    border-color: var(--text-muted);
}

.info-compare-card h4 {
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.info-compare-card ul {
    list-style: none;
    padding: 0;
}

.info-compare-card li {
    font-size: 0.8rem;
    color: var(--text-light);
    padding: 4px 0;
    line-height: 1.4;
}

.info-compare-card li::before {
    content: "• ";
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .info-comparison { grid-template-columns: 1fr; }
}

.info-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 16px;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 480px;
    font-size: 0.9rem;
}

.info-table th,
.info-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.info-table thead th {
    background: var(--bg);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-light);
}

.info-table tbody tr:last-child td {
    border-bottom: none;
}

.info-table tbody td:first-child {
    white-space: nowrap;
}

@media (max-width: 600px) {
    .info-table-wrapper { overflow-x: visible; }
    .info-table { min-width: 0; }
    .info-table thead { display: none; }
    .info-table tbody tr {
        display: block;
        background: var(--card-bg);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        padding: 14px 16px;
        margin-bottom: 12px;
    }
    .info-table tbody td {
        display: block;
        border-bottom: none;
        padding: 4px 0;
        text-align: left;
    }
    .info-table tbody td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: var(--text-muted);
        margin-bottom: 2px;
    }
    .info-table tbody td:first-child {
        white-space: normal;
        font-size: 1rem;
    }
    .info-table tbody td:first-child::before {
        display: none;
    }
}

.info-page-tips {
    padding-left: 20px;
}

.info-page-tips li {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .info-page-grid { grid-template-columns: 1fr; }
    .info-page-section { padding: 20px; }
}

.about-translation-info {
    margin-top: 28px;
    padding: 28px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 2px solid var(--border);
}

.about-translation-info h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--text);
}

.about-translation-info > p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.about-translation-points {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.about-point {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.about-point-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.about-point strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: var(--text);
}

.about-point p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 0;
}

.about-translation-note {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    padding: 12px 16px;
    background: rgba(255,204,0,0.08);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--gold);
}

.about-mission {
    background: rgba(255,204,0,0.08);
    border: 1px solid rgba(255,204,0,0.2);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 24px;
}

.about-mission h2,
.about-mission h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--text);
}

.about-mission p {
    margin-bottom: 12px;
}

.about-mission p:last-child {
    margin-bottom: 0;
}

.about-mission ul {
    margin: 0 0 12px 0;
    padding-left: 20px;
}

.about-mission ul li {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 4px;
}

.about-signature-img {
    display: block;
    max-width: 120px;
    height: auto;
    margin: 8px 0 24px 8px;
}

.about-support {
    margin-top: 28px;
    padding: 24px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 2px solid var(--border);
    text-align: center;
}

.about-support h2,
.about-support h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--text);
}

.about-support > p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.6;
}

.kofi-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #0070BA;
    color: white;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.kofi-btn:hover {
    background: #005C96;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.kofi-btn svg {
    flex-shrink: 0;
}

.about-connect {
    margin-top: 28px;
    padding: 24px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 2px solid var(--border);
    overflow: hidden;
}

.about-connect h2,
.about-connect h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--text);
}

.about-connect > p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.connect-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.connect-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    min-width: 0;
    overflow: hidden;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.connect-link.linkedin {
    background: #0A66C2;
    color: white;
}

.connect-link.linkedin:hover {
    background: #004182;
}

.connect-link.email {
    background: var(--card-bg);
    color: var(--text);
    border: 2px solid var(--border);
}

.connect-link.email:hover {
    border-color: var(--gold);
    background: rgba(255,204,0,0.05);
}

.connect-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .connect-links { flex-direction: column; }
    .connect-link { justify-content: center; word-break: break-all; }
}

.about-footer {
    padding: 20px 32px;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.about-footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.german-flag-bar {
    display: flex;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.bar-black, .bar-red, .bar-gold {
    flex: 1;
}

.bar-black { background: var(--black); }
.bar-red { background: var(--red); }
.bar-gold { background: var(--gold); }

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--black);
    color: white;
    padding: 32px 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.footer-left p, .footer-right p {
    font-size: 0.8rem;
    opacity: 0.75;
    margin-top: 4px;
}

.footer-right {
    text-align: right;
}

.footer-updated {
    font-size: 0.75rem !important;
    opacity: 0.7 !important;
    margin-top: 2px !important;
}

.footer-legal {
    margin-top: 8px;
}

.footer-legal a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--gold);
}

.footer-divider {
    color: rgba(255,255,255,0.55);
    margin: 0 8px;
    font-size: 0.8rem;
}

/* ========================================
   LEGAL PAGES (Impressum, Datenschutz)
   ======================================== */
.legal-page {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    margin: 32px 0 40px;
}

.legal-page h2 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.legal-subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 28px;
}

.legal-page h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 8px;
}

.legal-page p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 12px;
}

.legal-page a {
    color: var(--red);
    text-decoration: none;
}

.legal-page a:hover {
    text-decoration: underline;
}

.legal-note {
    margin-top: 28px;
    padding: 14px 18px;
    background: var(--error-bg);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--error);
    font-weight: 500;
    color: var(--error) !important;
}

@media (max-width: 768px) {
    .legal-page { padding: 24px 20px; }
    .footer-legal { text-align: center; }
}

/* ========================================
   RTL Support (Arabic)
   ======================================== */
[dir="rtl"] .question-translation,
[dir="rtl"] .aq-translation {
    border-left: none;
    border-right: 3px solid var(--gold);
    text-align: right;
}

[dir="rtl"] .option-translation {
    text-align: right;
}

/* ========================================
   LANG DROPDOWN HEADER
   ======================================== */
.lang-dropdown-header {
    padding: 10px 16px 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-light);
}

/* ========================================
   EXAM LOCATIONS PAGE
   ======================================== */
.locations-header {
    padding-top: 32px;
    text-align: center;
    margin-bottom: 28px;
}

.locations-header h1,
.locations-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.locations-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto 24px;
    line-height: 1.5;
}

.locations-search {
    max-width: 500px;
    margin: 0 auto;
}

.locations-search input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--card-bg);
    color: var(--text-light);
}

.locations-search input:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(221,0,0,0.1);
}

.locations-info-box {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 28px;
}

.locations-info-box h2,
.locations-info-box h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.locations-steps {
    padding-left: 20px;
    margin-bottom: 16px;
}

.locations-steps li {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.5;
}

.locations-tip {
    font-size: 0.9rem;
    color: var(--text-light);
    background: rgba(255,204,0,0.08);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--gold);
}

.locations-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.location-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    transition: var(--transition);
}

.location-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-sm);
}

.location-card h3,
.location-card h4 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.location-card .location-type {
    display: inline-block;
    background: rgba(221,0,0,0.1);
    color: var(--red);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.location-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 4px;
    line-height: 1.5;
}

.location-card .location-contact {
    margin-top: 8px;
    font-size: 0.85rem;
}

.location-card .location-contact a {
    color: var(--red);
    text-decoration: none;
}

.location-card .location-contact a:hover {
    text-decoration: underline;
}

.locations-no-results {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
    font-size: 0.95rem;
}

.locations-bamf-link {
    text-align: center;
    padding: 32px;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
}

.locations-bamf-link p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.locations-bamf-link .btn-primary {
    display: inline-block;
    text-decoration: none;
    background: var(--gold);
    color: #000;
    font-weight: 700;
}

.locations-bamf-link .btn-primary:hover {
    background: #e6b800;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }

    .hero { padding: 40px 20px; }
    .hero h1 { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-stats { gap: 24px; }
    .stat-number { font-size: 1.8rem; }

    .mode-cards { grid-template-columns: 1fr; }
    .category-cards { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }

    .results-stats { gap: 24px; }
    .results-actions { flex-direction: column; align-items: center; }

    .filter-bar { flex-direction: column; }
    .filter-bar input { min-width: auto; }

    .question-card { padding: 20px; }
    .quiz-nav { flex-direction: column; }
    .quiz-nav button { width: 100%; }

    .footer-content { flex-direction: column; text-align: center; align-items: center; gap: 8px; }
    .footer-left { text-align: center; display: flex; flex-direction: column; align-items: center; }
    .footer-left p { margin-top: 2px; }
    .footer-logo { justify-content: center; }
    .footer-right { text-align: center; }
    .footer-right p { margin-top: 0; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.6rem; }
    .hero-stats { flex-direction: column; gap: 12px; }
    .container { padding: 0 16px; }
}
