/*
Theme Name: Hello Elementor Child
Description: Child Theme für Hello Elementor - Aboelo Calculator Suite
Author: Aboelo Team
Template: hello-elementor
Version: 3.0
*/

/* ===== ABOELO BRANDING & DESIGN SYSTEM 2025 ===== */
:root {
    /* === ABOELO BRAND COLORS === */
    /* Hauptfarbe: Vertrauensvolles Teal-Grün */
    --aboelo-primary: #2D7D7D;
    --aboelo-primary-light: #4A9F9F;
    --aboelo-primary-dark: #1F5F5F;
    --aboelo-primary-darker: #154545;
    
    /* Akzentfarbe: Warmes, einladendes Orange */
    --aboelo-accent: #E67E22;
    --aboelo-accent-light: #F39C12;
    --aboelo-accent-dark: #D35400;
    
    /* Sekundäre Markenfarben */
    --aboelo-secondary: #3498DB; /* Vertrauen & Kompetenz */
    --aboelo-tertiary: #9B59B6;  /* Innovation & Modernität */
    
    /* Neutrale Farben - Seniorenfreundlich */
    --aboelo-neutral-50: #FAFAFA;
    --aboelo-neutral-100: #F8F9FA;
    --aboelo-neutral-200: #E9ECEF;
    --aboelo-neutral-300: #DEE2E6;
    --aboelo-neutral-400: #CED4DA;
    --aboelo-neutral-500: #ADB5BD;
    --aboelo-neutral-600: #6C757D;
    --aboelo-neutral-700: #495057;
    --aboelo-neutral-800: #343A40;
    --aboelo-neutral-900: #212529;
    
    /* Text-Farben - Hoher Kontrast für Barrierefreiheit */
    --aboelo-text-primary: #2C3E50;
    --aboelo-text-secondary: #5D6D7E;
    --aboelo-text-light: #7F8C8D;
    --aboelo-text-white: #FFFFFF;
    --aboelo-text-muted: #95A5A6;
    
    /* Hintergrund-Farben */
    --aboelo-bg-primary: #FFFFFF;
    --aboelo-bg-secondary: #F8F9FA;
    --aboelo-bg-tertiary: #E9ECEF;
    --aboelo-bg-dark: #2C3E50;
    --aboelo-bg-gradient: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%);
    
    /* Status-Farben - Seniorenfreundlich */
    --aboelo-success: #27AE60;
    --aboelo-success-light: #2ECC71;
    --aboelo-warning: #F39C12;
    --aboelo-warning-light: #F1C40F;
    --aboelo-error: #E74C3C;
    --aboelo-error-light: #EC7063;
    --aboelo-info: #3498DB;
    --aboelo-info-light: #5DADE2;
    
    /* Border & Shadow */
    --aboelo-border-light: #E9ECEF;
    --aboelo-border-medium: #DEE2E6;
    --aboelo-border-dark: #ADB5BD;
    --aboelo-shadow-subtle: rgba(45, 125, 125, 0.08);
    --aboelo-shadow-light: rgba(45, 125, 125, 0.12);
    --aboelo-shadow-medium: rgba(45, 125, 125, 0.16);
    --aboelo-shadow-dark: rgba(45, 125, 125, 0.24);
    
    /* Marken-Gradients */
    --aboelo-gradient-primary: linear-gradient(135deg, #2D7D7D 0%, #1F5F5F 100%);
    --aboelo-gradient-accent: linear-gradient(135deg, #E67E22 0%, #D35400 100%);
    --aboelo-gradient-secondary: linear-gradient(135deg, #3498DB 0%, #2980B9 100%);
    --aboelo-gradient-tertiary: linear-gradient(135deg, #9B59B6 0%, #8E44AD 100%);
    --aboelo-gradient-light: linear-gradient(135deg, #4A9F9F 0%, #2D7D7D 100%);
    --aboelo-gradient-hero: linear-gradient(135deg, #2D7D7D 0%, #3498DB 50%, #E67E22 100%);
    
    /* Typografie - Seniorenfreundlich */
    --aboelo-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --aboelo-font-family-heading: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --aboelo-font-size-xs: 0.75rem;
    --aboelo-font-size-sm: 0.875rem;
    --aboelo-font-size-base: 1rem;
    --aboelo-font-size-lg: 1.125rem;
    --aboelo-font-size-xl: 1.25rem;
    --aboelo-font-size-2xl: 1.5rem;
    --aboelo-font-size-3xl: 1.875rem;
    --aboelo-font-size-4xl: 2.25rem;
    --aboelo-line-height-tight: 1.25;
    --aboelo-line-height-normal: 1.5;
    --aboelo-line-height-relaxed: 1.75;
    
    /* Spacing - 8px Grid System */
    --aboelo-space-1: 0.25rem;  /* 4px */
    --aboelo-space-2: 0.5rem;   /* 8px */
    --aboelo-space-3: 0.75rem;  /* 12px */
    --aboelo-space-4: 1rem;     /* 16px */
    --aboelo-space-5: 1.25rem;  /* 20px */
    --aboelo-space-6: 1.5rem;   /* 24px */
    --aboelo-space-8: 2rem;     /* 32px */
    --aboelo-space-10: 2.5rem;  /* 40px */
    --aboelo-space-12: 3rem;    /* 48px */
    --aboelo-space-16: 4rem;    /* 64px */
    --aboelo-space-20: 5rem;    /* 80px */
    
    /* Border Radius */
    --aboelo-radius-sm: 0.375rem;
    --aboelo-radius: 0.5rem;
    --aboelo-radius-md: 0.75rem;
    --aboelo-radius-lg: 1rem;
    --aboelo-radius-xl: 1.5rem;
    --aboelo-radius-full: 9999px;
    
    /* Transitions */
    --aboelo-transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --aboelo-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --aboelo-transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Z-Index Scale */
    --aboelo-z-sticky: 1020;
    --aboelo-z-fixed: 1030;
    --aboelo-z-modal: 1040;
    --aboelo-z-popover: 1050;
    --aboelo-z-tooltip: 1060;
}
a[target="_blank"]:after {
    font-family: "Font Awesome 5 Free";
    content: " \f35d";
    font-weight: 900;
    font-size: 0.8em;
    margin-left: 3px;
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
/* Skip link styling */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--aboelo-primary);
    color: var(--aboelo-text-white);
    padding: 8px 16px;
    z-index: 10000;
    transition: top 0.3s ease-in-out;
    border-radius: 0 0 4px 4px;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--aboelo-accent);
    outline-offset: 2px;
}

/* Focus styles for all interactive elements */
:focus {
    outline: 3px solid var(--aboelo-accent);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px var(--aboelo-bg-primary), 0 0 0 4px var(--aboelo-accent);
}

/* Remove default focus styles for mouse users but keep for keyboard */
:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

:focus-visible {
    outline: 3px solid var(--aboelo-accent);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px var(--aboelo-bg-primary), 0 0 0 4px var(--aboelo-accent);
}

/* Form controls */
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea,
button,
[role="button"],
[tabindex]:not([tabindex="-1"]) {
    transition: box-shadow 0.2s ease-in-out, outline 0.2s ease-in-out;
}

/* Error states */
:where(input, select, textarea):invalid {
    border-color: var(--aboelo-error);
}

:where(input, select, textarea):invalid:focus {
    border-color: var(--aboelo-error);
    box-shadow: 0 0 0 2px var(--aboelo-bg-primary), 0 0 0 4px var(--aboelo-error);
}

/* High contrast mode support */
@media (forced-colors: active) {
    :root {
        --aboelo-primary: LinkText;
        --aboelo-accent: Highlight;
        --aboelo-text-primary: CanvasText;
        --aboelo-bg-primary: Canvas;
    }
    
    :focus {
        outline-color: Highlight;
        outline-style: solid;
        outline-width: 2px;
    }
}

/* Print styles */
@media print {
    .skip-link,
    .navigation-container {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a::after {
        content: " (" attr(href) ")";
        font-size: 0.9em;
        color: #666;
    }
}

/* ===== ABOELO CALCULATOR SYSTEM ===== */
.pflegegrad-rechner {
    max-width: 1200px;
    margin: var(--aboelo-space-20) auto;
    font-family: var(--aboelo-font-family);
    background: var(--aboelo-bg-primary);
    border-radius: var(--aboelo-radius-xl);
    overflow: hidden;
    box-shadow: 0 12px 48px var(--aboelo-shadow-medium);
    border: 1px solid var(--aboelo-border-light);
}

/* Calculator Header - Erhöhte Spezifität für Elementor-Override */
.pflegegrad-rechner .rechner-header,
.pflegegrad-rechner .rechner-header.rechner-header {
    background: var(--aboelo-gradient-primary) !important;
    color: var(--aboelo-text-white) !important;
    padding: var(--aboelo-space-16) var(--aboelo-space-12) !important;
    text-align: center !important;
    position: relative !important;
}

.pflegegrad-rechner .rechner-header h1 {
    margin: 0 0 var(--aboelo-space-4) 0;
    font-size: var(--aboelo-font-size-3xl);
    font-weight: 700;
    font-family: var(--aboelo-font-family-heading);
}

.pflegegrad-rechner .rechner-header p {
    margin: 0;
    opacity: 0.9;
    font-size: var(--aboelo-font-size-lg);
    font-weight: 300;
}

/* Progress Bar */
.pflegegrad-rechner .progress-container {
    background: var(--aboelo-bg-primary);
    padding: var(--aboelo-space-6) var(--aboelo-space-12);
    border-bottom: 1px solid var(--aboelo-border-light);
}

.pflegegrad-rechner .progress-bar {
    width: 100%;
    height: 12px;
    background: var(--aboelo-neutral-200);
    border-radius: var(--aboelo-radius-full);
    overflow: hidden;
}

.pflegegrad-rechner .progress-fill {
    height: 100%;
    background: var(--aboelo-gradient-primary);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--aboelo-radius-full);
}

/* Page Styling */
.pflegegrad-rechner .page {
    display: none;
    padding: var(--aboelo-space-16) var(--aboelo-space-12);
    min-height: 500px;
}

.pflegegrad-rechner .page.active {
    display: block;
    animation: fadeInUp 0.4s ease-out;
}

.pflegegrad-rechner .page h2 {
    color: var(--aboelo-text-primary);
    font-size: var(--aboelo-font-size-2xl);
    margin: 0 0 var(--aboelo-space-8) 0;
    font-weight: 600;
}

/* Radio Button Groups */
.pflegegrad-rechner .radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--aboelo-space-4);
    margin-top: var(--aboelo-space-6);
}

.pflegegrad-rechner .radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.pflegegrad-rechner .radio-option label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--aboelo-space-6) var(--aboelo-space-8);
    background: var(--aboelo-bg-primary);
    border: 2px solid var(--aboelo-border-medium);
    border-radius: var(--aboelo-radius-lg);
    cursor: pointer;
    transition: var(--aboelo-transition);
    text-align: center;
    font-weight: 600;
    font-size: var(--aboelo-font-size-lg);
    color: var(--aboelo-text-primary);
    min-height: 80px;
    box-shadow: 0 2px 8px var(--aboelo-shadow-subtle);
}

