/* Rationelle Vælgererklæring Styles */

/* Rationelle Brand Colors */
:root {
    --rationelle-primary: #ffb600;
    --rationelle-primary-dark: #e5a200;
    --rationelle-primary-light: #ffc733;
    --rationelle-gradient: linear-gradient(135deg, #ffb600 0%, #ff9500 100%);
    --rationelle-shadow: rgba(255, 182, 0, 0.3);
    --rationelle-shadow-hover: rgba(255, 182, 0, 0.4);
}

/* Base styles */
.rationelle-vaelger-wrapper {
    margin: 20px 0;
    text-align: center;
}

.rationelle-vaelger-button {
    display: inline-block;
    background: var(--rationelle-gradient);
    color: white !important;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px var(--rationelle-shadow);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.rationelle-vaelger-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--rationelle-shadow-hover);
    color: white !important;
    background: linear-gradient(135deg, #ffc733 0%, #ffb600 100%);
}

.rationelle-vaelger-button:active {
    transform: translateY(0);
}

.rationelle-vaelger-button .arrow {
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.rationelle-vaelger-button:hover .arrow {
    transform: translateX(4px);
}

/* Ripple effect */
.rationelle-vaelger-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.rationelle-vaelger-button:hover::before {
    width: 300px;
    height: 300px;
}

/* Progress bar styles */
.rationelle-progress-wrapper {
    margin-bottom: 25px;
}

.rationelle-progress-bar {
    background: #e9ecef;
    height: 32px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rationelle-progress-fill {
    background: var(--rationelle-gradient);
    height: 100%;
    border-radius: 16px;
    transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Shimmer animation */
.rationelle-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

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

.rationelle-progress-text {
    text-align: center;
    margin-top: 12px;
    font-size: 1rem;
    color: #6c757d;
}

.rationelle-progress-text strong {
    color: #495057;
    font-weight: 700;
}

/* Progress section */
.rationelle-progress-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 30px 0;
}

.rationelle-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.rationelle-progress-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
}

.rationelle-percentage {
    font-size: 2rem;
    font-weight: 700;
    color: var(--rationelle-primary);
}

/* Hero section */
.rationelle-hero-section {
    background: var(--rationelle-gradient);
    border-radius: 20px;
    padding: 60px 40px;
    color: white;
    text-align: center;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px var(--rationelle-shadow);
}

/* Background pattern */
.rationelle-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.rationelle-hero-content {
    position: relative;
    z-index: 1;
}

.rationelle-hero-section h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rationelle-hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 10px;
    opacity: 0.95;
}

.rationelle-hero-info {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.rationelle-hero-progress {
    max-width: 500px;
    margin: 30px auto;
}

.rationelle-hero-progress .rationelle-progress-bar {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.rationelle-progress-text-hero {
    color: white;
    font-size: 1.1rem;
    margin-top: 15px;
    opacity: 0.95;
}

.rationelle-hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.rationelle-hero-cta-primary {
    display: inline-block;
    background: white;
    color: var(--rationelle-primary) !important;
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
}

.rationelle-hero-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.95);
    color: var(--rationelle-primary) !important;
}

.rationelle-hero-cta-secondary {
    display: inline-block;
    background: transparent;
    color: white !important;
    padding: 18px 35px;
    border: 2px solid white;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.rationelle-hero-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Info cards */
.rationelle-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.rationelle-info-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.rationelle-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.rationelle-card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.rationelle-info-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

.rationelle-info-card p {
    color: #6c757d;
    line-height: 1.7;
    font-size: 1rem;
}

/* Sticky button */
.rationelle-sticky-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    animation: slideIn 0.5s ease, pulse 3s infinite 1s;
}

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

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

.rationelle-sticky-button a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--rationelle-gradient);
    color: white !important;
    padding: 16px 28px;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 10px 30px var(--rationelle-shadow-hover);
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.rationelle-sticky-button a:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 35px rgba(255, 182, 0, 0.5);
    background: linear-gradient(135deg, #ffc733 0%, #ffb600 100%);
}

.sticky-arrow {
    transition: transform 0.3s ease;
}

.rationelle-sticky-button a:hover .sticky-arrow {
    transform: translateX(4px);
}

/* Menu badge */
.menu-item-vaelger {
    position: relative;
}

.menu-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4757;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.4);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(255, 71, 87, 0);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .rationelle-hero-section {
        padding: 40px 25px;
        border-radius: 15px;
    }
    
    .rationelle-hero-section h2 {
        font-size: 1.8rem;
    }
    
    .rationelle-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .rationelle-hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .rationelle-hero-cta-primary,
    .rationelle-hero-cta-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .rationelle-sticky-button {
        bottom: 20px;
        right: 20px;
    }
    
    .rationelle-sticky-button a {
        padding: 14px 24px;
        font-size: 0.95rem;
    }
    
    .rationelle-progress-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .rationelle-info-cards {
        grid-template-columns: 1fr;
    }
}

/* Accessibility */
.rationelle-vaelger-button:focus,
.rationelle-hero-cta-primary:focus,
.rationelle-hero-cta-secondary:focus,
.rationelle-sticky-button a:focus {
    outline: 3px solid var(--rationelle-primary);
    outline-offset: 4px;
}

/* Print styles */
@media print {
    .rationelle-sticky-button,
    .rationelle-hero-section,
    .rationelle-vaelger-button {
        display: none !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .rationelle-progress-section,
    .rationelle-info-card {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    .rationelle-progress-header h3,
    .rationelle-info-card h3 {
        color: #e0e0e0;
    }
    
    .rationelle-progress-bar {
        background: #2c2c2c;
    }
    
    .rationelle-progress-text,
    .rationelle-info-card p {
        color: #b0b0b0;
    }
    
    .rationelle-progress-text strong {
        color: #e0e0e0;
    }
}

/* Loading animation for dynamic content */
.rationelle-loading {
    position: relative;
    overflow: hidden;
}

.rationelle-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(102, 126, 234, 0.1),
        transparent
    );
    animation: loading 1.5s infinite;
}

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