/* Zurücksetzen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 1300vh;
    background-color: #030712;
    overflow-x: hidden;
    font-family: sans-serif;
    transition: background-color 0.1s ease;
}


/* ==================================================================
   Navigation
   ================================================================== */

/* Linkbox oben links */
.nav-links {
    position: fixed;
    top: 1.5vh;
    left: 1vw;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 1vh 1vw;
    border-radius: 5px;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.nav-links a {
    color: white;
    text-decoration: none;
}

/* Infobox oben rechts */
.info-box {
    position: absolute;
    top: 1.5vh;
    right: 1vw;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 1vh 1vw;
    border-radius: 5px;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    text-align: left;
    font-size: clamp(0.7rem, 1.2vw, 1rem);
}

/* Ankernavigation */
.anker-nav {
    position: fixed;
    right: 1.5vw;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1.5vh;
    z-index: 200;
}

.anker-btn {
    width: 3vw;
    height: 3vw;
    min-width: 35px;
    min-height: 35px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    user-select: none;
}

.anker-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.anker-btn:active {
    transform: scale(0.95);
}


/* ==================================================================
   Animationen
   ================================================================== */

/* Container für Satelliten, Sternschnuppen und Weltraumobjekte */
.anim-container {
    position: absolute;
    width: 100%;
    height: 1300vh;
    overflow: hidden;
    pointer-events: none;
    z-index: 8;
}

/* Container für Airbus zwischen Wolkenebenen */
.anim-zwischenebene {
    position: absolute;
    width: 100%;
    height: 1300vh;
    overflow: hidden;
    pointer-events: none;
    z-index: 5;
}

/* Satellit */
.satellit {
    position: absolute;
    width: 0.15vw;
    height: 0.15vw;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 20px #ffffff, 0 0 8px #ffffff;
    animation: blinken 1s infinite ease-in-out;
}

@keyframes blinken {
    0%, 100% { opacity: 0.1; }
    50%       { opacity: 1; }
}

/* Sternschnuppe */
.sternschnuppe {
    position: absolute;
    width: 0.15vw;
    height: 0.15vw;
    border-radius: 50%;
}

/* Rotation */
@keyframes rotieren {
    from { rotate: 0deg; }
    to   { rotate: 360deg; }
}

.rotieren {
    animation: rotieren 10s linear infinite;
}

/* Alle Flugobjekte */
.flugobjekt {
    position: absolute;
    will-change: transform;
}


/* ==================================================================
   Wolkenebenen
   ================================================================== */

/* Hintergrund: Sterne, Mond, Sonne, Hintergrundwolken */
.wolken-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 3;
}

/* Mittelgrund */
.wolken-mg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 7;
}

/* Vordergrund */
.wolken-vg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 9;
}

/* Sterne */
.sterne-ebene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150vh;
    will-change: transform;
    transition: opacity 0.5s ease;
}

.stern {
    position: absolute;
    border-radius: 50%;
}

/* Sonne */
.sonne {
    position: absolute;
    width: 7.3vw;
    height: 7.3vw;
    min-width: 60px;
    min-height: 60px;
    border-radius: 50%;
    left: -250px;
    top: 0;
    will-change: transform;
    z-index: 5;
}

/* Wolke */
.wolke {
    position: absolute;
    opacity: 0.2;
    will-change: transform;
    left: 0;
    top: 0;
    transition: opacity 0.5s ease;
}


/* ==================================================================
   Texte
   ================================================================== */

.text {
    position: absolute;
    width: 100%;
    padding: 0 50px;
    text-align: center;
    color: white;
    z-index: 25;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.text h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 15px;
}

.text h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 15px;
}

.text h3 {
    font-size: clamp(1rem, 2vw, 1.8rem);
    margin-bottom: 10px;
}

.text p {
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    max-width: clamp(300px, 60vw, 800px);
    margin: 0 auto;
    line-height: 1.6;
    text-align: justify;
}

/* Willkommen-Titel */
#a1 h1 {
    font-size: 8vw;
    font-style: italic;
    transform: rotate(-3deg);
    letter-spacing: 0.1em;
    font-weight: 700;
    color: #c0c0c0;
    -webkit-text-stroke: 0.3vw #c9a84c;
    text-stroke: 1px #c9a84c;
}

/* Bodenbereich */
.boden {
    position: absolute;
    top: 1300vh;
    width: 100%;
    padding: 3vh 3vw;
    background: #000000;
    color: #ffffff;
    z-index: 20;
    height: 25vh;
    box-shadow: 0 -25px 50px rgba(0,0,0,0.9);
    overflow: hidden;
}

.boden h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.boden p {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    line-height: 1.5;
    max-width: 800px;
    color: #e0e0e0;
    margin-bottom: 15px;
}

.boden-links a {
    color: #7ca1c3;
    text-decoration: none;
    margin-right: 25px;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.boden-links a:hover {
    color: #ffffff;
}


/* ==================================================================
   Popups
   ================================================================== */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.popup-box {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3vh 3vw;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    transform: scale(0.8);
    transition: transform 0.4s ease;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #9ca3af;
    text-decoration: none;
    font-size: 1.8rem;
    transition: color 0.3s ease;
    line-height: 1;
}

.popup-close:hover {
    color: #ffffff;
}

.popup-box h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.popup-box p {
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    line-height: 1.6;
    color: #d1d5db;
}

.popup-overlay:target {
    opacity: 1;
    pointer-events: auto;
}

.popup-overlay:target .popup-box {
    transform: scale(1);
}


#buchstaben-ergebnis, #zahlen-ergebnis {
    min-height: 2em;
}