.pflegegrad-rechner .radio-option input[type="radio"]:checked + label {
    border-color: var(--aboelo-primary);
    background: var(--aboelo-gradient-primary);
    color: var(--aboelo-text-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--aboelo-shadow-medium);
}

.pflegegrad-rechner .radio-option label:hover {
    border-color: var(--aboelo-primary);
    background: var(--aboelo-gradient-light);
    color: var(--aboelo-text-white);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--aboelo-shadow-light);
}

/* Navigation Buttons */
.pflegegrad-rechner .navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--aboelo-space-8) var(--aboelo-space-12);
    background: var(--aboelo-bg-gradient);
    border-top: 1px solid var(--aboelo-border-light);
}

.pflegegrad-rechner .btn {
    padding: var(--aboelo-space-4) var(--aboelo-space-8);
    border: none;
    border-radius: var(--aboelo-radius-lg);
    font-size: var(--aboelo-font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: var(--aboelo-transition);
    min-width: 160px;
    position: relative;
    overflow: hidden;
    font-family: var(--aboelo-font-family);
}

.pflegegrad-rechner .btn-primary {
    background: var(--aboelo-gradient-primary) !important;
    color: var(--aboelo-text-white) !important;
    box-shadow: 0 4px 16px var(--aboelo-shadow-medium) !important;
}

.pflegegrad-rechner .btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 32px var(--aboelo-shadow-dark) !important;
}

.pflegegrad-rechner .btn-secondary {
    background: var(--aboelo-neutral-600);
    color: var(--aboelo-text-white);
}

.pflegegrad-rechner .btn-secondary:hover {
    background: var(--aboelo-neutral-700);
    transform: translateY(-1px);
}

/* Form Styling */
.pflegegrad-rechner .email-form {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--aboelo-space-12);
    background: var(--aboelo-bg-secondary);
    border-radius: var(--aboelo-radius-xl);
    border: 1px solid var(--aboelo-border-light);
}

.pflegegrad-rechner .form-input {
    width: 100%;
    padding: var(--aboelo-space-4);
    border: 2px solid var(--aboelo-border-medium);
    border-radius: var(--aboelo-radius);
    font-size: var(--aboelo-font-size-base);
    transition: var(--aboelo-transition);
    font-family: var(--aboelo-font-family);
}

.pflegegrad-rechner .form-input:focus {
    outline: none;
    border-color: var(--aboelo-primary);
    box-shadow: 0 0 0 3px var(--aboelo-shadow-light);
}

/* ===== AAL QUESTIONNAIRE SYSTEM ===== */
#aal-bedarf-container {
    max-width: 1200px;
    margin: var(--aboelo-space-20) auto;
    font-family: var(--aboelo-font-family);
    background: var(--aboelo-bg-primary);
    border-radius: var(--aboelo-radius-xl);
    overflow: hidden;
    box-shadow: 0 12px 48px var(--aboelo-shadow-medium);
    border: 1px solid var(--aboelo-border-light);
}

#aal-bedarf-container .aal-header {
    background: var(--aboelo-gradient-accent) !important;
    color: var(--aboelo-text-white) !important;
    padding: var(--aboelo-space-16) var(--aboelo-space-12) !important;
    text-align: center !important;
    position: relative !important;
}

#aal-bedarf-container .aal-header h2 {
    margin: 0 0 var(--aboelo-space-4) 0;
    font-size: var(--aboelo-font-size-3xl);
    font-weight: 700;
    font-family: var(--aboelo-font-family-heading);
}

#aal-bedarf-container .aal-header p {
    margin: 0;
    opacity: 0.9;
    font-size: var(--aboelo-font-size-lg);
    font-weight: 300;
}

/* Progress Bar */
#aal-bedarf-container .progress-container {
    background: var(--aboelo-bg-primary);
    padding: var(--aboelo-space-6) var(--aboelo-space-8);
    border-bottom: 1px solid var(--aboelo-border-light);
}

#aal-bedarf-container .progress-bar {
    background: var(--aboelo-bg-secondary);
    height: 8px;
    border-radius: var(--aboelo-radius-full);
    overflow: hidden;
    margin-bottom: var(--aboelo-space-3);
}

#aal-bedarf-container .progress-fill {
    background: var(--aboelo-gradient-accent);
    height: 100%;
    transition: width 0.3s ease;
    border-radius: var(--aboelo-radius-full);
}

#aal-bedarf-container .progress-text {
    text-align: center;
    color: var(--aboelo-text-secondary);
    font-size: var(--aboelo-font-size-sm);
    font-weight: 500;
}

/* Form Pages */
#aal-bedarf-container .aal-form {
    background: var(--aboelo-bg-primary);
}

#aal-bedarf-container .page {
    display: none;
    padding: var(--aboelo-space-12);
}

#aal-bedarf-container .page.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

#aal-bedarf-container .page-content {
    max-width: 800px;
    margin: 0 auto;
}

#aal-bedarf-container .page-title {
    color: var(--aboelo-text-primary);
    font-size: var(--aboelo-font-size-2xl);
    font-weight: 600;
    margin: 0 0 var(--aboelo-space-4) 0;
    font-family: var(--aboelo-font-family-heading);
    display: flex;
    align-items: center;
    gap: var(--aboelo-space-3);
}

#aal-bedarf-container .page-title i {
    color: var(--aboelo-accent);
    width: 28px;
    height: 28px;
}

#aal-bedarf-container .page-intro {
    color: var(--aboelo-text-secondary);
    font-size: var(--aboelo-font-size-lg);
    margin: 0 0 var(--aboelo-space-8) 0;
    text-align: center;
}

#aal-bedarf-container .aal-form .form-section {
    background: var(--aboelo-bg-primary);
    margin: var(--aboelo-space-6) 0;
    padding: var(--aboelo-space-8);
    border-radius: var(--aboelo-radius-lg);
    border: 1px solid var(--aboelo-border-light);
}

#aal-bedarf-container .aal-form .section-title {
    color: var(--aboelo-text-primary);
    font-size: var(--aboelo-font-size-xl);
    font-weight: 600;
    margin: 0 0 var(--aboelo-space-6) 0;
    font-family: var(--aboelo-font-family-heading);
}

#aal-bedarf-container .aal-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--aboelo-space-6);
    margin-bottom: var(--aboelo-space-6);
}

#aal-bedarf-container .aal-form .form-column {
    display: flex;
    flex-direction: column;
}

#aal-bedarf-container .column-title {
    color: var(--aboelo-text-primary);
    font-size: var(--aboelo-font-size-lg);
    font-weight: 600;
    margin: 0 0 var(--aboelo-space-4) 0;
    padding-bottom: var(--aboelo-space-2);
    border-bottom: 2px solid var(--aboelo-accent);
}

#aal-bedarf-container .aal-form .form-group {
    margin-bottom: var(--aboelo-space-6);
}

#aal-bedarf-container .aal-form .form-group label {
    color: var(--aboelo-text-primary);
    font-weight: 500;
    margin-bottom: var(--aboelo-space-2);
    display: block;
    font-size: var(--aboelo-font-size-base);
}

#aal-bedarf-container .aal-form .form-input {
    width: 100%;
    padding: var(--aboelo-space-3) var(--aboelo-space-4);
    border: 2px solid var(--aboelo-border-light);
    border-radius: var(--aboelo-radius);
    font-size: var(--aboelo-font-size-base);
    transition: var(--aboelo-transition);
    font-family: var(--aboelo-font-family);
    background: var(--aboelo-bg-primary);
    color: var(--aboelo-text-primary);
    box-sizing: border-box;
}

#aal-bedarf-container .aal-form .form-input:focus {
    outline: none;
    border-color: var(--aboelo-accent);
    box-shadow: 0 0 0 3px var(--aboelo-shadow-accent);
}

#aal-bedarf-container .aal-form .radio-group {
    display: flex;
    flex-direction: column;
    gap: var(--aboelo-space-3);
}

#aal-bedarf-container .aal-form .radio-option {
    display: flex;
    align-items: center;
    padding: var(--aboelo-space-3) var(--aboelo-space-4);
    border: 2px solid var(--aboelo-border-light);
    border-radius: var(--aboelo-radius);
    cursor: pointer;
    transition: var(--aboelo-transition);
    background: var(--aboelo-bg-primary);
}

#aal-bedarf-container .aal-form .radio-option:hover {
    border-color: var(--aboelo-accent);
    background: var(--aboelo-bg-accent-light);
}

