/*
 * Voice View - Barrierefreies Design
 * Optimiert für ältere und sehbeeinträchtigte Nutzer
 * Hoher Kontrast, große Schrift, klare Strukturen
 */

:root {
    /* Barrierefreie Farbpalette mit hohem Kontrast */
    --vv-primary: #1a5490;        /* Beruhigendes, kräftiges Blau */
    --vv-primary-light: #2d6cb3;
    --vv-primary-dark: #0d3a63;
    --vv-accent: #e67e22;         /* Warmes Orange für Akzente */
    --vv-success: #27ae60;        /* Deutliches Grün */
    --vv-warning: #f39c12;        /* Klares Gelb-Orange */

    /* Hintergrundfarben - sehr hoher Kontrast */
    --vv-bg-light: #ffffff;
    --vv-bg-off-white: #f8f9fa;
    --vv-bg-gray: #e9ecef;

    /* Textfarben - maximaler Kontrast */
    --vv-text-dark: #1a1a1a;      /* Fast schwarz für besten Kontrast */
    --vv-text-medium: #4a4a4a;
    --vv-text-light: #6c757d;

    /* Rahmen und Schatten */
    --vv-border: #ced4da;
    --vv-border-dark: #adb5bd;
    --vv-shadow: rgba(0, 0, 0, 0.15);
    --vv-shadow-hover: rgba(0, 0, 0, 0.25);

    /* Größen - großzügig für bessere Lesbarkeit */
    --vv-spacing-xs: 0.5rem;
    --vv-spacing-sm: 1rem;
    --vv-spacing-md: 1.5rem;
    --vv-spacing-lg: 2.5rem;
    --vv-spacing-xl: 4rem;

    /* Schriftgrößen - durchgehend größer */
    --vv-font-xs: 1rem;
    --vv-font-sm: 1.125rem;       /* 18px */
    --vv-font-base: 1.25rem;      /* 20px - Basis größer als üblich */
    --vv-font-md: 1.5rem;         /* 24px */
    --vv-font-lg: 2rem;           /* 32px */
    --vv-font-xl: 2.5rem;         /* 40px */
    --vv-font-xxl: 3rem;          /* 48px */
}

/* ============================================
   BASE STYLES
   ============================================ */

/* Voice View hat eigenes Layout ohne Side-Nav */
.voiceview-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--vv-bg-off-white);
    color: var(--vv-text-dark);
    font-size: var(--vv-font-base);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Verstecke die normale Side-Navigation auf Voice View Seiten */
.voiceview-page .side-nav {
    display: none;
}

/* Main Content ohne Left-Margin */
.voiceview-page .main-content {
    margin-left: 0;
    width: 100%;
    padding: 0;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.vv-header {
    background: linear-gradient(135deg, var(--vv-primary-dark) 0%, var(--vv-primary) 100%);
    color: white;
    padding: var(--vv-spacing-lg) 0;
    box-shadow: 0 4px 12px var(--vv-shadow);
}

.vv-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--vv-spacing-md);
}

.vv-logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--vv-spacing-md);
}

.vv-logo {
    font-size: 4rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.vv-logo-img {
    height: 8rem;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.vv-title-group h1 {
    font-size: var(--vv-font-xxl);
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    letter-spacing: -0.02em;
}

.vv-tagline {
    font-size: var(--vv-font-md);
    opacity: 0.95;
    font-weight: 400;
    margin: 0;
}

/* Navigation */
.vv-nav {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: var(--vv-spacing-xs);
    display: flex;
    flex-wrap: wrap;
    gap: var(--vv-spacing-xs);
}

.vv-nav-link {
    color: white;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    white-space: nowrap;
}

.vv-nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.vv-nav-link.active {
    background: white;
    color: var(--vv-primary);
}

/* Home Button - oben rechts als Icon */
.vv-home-button {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    background: var(--vv-accent);
    color: white;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.75rem;
    box-shadow: 0 4px 12px var(--vv-shadow-hover);
    transition: all 0.2s ease;
    border: 3px solid white;
}

.vv-home-button:hover {
    background: #d35400;
    transform: scale(1.1);
    box-shadow: 0 6px 16px var(--vv-shadow-hover);
}

.vv-home-button:focus {
    outline: 4px solid var(--vv-accent);
    outline-offset: 4px;
}

/* ============================================
   MAIN CONTENT CONTAINER
   ============================================ */

.vv-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--vv-spacing-xl) var(--vv-spacing-md);
    flex: 1;
}

