/* --- Reset & Basis --- */

/* Roboto Regular */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/roboto-v51-latin-regular.woff2') format('woff2');
}
/* Roboto Bold */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/roboto-v51-latin-700.woff2') format('woff2');
}

/* Oswald Medium */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/oswald-v57-latin-500.woff2') format('woff2');
}
/* Oswald Bold */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/oswald-v57-latin-700.woff2') format('woff2');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

body, html {
    width: 100%;
    overflow-x: hidden;
    font-family: 'Roboto', sans-serif;
    background-color: #111; 
}

/* --- Header / Navigation --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    /* Weißer Schimmer (Glassmorphism) und untere Linie */
    background: rgba(255, 255, 255, 0.03); 
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: -1; /* Schiebt den Blur hinter das Logo und die Buttons */
}

.logo {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
}

.logo-icon {
    height: 35px;
    margin-right: 10px;
}


.desktop-menu a {
    color: white;
    text-decoration: none;
    margin-left: 35px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.desktop-menu a:hover {
    color: #b51a24; /* Das Rot vom Button */
}

.mobile-menu-btn {
    display: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    /* HIER DEIN HINTERGRUNDBILD EINBINDEN */
    background: url('res/pics/BG_Alps.png') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
	scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* Leichter dunkler Verlauf, damit der Text rechts besser lesbar ist */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    max-width: 1400px;
    padding: 0 5%;
    align-items: center;
    justify-content: space-between;
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.cta-button.secondary {
    background-color: transparent;
    border: 2px solid #a71923;
}

.cta-button.secondary:hover {
    background-color: rgba(167, 25, 35, 0.2);
}

/* --- Animationen --- */
@keyframes slideInLeft {
    from { transform: translateX(-150%); opacity: 1; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(50%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* --- Fahrrad (Links) --- */
.bike-container {
    position: absolute; /* Löst das Rad aus dem 1400px-Container */
    left: 0;
    top: 0;
    width: 50vw; /* Nimmt die linke Bildschirmhälfte ein */
    height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center; /* Ersetzt deine vorherigen Y-Transforms für die vertikale Zentrierung */
    opacity: 1;
    animation: slideInLeft 2.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.2s;
    pointer-events: none;
    z-index: 2; /* Sichert ab, dass es weiterhin über dem Gradienten liegt */
}

.bike-img {
    height: 80vh; 
    width: auto; 
    max-width: none; 
    margin-left: 0; 
    /* Schiebt exakt 40% der Bildbreite nach links raus. 60% bleiben immer im Bild. */
    transform: translateX(-40%); 
    filter: drop-shadow(10px 15px 25px rgba(0,0,0,0.6));
    object-fit: contain;
    pointer-events: auto;
    cursor: pointer;
}

/* --- Textblock (Rechts) --- */
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    max-width: 1400px;
    padding: 0 5%;
    align-items: center;
    /* Schiebt den Text-Container an den rechten Rand, da das Rad nun absolut links positioniert ist */
    justify-content: flex-end; 
}

.text-container {
    max-width: 600px; 
    color: white;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    transform: translateX(120%);
    opacity: 0;
    animation: slideInRight 5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.2s;
}

h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 5.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    line-height: 1.5;
    max-width: 500px;
}

.cta-button {
    background-color: #a71923; /* Das Rot aus der Vorlage */
    color: white;
    padding: 16px 40px;
    text-decoration: none;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s, transform 0.3s;
}

.cta-button:hover {
    background-color: #d11f2d;

    transform: scale(1.05);
}

/* --- Google Play Store Hinweis --- */
.playstore-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 14px 28px;
    border-radius: 30px;
    color: #eee;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.playstore-badge .playstore-icon {
    flex-shrink: 0;
    color: #fff;
}

.playstore-badge strong {
    color: #fff;
}

/* --- Responsive Design (Smartphones & Tablets) --- */
@media (max-width: 1024px) {
    h1 { font-size: 4rem; }
    
    /* Fahrrad aus dem Layout lösen und in den Hintergrund legen */
    .bike-container {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        display: flex;
        align-items: center; /* Zentriert das Rad vertikal, wenn es > 100vh ist */
        justify-content: flex-start;
		pointer-events: auto; 
    	cursor: pointer;
    }

    .bike-img { 
        height: 80vh; 
        width: auto;
        max-width: none;
        opacity: 1; 
        transform: translateX(-60%); 
        filter: drop-shadow(10px 15px 25px rgba(0,0,0,0.8));
        object-fit: contain; 
    }
	
	.hero::before {
        background: linear-gradient(to right, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.8) 100%);
        z-index: 1;
    }

    .hero-content {
        justify-content: center; 
        align-items: center; /* Zentriert den Text-Container auf der X-Achse im übergeordneten Element */
    }

    .text-container {
        flex: 1;
        z-index: 2; 
        align-items: center; /* Zentriert Überschrift, Text und Button untereinander */
        text-align: center; /* Zentriert die Textzeilen an sich */
        width: 100%; /* Zwingt den Container auf die volle Breite, damit er nicht an den Rand rutscht */
        text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
    }
	
	.button-group {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .mobile-menu-btn { display: block; z-index: 10000; }
    
    .desktop-menu {
        display: none;
        position: fixed; /* 'fixed' verhindert, dass man den geblurten Bereich wegscrollen kann */
        top: 80px; 
        left: 0; 
        width: 100%;
        height: calc(100vh - 80px); /* Füllt exakt den Rest des Bildschirms aus */
        
        background: rgba(255, 255, 255, 0.03); 
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 50px; /* Schiebt die Links etwas nach unten für eine bessere Optik */
        text-align: center;
        z-index: 9998;
    }
    
    .desktop-menu.active { display: flex; }
    .desktop-menu a { 
        margin: 15px 0; 
        font-size: 1.8rem; /* Hier den Wert erhöhen (vorher 1.2rem) */
    }

    /* Hero Section Anpassung */
    .hero-content {
        padding-top: 80px;
    }

    .hero::before {
        background: rgba(0,0,0,0.5); 
    }

    h1 { font-size: 3rem; }
    p { max-width: 100%; }

    /* Text Animation (Fahrrad kommt bereits durch den 1024px-Block von links) */
    .text-container {
        animation: fadeInRightMobile 1s ease forwards;
        transform: translateX(50vw); /* Startposition rechts außerhalb der Mitte */
        opacity: 0; 
    }

    @keyframes fadeInRightMobile {
        to { transform: translateX(0); opacity: 1; }
    }
}/* CSS Document */


/* --- Blur Overlay für den Hintergrund --- */
.hero-blur-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    z-index: 3; 
    pointer-events: none; 
    transition: backdrop-filter 0.8s ease, -webkit-backdrop-filter 0.8s ease, background 0.8s ease;
}


/* Wird durch JavaScript aktiviert */
body.cockpit-active .hero-blur-overlay {
    background: rgba(0, 0, 0, 0.4); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    /* NEU: Nimmt Klicks an, um das Cockpit zu schließen */
    pointer-events: auto; 
    cursor: pointer; /* Zeigt an, dass man hier klicken kann */
}

/* --- Cockpit Bild-Wrapper (ehemals .cockpit-container) --- */
.cockpit-wrapper {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 100%); 
    
    width: 100%;
    max-width: 1200px;
    z-index: 105; 
    
    pointer-events: none; 
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
	
    display: flex;
    flex-direction: column; 
    justify-content: flex-end;
    align-items: center;
    
    /* Hält das Formular vom Menüband fern (ca. 80px Header + etwas Puffer) */
    padding-top: 150px; 
    padding-bottom: 0px;
	
    height: 100vh;
    height: 100dvh; 
}