#aal-bedarf-container .aal-form .radio-option input[type="radio"] {
    margin-right: var(--aboelo-space-3);
    accent-color: var(--aboelo-accent);
}

#aal-bedarf-container .aal-form .radio-option span {
    color: var(--aboelo-text-primary);
    font-size: var(--aboelo-font-size-base);
}

/* Navigation */
#aal-bedarf-container .navigation-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--aboelo-space-8) var(--aboelo-space-12);
    border-top: 1px solid var(--aboelo-border-light);
    background: var(--aboelo-bg-secondary);
}

#aal-bedarf-container .nav-button,
#aal-bedarf-container .submit-button {
    padding: var(--aboelo-space-4) var(--aboelo-space-8);
    border: none;
    border-radius: var(--aboelo-radius);
    font-size: var(--aboelo-font-size-base);
    font-weight: 500;
    cursor: pointer;
    transition: var(--aboelo-transition);
    display: flex;
    align-items: center;
    gap: var(--aboelo-space-2);
    font-family: var(--aboelo-font-family);
}

#aal-bedarf-container .prev-button {
    background: var(--aboelo-bg-primary);
    color: var(--aboelo-text-secondary);
    border: 2px solid var(--aboelo-border-light);
}

#aal-bedarf-container .prev-button:hover {
    border-color: var(--aboelo-accent);
    color: var(--aboelo-accent);
}

#aal-bedarf-container .next-button,
#aal-bedarf-container .submit-button {
    background: var(--aboelo-gradient-accent);
    color: var(--aboelo-text-white);
    box-shadow: 0 4px 16px var(--aboelo-shadow-accent);
}

#aal-bedarf-container .next-button:hover,
#aal-bedarf-container .submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--aboelo-shadow-accent-dark);
}

#aal-bedarf-container .submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

#aal-bedarf-container .button-loading {
    display: flex;
    align-items: center;
    gap: var(--aboelo-space-2);
}

#aal-bedarf-container .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Checkbox Groups */
#aal-bedarf-container .aal-form .checkbox-group {
    margin: var(--aboelo-space-4) 0;
}

#aal-bedarf-container .aal-form .checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: var(--aboelo-space-3);
    padding: var(--aboelo-space-4);
    border: 2px solid var(--aboelo-border-light);
    border-radius: var(--aboelo-radius);
    cursor: pointer;
    transition: var(--aboelo-transition);
    background: var(--aboelo-bg-primary);
}

#aal-bedarf-container .aal-form .checkbox-option:hover {
    border-color: var(--aboelo-accent);
    background: var(--aboelo-bg-accent-light);
}

#aal-bedarf-container .aal-form .checkbox-option input[type="checkbox"] {
    margin: 0;
    accent-color: var(--aboelo-accent);
    min-width: 18px;
    height: 18px;
}

#aal-bedarf-container .checkbox-text {
    color: var(--aboelo-text-primary);
    font-size: var(--aboelo-font-size-base);
    line-height: var(--aboelo-line-height-normal);
}

#aal-bedarf-container .checkbox-text a {
    color: var(--aboelo-accent);
    text-decoration: none;
}

#aal-bedarf-container .checkbox-text a:hover {
    text-decoration: underline;
}

/* Success Message */
#aal-bedarf-container .success-message {
    text-align: center;
    padding: var(--aboelo-space-16);
    background: var(--aboelo-bg-success-light);
    border: 2px solid var(--aboelo-success);
    border-radius: var(--aboelo-radius-lg);
    margin: var(--aboelo-space-8);
}

#aal-bedarf-container .success-content h3 {
    color: var(--aboelo-success);
    font-size: var(--aboelo-font-size-xl);
    margin: 0 0 var(--aboelo-space-4) 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--aboelo-space-2);
}

#aal-bedarf-container .success-content h3 i {
    width: 24px;
    height: 24px;
}

#aal-bedarf-container .success-content p {
    color: var(--aboelo-text-primary);
    font-size: var(--aboelo-font-size-base);
    margin: 0;
    line-height: var(--aboelo-line-height-normal);
}

/* Info Icon */
#aal-bedarf-container .info-icon {
    color: var(--aboelo-accent);
    cursor: help;
    margin-left: var(--aboelo-space-1);
}

#aal-bedarf-container .info-icon i {
    width: 16px;
    height: 16px;
}

/* Consent Info */
#aal-bedarf-container .consent-info {
    background: var(--aboelo-bg-info-light);
    border: 1px solid var(--aboelo-info);
    border-radius: var(--aboelo-radius);
    padding: var(--aboelo-space-4);
    margin: var(--aboelo-space-4) 0;
    color: var(--aboelo-text-info);
    font-size: var(--aboelo-font-size-sm);
}

/* ===== PFLEGEKOSTEN CALCULATOR SYSTEM ===== */
#pflegekosten-container {
    max-width: 1200px;
    margin: var(--aboelo-space-20) auto;
    font-family: var(--aboelo-font-family);
    background: var(--aboelo-bg-primary);
    border-radius: var(--aboelo-radius-xl);
    overflow: hidden;
    box-shadow: 0 12px 48px var(--aboelo-shadow-medium);
    border: 1px solid var(--aboelo-border-light);
}

.pflegekosten-header {
    background: linear-gradient(135deg, #3498DB 0%, #2980B9 100%) !important;
    color: var(--aboelo-text-white) !important;
    padding: var(--aboelo-space-16) var(--aboelo-space-12) !important;
    text-align: center !important;
    position: relative !important;
}

.pflegekosten-header h2 {
    margin: 0 0 var(--aboelo-space-4) 0;
    font-size: var(--aboelo-font-size-3xl);
    font-weight: 700;
    font-family: var(--aboelo-font-family-heading);
}

.pflegekosten-header p {
    margin: 0;
    opacity: 0.9;
    font-size: var(--aboelo-font-size-lg);
    font-weight: 300;
}

.pflegekosten-form .aboelo-form-section {
    background: var(--aboelo-bg-primary);
    margin: var(--aboelo-space-6) 0;
    padding: var(--aboelo-space-12);
    border-radius: var(--aboelo-radius-lg);
    box-shadow: 0 4px 16px var(--aboelo-shadow-subtle);
    border: 1px solid var(--aboelo-border-light);
}

.pflegekosten-form .aboelo-form-section__title {
    color: var(--aboelo-text-primary);
    font-size: var(--aboelo-font-size-xl);
    font-weight: 600;
    margin: 0 0 var(--aboelo-space-6) 0;
    font-family: var(--aboelo-font-family-heading);
    display: flex;
    align-items: center;
    gap: var(--aboelo-space-3);
}

.pflegekosten-form .aboelo-form-section__title i {
    width: 24px;
    height: 24px;
    color: var(--aboelo-secondary);
}

.pflegekosten-form .submit-btn {
    background: linear-gradient(135deg, #3498DB 0%, #2980B9 100%) !important;
    color: var(--aboelo-text-white) !important;
    box-shadow: 0 4px 16px rgba(52, 152, 219, 0.3) !important;
    width: 100%;
    padding: var(--aboelo-space-4) var(--aboelo-space-6);
    border: none;
    border-radius: var(--aboelo-radius);
    font-size: var(--aboelo-font-size-lg);
    font-weight: 600;
    cursor: pointer;
    transition: var(--aboelo-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--aboelo-space-3);
}

.pflegekosten-form .submit-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 32px rgba(52, 152, 219, 0.4) !important;
}

/* Pflegekosten Radio Button Styles */
.pflegekosten-form .radio-group {
    display: flex;
    flex-direction: column;
    gap: var(--aboelo-space-4);
}

.pflegekosten-form .aboelo-radio-option {
    display: flex;
    align-items: center;
    padding: var(--aboelo-space-4);
    border: 2px solid var(--aboelo-border-light);
    border-radius: var(--aboelo-radius);
    cursor: pointer;
    transition: var(--aboelo-transition);
    position: relative;
    min-height: 60px;
}

.pflegekosten-form .aboelo-radio-option:hover {
    border-color: var(--aboelo-secondary);
    background: rgba(52, 152, 219, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

.pflegekosten-form .aboelo-radio-option:focus-within {
    border-color: var(--aboelo-primary);
    box-shadow: 0 0 0 3px var(--aboelo-shadow-primary);
    outline: none;
}

.pflegekosten-form .aboelo-radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.pflegekosten-form .radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--aboelo-border-medium);
    border-radius: 50%;
    margin-right: var(--aboelo-space-4);
    position: relative;
    flex-shrink: 0;
    transition: var(--aboelo-transition);
}

.pflegekosten-form .aboelo-radio-option input[type="radio"]:checked + .radio-custom {
    border-color: var(--aboelo-primary);
    background: var(--aboelo-primary);
}

.pflegekosten-form .aboelo-radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--aboelo-text-white);
    border-radius: 50%;
}

.pflegekosten-form .aboelo-radio-option input[type="radio"]:checked ~ .radio-content {
    color: var(--aboelo-primary);
}

.pflegekosten-form .aboelo-radio-option input[type="radio"]:checked {
    background: var(--aboelo-bg-primary-hover);
    border-color: var(--aboelo-primary);
}

/* Pflegekosten Error Styling */
.pflegekosten-form .aboelo-radio-group.field-error {
    border: 2px solid var(--aboelo-error) !important;
    background-color: rgba(231, 76, 60, 0.05) !important;
    border-radius: var(--aboelo-radius-lg) !important;
    padding: var(--aboelo-space-4) !important;
    margin-bottom: var(--aboelo-space-4) !important;
    animation: aboelo-error-pulse 0.6s ease-in-out;
}

/* Pflegekosten Radio Content Styles */
.pflegekosten-form .radio-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

/* Pflegegrad Radio Styles */
.pflegekosten-form .pflegegrad-group .radio-content {
    align-items: center;
}

.pflegekosten-form .grad-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3498DB, #2980B9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    flex-shrink: 0;
}