/* Content Cards - klar abgegrenzt */
.vv-card {
    background: var(--vv-bg-light);
    border: 3px solid var(--vv-border);
    border-radius: 16px;
    padding: var(--vv-spacing-lg);
    margin-bottom: var(--vv-spacing-lg);
    box-shadow: 0 2px 8px var(--vv-shadow);
}

.vv-card:hover {
    border-color: var(--vv-primary);
    box-shadow: 0 4px 16px var(--vv-shadow-hover);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

.vv-container h2 {
    font-size: var(--vv-font-xl);
    color: var(--vv-primary);
    margin: 0 0 var(--vv-spacing-md) 0;
    font-weight: 700;
    border-bottom: 4px solid var(--vv-primary);
    padding-bottom: var(--vv-spacing-sm);
}

.vv-container h3 {
    font-size: var(--vv-font-lg);
    color: var(--vv-primary-dark);
    margin: var(--vv-spacing-md) 0 var(--vv-spacing-sm) 0;
    font-weight: 600;
}

.vv-container p {
    font-size: var(--vv-font-base);
    line-height: 1.8;
    margin-bottom: var(--vv-spacing-md);
    color: var(--vv-text-dark);
}

/* Listen - gut lesbar */
.vv-container ul,
.vv-container ol {
    font-size: var(--vv-font-base);
    line-height: 1.8;
    margin-bottom: var(--vv-spacing-md);
    padding-left: var(--vv-spacing-lg);
}

.vv-container li {
    margin-bottom: var(--vv-spacing-sm);
    color: var(--vv-text-dark);
}

/* ============================================
   BUTTONS & LINKS
   ============================================ */

.vv-button {
    display: inline-block;
    background: var(--vv-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--vv-primary);
    transition: all 0.2s ease;
    cursor: pointer;
}

.vv-button:hover {
    background: var(--vv-primary-dark);
    border-color: var(--vv-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--vv-shadow-hover);
}

.vv-button-secondary {
    background: white;
    color: var(--vv-primary);
}

.vv-button-secondary:hover {
    background: var(--vv-bg-off-white);
}

.vv-button-accent {
    background: var(--vv-accent);
    border-color: var(--vv-accent);
}

.vv-button-accent:hover {
    background: #d35400;
    border-color: #d35400;
}

/* Links im Text */
.vv-container a:not(.vv-button):not(.vv-nav-link) {
    color: var(--vv-primary);
    text-decoration: underline;
    font-weight: 600;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.vv-container a:not(.vv-button):not(.vv-nav-link):hover {
    color: var(--vv-primary-dark);
    text-decoration-thickness: 3px;
}

/* ============================================
   FEATURE BOXES
   ============================================ */

.vv-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--vv-spacing-sm);
    margin: var(--vv-spacing-md) 0;
}

.vv-feature-box {
    background: var(--vv-bg-light);
    border: 3px solid var(--vv-border);
    border-radius: 12px;
    padding: var(--vv-spacing-md);
    text-align: center;
    transition: all 0.2s ease;
}

.vv-feature-box:hover {
    border-color: var(--vv-primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px var(--vv-shadow-hover);
}

.vv-feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--vv-spacing-sm);
    display: block;
}

.vv-feature-box h3 {
    margin-top: 0;
    color: var(--vv-primary);
}

