:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #2c3e50;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #6c757d;
    --gray-800: #495057;
    --border-radius: 12px;
    --box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.hero-section {
    background: linear-gradient(135deg, rgba(102,126,234,0.8) 0%, rgba(118,75,162,0.8) 100%),
                url('/images/hero.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: sparkle 20s linear infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes sparkle {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-30px, -30px) rotate(360deg); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    position: relative;
    z-index: 2;
}

.wine-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.card-custom {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: none;
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 2rem;
}

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

.card-header-custom {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1.5rem;
    border: none;
    text-align: center;
}

.card-body-custom {
    padding: 2rem;
}

.hero-section .btn {
    position: relative;
    z-index: 3;
    pointer-events: auto;
}

.btn-custom {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(102,126,234,0.3);
}

.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.4);
    color: white;
}

/* Hero-spezifischer Button für besseren Kontrast */
.hero-section .btn-custom,
.event-card-modern .btn-custom {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: 2px solid #f093fb;
    box-shadow: 0 4px 15px rgba(102,126,234,0.3);
}

.hero-section .btn-custom:hover,
.event-card-modern .btn-custom:hover {
    box-shadow: 0 6px 20px rgba(102,126,234,0.4);
}

.btn-outline-custom {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-custom:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.form-control-custom {
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    padding: 15px 20px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-control-custom:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102,126,234,0.25);
    outline: none;
}

.form-label-custom {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    display: block;
}

.alert-custom {
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    box-shadow: var(--box-shadow);
}

.alert-success-custom {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid var(--success-color);
}

.alert-danger-custom {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid var(--danger-color);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
    text-align: center;
}

/* Scroll-Offset für alle Ziel-Elemente */
#about, #features, #test-start, #contact, #faq, #testimonials, #team {
    scroll-margin-top: 40px;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: var(--transition);
    color: var(--dark-color); /* Dunkler Text für weiße Cards */
}

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

.footer-custom {
    background: var(--dark-color);
    color: var(--gray-300);
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
}

/* Reduzierter Footer-Abstand für Test-Seite */
.hero-section + #footer-container .footer-custom {
    margin-top: 1rem;
}

.footer-custom a {
    color: var(--gray-300);
    text-decoration: none;
    transition: var(--transition);
}

.footer-custom a:hover {
    color: var(--primary-color);
}