.pflegekosten-form .grad-info {
    display: flex;
    flex-direction: column;
}

.pflegekosten-form .grad-info strong {
    font-size: 1.1em;
    color: #2c3e50;
}

.pflegekosten-form .grad-info small {
    color: #666;
    margin: 0;
}

/* Pflegeform Radio Styles */
.pflegekosten-form .pflegeform-group .radio-content {
    align-items: center;
}

.pflegekosten-form .form-icon {
    width: 32px;
    height: 32px;
    color: var(--aboelo-secondary);
    flex-shrink: 0;
}

.pflegekosten-form .form-info {
    display: flex;
    flex-direction: column;
}

.pflegekosten-form .form-info strong {
    font-size: 1.1em;
    color: #2c3e50;
}

.pflegekosten-form .form-info small {
    color: #666;
    margin: 0;
}

/* Versicherungsart Radio Styles */
.pflegekosten-form .versicherung-group .radio-content {
    align-items: center;
}

/* Pflegekosten Form Layout */
.pflegekosten-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--aboelo-space-5);
    margin-bottom: var(--aboelo-space-5);
}

.pflegekosten-form .form-row.two-columns {
    grid-template-columns: 1fr 1fr;
    gap: var(--aboelo-space-8);
}

.pflegekosten-form .form-row:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .pflegekosten-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .pflegekosten-form .form-row.two-columns {
        grid-template-columns: 1fr;
        gap: var(--aboelo-space-5);
    }
}

/* Pflegekosten Form Groups */
.pflegekosten-form .aboelo-form-group {
    display: flex;
    flex-direction: column;
}

.pflegekosten-form .aboelo-form-group__label {
    margin-bottom: var(--aboelo-space-2);
    font-weight: 500;
    color: var(--aboelo-text-primary);
    display: flex;
    align-items: center;
    gap: var(--aboelo-space-1);
}

.pflegekosten-form .aboelo-form-input {
    padding: var(--aboelo-space-3) var(--aboelo-space-4);
    border: 2px solid var(--aboelo-border-light);
    border-radius: var(--aboelo-radius);
    font-size: var(--aboelo-font-size-base);
    transition: var(--aboelo-transition);
}

.pflegekosten-form .aboelo-form-input:focus {
    outline: none;
    border-color: var(--aboelo-secondary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.pflegekosten-form .aboelo-form-input::placeholder {
    color: var(--aboelo-text-light);
}

.pflegekosten-form .form-hint {
    margin-top: var(--aboelo-space-1);
    font-size: var(--aboelo-font-size-sm);
    color: var(--aboelo-text-secondary);
    display: flex;
    align-items: center;
    gap: var(--aboelo-space-1);
}

.pflegekosten-form .hint-icon {
    width: 16px;
    height: 16px;
    color: var(--aboelo-secondary);
}

/* Pflegekosten Info Button */
.pflegekosten-form .info-button {
    background: none;
    border: none;
    color: var(--aboelo-secondary);
    cursor: help;
    padding: 0;
    margin-left: var(--aboelo-space-1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    transition: var(--aboelo-transition);
}

.pflegekosten-form .info-button:hover {
    background: var(--aboelo-secondary);
    color: var(--aboelo-text-white);
}

.pflegekosten-form .info-button i {
    width: 14px;
    height: 14px;
}

/* Pflegekosten Progress Bar */
#pflegekosten-container .progress-container {
    background: var(--aboelo-bg-secondary);
    padding: var(--aboelo-space-4) var(--aboelo-space-8);
    border-bottom: 1px solid var(--aboelo-border-light);
}

#pflegekosten-container .progress-bar {
    width: 100%;
    height: 8px;
    background: var(--aboelo-neutral-200);
    border-radius: var(--aboelo-radius-full);
    overflow: hidden;
}

#pflegekosten-container .progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(135deg, #3498DB 0%, #2980B9 100%);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--aboelo-radius-full);
}

#pflegekosten-container .progress-text {
    text-align: center;
    margin-top: var(--aboelo-space-2);
    font-size: var(--aboelo-font-size-sm);
    font-weight: 500;
    color: var(--aboelo-text-secondary);
}

/* Pflegekosten Navigation */
.pflegekosten-form .navigation-container {
    display: flex;
    justify-content: space-between;
    padding: var(--aboelo-space-6) var(--aboelo-space-12);
    background: var(--aboelo-bg-secondary);
    border-top: 1px solid var(--aboelo-border-light);
}


/* ===== FAQ WIDGET OVERRIDE ===== */
.barrierefreier-wohnen-faq-section .faq-item .faq-question:hover {
    background-color: #27AE60 !important; /* Green */
    color: white !important;
}

.barrierefreier-wohnen-faq-section .faq-item .faq-question:hover .faq-icon {
    color: white !important;
}

/* ===== RENTENLÜCKEN CALCULATOR SYSTEM ===== */
.rentenluecken-rechner .rechner-header {
    background: var(--aboelo-gradient-tertiary) !important;
    color: var(--aboelo-text-white) !important;
    padding: var(--aboelo-space-12) !important;
    text-align: center !important;
}

.rentenluecken-rechner .rechner-header h1 {
    font-size: var(--aboelo-font-size-3xl);
    font-weight: 700;
}

/* --- Multi-Step Form Styles --- */

/* Progress Bar */
.rentenluecken-rechner .progress-container {
    background: var(--aboelo-bg-secondary);
    padding: var(--aboelo-space-4) var(--aboelo-space-8);
    border-bottom: 1px solid var(--aboelo-border-light);
}

.rentenluecken-rechner .progress-bar {
    width: 100%;
    height: 8px;
    background: var(--aboelo-neutral-200);
    border-radius: var(--aboelo-radius-full);
    overflow: hidden;
}

.rentenluecken-rechner .progress-fill {
    width: 0%;
    height: 100%;
    background: var(--aboelo-gradient-tertiary);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--aboelo-radius-full);
}

.rentenluecken-rechner .progress-text {
    text-align: center;
    margin-top: var(--aboelo-space-2);
    font-size: var(--aboelo-font-size-sm);
    font-weight: 500;
    color: var(--aboelo-text-secondary);
}

/* Form Steps */
.rentenluecken-rechner .form-steps {
    position: relative;
    padding: var(--aboelo-space-8) var(--aboelo-space-12);
}

.rentenluecken-rechner .form-step {
    display: none;
    animation: fadeInUp 0.5s ease-in-out;
}

.rentenluecken-rechner .form-step.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation */
.rentenluecken-rechner .navigation-container {
    display: flex;
    justify-content: space-between;
    padding: var(--aboelo-space-6) var(--aboelo-space-12);
    background: var(--aboelo-bg-secondary);
    border-top: 1px solid var(--aboelo-border-light);
}

/* Error & Validation Styling */
.rentenluecken-rechner .aboelo-field-error {
    border-color: var(--aboelo-error) !important;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2) !important;
}

.rentenluecken-rechner .aboelo-error-message {
    color: var(--aboelo-error);
    font-size: var(--aboelo-font-size-sm);
    margin-top: var(--aboelo-space-2);
}

.rentenluecken-rechner .checkbox-label .aboelo-field-error + .checkmark {
    border-color: var(--aboelo-error) !important;
}

/* General Notification Styling */
.aboelo-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--aboelo-neutral-800);
    color: var(--aboelo-text-white);
    padding: var(--aboelo-space-4) var(--aboelo-space-5);
    border-radius: var(--aboelo-radius);
    z-index: var(--aboelo-z-popover);
    box-shadow: 0 4px 16px var(--aboelo-shadow-medium);
    font-family: var(--aboelo-font-family);
    max-width: 320px;
    animation: slideInRight 0.4s ease-out;
}