/* --- Formular Styling --- */
.registration-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    margin-bottom: 0px;
    z-index: 110;
    pointer-events: auto; 
    
    /* Verhindert, dass das Formular jemals gequetscht wird */
    flex-shrink: 0; 
}

.registration-form h3 {
    color: white;
    font-family: 'Oswald', sans-serif;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-align: center;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.registration-form input, 
.registration-form textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 12px 15px;
    color: white;
    font-family: 'Roboto', sans-serif;
    outline: none;
    transition: border 0.3s;
}

.registration-form input:focus, 
.registration-form textarea:focus {
    border-color: #a71923;
}

.registration-form textarea {
    resize: none;
    margin-bottom: 20px;
}

.registration-form .cta-button {
    width: 100%;
    border: none;
    cursor: pointer;
}

/* Responsive Anpassung für schmale Screens */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
    }
}

/* Reinfahren bei aktiver Klasse */
body.cockpit-active .cockpit-wrapper {
    transform: translate(-50%, 0);
}

/* --- Cockpit Bild --- */
.cockpit-img {
    width: 100%; /* Nimmt die verfügbare Breite des Containers ein */
    height: 100%; /* Nimmt die durch Flexbox zugewiesene Resthöhe ein */
    flex: 1; 
    min-height: 0; 
    object-fit: contain; /* Zwingt das Bild absolut immer in seine Originalproportionen */
	object-position: bottom;
    display: block;
    pointer-events: auto; 
    filter: drop-shadow(0 -10px 20px rgba(0,0,0,0.5));
}