.progress-custom {
    height: 8px;
    background: var(--gray-200);
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-bar-custom {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    height: 100%;
    border-radius: 10px;
    transition: width 0.6s ease;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .card-body-custom {
        padding: 1.5rem;
    }
    
    .btn-custom,
    .btn-outline-custom {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
}.question-block {
    border-left: 4px solid var(--bs-primary) !important;
    transition: all 0.3s ease;
}

.question-block.border-success {
    border-left-color: var(--bs-success) !important;
}

.question-block.border-danger {
    border-left-color: var(--bs-danger) !important;
}

.question-block.border-primary {
    border-left-color: var(--bs-primary) !important;
}

.question-block:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.question-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #2c3e50;
}

.form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.scale-container {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e9ecef;
}

.range-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.form-range {
    flex: 1;
}

.range-value {
    min-width: 2rem;
    text-align: center;
    font-weight: bold;
}

.form-range::-webkit-slider-thumb {
    background: var(--bs-primary);
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.form-range::-moz-range-thumb {
    background: var(--bs-primary);
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.progress {
    background-color: #e9ecef;
    border-radius: 1rem;
}

.progress-bar {
    border-radius: 1rem;
}

@media (max-width: 768px) {
    .question-block {
        margin-bottom: 2rem;
        padding: 1rem;
    }
    
    .question-text {
        font-size: 1rem;
    }
    
    .range-wrapper {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .range-value {
        align-self: center;
    }
}

/* Gradient backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Fixed navbar spacing */
body {
    scroll-padding-top: 80px;
}

/* Container spacing for fixed navbar */
main {
    margin-top: 0;
}
}

.bg-gradient {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #0056b3 100%);
}

.form-check-label {
    font-size: 0.95rem;
    line-height: 1.4;
    cursor: pointer;
}

.form-check-input[type="checkbox"]:checked + .form-check-label {
    font-weight: 500;
    color: var(--bs-primary);
}

.form-check-input[type="radio"]:checked + .form-check-label {
    font-weight: 500;
    color: var(--bs-primary);
}

/* FAQ Accordion Styling */
.accordion-button {
    background-color: transparent;
    border: none;
    color: var(--dark-color);
}

.accordion-button:not(.collapsed) {
    background-color: rgba(102,126,234,0.1);
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-button:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(102,126,234,0.25);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23667eea'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Modern Event Card Styling */
.event-card-modern {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-card-modern:hover {
    box-shadow: 0 30px 80px rgba(102, 126, 234, 0.4);
}

.event-content {
    position: relative;
    z-index: 2;
}

.event-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 12px 24px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.event-badge:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.badge-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    letter-spacing: 0.5px;
}

.event-date {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(45deg, #fff, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.event-details p {
    margin-bottom: 8px;
    font-size: 1rem;
    opacity: 0.9;
}

.event-info {
    padding-left: 2rem;
}

.location-gallery-main {
    padding: 0 1rem;
}

.location-image-container-large {
    position: relative;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.location-image-container-large:hover {
    transform: scale(1.03);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.location-image-container-large .location-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.location-image-container-large:hover .location-image {
    transform: scale(1.1);
}

.location-gallery {
    padding: 0 16px;
}

.location-image-container {
    position: relative;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.location-image-container:hover {
    transform: scale(1.03);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.location-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.location-image-container:hover .location-image {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 20px 16px 12px;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.location-image-container:hover .image-overlay {
    transform: translateY(0);
}

.image-label {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.event-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(240, 147, 251, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .feature-grid {
        flex-direction: row;
        justify-content: space-around;
        gap: 16px;
    }
    
    .feature-icon-modern {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon-modern i {
        font-size: 1.5rem;
    }
    
    .feature-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .event-date {
        font-size: 1.8rem;
    }
    
    .location-image-container {
        height: 140px;
    }
    
    .event-card-modern {
        border-radius: 16px;
    }
    
    .feature-grid {
        gap: 12px;
    }
    
    /* Mobile: Event-Info komplett zentrieren */
    .event-info {
        text-align: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Mobile: Badge zentrieren */
    .event-badge {
        display: block !important;
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    /* Mobile: Event-Details zentrieren */
    .event-details {
        text-align: center !important;
    }
    
    .event-details p {
        text-align: center !important;
    }
    
    /* Mobile: Gallery auch zentrieren */
    .location-gallery-main {
        text-align: center !important;
        padding: 0 !important;
    }
    
    /* Mobile: Row und Cols zentrieren */
    .location-gallery-main .row {
        justify-content: center !important;
    }
    
    /* Mobile: Text-center Container zentrieren */
    .location-gallery-main .text-center {
        margin-bottom: 2rem !important;
        text-align: center !important;
    }
}

/* Modern Team Section */
.team-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 1.8rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.05) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
    z-index: 1;
}

.team-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.team-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.team-avatar {
    margin-bottom: 1.2rem;
    display: flex;
    justify-content: center;
}

.avatar-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.team-card:hover .avatar-image,
.team-card:hover .avatar-placeholder {
    transform: scale(1.03);
    border-color: rgba(240, 147, 251, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.team-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.team-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    text-align: left;
}

@media (max-width: 768px) {
    .team-card {
        padding: 1.5rem;
    }
    
    .avatar-image,
    .avatar-placeholder {
        width: 100px;
        height: 100px;
    }
    
    .team-name {
        font-size: 1.2rem;
    }
    
    .team-description {
        font-size: 0.85rem;
    }
}

/* Compact Features Cards */
.features-card-compact {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.features-card-compact:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.1);
}

.features-header-compact {
    text-align: center;
    margin-bottom: 1.2rem;
}

.features-title-compact {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.features-list-compact {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.feature-item-compact {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    transition: all 0.2s ease;
}

.feature-item-compact:hover {
    transform: translateX(3px);
}

.feature-icon-tiny {
    color: #28a745;
    font-size: 1rem;
    margin-right: 0.8rem;
    min-width: 16px;
    transition: all 0.2s ease;
}

.feature-item-compact:hover .feature-icon-tiny {
    color: #667eea;
    transform: scale(1.1);
}

.feature-text-compact {
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.9rem;
}

.welcome-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #6c757d;
    font-style: italic;
    margin: 0;
}


/* Anti-Bias: Slider unsichtbar bis erste Interaktion */
.scale-container input[type="range"]:not(.interacted)::-webkit-slider-thumb {
    opacity: 0;
}

.scale-container input[type="range"]:not(.interacted)::-moz-range-thumb {
    opacity: 0;
}