.aboelo-notification.error {
    background: var(--aboelo-error);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.rentenluecken-rechner {
    max-width: 1200px;
    margin: var(--aboelo-space-20) auto;
    font-family: var(--aboelo-font-family);
    background: var(--aboelo-bg-primary);
    border-radius: var(--aboelo-radius-xl);
    overflow: hidden;
    box-shadow: 0 12px 48px var(--aboelo-shadow-medium);
    border: 1px solid var(--aboelo-border-light);
}

.rentenluecken-rechner .rechner-header {
    background: linear-gradient(135deg, #9333EA 0%, #7C3AED 100%) !important;
    color: var(--aboelo-text-white) !important;
    padding: var(--aboelo-space-16) var(--aboelo-space-12) !important;
    text-align: center !important;
    position: relative !important;
}

.rentenluecken-rechner .rechner-header h1 {
    margin: 0 0 var(--aboelo-space-4) 0;
    font-size: var(--aboelo-font-size-3xl);
    font-weight: 700;
    font-family: var(--aboelo-font-family-heading);
}

.rentenluecken-rechner .rechner-header p {
    margin: 0;
    opacity: 0.9;
    font-size: var(--aboelo-font-size-lg);
    font-weight: 300;
}

.rentenluecken-rechner .form-section {
    background: var(--aboelo-bg-primary);
    margin: var(--aboelo-space-6) 0;
    padding: var(--aboelo-space-12);
    border-radius: var(--aboelo-radius-lg);
    box-shadow: 0 4px 16px var(--aboelo-shadow-subtle);
    border: 1px solid var(--aboelo-border-light);
}

.rentenluecken-rechner .aboelo-form-section__title {
    color: var(--aboelo-text-primary);
    font-size: var(--aboelo-font-size-xl);
    font-weight: 600;
    margin: 0 0 var(--aboelo-space-6) 0;
    font-family: var(--aboelo-font-family-heading);
    display: flex;
    align-items: center;
    gap: var(--aboelo-space-2);
}

.rentenluecken-rechner .aboelo-form-section__title i {
    width: 24px;
    height: 24px;
    color: var(--aboelo-tertiary);
}

.rentenluecken-rechner .btn-primary {
    background: linear-gradient(135deg, #9333EA 0%, #7C3AED 100%) !important;
    color: var(--aboelo-text-white) !important;
    box-shadow: 0 4px 16px rgba(147, 51, 234, 0.3) !important;
}

.rentenluecken-rechner .btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 32px rgba(147, 51, 234, 0.4) !important;
    background: linear-gradient(135deg, #7C3AED 0%, #9333EA 100%) !important;
}

/* Rentenlücken-Rechner spezifische Styles */
.rentenluecken-rechner .aboelo-form-section {
    background: var(--aboelo-bg-primary);
    margin: var(--aboelo-space-6) 0;
    padding: var(--aboelo-space-12);
    border-radius: var(--aboelo-radius-lg);
    box-shadow: 0 4px 16px var(--aboelo-shadow-subtle);
    border: 1px solid var(--aboelo-border-light);
}

.rentenluecken-rechner .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--aboelo-space-6);
    margin-bottom: var(--aboelo-space-6);
}

.rentenluecken-rechner .aboelo-form-group {
    display: flex;
    flex-direction: column;
}

.rentenluecken-rechner .aboelo-form-group__label {
    font-weight: 600;
    color: var(--aboelo-text-primary);
    margin-bottom: var(--aboelo-space-2);
    font-size: var(--aboelo-font-size-sm);
}

.rentenluecken-rechner .aboelo-form-input {
    padding: var(--aboelo-space-4);
    border: 2px solid var(--aboelo-border-medium);
    border-radius: var(--aboelo-radius-md);
    font-size: var(--aboelo-font-size-base);
    transition: var(--aboelo-transition);
    background: var(--aboelo-bg-primary);
}

.rentenluecken-rechner .aboelo-form-input:focus {
    outline: none;
    border-color: var(--aboelo-primary);
    box-shadow: 0 0 0 3px var(--aboelo-shadow-subtle);
}

.rentenluecken-rechner .form-hint {
    font-size: var(--aboelo-font-size-xs);
    color: var(--aboelo-text-muted);
    margin-top: var(--aboelo-space-1);
    display: flex;
    align-items: center;
    gap: var(--aboelo-space-1);
}

.rentenluecken-rechner .hint-icon {
    width: 14px;
    height: 14px;
    color: var(--aboelo-text-muted);
}

.rentenluecken-rechner .privacy-section {
    background: var(--aboelo-bg-secondary);
    border: 1px solid var(--aboelo-border-light);
    border-radius: var(--aboelo-radius-lg);
    padding: var(--aboelo-space-6);
    margin-top: var(--aboelo-space-6);
}

.rentenluecken-rechner .privacy-section .aboelo-form-section__title {
    color: var(--aboelo-text-primary);
    font-size: var(--aboelo-font-size-lg);
    margin-bottom: var(--aboelo-space-4);
}

.rentenluecken-rechner .aboelo-radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--aboelo-space-3);
    margin-top: var(--aboelo-space-2);
}

.rentenluecken-rechner .aboelo-radio-option {
    display: flex;
    align-items: center;
    padding: var(--aboelo-space-3) var(--aboelo-space-4);
    border: 2px solid var(--aboelo-border-medium);
    border-radius: var(--aboelo-radius-md);
    cursor: pointer;
    transition: var(--aboelo-transition);
    background: var(--aboelo-bg-primary);
}

.rentenluecken-rechner .aboelo-radio-option:hover {
    border-color: var(--aboelo-primary);
    background: var(--aboelo-bg-secondary);
}

.rentenluecken-rechner .aboelo-radio-option input[type="radio"] {
    margin-right: var(--aboelo-space-2);
}

.rentenluecken-rechner .checkbox-group {
    margin-top: var(--aboelo-space-4);
}

.rentenluecken-rechner .checkbox-option {
    display: flex;
    align-items: flex-start;
    padding: var(--aboelo-space-3) var(--aboelo-space-4);
    border: 2px solid var(--aboelo-border-medium);
    border-radius: var(--aboelo-radius-md);
    cursor: pointer;
    transition: var(--aboelo-transition);
    background: var(--aboelo-bg-primary);
    margin-bottom: var(--aboelo-space-2);
}

.rentenluecken-rechner .checkbox-option:hover {
    border-color: var(--aboelo-primary);
    background: var(--aboelo-bg-secondary);
}

.rentenluecken-rechner .checkbox-option input[type="checkbox"] {
    margin-right: var(--aboelo-space-2);
    margin-top: 2px;
}

.rentenluecken-rechner .checkbox-text {
    font-size: var(--aboelo-font-size-sm);
    line-height: var(--aboelo-line-height-relaxed);
    word-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

/* Prevent orphaned words in checkbox text */
.rentenluecken-rechner .checkbox-text {
    orphans: 2;
    widows: 2;
    white-space: normal;
    word-break: keep-all;
}

/* Ensure proper text wrapping for checkbox labels */
.rentenluecken-rechner .checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: var(--aboelo-space-3);
    padding: var(--aboelo-space-4);
    border-radius: var(--aboelo-radius-lg);
    transition: all 0.3s ease;
}

.rentenluecken-rechner .checkbox-option input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 2px;
}

.rentenluecken-rechner .checkbox-text {
    flex: 1;
    min-width: 0; /* Allow text to wrap properly */
}

.rentenluecken-rechner .form-actions {
    text-align: center;
    margin-top: var(--aboelo-space-8);
    padding: var(--aboelo-space-8);
    background: var(--aboelo-bg-secondary);
    border-radius: var(--aboelo-radius-lg);
}

.rentenluecken-rechner .btn-icon {
    width: 20px;
    height: 20px;
}

.rentenluecken-rechner .btn-loading {
    display: none;
}

.rentenluecken-rechner .loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.rentenluecken-rechner .aboelo-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--aboelo-space-2);
    padding: var(--aboelo-space-4) var(--aboelo-space-8);
    font-size: var(--aboelo-font-size-lg);
    font-weight: 600;
    border: none;
    border-radius: var(--aboelo-radius-lg);
    cursor: pointer;
    transition: var(--aboelo-transition);
    min-width: 200px;
    justify-content: center;
}

.rentenluecken-rechner .aboelo-btn--primary {
    background: linear-gradient(135deg, #9333EA 0%, #7C3AED 100%) !important;
    color: var(--aboelo-text-white) !important;
    box-shadow: 0 4px 16px rgba(147, 51, 234, 0.3) !important;
}

.rentenluecken-rechner .aboelo-btn--primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 32px rgba(147, 51, 234, 0.4) !important;
    background: linear-gradient(135deg, #7C3AED 0%, #9333EA 100%) !important;
}

.rentenluecken-rechner .submit-info {
    margin-top: var(--aboelo-space-4);
    font-size: var(--aboelo-font-size-sm);
    color: var(--aboelo-text-muted);
}

.rentenluecken-rechner .success-container,
.rentenluecken-rechner .error-container {
    text-align: center;
    padding: var(--aboelo-space-8);
    border-radius: var(--aboelo-radius-lg);
    margin-top: var(--aboelo-space-6);
}

.rentenluecken-rechner .success-container {
    background: rgba(39, 174, 96, 0.1);
    border: 2px solid var(--aboelo-success);
    color: var(--aboelo-success);
}

.rentenluecken-rechner .error-container {
    background: rgba(231, 76, 60, 0.1);
    border: 2px solid var(--aboelo-error);
    color: var(--aboelo-error);
}

.rentenluecken-rechner .success-icon {
    font-size: var(--aboelo-font-size-4xl);
    margin-bottom: var(--aboelo-space-4);
}

.rentenluecken-rechner .success-actions {
    display: flex;
    gap: var(--aboelo-space-4);
    justify-content: center;
    margin-top: var(--aboelo-space-6);
}

.rentenluecken-rechner .aboelo-btn--secondary {
    background: var(--aboelo-bg-primary);
    color: var(--aboelo-text-primary);
    border: 2px solid var(--aboelo-border-medium);
    padding: var(--aboelo-space-3) var(--aboelo-space-6);
    border-radius: var(--aboelo-radius-md);
    cursor: pointer;
    transition: var(--aboelo-transition);
    display: inline-flex;
    align-items: center;
    gap: var(--aboelo-space-2);
}

.rentenluecken-rechner .aboelo-btn--secondary:hover {
    border-color: var(--aboelo-tertiary);
    color: var(--aboelo-tertiary);
}

.rentenluecken-rechner .info-icon {
    color: var(--aboelo-tertiary);
    margin-left: var(--aboelo-space-1);
    cursor: help;
}

.rentenluecken-rechner .info-icon i {
    width: 16px;
    height: 16px;
}

.rentenluecken-rechner .form-hint {
    font-size: var(--aboelo-font-size-xs);
    color: var(--aboelo-text-muted);
    margin-top: var(--aboelo-space-1);
    display: flex;
    align-items: center;
    gap: var(--aboelo-space-1);
}

.rentenluecken-rechner .hint-icon {
    width: 14px;
    height: 14px;
    color: var(--aboelo-text-muted);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .pflegegrad-rechner,
    #pflegekosten-container,
    .rentenluecken-rechner,
    #aal-bedarf-container {
        margin: var(--aboelo-space-8);
        border-radius: var(--aboelo-radius-lg);
    }
    
    .pflegegrad-rechner .rechner-header,
    .pflegekosten-header,
    .rentenluecken-rechner .rechner-header,
    .aal-header {
        padding: var(--aboelo-space-12) var(--aboelo-space-6);
    }
    
    .pflegegrad-rechner .rechner-header h1,
    .pflegekosten-header h2,
    .rentenluecken-rechner .rechner-header h1,
    .aal-header h2 {
        font-size: var(--aboelo-font-size-2xl);
    }
    
    /* AAL Mobile Styles */
    #aal-bedarf-container .aal-form .form-row {
        grid-template-columns: 1fr;
        gap: var(--aboelo-space-4);
    }
    
    #aal-bedarf-container .page {
        padding: var(--aboelo-space-6);
    }
    
    #aal-bedarf-container .navigation-container {
        padding: var(--aboelo-space-6);
        flex-direction: column;
        gap: var(--aboelo-space-4);
    }
    
    #aal-bedarf-container .nav-button,
    #aal-bedarf-container .submit-button {
        width: 100%;
        justify-content: center;
    }
    
    .pflegegrad-rechner .radio-group {
        grid-template-columns: 1fr;
        gap: var(--aboelo-space-3);
    }
    
    .pflegegrad-rechner .navigation {
        flex-direction: column;
        gap: var(--aboelo-space-4);
    }
    
    .pflegegrad-rechner .btn,
    .pflegekosten-form .submit-btn,
    .rentenluecken-rechner .aboelo-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .pflegegrad-rechner .rechner-header h1,
    .pflegekosten-header h2,
    .rentenluecken-rechner .rechner-header h1,
    .aal-header h2 {
        font-size: var(--aboelo-font-size-xl);
    }
    
    .pflegegrad-rechner .page h2,
    .pflegekosten-form .aboelo-form-section__title,
    .rentenluecken-rechner .aboelo-form-section__title,
    #aal-bedarf-container .page-title {
        font-size: var(--aboelo-font-size-xl);
    }
}

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