/* ============================================
   STEP-BY-STEP INSTRUCTIONS
   ============================================ */

.vv-steps {
    counter-reset: step-counter;
}

.vv-step {
    background: var(--vv-bg-light);
    border-left: 6px solid var(--vv-primary);
    padding: var(--vv-spacing-lg);
    margin-bottom: var(--vv-spacing-lg);
    border-radius: 8px;
    position: relative;
    counter-increment: step-counter;
}

.vv-step::before {
    content: counter(step-counter);
    position: absolute;
    left: -3px;
    top: var(--vv-spacing-lg);
    transform: translateX(-50%);
    background: var(--vv-primary);
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--vv-font-lg);
    font-weight: 700;
    border: 4px solid var(--vv-bg-off-white);
}

.vv-step h3 {
    margin-top: 0;
    margin-left: 2rem;
}

.vv-step p {
    margin-left: 2rem;
    margin-bottom: 0;
}

/* ============================================
   ALERTS & INFO BOXES
   ============================================ */

.vv-alert {
    padding: var(--vv-spacing-md) var(--vv-spacing-lg);
    border-radius: 12px;
    margin-bottom: var(--vv-spacing-md);
    border: 3px solid;
    font-size: var(--vv-font-base);
}

.vv-alert-info {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #0d47a1;
}

.vv-alert-warning {
    background: #fff3e0;
    border-color: #ff9800;
    color: #e65100;
}

.vv-alert-success {
    background: #e8f5e9;
    border-color: #4caf50;
    color: #1b5e20;
}

/* ============================================
   FOOTER
   ============================================ */

.vv-footer {
    background: var(--vv-primary-dark);
    color: white;
    padding: var(--vv-spacing-lg) 0;
    margin-top: auto;
}

.vv-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--vv-spacing-md);
    text-align: center;
}

.vv-footer-links {
    display: flex;
    justify-content: center;
    gap: var(--vv-spacing-md);
    flex-wrap: wrap;
    margin-bottom: var(--vv-spacing-md);
}

.vv-footer-link {
    color: white;
    text-decoration: none;
    font-size: var(--vv-font-sm);
    padding: var(--vv-spacing-xs) var(--vv-spacing-sm);
    border-radius: 6px;
    transition: background 0.2s ease;
}

.vv-footer-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    :root {
        --vv-font-base: 1.125rem;     /* 18px auf Mobile */
        --vv-font-md: 1.375rem;       /* 22px */
        --vv-font-lg: 1.75rem;        /* 28px */
        --vv-font-xl: 2.25rem;        /* 36px */
        --vv-font-xxl: 2.5rem;        /* 40px */
    }

    .vv-logo-section {
        flex-direction: column;
        text-align: center;
    }

    .vv-nav {
        flex-direction: column;
    }

    .vv-nav-link {
        width: 100%;
        text-align: center;
    }

    .vv-features {
        grid-template-columns: 1fr;
    }

    .vv-step::before {
        position: static;
        transform: none;
        margin: 0 auto var(--vv-spacing-sm) auto;
    }

    .vv-step h3,
    .vv-step p {
        margin-left: 0;
        text-align: center;
    }

    .vv-container {
        padding: var(--vv-spacing-md);
    }
}

/* ============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================ */

/* Focus-Indikatoren - sehr deutlich */
a:focus,
button:focus,
.vv-nav-link:focus,
.vv-button:focus {
    outline: 4px solid var(--vv-accent);
    outline-offset: 4px;
}

/* Skip-to-Content Link */
.vv-skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--vv-accent);
    color: white;
    padding: var(--vv-spacing-sm) var(--vv-spacing-md);
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
}

.vv-skip-link:focus {
    top: 0;
}

/* Erhöhter Kontrast für wichtige Elemente */
.vv-high-contrast {
    border-width: 4px;
    font-weight: 700;
}
