/* Deine Variablen bleiben gleich */
:root[data-theme="light"] {
    --bg: #f3f4f6;
    --sidebar-bg: #1e293b;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --accent: #3b82f6;
    --border: #e2e8f0;
}

:root[data-theme="dark"] {
    --bg: #0f172a;
    --sidebar-bg: #020617;
    --card-bg: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --accent: #60a5fa;
    --border: #334155;
}

* { box-sizing: border-box; }

body { 
    margin: 0; 
    font-family: 'Inter', system-ui, sans-serif; 
    background: var(--bg); 
    color: var(--text-main); 
    /* display: flex entfernt, damit Sektionen untereinander stehen */
    transition: background 0.3s; 
    line-height: 1.5;
}

/* HERO SECTION */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Hier dein Bildpfad */
    background: url('airfield.jpg') no-repeat center center/cover;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* Dunkler Verlauf von oben nach unten für bessere Lesbarkeit */
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    z-index: 1;
}

.hero-content { 
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    opacity: 0.9;
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* DEIN BUTTON (Verschönert) */
.fill-button {
    background: transparent;
    border: 2px solid var(--accent);
    color: white; /* Direkt weiß für den Kontrast auf dem Bild */
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.4s ease;
    z-index: 1;
    border-radius: 8px; /* Leicht abgerundet sieht moderner aus */
    text-decoration: none;
    display: inline-block;
}

.fill-button::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--accent);
    transition: height 0.4s ease;
    z-index: -1;
}

.fill-button:hover::before {
    height: 100%;
}


.benefits-section {
    padding: 100px 20px;
    background-color: var(--card-bg); /* Nutzt deine CSS Variable */
    color: var(--text-main);
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.pre-title {
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin: 15px 0;
    font-weight: 800;
}

.section-header p {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Grid Layout */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.benefit-card {
    padding: 40px;
    border-radius: 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--accent);
    color: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
    font-weight: bold;
}

.benefit-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 700;
}

.benefit-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

.stats-bar {
    position: relative; 
    z-index: 10; /* Erhöht die Priorität der gesamten Sektion */
    padding: 80px 0;
    background-color: var(--sidebar-bg);
    background: radial-gradient(circle at center, #1e293b 0%, var(--sidebar-bg) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    box-shadow: inset 0 10px 30px -15px rgba(0,0,0,0.5);
}

.stats-wrapper {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-box {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.stat-box {
    position: relative; /* Wichtig für die Positionierung des Tooltips */
    cursor: help; /* Zeigt dem User, dass hier Infos warten */
}

/* Der Tooltip-Container */
.stat-box::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%; /* Etwas mehr Abstand nach oben */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 220px;
    background: #1e293b; /* Festes Dunkelblau für Kontrast */
    color: white; /* Korrektur: Weißer Text! */
    padding: 15px;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: center;
    border: 1px solid var(--accent); /* Akzent-Rand für Pro-Look */
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99999; /* Maximaler Wert */
    pointer-events: none; /* Verhindert, dass der Mauszeiger den Tooltip flackern lässt */
}

/* Hover-Effekt */
.stat-box:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent); /* Dein AviPay-Blau */
    margin-bottom: 5px;
}

.stat-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.how-it-works {
    padding: 120px 20px;
    background: var(--bg);
        border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 30px -15px rgba(0,0,0,0.5);
}

.feature-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    margin-bottom: 150px; /* Viel Platz zwischen den Schritten */
}

/* Tauscht Text und Bild bei jeder zweiten Sektion */
.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
    max-width: 500px;
}

.step-badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--accent);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.feature-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.feature-image {
    flex: 1.2;
}

.mockup-container {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.placeholder-img {
    background: var(--sidebar-bg);
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border-radius: 12px;
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.scroll-indicator {
    margin-top: 50px; /* Abstand zum Button */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0.7;
    animation: scrollFloat 2s infinite ease-in-out;
    cursor: pointer;
}

/* Die schwebende Animation */
@keyframes scrollFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/* Falls du Lucide Icons nutzt: Größe anpassen */
.scroll-indicator svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.5px;
}

/* Optional: Ein kleiner animierter Punkt unter der Maus */
.scroll-dot {
    width: 4px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 50%;
    margin-top: 5px;
    animation: dotFade 2s infinite;
}

@keyframes dotFade {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.2); }
}