/* Skip Link for Keyboard Users */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--aboelo-accent);
    color: var(--aboelo-text-white);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
    outline: 3px solid var(--aboelo-accent);
    outline-offset: 2px;
}

/* Screen Reader Only Content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Enhanced Focus Indicators */
.aal-form input:focus,
.aal-form select:focus,
.aal-form textarea:focus,
.aal-form button:focus,
.aal-form .radio-option:focus-within,
.aal-form .checkbox-option:focus-within {
    outline: 3px solid var(--aboelo-accent);
    outline-offset: 2px;
    border-color: var(--aboelo-accent);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.2);
}

/* Error Summary for Screen Readers */
.error-summary {
    background: var(--aboelo-bg-error-light);
    border: 2px solid var(--aboelo-error);
    border-radius: var(--aboelo-radius);
    padding: var(--aboelo-space-4);
    margin-bottom: var(--aboelo-space-4);
    display: none; /* Hidden by default */
}

.error-summary:not(:empty) {
    display: block; /* Show when has content */
}

.error-summary h3 {
    color: var(--aboelo-error);
    margin: 0 0 var(--aboelo-space-2) 0;
    font-size: var(--aboelo-font-size-lg);
}

.error-summary ul {
    margin: 0;
    padding-left: var(--aboelo-space-4);
}

.error-summary li {
    color: var(--aboelo-text-error);
    margin-bottom: var(--aboelo-space-1);
}

/* Field Error Styling */
.field-error {
    color: var(--aboelo-error);
    font-size: var(--aboelo-font-size-sm);
    margin-top: var(--aboelo-space-1);
    font-weight: 500;
    min-height: 1.2em;
}

/* Input field error styling for AAL questionnaire */
.aal-form input.field-error,
.aal-form select.field-error,
.aal-form textarea.field-error {
    border-color: var(--aboelo-error) !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
    background-color: rgba(231, 76, 60, 0.02) !important;
}

.aal-form input.field-error:focus,
.aal-form select.field-error:focus,
.aal-form textarea.field-error:focus {
    border-color: var(--aboelo-error) !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2) !important;
}

/* Radio group error styling for AAL questionnaire */
.aal-form .radio-group.field-error {
    border: 2px solid var(--aboelo-error) !important;
    background-color: rgba(231, 76, 60, 0.05) !important;
    border-radius: var(--aboelo-radius-lg) !important;
    padding: var(--aboelo-space-4) !important;
    margin-bottom: var(--aboelo-space-4) !important;
    animation: aboelo-error-pulse 0.6s ease-in-out;
}

.aal-form .radio-group.field-error legend {
    color: var(--aboelo-error) !important;
    font-weight: 600 !important;
}

/* Pflegegrad Form Error Styling */
.pflegegrad-form input.field-error,
.pflegegrad-form select.field-error,
.pflegegrad-form textarea.field-error {
    border-color: var(--aboelo-error) !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
    background-color: rgba(231, 76, 60, 0.02) !important;
}

.pflegegrad-form input.field-error:focus,
.pflegegrad-form select.field-error:focus,
.pflegegrad-form textarea.field-error:focus {
    border-color: var(--aboelo-error) !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2) !important;
}

.pflegegrad-form .radio-group.field-error,
.pflegegrad-form fieldset.radio-group.field-error,
.pflegegrad-form div.radio-group.field-error {
    border: 2px solid var(--aboelo-error) !important;
    background-color: rgba(231, 76, 60, 0.05) !important;
    border-radius: var(--aboelo-radius-lg) !important;
    padding: var(--aboelo-space-4) !important;
    margin-bottom: var(--aboelo-space-4) !important;
    animation: aboelo-error-pulse 0.6s ease-in-out;
}

.pflegegrad-form .checkbox-group.field-error,
.pflegegrad-form fieldset.checkbox-group.field-error {
    border: 2px solid var(--aboelo-error) !important;
    background-color: rgba(231, 76, 60, 0.05) !important;
    border-radius: var(--aboelo-radius-lg) !important;
    padding: var(--aboelo-space-4) !important;
    margin-bottom: var(--aboelo-space-4) !important;
    animation: aboelo-error-pulse 0.6s ease-in-out;
}

.pflegegrad-form .radio-group.field-error legend,
.pflegegrad-form .checkbox-group.field-error legend {
    color: var(--aboelo-error) !important;
    font-weight: 600 !important;
}

/* Hide error message when empty, but keep the container */
.field-error:empty::before {
    content: '';
    display: block;
    height: 1.2em;
}

/* Field Help Text */
.field-help {
    color: var(--aboelo-text-secondary);
    font-size: var(--aboelo-font-size-sm);
    margin-top: var(--aboelo-space-1);
    display: flex;
    align-items: center;
    gap: var(--aboelo-space-1);
}

/* Required and Optional Indicators */
.required {
    color: var(--aboelo-error);
    font-weight: bold;
}

.optional {
    color: var(--aboelo-text-secondary);
    font-size: var(--aboelo-font-size-sm);
    font-weight: normal;
}

/* Info Button Styling */
.info-button {
    background: none;
    border: none;
    color: var(--aboelo-accent);
    cursor: pointer;
    padding: 2px;
    margin-left: var(--aboelo-space-1);
    border-radius: 50%;
    transition: var(--aboelo-transition);
}

.info-button:hover,
.info-button:focus {
    background: var(--aboelo-accent);
    color: var(--aboelo-text-white);
    outline: 2px solid var(--aboelo-accent);
    outline-offset: 2px;
}

.info-button i {
    width: 16px;
    height: 16px;
}

/* Enhanced Radio and Checkbox Accessibility */
.radio-option,
.checkbox-option {
    position: relative;
    cursor: pointer;
    transition: var(--aboelo-transition);
}

.radio-option:hover,
.checkbox-option:hover {
    background: var(--aboelo-bg-accent-light);
}

.radio-option:focus-within,
.checkbox-option:focus-within {
    background: var(--aboelo-bg-accent-light);
    border-color: var(--aboelo-accent);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.2);
}

/* Fieldset and Legend Styling */
fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

legend {
    font-weight: 600;
    font-size: var(--aboelo-font-size-base);
    color: var(--aboelo-text-primary);
    margin-bottom: var(--aboelo-space-3);
    padding: 0;
}

/* Progress Bar Accessibility */
.progress-container[role="progressbar"] {
    position: relative;
}

.progress-container[role="progressbar"]::after {
    content: attr(aria-valuenow) " von " attr(aria-valuemax) " Schritten abgeschlossen";
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Navigation Accessibility */
.navigation-container[role="navigation"] {
    position: relative;
    /* Ensure navigation buttons are in the correct tab order */
    order: 999;
}

/* Ensure navigation buttons are focusable */
.nav-button,
.submit-button {
    position: relative;
    z-index: 10;
}

/* Enhanced Button Accessibility */
.nav-button,
.submit-button {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--aboelo-space-2);
}

