/* ================= BODY ================= */
body {
    position: relative;
    background: #000;
    overflow-x: hidden;
}

/* ⭐ STERNENHIMMEL (BILD) */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: url("/wp-content/allsky-site/optimized/stele-1200.webp") center/cover no-repeat;
    filter: brightness(0.8) contrast(1.1);

    opacity: 0.6;
    z-index: 1;
    pointer-events: none;
}

/* Bewegung Sterne */
@keyframes starsMove {
    from { transform: translateY(0); }
    to { transform: translateY(-500px); }
}

/* 🌠 STERNSCHNUPPE */
.shooting-star {
    position: fixed;
    top: -10px;
    left: 0;
    width: 2px;
    height: 80px;
    background: linear-gradient(white, transparent);
    opacity: 0.8;
    transform: rotate(45deg);
    animation: shoot 5s linear infinite;
    z-index: 2;
    pointer-events: none;
}

/* Animation Sternschnuppe */
@keyframes shoot {
    0% {
        transform: translateX(0) translateY(0) rotate(45deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translateX(800px) translateY(800px) rotate(45deg);
        opacity: 0;
    }
}

/* mehrere Sternschnuppen (Delay) */
.shooting-star:nth-child(1) { animation-delay: 0s; }
.shooting-star:nth-child(2) { animation-delay: 2s; }
.shooting-star:nth-child(3) { animation-delay: 4s; }

/* Inhalt über Sternen */
nav, .hero, .section, footer {
    position: relative;
    z-index: 3;
}

/* ================= NAV ================= */
nav {
    background: #111;
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO */
.logo {
    height: 50px;
}

/* BRAND */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #edcd2b;
    font-weight: bold;
}

/* MENÜ */
.nav-right {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-right a {
    color: #edcd2b;
    text-decoration: none;
}

.nav-right a:hover,
.nav-right a.active {
    color: #edcd2b;
}

/* ================= HERO ================= */
.hero {
    position: relative;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;

    background: url('optimized/milkyway-2000.webp') center/cover no-repeat;
}

/* Overlay */
.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.7));
}

/* Text */
.hero-text {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero h1 {
    font-size: 42px;
    text-shadow: 0 0 10px #00bfff, 0 0 40px #00bfff;
}

.hero p {
    color: #edcd2b;
}

/* ================= SECTION ================= */
.section {
    padding: 60px 20px;
    text-align: center;
}

.section h2 {
    margin-bottom: 30px;
}

/* ================= TITEL ================= */
h1 {
    text-align: center;
    margin: 40px 0 20px 0;
    font-size: 32px;

    color: #edcd2b; /* 🔥 DAS FEHLT */
    
    text-shadow: 
        0 0 10px #00bfff,
        0 0 20px #00bfff,
        0 0 40px #00bfff;
}

h2 {
    color: #edcd2b;
    font-size: 22px;
    margin-bottom: 20px;
}

/* ================= START GRID ================= */
.grid {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    justify-content: center;
    padding: 20px;
}

/* ================= CARD ================= */
.card {
    position: relative;
    flex-shrink: 0;
}

/* 🔥 FIX BILDER */
.card img,
.card video {
    width: 280px;
    height: 180px;
    object-fit: cover;
    border-radius: 15px;
    transition: 0.3s;
}

/* HOVER */
.card:hover img,
.card:hover video {
    transform: scale(1.08);
    box-shadow: 0 0 25px rgba(0,191,255,0.6);
}

/* TEXT IM BILD */
.overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: #edcd2b;
    border-radius: 0 0 15px 15px;
}

/* ================= GALERIE ================= */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