@media (max-height: 600px) {
    .cockpit-wrapper {
        flex-direction: row; 
        justify-content: center;
        align-items: flex-end; 
        /* GEÄNDERT: Oben 80px Abstand (für Header), Rechts 5%, Unten 0, Links 5% */
        padding: 80px 5% 0 5%; 
        gap: 20px; 
    }

    .registration-form {
        width: 100%;
        max-width: 350px; 
        margin-bottom: 0;
        padding: 15px 20px; 
        align-self: center; /* Das Formular bleibt trotzdem vertikal zentriert */
    }

    /* Überschriften und Abstände im Formular für Querformat kompakter machen */
    .registration-form h3 { margin-bottom: 10px; font-size: 1.2rem; }
    .registration-form input, .registration-form textarea { padding: 8px 12px; }
    .registration-form textarea { margin-bottom: 10px; }
    .form-row { margin-bottom: 10px; }

    .cockpit-img {
        height: 90vh; 
        width: 100%; 
        max-width: 50vw; 
        margin-top: 0;
        /* object-position: bottom; wird automatisch von der Hauptklasse übernommen */
    }
}

/* --- Footer Styling --- */
.legal-links-mobile {
    display: none; /* Standardmäßig aus (Desktop) */
}

.site-footer {
    position: fixed; /* Fixiert den Footer permanent am Bildschirmrand */
	left: 0;
    bottom: 0; 
    padding-bottom: 20px; /* Übernimmt deinen alten Abstand nach unten */
    padding-top: 15px; 
    width: 100%;
    text-align: center;
    z-index: 9999; /* Stellt sicher, dass der Footer über allen Sektionen liegt */
    display: block;
    
    /* Leichter dunkler Verlauf mit Unschärfe, damit durchscrollender Text nicht stört */
    background: linear-gradient(to top, rgba(5,5,5,1) 0%, rgba(5,5,5,0.7) 50%, rgba(5,5,5,0) 100%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.site-footer a, .site-footer .separator {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.site-footer a:hover {
    color: white;
}

.site-footer .separator {
    margin: 0 10px;
}

/* --- Legal Modal Styling --- */
.legal-modal {
    display: none; 
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Etwas dunkler für bessere Lesbarkeit */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    
    /* Höher als der Header (9999) und das Cockpit (105) */
    z-index: 99999; 
    
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.legal-content-wrapper {
    background: rgba(30, 30, 30, 0.8); /* Dunklerer Hintergrund für den Text-Container */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    width: 95%;
    max-width: 900px;
    max-height: 90vh; /* Nutzt mehr Platz auf dem Bildschirm */
    overflow-y: auto;
    position: relative;
    color: white;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.close-legal {
    position: sticky;
    top: -20px;
    float: right;
    cursor: pointer;
    font-size: 2rem;
    color: #a71923;
    z-index: 10;
    background: rgba(30, 30, 30, 0.9);
    padding: 5px 10px;
    border-radius: 50%;
}


.legal-text-block h2, .legal-text-block h3 {
    font-family: 'Oswald', sans-serif;
    margin-bottom: 15px;
    color: #a71923; /* Akzentfarbe */
}

.legal-text-block p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: left;
    max-width: 100%;
}

/* --- Mobile Menü Anpassung --- */
@media (max-width: 768px) {
    
    /* 1. Footer im Smartphone-Modus komplett ausblenden */
    .site-footer {
        display: none;
    }

    /* 2. Rechtliche Links im Menü-Overlay einblenden */
    .legal-links-mobile {
        display: flex;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap; /* Lässt die Links bei Platzmangel sauber in die nächste Zeile rutschen */
        gap: 20px;
        margin-top: 400px; /* Hier 'auto' durch einen festen Wert ersetzt */
        padding-bottom: 30px;
        width: 100%;
    }

    .legal-links-mobile a {
        font-size: 0.9rem !important;
        color: rgba(255, 255, 255, 0.5) !important;
        margin: 0 !important; /* Überschreibt die Abstände der normalen Menülinks */
        text-transform: none;
    }
    
    /* Sicherstellen, dass das Menü-Overlay die volle Höhe nutzt, 
       um die Links unten zu platzieren */
    .desktop-menu.active {
        display: flex;
        flex-direction: column;
    }
}

/* =========================================
   FEATURE SEITE 
========================================= */

/* --- Container mit animiertem Rot-Schwarz-Verlauf --- */
.features-main {
    height: 100vh;
    height: 100dvh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    position: relative;
    background-color: #050505; 
    isolation: isolate; 
}

/* --- 1. Ebene: Rotierender Hintergrund (Ganz hinten) --- */
.features-main::after {
    content: '';
    position: fixed;
    /* vmax nutzt immer die längste Bildschirmseite. Das Rechteck wird extrem groß, Ecken sind nie sichtbar. */
    top: calc(50vh - 150vmax);
    left: calc(50vw - 150vmax);
    width: 300vmax;
    height: 300vmax;
    z-index: -2; 
    pointer-events: none;
    
    background: linear-gradient(45deg, #050505 0%, #28060a 30%, #080808 50%, #1f0407 80%, #000000 100%);
    animation: rotateBackground 40s linear infinite;
}

/* --- Animation für die konstante Winkeldrehung --- */
@keyframes rotateBackground {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- 2. Ebene: Maus-Glow (Zwischen Content und Hintergrund) --- */
.features-main::before {
    content: '';
    position: fixed;
    top: -50vh;
    left: -50vw;
    width: 200vw;
    height: 200vh;
    z-index: -1; 
    pointer-events: none;
    background: radial-gradient(
        circle 1200px at calc(var(--mouse-x, 50vw) + 50vw) calc(var(--mouse-y, 50vh) + 50vh), 
        rgba(167, 25, 35, 0.25) 0%, 
        rgba(167, 25, 35, 0) 70%
    );
}


/* Sichert ab, dass Text und Bilder über dem Hintergrund-Glow liegen */
.feature-section, .minor-features-section {
    position: relative;
    z-index: 1;
}

/* Jedes Hauptfeature füllt exakt den Bildschirm */
.feature-section {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    justify-content: center; /* Zentriert die beiden 50%-Blöcke horizontal */
    padding: 80px 5% 0 5%;
    position: relative;
    overflow: hidden;
    gap: 60px; /* Dieser Wert definiert nun fest den Abstand in der Mitte */
}

/* Abwechselnde Ausrichtung (Bild links/rechts) */
.feature-section:nth-child(even) {
    flex-direction: row-reverse;
}

/* --- Animationen für die Feature-Elemente --- */
.feature-mockup {
    flex: 0 1 50%; /* 0 = nicht wachsen, 1 = schrumpfen erlaubt, 50% = Basisbreite */
    max-width: 600px; /* Optional: Maximale Breite etwas reduzieren für ein kompakteres Bild */
    display: flex;
    justify-content: flex-end; /* Hält das Bild standardmäßig rechtsbündig an der Textkante */
}

.feature-mockup img, .feature-mockup video {
    max-height: 70vh;
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    object-fit: contain;
}

.feature-text {
    flex: 0 1 50%;
    max-width: 600px;
    color: white;
    transform: translateX(50px);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.2s, opacity 0.8s ease 0.2s;
}

.feature-section:nth-child(even) .feature-text {
    transform: translateX(-50px);
}

/* Bei den abwechselnden Sektionen (Bild rechts) muss das Bild entsprechend nach links zum Text geschoben werden */
.feature-section:nth-child(even) .feature-mockup {
    justify-content: flex-start;
}

.feature-text h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 3.5rem;
    color: #a71923;
    margin-bottom: 20px;
    line-height: 1.1;
    text-transform: uppercase;
}

.feature-text ul {
    list-style: none;
    font-size: 1.2rem;
    line-height: 1.6;
}

.feature-text ul li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.feature-text ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: #a71923;
    font-size: 1.2rem;
}

/* Wenn das JS die Klasse .is-visible setzt, fahren die Elemente ein */
.feature-section.is-visible .feature-mockup,
.feature-section.is-visible .feature-text {
    transform: translate(0, 0);
    opacity: 1;
}

/* --- Minor Features Grid (am Ende der Seite) --- */
.minor-features-section {
    min-height: 100vh;
    scroll-snap-align: start;
    padding: 120px 5% 80px 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.minor-features-section h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    text-align: center;
    color: white;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 15px;
    transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #a71923;
}

.feature-card h4 {
    color: #a71923;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.feature-card p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- Text-Ausrichtung korrigieren, wenn das Bild rechts steht (gerade Sections) --- */
.feature-section:nth-child(even) .feature-text {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.feature-section:nth-child(even) .feature-text h2 {
    text-align: right;
}

.feature-section:nth-child(even) .feature-text ul {
    list-style: none;
    width: 100%;
}

.feature-section:nth-child(even) .feature-text ul li {
    position: relative;
    padding-right: 25px;
    padding-left: 0;
    text-align: right;
    margin-bottom: 12px;
}

/* Das innere Span sorgt dafür, dass der Text Blockbündig rechts sitzt */
.feature-section:nth-child(even) .feature-text ul li span {
    display: inline-block;
    text-align: right;
}

/* Der Pfeil wandert sauber an die rechte Seite des Listenelements */
.feature-section:nth-child(even) .feature-text ul li::before {
    content: '◃';
    position: absolute;
    right: 0;
    left: auto;
    color: #a71923;
}

/* Abstand zwischen Mockup und Text verringern */
.feature-section {
    gap: 50px; 
}

.feature-text {
    padding: 0 20px; 
}

/* --- Unsichtbarer Wrapper, der die Content-Breite limitiert --- */
.scroll-indicator-wrapper {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%); 
    width: 96%; 
    max-width: 1500px; 
    height: 100vh;
    pointer-events: none;
    z-index: 100;
}

.scroll-indicator-container {
    position: absolute;
    right: 0; 
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 30px;
    pointer-events: none;
}

.scroll-arrow {
    width: 25px;
    height: 25px;
    border-bottom: 4px solid rgba(255, 255, 255, 0.2);
    border-right: 4px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    opacity: 0; /* Standardmäßig ausgeblendet, wird per JS gesteuert */
	pointer-events: auto; 
    cursor: pointer;
}

.scroll-arrow.visible {
    opacity: 1;
    border-color: #a71923; /* ViTouro Rot */
    animation: pulseArrow 2s infinite;
}

/* Drehung der Pfeile */
.scroll-arrow.up {
    transform: rotate(-135deg);
    --rot: -135deg; /* Variable für die Animation */
}

.scroll-arrow.down {
    transform: rotate(45deg);
    --rot: 45deg;
}

@keyframes pulseArrow {
    0% { transform: scale(1) rotate(var(--rot)); opacity: 1; }
    50% { transform: scale(1.1) rotate(var(--rot)); opacity: 0.5; }
    100% { transform: scale(1) rotate(var(--rot)); opacity: 1; }
}

/* KI Hinweis (EU-Vorgabe) */
.ai-disclosure {
    position: fixed;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #999;
    font-family: 'Roboto', sans-serif;
    font-size: 0.7rem;
    padding: 5px 10px;
    border-radius: 4px;
    z-index: 10000;
    pointer-events: none;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Auf mobilen Geräten blenden wir die Pfeile aus, da man ohnehin wischt */
@media (max-width: 1024px) {
    .scroll-indicator-container {
        display: none;
    }
}



/* =========================================
   COMMUNITY & FAQ SEITEN
========================================= */

.page-main {
    min-height: 100vh;
    padding: 120px 5% 80px 5%;
    background-color: #050505;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
	position: relative;
    isolation: isolate;
}

/* --- 1. Rotierender Hintergrund (Ganz hinten) --- */
.page-main::after {
    content: '';
    position: fixed;
    top: calc(50vh - 150vmax);
    left: calc(50vw - 150vmax);
    width: 300vmax;
    height: 300vmax;
    z-index: -2; 
    pointer-events: none;
    background: linear-gradient(45deg, #050505 0%, #28060a 30%, #080808 50%, #1f0407 80%, #000000 100%);
    animation: rotateBackground 40s linear infinite;
}

/* --- 2. Maus-Glow (Zwischen Hintergrund und Inhalt) --- */
.page-main::before {
    content: '';
    position: fixed;
    top: -50vh;
    left: -50vw;
    width: 200vw;
    height: 200vh;
    z-index: -1; 
    pointer-events: none;
    background: radial-gradient(
        circle 1200px at calc(var(--mouse-x, 50vw) + 50vw) calc(var(--mouse-y, 50vh) + 50vh), 
        rgba(167, 25, 35, 0.25) 0%, 
        rgba(167, 25, 35, 0) 70%
    );
}

.page-main h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 4rem;
    color: #a71923;
    margin-bottom: 40px;
    text-align: center;
    text-transform: uppercase;
}

/* =========================================
   LOKALE LADEKREISE FÜR MEDIEN
========================================= */
.media-wrapper {
    position: relative;
    display: inline-flex; /* Hält den Wrapper exakt auf der Größe des Bildes/Videos */
}

.media-loader {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.media-loader .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #a71923; /* ViTouro Rot */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Wird per JS gesetzt, sobald geladen */
.media-loader.is-loaded {
    opacity: 0;
    visibility: hidden;
}

/* --- Community Styles --- */
.community-container {
    max-width: 800px;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
}

.dev-contact {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-main p {
    max-width: 100%;
}

/* --- FAQ Styles --- */
.faq-container {
    max-width: 900px;
    width: 100%;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 15px;
    padding: 25px;
    transition: border-color 0.3s, transform 0.3s;
}

.faq-item:hover {
    border-color: #a71923;
    transform: translateY(-2px);
}

.faq-question {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    color: #a71923;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.faq-answer {
    color: #ccc;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Mobile Anpassung */
@media (max-width: 768px) {
    .page-main {
        padding-top: 100px;
    }
    .page-main h1 {
        font-size: 3rem;
    }
    .community-container {
        padding: 20px;
    }
}



/* Mobile Anpassungen für Features */
@media (max-width: 1024px) {
    .feature-section {
        flex-direction: column !important;
        justify-content: flex-start;
        padding-top: 100px;
        padding-bottom: 50px;
        height: auto; 
        min-height: 100vh;
        min-height: 100dvh; 
    }
    
    .feature-mockup {
        flex: 0 0 auto; /* Verhindert unkontrolliertes Skalieren des Containers */
        margin-bottom: 15px;
    }

    .feature-mockup img, .feature-mockup video {
        max-height: 35vh; /* Etwas kompakter, um dem Text mehr Raum zu geben */
    }
    
    .feature-text {
        padding: 0 10px;
        text-align: left;
        width: 100%; /* Zwingt den Text-Container auf die volle Bildschirmbreite */
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* Hält die Liste (ul) links */
    }
    
    .feature-text ul li {
        text-align: left;
    }
	
	.minor-features-section h2 {
        font-size: 2.2rem; /* Diesen Wert kannst du nach Belieben weiter anpassen */
        margin-bottom: 30px;
    }
    
    .feature-text h2 {
        text-align: center;
        align-self: center; /* Schiebt exakt nur die H2 in die tatsächliche Mitte */
        width: 100%;
        font-size: 2.2rem;
    }
	
	/* --- Spezifischen Rechts-Ausrichtungen der geraden Sektionen zurücksetzen --- */
    .feature-section:nth-child(even) .feature-text,
    .feature-section:nth-child(even) .feature-text ul li,
    .feature-section:nth-child(even) .feature-text ul li span {
        text-align: left;
        align-items: flex-start;
    }

    /* Überschreibt die geraden Sektionen, damit auch hier die H2 zentriert bleibt */
    .feature-section:nth-child(even) .feature-text h2 {
        text-align: center;
        align-self: center;
    }

    /* Setzt die Listenpunkte (Pfeile) in den geraden Sektionen wieder nach links */
    .feature-section:nth-child(even) .feature-text ul li {
        padding-left: 25px;
        padding-right: 0;
    }

    .feature-section:nth-child(even) .feature-text ul li::before {
        content: '▹';
        left: 0;
        right: auto;
    }
}