/* Loading State Accessibility */
.button-loading[aria-hidden="true"] {
    display: none;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .aal-form input,
    .aal-form select,
    .aal-form textarea,
    .radio-option,
    .checkbox-option {
        border-width: 2px;
        border-style: solid;
    }
    
    .aal-form input:focus,
    .aal-form select:focus,
    .aal-form textarea:focus,
    .radio-option:focus-within,
    .checkbox-option:focus-within {
        border-width: 3px;
        outline-width: 4px;
    }
    
    .error-summary {
        border-width: 3px;
    }
    
    .field-error {
        font-weight: bold;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .skip-link,
    .aal-form input,
    .aal-form select,
    .aal-form textarea,
    .radio-option,
    .checkbox-option,
    .nav-button,
    .submit-button {
        transition: none;
    }
    
    .spinner {
        animation: none;
    }
    
    .progress-fill {
        transition: none;
    }
}

/* Mobile Accessibility Enhancements */
@media (max-width: 768px) {
    .radio-option,
    .checkbox-option {
        min-height: 44px;
        padding: var(--aboelo-space-3) var(--aboelo-space-4);
    }
    
    .nav-button,
    .submit-button {
        min-height: 48px;
        padding: var(--aboelo-space-4) var(--aboelo-space-6);
    }
    
    .info-button {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Focus Visible Enhancement */
.aal-form input:focus-visible,
.aal-form select:focus-visible,
.aal-form textarea:focus-visible,
.aal-form button:focus-visible,
.radio-option:focus-visible,
.checkbox-option:focus-visible {
    outline: 3px solid var(--aboelo-accent);
    outline-offset: 2px;
}

/* Print Styles for Accessibility */
@media print {
    .skip-link,
    .navigation-container,
    .info-button {
        display: none !important;
    }
    
    .aal-form {
        background: white !important;
        color: black !important;
    }
    
    .page {
        display: block !important;
        page-break-inside: avoid;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    .pflegegrad-rechner .radio-option label,
    .pflegegrad-rechner .form-input,
    #aal-bedarf-container .aal-form .radio-option,
    #aal-bedarf-container .aal-form .form-input,
    #aal-bedarf-container .aal-form .checkbox-option {
        border-width: 3px;
    }
}

/* Focus management für Barrierefreiheit */
.pflegegrad-rechner .radio-option input[type="radio"]:focus + label,
.pflegegrad-rechner .form-input:focus,
.pflegegrad-rechner .btn:focus,
#aal-bedarf-container .aal-form .radio-option:focus-within,
#aal-bedarf-container .aal-form .form-input:focus,
#aal-bedarf-container .aal-form .checkbox-option:focus-within,
#aal-bedarf-container .nav-button:focus,
#aal-bedarf-container .submit-button:focus {
    outline: 3px solid var(--aboelo-accent);
    outline-offset: 2px;
}

/* ===== ABOELO BRAND COMPONENTS ===== */

/* Aboelo Brand Pattern */
.aboelo-brand-pattern {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(45, 125, 125, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(230, 126, 34, 0.06) 0%, transparent 50%),
        linear-gradient(135deg, rgba(45, 125, 125, 0.02) 0%, rgba(230, 126, 34, 0.02) 100%);
}

/* Aboelo Card Design */
.aboelo-card {
    background: var(--aboelo-bg-primary);
    border: 1px solid var(--aboelo-border-light);
    border-left: 4px solid var(--aboelo-primary);
    border-radius: var(--aboelo-radius-lg);
    padding: var(--aboelo-space-8);
    box-shadow: 0 4px 16px var(--aboelo-shadow-subtle);
    /*transition: var(--aboelo-transition);*/
    position: relative;
    overflow: hidden;
}

.aboelo-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(45, 125, 125, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    /*transform: translate(50%, -50%);*/
}

.aboelo-card:hover {
    /*transform: translateY(-4px);*/
    box-shadow: 0 8px 32px var(--aboelo-shadow-medium);
    border-left-color: var(--aboelo-accent);
}

/* Aboelo Button System */
.aboelo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--aboelo-space-4) var(--aboelo-space-8);
    font-family: var(--aboelo-font-family);
    font-size: var(--aboelo-font-size-base);
    font-weight: 600;
    line-height: 1;
    border: none;
    border-radius: var(--aboelo-radius-lg);
    cursor: pointer;
    transition: var(--aboelo-transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    min-width: 140px;
    gap: var(--aboelo-space-2);
}

.aboelo-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
}

.aboelo-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Button Variants */
.aboelo-btn--primary {
    background: var(--aboelo-gradient-primary);
    color: var(--aboelo-text-white);
    box-shadow: 0 4px 16px var(--aboelo-shadow-medium);
}

.aboelo-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--aboelo-shadow-dark);
}

.aboelo-btn--accent {
    background: var(--aboelo-gradient-accent);
    color: var(--aboelo-text-white);
    box-shadow: 0 4px 16px rgba(230, 126, 34, 0.3);
}

.aboelo-btn--accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(230, 126, 34, 0.4);
}

.aboelo-btn--outline {
    background: transparent;
    color: var(--aboelo-primary);
    border: 2px solid var(--aboelo-primary);
}

.aboelo-btn--outline:hover {
    background: var(--aboelo-primary);
    color: var(--aboelo-text-white);
    transform: translateY(-1px);
}

.aboelo-btn--ghost {
    background: transparent;
    color: var(--aboelo-text-primary);
    border: 1px solid var(--aboelo-border-medium);
}

.aboelo-btn--ghost:hover {
    background: var(--aboelo-bg-secondary);
    border-color: var(--aboelo-primary);
    color: var(--aboelo-primary);
}

/* Button Sizes */
.aboelo-btn--sm {
    padding: var(--aboelo-space-2) var(--aboelo-space-4);
    font-size: var(--aboelo-font-size-sm);
    min-width: 100px;
}

.aboelo-btn--lg {
    padding: var(--aboelo-space-6) var(--aboelo-space-12);
    font-size: var(--aboelo-font-size-lg);
    min-width: 200px;
}

