/**
 * Aboelo Calculator Widgets CSS
 * 
 * Optimiert für Senioren, Angehörige und Menschen mit Behinderungen
 * Barrierefreiheit, klare Struktur, große Buttons
 * Harmonisiert mit Aboelo Branding-System
 * 
 * @package Aboelo-Calculators
 * @since 1.0.0
 */

/* ==========================================================================
   WIDGET BASE STYLES - Optimiert für Zielgruppe
   ========================================================================== */

.aboelo-widget {
    background: linear-gradient(135deg, #ffffff 0%, #F8F9FA 100%);
    border: 3px solid #E9ECEF; /* Dickerer Border für bessere Sichtbarkeit */
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(45, 125, 125, 0.08), 0 2px 4px -1px rgba(45, 125, 125, 0.06);
    padding: 1.5rem; /* Mehr Padding für bessere Lesbarkeit */
    margin: 2rem 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: var(--aboelo-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    line-height: 1.7; /* Bessere Zeilenhöhe für Senioren */
    color: #1a1a1a; /* Dunklerer Text für besseren Kontrast */
}

/* ==========================================================================
   WIDGET HEADER - Optimiert für Zielgruppe
   ========================================================================== */

.aboelo-widget__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem; /* Mehr Abstand */
    padding-bottom: 1rem;
    border-bottom: 3px solid #F8F9FA; /* Dickerer Border */
}

.aboelo-widget__icon {
    flex-shrink: 0;
    width: 56px; /* Größeres Icon */
    height: 56px;
    background: var(--aboelo-gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(45, 125, 125, 0.3);
}

.aboelo-widget__icon i {
    width: 28px; /* Größeres Icon */
    height: 28px;
    color: white;
    stroke-width: 2;
    display: block;
}

/* Fallback für Icons wenn Lucide nicht verfügbar ist */
.aboelo-widget__icon .fallback-icon {
    width: 36px;
    height: 36px;
    color: white;
    stroke-width: 2;
    display: block;
}

.aboelo-widget__content {
    flex: 1;
}

.aboelo-widget__title {
    font-size: 1.5rem; /* Größere Schrift */
    font-weight: 700;
    color: #1a1a1a; /* Dunklerer Text */
    margin: 0 0 0.75rem 0; /* Mehr Abstand */
    font-family: var(--aboelo-font-family-heading, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    line-height: 1.3;
}

.aboelo-widget__subtitle {
    font-size: 1rem; /* Größere Schrift */
    color: #2C3E50; /* Dunklerer Text */
    margin: 0;
    font-weight: 500;
    line-height: 1.5;
}

/* ==========================================================================
   WIDGET BODY - Optimiert für Zielgruppe
   ========================================================================== */

.aboelo-widget__body {
    margin-bottom: 1.5rem; /* Mehr Abstand */
}

.aboelo-widget__benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Größere Mindestbreite */
    gap: 1rem;
    margin-bottom: 1.5rem; /* Mehr Abstand */
}

.aboelo-widget__benefit {
    display: flex;
    align-items: center;
    gap: 1rem; /* Mehr Abstand */
    padding: 0.75rem; /* Mehr Padding */
    background: #F8F9FA;
    border-radius: 12px;
    border-left: 5px solid var(--aboelo-primary); /* Dickerer Border */
    transition: all 0.2s ease;
}

.aboelo-widget__benefit i {
    width: 28px; /* Größeres Icon */
    height: 28px;
    color: var(--aboelo-primary);
    stroke-width: 2;
    flex-shrink: 0;
    display: block;
}

.aboelo-widget__benefit .fallback-icon {
    width: 28px;
    height: 28px;
    color: var(--aboelo-primary);
    stroke-width: 2;
    flex-shrink: 0;
    display: block;
}

.aboelo-widget__benefit span {
    font-weight: 600;
    color: #1a1a1a; /* Dunklerer Text */
    font-size: 1.1rem; /* Größere Schrift */
    line-height: 1.4;
}

.aboelo-widget__features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Größere Mindestbreite */
    gap: 1.25rem; /* Mehr Abstand */
}

.aboelo-widget__feature {
    display: flex;
    align-items: center;
    gap: 1rem; /* Mehr Abstand */
    padding: 1rem 1.25rem; /* Mehr Padding */
    background: #ffffff;
    border: 2px solid #E9ECEF; /* Dickerer Border */
    border-radius: 8px;
    font-size: 1rem; /* Größere Schrift */
    color: #2C3E50; /* Dunklerer Text */
    transition: all 0.2s ease;
    line-height: 1.4;
}

.aboelo-widget__feature i {
    width: 20px; /* Größeres Icon */
    height: 20px;
    color: var(--aboelo-success);
    stroke-width: 2;
    flex-shrink: 0;
    display: block;
}

.aboelo-widget__feature .fallback-icon {
    width: 20px;
    height: 20px;
    color: var(--aboelo-success);
    stroke-width: 2;
    flex-shrink: 0;
    display: block;
}

.aboelo-widget__feature span {
    flex: 1;
}

/* ==========================================================================
   WIDGET FOOTER - Optimiert für Zielgruppe
   ========================================================================== */

.aboelo-widget__footer {
    text-align: center;
    padding-top: 1.5rem; /* Mehr Abstand */
    border-top: 3px solid #F8F9FA; /* Dickerer Border */
}

.aboelo-widget__button {
    display: inline-flex;
    align-items: center;
    gap: 1rem; /* Mehr Abstand */
    padding: 1rem 2rem; /* Mehr Padding */
    font-size: 1.2rem; /* Größere Schrift */
    font-weight: 600;
    text-decoration: none;
    color: #ffffff !important;
    background: var(--aboelo-gradient-primary);
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(45, 125, 125, 0.3);
    min-height: 52px; /* Größerer Button */
    min-width: 240px; /* Größerer Button */
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.aboelo-widget__button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.aboelo-widget__button:hover::before {
    left: 100%;
}

.aboelo-widget__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(45, 125, 125, 0.4);
    background: var(--aboelo-gradient-light);
}

.aboelo-widget__button:active {
    transform: translateY(0);
}

.aboelo-widget__button:focus {
    outline: 4px solid var(--aboelo-primary); /* Dickerer Outline */
    outline-offset: 3px;
}

.aboelo-widget__button i {
    width: 24px; /* Größeres Icon */
    height: 24px;
    stroke-width: 2;
    transition: transform 0.2s ease;
    display: block;
}

.aboelo-widget__button .fallback-icon {
    width: 24px;
    height: 24px;
    stroke-width: 2;
    transition: transform 0.2s ease;
    display: block;
}

.aboelo-widget__button:hover i {
    transform: translateX(4px);
}

.aboelo-widget__disclaimer {
    margin: 1.5rem 0 0 0; /* Mehr Abstand */
    font-size: 1rem; /* Größere Schrift */
    color: #2C3E50; /* Dunklerer Text */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem; /* Mehr Abstand */
    line-height: 1.5;
}

.aboelo-widget__disclaimer i {
    width: 20px; /* Größeres Icon */
    height: 20px;
    color: var(--aboelo-success);
    stroke-width: 2;
    display: block;
}

.aboelo-widget__disclaimer .fallback-icon {
    width: 20px;
    height: 20px;
    color: var(--aboelo-success);
    stroke-width: 2;
    display: block;
}

/* ==========================================================================
   WIDGET VARIANTS - Harmonisiert mit Aboelo Branding
   ========================================================================== */

/* Pflegegrad Widget - Aboelo Primary (Teal-Grün) */
.aboelo-widget--pflegegrad {
    border-left: 6px solid var(--aboelo-primary);
}

.aboelo-widget--pflegegrad .aboelo-widget__icon {
    background: var(--aboelo-gradient-primary);
}

.aboelo-widget--pflegegrad .aboelo-widget__benefit {
    border-left-color: var(--aboelo-primary);
}

.aboelo-widget--pflegegrad .aboelo-widget__benefit i {
    color: var(--aboelo-primary);
}

.aboelo-widget--pflegegrad .aboelo-widget__button {
    background: var(--aboelo-gradient-primary);
    box-shadow: 0 4px 6px -1px rgba(45, 125, 125, 0.3);
}

.aboelo-widget--pflegegrad .aboelo-widget__button:hover {
    background: var(--aboelo-gradient-light);
    box-shadow: 0 8px 15px -3px rgba(45, 125, 125, 0.4);
}

/* Pflegekosten Widget - Aboelo Secondary (Blau) */
.aboelo-widget--pflegekosten {
    border-left: 6px solid var(--aboelo-secondary);
}

.aboelo-widget--pflegekosten .aboelo-widget__icon {
    background: linear-gradient(135deg, var(--aboelo-secondary) 0%, #2980B9 100%);
}

.aboelo-widget--pflegekosten .aboelo-widget__benefit {
    border-left-color: var(--aboelo-secondary);
}

.aboelo-widget--pflegekosten .aboelo-widget__benefit i {
    color: var(--aboelo-secondary);
}

.aboelo-widget--pflegekosten .aboelo-widget__button {
    background: linear-gradient(135deg, var(--aboelo-secondary) 0%, #2980B9 100%);
    box-shadow: 0 4px 6px -1px rgba(52, 152, 219, 0.3);
}

.aboelo-widget--pflegekosten .aboelo-widget__button:hover {
    background: linear-gradient(135deg, #2980B9 0%, #21618C 100%);
    box-shadow: 0 8px 15px -3px rgba(52, 152, 219, 0.4);
}

/* Rentenlücken Widget - Aboelo Tertiary (Lila) */
.aboelo-widget--rentenluecken {
    border-left: 6px solid var(--aboelo-tertiary);
}

.aboelo-widget--rentenluecken .aboelo-widget__icon {
    background: linear-gradient(135deg, var(--aboelo-tertiary) 0%, #8E44AD 100%);
}

.aboelo-widget--rentenluecken .aboelo-widget__benefit {
    border-left-color: var(--aboelo-tertiary);
}

.aboelo-widget--rentenluecken .aboelo-widget__benefit i {
    color: var(--aboelo-tertiary);
}

.aboelo-widget--rentenluecken .aboelo-widget__button {
    background: linear-gradient(135deg, var(--aboelo-tertiary) 0%, #8E44AD 100%);
    box-shadow: 0 4px 6px -1px rgba(155, 89, 182, 0.3);
}

.aboelo-widget--rentenluecken .aboelo-widget__button:hover {
    background: linear-gradient(135deg, #8E44AD 0%, #6C3483 100%);
    box-shadow: 0 8px 15px -3px rgba(155, 89, 182, 0.4);
}

/* Barrierefreier Wohnen Widget - Custom Color (Green) */
.aboelo-widget--barrierefrei {
    border-left: 6px solid #27AE60;
}

.aboelo-widget--barrierefrei .aboelo-widget__icon {
    background: linear-gradient(135deg, #27AE60 0%, #229954 100%);
}

.aboelo-widget--barrierefrei .aboelo-widget__benefit {
    border-left-color: #27AE60;
}

.aboelo-widget--barrierefrei .aboelo-widget__benefit i {
    color: #27AE60;
}

.aboelo-widget--barrierefrei .aboelo-widget__button {
    background: linear-gradient(135deg, #27AE60 0%, #229954 100%);
    box-shadow: 0 4px 6px -1px rgba(39, 174, 96, 0.3);
}

.aboelo-widget--barrierefrei .aboelo-widget__button:hover {
    background: linear-gradient(135deg, #229954 0%, #1E8449 100%);
    box-shadow: 0 8px 15px -3px rgba(39, 174, 96, 0.4);
}

/* AAL Widget - Aboelo Accent (Orange) */
.aboelo-widget--aal {
    border-left: 6px solid var(--aboelo-accent);
}

.aboelo-widget--aal .aboelo-widget__icon {
    background: var(--aboelo-gradient-accent);
}

.aboelo-widget--aal .aboelo-widget__benefit {
    border-left-color: var(--aboelo-accent);
}

.aboelo-widget--aal .aboelo-widget__benefit i {
    color: var(--aboelo-accent);
}

.aboelo-widget--aal .aboelo-widget__button {
    background: var(--aboelo-gradient-accent);
    box-shadow: 0 4px 6px -1px rgba(230, 126, 34, 0.3);
}

.aboelo-widget--aal .aboelo-widget__button:hover {
    background: linear-gradient(135deg, var(--aboelo-accent-dark) 0%, #BA4A00 100%);
    box-shadow: 0 8px 15px -3px rgba(230, 126, 34, 0.4);
}

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

@media (max-width: 768px) {
    .aboelo-widget {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .aboelo-widget__header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .aboelo-widget__icon {
        width: 56px;
        height: 56px;
    }
    
    .aboelo-widget__icon i {
        width: 28px;
        height: 28px;
    }
    
    .aboelo-widget__title {
        font-size: 1.5rem;
    }
    
    .aboelo-widget__benefits {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .aboelo-widget__features {
        grid-template-columns: 1fr;
    }
    
    .aboelo-widget__button {
        width: 100%;
        min-width: auto;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .aboelo-widget {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .aboelo-widget__title {
        font-size: 1.25rem;
    }
    
    .aboelo-widget__subtitle {
        font-size: 1rem;
    }
    
    .aboelo-widget__benefit {
        padding: 0.75rem;
    }
    
    .aboelo-widget__benefit span {
        font-size: 0.9rem;
    }
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
    .aboelo-widget {
        border-width: 3px;
        border-color: #000000;
    }
    
    .aboelo-widget__title {
        color: #000000;
    }
    
    .aboelo-widget__subtitle {
        color: #333333;
    }
    
    .aboelo-widget__benefit {
        border-left-width: 6px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .aboelo-widget,
    .aboelo-widget__button,
    .aboelo-widget__benefit,
    .aboelo-widget__feature {
        transition: none;
    }
       
}

/* Focus indicators for keyboard navigation */
.aboelo-widget__button:focus-visible {
    outline: 3px solid var(--aboelo-primary);
    outline-offset: 2px;
}

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

/* Screen reader only text */
.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;
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .aboelo-widget {
        break-inside: avoid;
        box-shadow: none;
        border: 2px solid #000000;
        background: #ffffff;
    }
    
    .aboelo-widget__button {
        background: #000000 !important;
        color: #ffffff !important;
        box-shadow: none !important;
    }
}

/* ==========================================================================
   KOMPAKTE WIDGETS - Optimiert für Zielgruppe
   ========================================================================== */

.aboelo-widget-compact {
    background: linear-gradient(135deg, #ffffff 0%, #F8F9FA 100%);
    border: 3px solid #E9ECEF; /* Dickerer Border für bessere Sichtbarkeit */
    border-radius: 12px;
    box-shadow: 0 2px 4px -1px rgba(45, 125, 125, 0.08), 0 1px 2px -1px rgba(45, 125, 125, 0.06);
    padding: 2rem; /* Mehr Padding für bessere Lesbarkeit */
    margin: 1.5rem 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: var(--aboelo-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    line-height: 1.6; /* Bessere Zeilenhöhe für Senioren */
    color: #1a1a1a; /* Dunklerer Text für besseren Kontrast */
    max-width: 400px;
}

.aboelo-widget-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(45, 125, 125, 0.12), 0 4px 6px -2px rgba(45, 125, 125, 0.08);
    border-color: var(--aboelo-primary);
}

.aboelo-widget-compact:focus-within {
    outline: 3px solid var(--aboelo-primary); /* Dickerer Outline für bessere Sichtbarkeit */
    outline-offset: 3px;
}

/* ==========================================================================
   KOMPAKTE WIDGET HEADER
   ========================================================================== */

.aboelo-widget-compact__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #F8F9FA;
}

.aboelo-widget-compact__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--aboelo-gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px -1px rgba(45, 125, 125, 0.3);
}

.aboelo-widget-compact__icon i {
    width: 24px;
    height: 24px;
    color: white;
    stroke-width: 2;
    display: block;
}

.aboelo-widget-compact__icon .fallback-icon {
    width: 24px;
    height: 24px;
    color: white;
    stroke-width: 2;
    display: block;
}

.aboelo-widget-compact__content {
    flex: 1;
}

.aboelo-widget-compact__title {
    font-size: 1.4rem; /* Größere Schrift */
    font-weight: 700;
    color: #1a1a1a; /* Dunklerer Text */
    margin: 0 0 0.5rem 0; /* Mehr Abstand */
    font-family: var(--aboelo-font-family-heading, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    line-height: 1.3;
}

.aboelo-widget-compact__subtitle {
    font-size: 1.05rem; /* Größere Schrift */
    color: #2C3E50; /* Dunklerer Text */
    margin: 0;
    font-weight: 500;
    line-height: 1.4;
}

/* ==========================================================================
   KOMPAKTE WIDGET BENEFITS
   ========================================================================== */

.aboelo-widget-compact__benefits {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.aboelo-widget-compact__benefit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: #F8F9FA;
    border-radius: 8px;
    border-left: 3px solid var(--aboelo-primary);
    transition: all 0.2s ease;
}

.aboelo-widget-compact__benefit i {
    width: 16px;
    height: 16px;
    color: var(--aboelo-primary);
    stroke-width: 2;
    flex-shrink: 0;
    display: block;
}

.aboelo-widget-compact__benefit .fallback-icon {
    width: 16px;
    height: 16px;
    color: var(--aboelo-primary);
    stroke-width: 2;
    flex-shrink: 0;
    display: block;
}

.aboelo-widget-compact__benefit span {
    font-weight: 600;
    color: #1a1a1a; /* Dunklerer Text */
    font-size: 1rem; /* Größere Schrift */
    line-height: 1.4;
}

/* ==========================================================================
   KOMPAKTE WIDGET FOOTER
   ========================================================================== */

.aboelo-widget-compact__footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #F8F9FA;
}

.aboelo-widget-compact__button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem; /* Mehr Abstand */
    padding: 1rem 2rem; /* Mehr Padding */
    font-size: 1.1rem; /* Größere Schrift */
    font-weight: 600;
    text-decoration: none;
    color: #ffffff !important;
    background: var(--aboelo-gradient-primary);
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px -1px rgba(45, 125, 125, 0.3);
    min-height: 52px; /* Größerer Button */
    justify-content: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.aboelo-widget-compact__button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.aboelo-widget-compact__button:hover::before {
    left: 100%;
}

.aboelo-widget-compact__button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px -2px rgba(45, 125, 125, 0.4);
    background: var(--aboelo-gradient-light);
}

.aboelo-widget-compact__button:active {
    transform: translateY(0);
}

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

.aboelo-widget-compact__button i {
    width: 16px;
    height: 16px;
    stroke-width: 2;
    transition: transform 0.2s ease;
    display: block;
}

.aboelo-widget-compact__button .fallback-icon {
    width: 16px;
    height: 16px;
    stroke-width: 2;
    transition: transform 0.2s ease;
    display: block;
}

.aboelo-widget-compact__button:hover i {
    transform: translateX(2px);
}

.aboelo-widget-compact__disclaimer {
    margin: 0.75rem 0 0 0;
    font-size: 0.8rem;
    color: #2C3E50;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    line-height: 1.4;
}

.aboelo-widget-compact__disclaimer i {
    width: 16px;
    height: 16px;
    color: var(--aboelo-success);
    stroke-width: 2;
    flex-shrink: 0;
}

.aboelo-widget-compact__disclaimer span {
    flex: 1;
    text-align: center;
}

/* ==========================================================================
   KOMPAKTE WIDGET VARIANTS - Harmonisiert mit Aboelo Branding
   ========================================================================== */

/* Pflegegrad Compact Widget - Aboelo Primary (Teal-Grün) */
.aboelo-widget-compact--pflegegrad {
    border-left: 4px solid var(--aboelo-primary);
}

.aboelo-widget-compact--pflegegrad .aboelo-widget-compact__icon {
    background: var(--aboelo-gradient-primary);
}

.aboelo-widget-compact--pflegegrad .aboelo-widget-compact__benefit {
    border-left-color: var(--aboelo-primary);
}

.aboelo-widget-compact--pflegegrad .aboelo-widget-compact__benefit i {
    color: var(--aboelo-primary);
}

.aboelo-widget-compact--pflegegrad .aboelo-widget-compact__button {
    background: var(--aboelo-gradient-primary);
    box-shadow: 0 2px 4px -1px rgba(45, 125, 125, 0.3);
}

.aboelo-widget-compact--pflegegrad .aboelo-widget-compact__button:hover {
    background: var(--aboelo-gradient-light);
    box-shadow: 0 4px 8px -2px rgba(45, 125, 125, 0.4);
}

/* Pflegekosten Compact Widget - Aboelo Secondary (Blau) */
.aboelo-widget-compact--pflegekosten {
    border-left: 4px solid var(--aboelo-secondary);
}

.aboelo-widget-compact--pflegekosten .aboelo-widget-compact__icon {
    background: linear-gradient(135deg, var(--aboelo-secondary) 0%, #2980B9 100%);
}

.aboelo-widget-compact--pflegekosten .aboelo-widget-compact__benefit {
    border-left-color: var(--aboelo-secondary);
}

.aboelo-widget-compact--pflegekosten .aboelo-widget-compact__benefit i {
    color: var(--aboelo-secondary);
}

.aboelo-widget-compact--pflegekosten .aboelo-widget-compact__button {
    background: linear-gradient(135deg, var(--aboelo-secondary) 0%, #2980B9 100%);
    box-shadow: 0 2px 4px -1px rgba(52, 152, 219, 0.3);
}

.aboelo-widget-compact--pflegekosten .aboelo-widget-compact__button:hover {
    background: linear-gradient(135deg, #2980B9 0%, #21618C 100%);
    box-shadow: 0 4px 8px -2px rgba(52, 152, 219, 0.4);
}

/* Rentenlücken Compact Widget - Aboelo Tertiary (Lila) */
.aboelo-widget-compact--rentenluecken {
    border-left: 4px solid var(--aboelo-tertiary);
}

.aboelo-widget-compact--rentenluecken .aboelo-widget-compact__icon {
    background: linear-gradient(135deg, var(--aboelo-tertiary) 0%, #8E44AD 100%);
}

.aboelo-widget-compact--rentenluecken .aboelo-widget-compact__benefit {
    border-left-color: var(--aboelo-tertiary);
}

.aboelo-widget-compact--rentenluecken .aboelo-widget-compact__benefit i {
    color: var(--aboelo-tertiary);
}

.aboelo-widget-compact--rentenluecken .aboelo-widget-compact__button {
    background: linear-gradient(135deg, var(--aboelo-tertiary) 0%, #8E44AD 100%);
    box-shadow: 0 2px 4px -1px rgba(155, 89, 182, 0.3);
}

.aboelo-widget-compact--rentenluecken .aboelo-widget-compact__button:hover {
    background: linear-gradient(135deg, #8E44AD 0%, #6C3483 100%);
    box-shadow: 0 4px 8px -2px rgba(155, 89, 182, 0.4);
}

/* Barrierefreier Wohnen Compact Widget - Custom Color (Green) */
.aboelo-widget-compact--barrierefrei {
    border-left: 4px solid #27AE60;
}

.aboelo-widget-compact--barrierefrei .aboelo-widget-compact__icon {
    background: linear-gradient(135deg, #27AE60 0%, #229954 100%);
}

.aboelo-widget-compact--barrierefrei .aboelo-widget-compact__benefit {
    border-left-color: #27AE60;
}

.aboelo-widget-compact--barrierefrei .aboelo-widget-compact__benefit i {
    color: #27AE60;
}

.aboelo-widget-compact--barrierefrei .aboelo-widget-compact__button {
    background: linear-gradient(135deg, #27AE60 0%, #229954 100%);
    box-shadow: 0 2px 4px -1px rgba(39, 174, 96, 0.3);
}

.aboelo-widget-compact--barrierefrei .aboelo-widget-compact__button:hover {
    background: linear-gradient(135deg, #229954 0%, #1E8449 100%);
    box-shadow: 0 4px 8px -2px rgba(39, 174, 96, 0.4);
}

/* AAL Compact Widget - Aboelo Accent (Orange) */
.aboelo-widget-compact--aal {
    border-left: 4px solid var(--aboelo-accent);
}

.aboelo-widget-compact--aal .aboelo-widget-compact__icon {
    background: var(--aboelo-gradient-accent);
}

.aboelo-widget-compact--aal .aboelo-widget-compact__benefit {
    border-left-color: var(--aboelo-accent);
}

.aboelo-widget-compact--aal .aboelo-widget-compact__benefit i {
    color: var(--aboelo-accent);
}

.aboelo-widget-compact--aal .aboelo-widget-compact__button {
    background: var(--aboelo-gradient-accent);
    box-shadow: 0 2px 4px -1px rgba(230, 126, 34, 0.3);
}

.aboelo-widget-compact--aal .aboelo-widget-compact__button:hover {
    background: linear-gradient(135deg, var(--aboelo-accent-dark) 0%, #BA4A00 100%);
    box-shadow: 0 4px 8px -2px rgba(230, 126, 34, 0.4);
}

/* ==========================================================================
   KOMPAKTE WIDGET RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .aboelo-widget-compact {
        padding: 1.25rem;
        margin: 1.25rem 0;
        max-width: 100%;
    }
    
    .aboelo-widget-compact__header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .aboelo-widget-compact__icon {
        width: 40px;
        height: 40px;
    }
    
    .aboelo-widget-compact__icon i {
        width: 20px;
        height: 20px;
    }
    
    .aboelo-widget-compact__title {
        font-size: 1.1rem;
    }
    
    .aboelo-widget-compact__benefits {
        gap: 0.5rem;
    }
    
    .aboelo-widget-compact__button {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .aboelo-widget-compact {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .aboelo-widget-compact__title {
        font-size: 1rem;
    }
    
    .aboelo-widget-compact__subtitle {
        font-size: 0.85rem;
    }
    
    .aboelo-widget-compact__benefit {
        padding: 0.5rem;
    }
    
    .aboelo-widget-compact__benefit span {
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   KOMPAKTE WIDGET ACCESSIBILITY
   ========================================================================== */

/* High contrast mode support */
@media (prefers-contrast: high) {
    .aboelo-widget-compact {
        border-width: 2px;
        border-color: #000000;
    }
    
    .aboelo-widget-compact__title {
        color: #000000;
    }
    
    .aboelo-widget-compact__subtitle {
        color: #333333;
    }
    
    .aboelo-widget-compact__benefit {
        border-left-width: 4px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .aboelo-widget-compact,
    .aboelo-widget-compact__button,
    .aboelo-widget-compact__benefit {
        transition: none;
    }
    
    .aboelo-widget-compact:hover {
        transform: none;
    }
    
    .aboelo-widget-compact__button:hover {
        transform: none;
    }
    
    .aboelo-widget-compact__benefit:hover {
        transform: none;
    }
    
    .aboelo-widget-compact__button::before {
        display: none;
    }
}

/* Focus indicators for keyboard navigation */
.aboelo-widget-compact__button:focus-visible {
    outline: 2px solid var(--aboelo-primary);
    outline-offset: 2px;
}

.aboelo-widget-compact__benefit:focus-within {
    outline: 1px solid var(--aboelo-primary);
    outline-offset: 1px;
}

/* ==========================================================================
   KOMPAKTE WIDGET PRINT STYLES
   ========================================================================== */

@media print {
    .aboelo-widget-compact {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000000;
        background: #ffffff;
        max-width: none;
    }
    
    .aboelo-widget-compact__button {
        background: #000000 !important;
        color: #ffffff !important;
        box-shadow: none !important;
    }
    
    .aboelo-widget-compact:hover {
        transform: none;
        box-shadow: none;
    }
}
