/* ===========================
   Moderne Landing Page Styles
   =========================== */

/* Root Variables */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --gradient-start: #667eea;
    --gradient-end: #764ba2;
    --light-bg: #f8f9fa;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Hero Section */
.hero-section {
    /* Photo background with fallback */
    background: url('../protected/img/hero_background.jpg') center center / cover no-repeat fixed;
    position: relative;
    overflow: hidden;
}

.hero-back {
    background: url('../protected/img/bild_schule.jpg') center center / cover no-repeat fixed;
}

/* Fallback for browsers that don't support background-attachment: fixed */
@supports not (background-attachment: fixed) {
    .hero-section {
        background: url('../img/hero_background.jpg') center center / cover no-repeat;
    }
}

/* Light overlay for better text readability while keeping photo visible */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(226, 226, 226, 0.85) 0%,
        rgba(194, 194, 194, 0.85) 100%
    );
    pointer-events: none;
}

/* Ensure content appears above the overlay */
.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section .row {
    position: relative;
    z-index: 1;
}

/* Make text white for better contrast on photo background */
.hero-section h1,
.hero-section .lead {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid rgba(13, 110, 253, 0.2);
}

.hero-illustration {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Hero Image Styling */
.hero-image-wrapper {
    position: relative;
    padding: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    border-radius: 24px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.02);
}

/* Features Section */
.features-section {
    background: #fff;
}

.feature-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
}

.feature-icon-wrapper {
    display: flex;
    justify-content: flex-start;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.3);
}

.feature-icon-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #565e64 100%);
    box-shadow: 0 10px 25px rgba(108, 117, 125, 0.3);
}

.feature-card h3 {
    color: #1a1a1a;
    font-weight: 700;
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.8;
}

.feature-card .btn {
    border-radius: 12px;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.feature-card .btn:hover {
    transform: translateX(5px);
}

/* Info Section */
.info-section {
    background: var(--light-bg);
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    font-size: 1.1rem;
    gap: 1rem;
}

.info-list li svg {
    flex-shrink: 0;
}

.info-illustration {
    animation: float 8s ease-in-out infinite;
    animation-delay: 1s;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0a58ca 0%, #084298 100%);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #565e64 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #565e64 0%, #41464b 100%);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

/* Responsive Typography */
.responsive-text {
    font-size: 2.5rem;
}

@media (min-width: 768px) {
    .responsive-text {
        font-size: 3rem;
    }
}

@media (min-width: 1200px) {
    .responsive-text {
        font-size: 5rem;
    }
}

.responsive-text.small {
    font-size: 1.5rem;
}

@media (min-width: 768px) {
    .responsive-text.small {
        font-size: 2rem;
    }
}

@media (min-width: 1200px) {
    .responsive-text.small {
        font-size: 3.5rem;
    }
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .hero-section .display-3 {
        font-size: 2.5rem;
    }

    .feature-card {
        padding: 2rem;
    }
}

@media (max-width: 767px) {
    .hero-section .display-3 {
        font-size: 2rem;
    }

    .feature-icon {
        width: 64px;
        height: 64px;
    }

    .feature-icon svg {
        width: 24px;
        height: 24px;
    }
}