/* Aboelo Badge System */
.aboelo-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--aboelo-space-1) var(--aboelo-space-3);
    font-size: var(--aboelo-font-size-xs);
    font-weight: 600;
    border-radius: var(--aboelo-radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.aboelo-badge--primary {
    background: rgba(45, 125, 125, 0.1);
    color: var(--aboelo-primary);
    border: 1px solid rgba(45, 125, 125, 0.2);
}

.aboelo-badge--success {
    background: rgba(39, 174, 96, 0.1);
    color: var(--aboelo-success);
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.aboelo-badge--warning {
    background: rgba(243, 156, 18, 0.1);
    color: var(--aboelo-warning);
    border: 1px solid rgba(243, 156, 18, 0.2);
}

/* Aboelo Alert System */
.aboelo-alert {
    padding: var(--aboelo-space-4) var(--aboelo-space-6);
    border-radius: var(--aboelo-radius-lg);
    border-left: 4px solid;
    margin: var(--aboelo-space-4) 0;
    position: relative;
}

.aboelo-alert--info {
    background: rgba(52, 152, 219, 0.08);
    border-left-color: var(--aboelo-info);
    color: var(--aboelo-info);
}

.aboelo-alert--success {
    background: rgba(39, 174, 96, 0.08);
    border-left-color: var(--aboelo-success);
    color: var(--aboelo-success);
}

.aboelo-alert--warning {
    background: rgba(243, 156, 18, 0.08);
    border-left-color: var(--aboelo-warning);
    color: var(--aboelo-warning);
}

.aboelo-alert--error {
    background: rgba(231, 76, 60, 0.08);
    border-left-color: var(--aboelo-error);
    color: var(--aboelo-error);
}

/* Aboelo Progress Indicators */
.aboelo-progress {
    width: 100%;
    height: 8px;
    background: var(--aboelo-neutral-200);
    border-radius: var(--aboelo-radius-full);
    overflow: hidden;
    position: relative;
}

.aboelo-progress__bar {
    height: 100%;
    background: var(--aboelo-gradient-primary);
    border-radius: var(--aboelo-radius-full);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.aboelo-progress__bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Aboelo Input System */
.aboelo-input {
    width: 100%;
    padding: var(--aboelo-space-4);
    font-family: var(--aboelo-font-family);
    font-size: var(--aboelo-font-size-base);
    border: 2px solid var(--aboelo-border-medium);
    border-radius: var(--aboelo-radius);
    background: var(--aboelo-bg-primary);
    transition: var(--aboelo-transition);
    outline: none;
}

.aboelo-input:focus {
    border-color: var(--aboelo-primary);
    box-shadow: 0 0 0 3px var(--aboelo-shadow-light);
}

.aboelo-input:invalid {
    border-color: var(--aboelo-error);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.aboelo-input:valid:not(:placeholder-shown) {
    border-color: var(--aboelo-success);
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

/* Aboelo Loading States */
.aboelo-loading {
    position: relative;
    overflow: hidden;
}

.aboelo-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(45, 125, 125, 0.1), transparent);
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Aboelo Microinteractions */
.aboelo-hover-lift {
    transition: var(--aboelo-transition);
}

.aboelo-hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--aboelo-shadow-medium);
}

.aboelo-pulse {
    animation: aboelo-pulse 2s infinite;
}

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

.aboelo-bounce {
    animation: aboelo-bounce 1s infinite;
}

@keyframes aboelo-bounce {
    0%, 20%, 53%, 80%, 100% { transform: translateY(0); }
    40%, 43% { transform: translateY(-8px); }
    70% { transform: translateY(-4px); }
    90% { transform: translateY(-2px); }
}

/* Aboelo Focus Ring für Barrierefreiheit */
.aboelo-focus-ring {
    outline: none;
}

.aboelo-focus-ring:focus {
    outline: 2px solid var(--aboelo-primary);
    outline-offset: 2px;
}

/* Autofill-Styling für bessere Barrierefreiheit */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--aboelo-bg-primary) inset !important;
    -webkit-text-fill-color: var(--aboelo-text-primary) !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Autofill für verschiedene Browser */
input[autocomplete]:not([autocomplete="off"]) {
    background-color: var(--aboelo-bg-primary);
}

/* Verbesserte Autofill-Erkennung */
input[autocomplete="given-name"],
input[autocomplete="family-name"],
input[autocomplete="email"],
input[autocomplete="tel"],
input[autocomplete="postal-code"],
input[autocomplete="bday-year"] {
    background-color: var(--aboelo-bg-primary);
}

/* Autofill-Indikator für Benutzer */
.form-input:autofill {
    border-color: var(--aboelo-success);
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

/* ===== UTILITY CLASSES ===== */
.aboelo-text-primary { color: var(--aboelo-text-primary); }
.aboelo-text-secondary { color: var(--aboelo-text-secondary); }
.aboelo-text-white { color: var(--aboelo-text-white); }
.aboelo-text-center { text-align: center; }
.aboelo-text-left { text-align: left; }
.aboelo-text-right { text-align: right; }

.aboelo-bg-primary { background-color: var(--aboelo-bg-primary); }
.aboelo-bg-secondary { background-color: var(--aboelo-bg-secondary); }
.aboelo-bg-gradient { background: var(--aboelo-bg-gradient); }

.aboelo-shadow-subtle { box-shadow: 0 2px 8px var(--aboelo-shadow-subtle); }
.aboelo-shadow-light { box-shadow: 0 4px 16px var(--aboelo-shadow-light); }
.aboelo-shadow-medium { box-shadow: 0 8px 24px var(--aboelo-shadow-medium); }
.aboelo-shadow-dark { box-shadow: 0 12px 32px var(--aboelo-shadow-dark); }

.aboelo-radius { border-radius: var(--aboelo-radius); }
.aboelo-radius-sm { border-radius: var(--aboelo-radius-sm); }
.aboelo-radius-lg { border-radius: var(--aboelo-radius-lg); }
.aboelo-radius-xl { border-radius: var(--aboelo-radius-xl); }
.aboelo-radius-full { border-radius: var(--aboelo-radius-full); }

.aboelo-m-0 { margin: 0; }
.aboelo-mt-4 { margin-top: var(--aboelo-space-4); }
.aboelo-mb-4 { margin-bottom: var(--aboelo-space-4); }
.aboelo-mx-auto { margin-left: auto; margin-right: auto; }

.aboelo-p-4 { padding: var(--aboelo-space-4); }
.aboelo-p-6 { padding: var(--aboelo-space-6); }
.aboelo-p-8 { padding: var(--aboelo-space-8); }

.aboelo-flex { display: flex; }
.aboelo-inline-flex { display: inline-flex; }
.aboelo-grid { display: grid; }
.aboelo-block { display: block; }
.aboelo-hidden { display: none; }

.aboelo-items-center { align-items: center; }
.aboelo-justify-center { justify-content: center; }
.aboelo-justify-between { justify-content: space-between; }

.aboelo-font-semibold { font-weight: 600; }
.aboelo-font-bold { font-weight: 700; }

.aboelo-transition { transition: var(--aboelo-transition); }
.aboelo-transition-fast { transition: var(--aboelo-transition-fast); }

/* Aboelo Consent Manager Styles */
.aboelo-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease-out;
}

.aboelo-toast-info {
    background: linear-gradient(135deg, var(--aboelo-info), #0056b3);
}

.aboelo-toast-success {
    background: linear-gradient(135deg, var(--aboelo-success), #28a745);
}

.aboelo-toast-error {
    background: linear-gradient(135deg, var(--aboelo-error), #dc3545);
}

.aboelo-toast-warning {
    background: linear-gradient(135deg, var(--aboelo-warning), #ffc107);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Consent Management UI */
.consent-info {
    background: linear-gradient(135deg, rgba(72, 211, 170, 0.1), rgba(59, 196, 146, 0.1));
    border: 1px solid var(--aboelo-success);
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    color: var(--aboelo-text-primary);
}

.consent-info.existing-consent {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(0, 86, 179, 0.1));
    border-color: var(--aboelo-info);
}

.consent-info p {
    margin: 0 0 10px 0;
    font-size: 14px;
    line-height: 1.5;
}

.consent-info p:last-child {
    margin-bottom: 0;
}

.consent-info strong {
    color: var(--aboelo-success);
}

.existing-consent strong {
    color: var(--aboelo-info);
}

/* Marketing Consent Checkbox Styling */
.checkbox-option input[type="checkbox"]:checked + span {
    color: var(--aboelo-success);
    font-weight: 500;
}

.existing-consent .checkbox-option input[type="checkbox"]:checked + span {
    color: var(--aboelo-info);
}

/* Consent Revoke Button */
.consent-revoke-btn {
    background: linear-gradient(135deg, var(--aboelo-error), #dc3545);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.consent-revoke-btn:hover {
    background: linear-gradient(135deg, #dc3545, #c82333);
    transform: translateY(-1px);
}

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 20px;
    z-index: 9998;
    display: none;
}

.cookie-consent-banner.show {
    display: block;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-consent-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-consent-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-consent-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-consent-accept {
    background: var(--aboelo-success);
    color: white;
}

.cookie-consent-accept:hover {
    background: #28a745;
}

.cookie-consent-decline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-consent-decline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .aboelo-toast {
        top: 10px;
        right: 10px;
        left: 10px;
        font-size: 14px;
    }
    
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-consent-actions {
        width: 100%;
        justify-content: center;
    }
}

/* ===== VALIDATION ERROR STYLES ===== */
.aboelo-field-error {
    border-color: var(--aboelo-error) !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
    background-color: rgba(231, 76, 60, 0.02) !important;
}

.aboelo-field-error:focus {
    border-color: var(--aboelo-error) !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2) !important;
}

/* Checkbox error styling for all calculators */
input[type="checkbox"].field-error,
input[type="checkbox"].aboelo-field-error {
    border-color: var(--aboelo-error) !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
    background-color: rgba(231, 76, 60, 0.02) !important;
}

/* Checkbox container error styling */
.checkbox-group.field-error,
.checkbox-option.field-error,
.checkbox-label.field-error {
    border: 2px solid var(--aboelo-error) !important;
    background-color: rgba(231, 76, 60, 0.05) !important;
    border-radius: var(--aboelo-radius-lg) !important;
    padding: var(--aboelo-space-4) !important;
    margin-bottom: var(--aboelo-space-4) !important;
    animation: aboelo-error-pulse 0.6s ease-in-out;
}

/* Field help styling for better UX */
.field-help {
    margin-top: var(--aboelo-space-2);
    font-size: var(--aboelo-font-size-sm);
    color: var(--aboelo-text-secondary);
    line-height: var(--aboelo-line-height-relaxed);
}

.field-help .hint-icon {
    width: 14px;
    height: 14px;
    margin-right: var(--aboelo-space-1);
    color: var(--aboelo-primary);
}

/* Optional field indicator */
.optional {
    color: var(--aboelo-text-secondary);
    font-weight: normal;
    font-size: var(--aboelo-font-size-sm);
}

.aboelo-question-error {
    border: 2px solid var(--aboelo-error) !important;
    background-color: rgba(231, 76, 60, 0.05) !important;
    border-radius: var(--aboelo-radius-lg) !important;
    padding: var(--aboelo-space-4) !important;
    margin-bottom: var(--aboelo-space-4) !important;
    animation: aboelo-error-pulse 0.6s ease-in-out;
}



.aboelo-question-error .form-group label,
.aboelo-question-error .radio-group label,
.aboelo-question-error .checkbox-group label {
    color: var(--aboelo-text-primary) !important;
    font-weight: 600 !important;
}

@keyframes aboelo-error-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.aboelo-error-message {
    color: var(--aboelo-error);
    font-size: var(--aboelo-font-size-sm);
    margin-top: var(--aboelo-space-2);
    display: flex;
    align-items: center;
    gap: var(--aboelo-space-1);
    font-weight: 500;
}

.aboelo-error-message::before {
    content: "⚠";
    font-size: var(--aboelo-font-size-base);
}

/* Pflegegrad Rechner Final Page Styles */
.pflegegrad-rechner .email-form .checkbox-option {
    align-items: flex-start;
}

.pflegegrad-rechner .email-form .checkbox-option input[type="checkbox"] {
    margin-top: 0.3em;
}

.pflegegrad-rechner .submit-container {
    text-align: center;
    margin-top: 1.5rem;
}

/* ===== INFO MODAL STYLES ===== */
.info-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--aboelo-z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--aboelo-space-4);
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.modal-content {
    position: relative;
    background: var(--aboelo-bg-primary);
    border-radius: var(--aboelo-radius-lg);
    box-shadow: var(--aboelo-shadow-xl);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--aboelo-space-6);
    border-bottom: 1px solid var(--aboelo-neutral-200);
    background: linear-gradient(135deg, var(--aboelo-primary), var(--aboelo-primary-light));
}

.modal-header h3 {
    margin: 0;
    color: var(--aboelo-text-white) !important;
    font-size: var(--aboelo-font-size-lg);
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--aboelo-text-white);
    cursor: pointer;
    padding: var(--aboelo-space-2);
    border-radius: var(--aboelo-radius-md);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.modal-close:focus {
    outline: 2px solid var(--aboelo-text-white);
    outline-offset: 2px;
}

.modal-body {
    padding: var(--aboelo-space-6);
    overflow-y: auto;
    max-height: calc(80vh - 80px);
}

.modal-body h4 {
    color: var(--aboelo-primary);
    font-size: var(--aboelo-font-size-base);
    font-weight: 600;
    margin: 0 0 var(--aboelo-space-3) 0;
}

.modal-body p {
    color: var(--aboelo-text-primary);
    font-size: var(--aboelo-font-size-sm);
    line-height: 1.6;
    margin: 0 0 var(--aboelo-space-3) 0;
}

.modal-body ul {
    margin: var(--aboelo-space-3) 0;
    padding-left: var(--aboelo-space-5);
}

.modal-body li {
    color: var(--aboelo-text-primary);
    font-size: var(--aboelo-font-size-sm);
    line-height: 1.6;
    margin-bottom: var(--aboelo-space-2);
}

.modal-body strong {
    color: var(--aboelo-primary);
    font-weight: 600;
}

/* Info Icon Button Styles */
.info-icon-btn {
    background: none;
    border: none;
    color: var(--aboelo-primary);
    cursor: pointer;
    padding: var(--aboelo-space-1);
    border-radius: 50%;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: var(--aboelo-space-2);
    vertical-align: middle;
}

.info-icon-btn:hover {
    background-color: var(--aboelo-primary);
    color: var(--aboelo-text-white);
    transform: scale(1.1);
}

.info-icon-btn:focus {
    outline: 2px solid var(--aboelo-primary);
    outline-offset: 2px;
}

.info-icon-btn svg {
    width: 16px;
    height: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .info-modal {
        padding: var(--aboelo-space-2);
    }
    
    .modal-content {
        max-height: 90vh;
    }
    
    .modal-header,
    .modal-body {
        padding: var(--aboelo-space-4);
    }
    
    .modal-body {
        max-height: calc(90vh - 70px);
    }
}