.gallery .card img,
.gallery .card video {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* ================= BUTTONS ================= */
.categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.category-btn {
    background: #222;
    color: #edcd2b;
    border: none;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.category-btn:hover,
.category-btn.active {
    background: #00bfff;
}

/* ================= ALLSKY ================= */

/* 🔥 LIVE CONTAINER */
.live-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

/* LIVE IMAGE */
.live-container img {
    width: 100%;
    border-radius: 15px;
}

/* 🔥 OVERLAY LINKS */
.live-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #edcd2b;
    text-align: left;
    font-size: 18px;
    text-shadow: 0 0 10px black;
}

.live-overlay h2 {
    color: #edcd2b;
    margin-bottom: 10px;
}

/* 🔥 ALLSKY MENU */
.allsky-menu {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.allsky-menu button {
    background: #222;
    color: #edcd2b;
    border: none;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.allsky-menu button:hover,
.allsky-menu button.active {
    background: #00bfff;
}

/* 🔥 VIEW SWITCH */
.allsky-view {
    display: none;
}

.active-view {
    display: block;
}

/* 🔥 GRID (2 REIHEN + MITTIG) */

.allsky-grid {
    display: grid;

    grid-template-columns: repeat(auto-fit, 200px); /* 🔥 flexibel */
    justify-content: center; /* 👉 IMMER mittig */

    gap: 20px;

    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 🔥 RUNDE BILDER */
.allsky-grid img {
    width: 200px;
    height: 200px;        /* 👉 MUSS gleich sein */
    object-fit: cover;
    border-radius: 50%;   /* 👉 macht sie rund */
    transition: 0.3s;
}


/* HOVER */
.allsky-grid img:hover {
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(0,191,255,0.6);
}


/* TEXT */
.allsky-grid a {
    text-decoration: none;
    color: #edcd2b;
    display: block;
    text-align: center;
    margin-top: 5px;
}

/* ================= LIGHTBOX ================= */
.lightbox {
    display: none;
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

/* 🔥 BILD / VIDEO */
.lightbox img,
.lightbox video {
    max-width: 90%;
    max-height: 90%;

    transition: transform 0.3s ease;   /* 👉 wichtig für Zoom */
    touch-action: pan-y;               /* 👉 smooth auf Handy */
}

/* 🔥 ZOOM (Doppeltippen) */
.lightbox.zoomed img {
    transform: scale(2);
    cursor: zoom-out;
}

/* 🔥 OPTIONAL (Desktop Cursor) */
.lightbox img {
    cursor: zoom-in;
}

/* ================= FOOTER ================= */
footer {
    text-align: center;
    padding: 30px;
    background: #111;
    margin-top: 40px;
    color: #edcd2b;
}

/* ================= 🔥 CARDS ================= */

.allsky-card {
    text-align: center;
}


/* STANDARD */
.allsky-card img,
.allsky-card video {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
}


/* 🔥 KEOGRAM = BREIT */
.allsky-card.keogram {
    grid-column: span 2; /* 👉 DAS ist der Trick */
}

.allsky-card.keogram img {
    width: 100%;
    aspect-ratio: 16 / 5;
    object-fit: cover;
}


/* 🔥 STARTRAILS = GRÖSSER */
.allsky-card.startrail img {
    border-radius: 50%;   /* 👉 wieder rund */
    height: 200px;        /* 👉 gleich wie andere */
}


/* HOVER */
.allsky-card img:hover,
.allsky-card video:hover {
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(0,191,255,0.6);
}


/* DATUM */
.allsky-card span {
    display: block;
    margin-top: 8px;
    color: #edcd2b;
    font-size: 14px;
}
/* ================= 📱 MOBILE FIX ================= */
@media (max-width: 768px) {

    nav {
        flex-direction: column;
        padding: 10px;
    }

    .nav-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-top: 10px;
    }

    h1 { font-size: 24px; }
    h2 { font-size: 20px; }

    .allsky-grid {
        grid-template-columns: repeat(2, 140px);
        justify-content: center;
        gap: 12px;
        padding: 10px;
    }

    /* 🔥 BILDER + VIDEOS */
    .allsky-card img,
    .allsky-card video,
    .allsky-card .video-thumb img {
        width: 140px;
        height: 140px;
        border-radius: 50%;
        object-fit: cover;
    }

    /* 🔥 VIDEO WRAPPER */
    .allsky-card .video-thumb {
        width: 140px;
        height: 140px;
        margin: 0 auto;
    }

    .allsky-menu {
        flex-wrap: wrap;
        gap: 8px;
    }

    .allsky-menu button {
        padding: 8px 12px;
        font-size: 14px;
    }

    .live-overlay {
        font-size: 14px;
        top: 10px;
        left: 10px;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        padding: 10px;
    }

    .hero {
        height: auto;
        padding: 40px 10px;
    }
}

/* ================= 📱 EXTRA KLEINE HANDYS ================= */
@media (max-width: 480px) {

    .allsky-grid {
        grid-template-columns: repeat(1, 140px);
        justify-content: center;
        gap: 10px;
    }

    .allsky-card img,
    .allsky-card video,
    .allsky-card .video-thumb img {
        width: 140px;
        height: 140px;
    }

    .allsky-card .video-thumb {
        width: 140px;
        height: 140px;
        margin: 0 auto;
    }

    .allsky-menu button {
        font-size: 12px;
        padding: 6px 10px;
    }

    h1 { font-size: 20px; }
    h2 { font-size: 18px; }
}


/* ================= KONTAKT ================= */

.contact-intro {
    color: #edcd2b;
}

.contact-box {
    margin-top: 20px;
    font-size: 18px;
}

.contact-box p {
    margin: 10px 0;
}

.contact-box a {
    color: #00bfff;
    text-decoration: none;
}

.contact-box a:hover {
    text-shadow: 0 0 10px #00bfff;
}

/* FORMULAR */
.contact-form {
    max-width: 500px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #111;
    color: white;
}

.contact-form textarea {
    min-height: 120px;
    resize: none;
}

.contact-form button {
    background: #00bfff;
    border: none;
    padding: 12px;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.contact-form button:hover {
    background: #009acd;
}

.about-box {
    max-width: 700px;
    margin: 60px auto;
    padding: 30px;

    background: rgba(20, 20, 20, 0.7);
    border-radius: 20px;

    text-align: center;

    backdrop-filter: blur(10px); /* 🔥 Glas-Effekt */
}

.about-box p {
    color: #edcd2b;
    line-height: 1.6;
    margin: 15px 0;
}

/* 📱 TOUCH ZOOM + SMOOTH */
.allsky-card img,
.allsky-card video {
    transition: transform 0.3s ease;
    touch-action: manipulation;
}

/* beim Antippen leicht größer */
.allsky-card:active img,
.allsky-card:active video {
    transform: scale(1.1);
}

.video-thumb {
    position: relative;
    width: 100%;
    height: 200px;
    cursor: pointer;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #edcd2b;
    font-size: 30px;
}

.video-thumb:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.2);
}

.video-thumb:hover img {
    transform: scale(1.08);
    box-shadow: 0 0 25px rgba(0,191,255,0.6);
}


