/* === Grundstruktur === */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: url('hintergrund.png') no-repeat center center fixed;
    background-size: cover;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-x: hidden;
}

/* Nur auf der Startseite */
body.no-scroll {
    overflow: hidden;
    height: 100vh;
    justify-content: space-between;
}

/* === HEADER & NAVIGATION === */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 3;
}

.nav-left ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-left li {
    margin-right: 20px;
}

/* Rechtsbündige Icons */
.nav-right {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-right: 75px; /* Abstand zum rechten Rand */
}

.nav-right .icon {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.nav-right .icon:hover {
    transform: scale(1.2);
}

/* === ZENTRIERTER CONTENT === */
.center-content {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 100px); /* Verhindert Überschneidung mit dem Header */
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}


.center-content::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background-image: url('bee.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    transform: translate(-50%, -50%);
    opacity: 0.9;
    z-index: 0;
    pointer-events: none;
}
    
.star1 {
    position: absolute;
    top: calc(50% - 150px); /* Fester Abstand zum Bee-Element */
    left: calc(50% - 350px); /* Fester Abstand zum Bee-Element */
    width: 200px;
    height: 200px;
    background-image: url('star1.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    transform: translate(-50%, -50%);
    opacity: 0.8;
    z-index: 0;
    pointer-events: none;
}
    
.star2 {
    position: absolute;
    top: calc(50% + 150px); /* Fester Abstand zum Bee-Element */
    left: calc(50% + 350px); /* Fester Abstand zum Bee-Element */
    width: 200px;
    height: 200px;
    background-image: url('star2.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    transform: translate(-50%, -50%);
    opacity: 0.8;
    z-index: 0;
    pointer-events: none;
}
    

nav, main, footer {
    position: relative;
    z-index: 2;
}

/* === ABOUT SEITE BOX === */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    z-index: 2;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

/* === STARTSEITEN-NAVIGATION === */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul.nav-links li {
    margin: 0 15px;
}

/* === ÜBERGREIFENDE LINK-GESTALTUNG === */
a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    transition: all 0.3s ease;
}

a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}

a:hover {
    transform: translateX(4px);
}

a:hover::after {
    width: 100%;
}

/* === ANIMATIONSTEXT === */
#animated-text {
    font-size: 10em;
    color: white;
    position: relative;
    animation: shimmer 2s infinite, sparkle 2s infinite, move 2s infinite alternate;
}

/* === CTA-BUTTON === */
.cta-button {
    background-color: #00ccff;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}

.cta-button:hover {
    background-color: #ffffff;
    color: #00ccff;
    transform: scale(1.1);
}

/* === FOOTER === */
footer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px;
    border-radius: 10px;
}

footer ul.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    font-size: 10px
}

footer ul.footer-links li {
    margin: 0 10px;
}

#popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }
  
#popup-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}
  
#popup-image {
    width: 100%;
    max-width: 600px;
    cursor: pointer;
    border-radius: 12px;
}

#popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: white;
    cursor: pointer;
}  

.kontakt-formular {
    width: 100%;
    max-width: 600px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-sizing: border-box;
}

.kontakt-formular input,
.kontakt-formular textarea {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 12px;
    border-radius: 8px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: 1em;
    outline: none;
}

.kontakt-formular input::placeholder,
.kontakt-formular textarea::placeholder {
    color: rgb(255, 255, 255) !important;
}

.kontakt-formular button {
    background-color: #00ccff;
    color: white;
    border: none;
    padding: 12px;
    font-size: 1em;
    border-radius: 6px;
    cursor: pointer;
}

.kontakt-formular button:hover {
    background-color: white;
    color: #00ccff;
    border: 1px solid #00ccff;
}  

.kontakt-formular {
    max-width: 600px;
    width: 100%;
    margin: 40px auto;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    color: white;
}

.kontakt-formular input:focus,
.kontakt-formular textarea:focus {
    border-color: #00ccff;
    box-shadow: 0 0 8px rgba(0, 204, 255, 0.5);
}
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
    flex-direction: row;
    flex-wrap: nowrap;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 4px;
    accent-color: #00ccff;
    transform: scale(1.2);
}

.checkbox-label a {
    color: #00ccff;
    text-decoration: underline;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* ========== MOBILE OPTIMIERUNG ========== */
@media (max-width: 768px) {
    /* iOS-Workaround für Body-Background. Herausgenommen für Test */
    body.no-scroll footer {
        position: fixed !important;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        padding: 10px 16px;          /* gleiches Spacing wie oben */
        z-index: 999;                 /* sicher über dem Hintergrund */
    }

    /* Falls auf der Startseite doch mal Content reinrutscht:
       etwas Luft unten, damit nichts vom Footer überdeckt wird. */
    body.no-scroll main {
        padding-bottom: 56px;
    }

    /* iOS-Workaround nur auf der Startseite aktivieren */
    body.no-scroll {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }

    body.no-scroll .center-content {
        min-height: 100dvh !important;
    }

    body:not(.no-scroll) {
        position: static;
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;
        background-attachment: scroll; /* iOS-sicher */
    }


    /* Kein Platz mehr für "fixed Header" nötig */
    main {
        padding-top: 0 !important;
    }

    /* Mobile: Basis-Optik für den Footer (ohne Positionsvorgaben) */
    footer {
        width: 100%;
        padding: 10px 16px;
    }

    /* Scrollbare Seiten: Footer am Dokumentende (nur unten sichtbar, wenn man unten ankommt) */
    body:not(.no-scroll) footer {
        position: static !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100%;
        z-index: auto;

        /* Farbe beibehalten, falls gewünscht */
        /* background: #00ccff;  dein Blau */
        /* color: #ffffff; */
    }

    /* Footer-Links über volle Breite verteilen (deine Vorgabe) */
    footer ul.footer-links {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 0;
        margin: 0;
        list-style: none;
        font-size: 12px;
    }


    /* Navigation kompakt */
    .nav-left ul {
        display: flex;
        gap: 12px;
        padding: 0;
        margin: 0;
        flex-wrap: wrap;
    }
    .nav-left li {
        margin: 0;                      /* Desktop-Margin entfernen */
    }
    .nav-right {
        display: flex;
        align-items: center;
        gap: 14px;
        margin: 0;
        position: static;               /* nicht absolute, damit Flex greift */
    }
    .nav-right .icon {
        width: 28px;
        height: 28px;
    }

    /* Bee-Logo und Sterne mobil skaliert */
    .center-content::before {
        width: clamp(200px, 70vw, 600px);
        height: clamp(200px, 70vw, 600px);
        max-height: 100svh;
        /* bleibt zentriert durch dein transform */
    }

    .star1,
    .star2 {
        position: absolute;
        width: 150px;
        height: 150px;
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center;
        transform: translate(-50%, -50%);
        opacity: 0.8;
        z-index: 1000;
        pointer-events: none;
    }
    /* Positionen so gewählt, dass nichts übersteht, aber "desktop-ähnlich" wirkt.
       Wenn du die Sterne exakt anders platzieren willst, sag kurz Bescheid. */
    .star1 { top: 40%; left: 20%; }
    .star2 { top: 60%; left: 80%; }

    #animated-text {
        font-size: clamp(2rem, 10vw, 4rem);
    }

    .cta-button {
        padding: 12px 20px;
        font-size: 1em;
    }

    .kontakt-formular {
        padding: 20px;
    }

    /* Kontaktseite: Abstand zum absolut positionierten Header */
    .kontakt-formular {
        /* überschreibt nur den oberen Außenabstand,
        lässt "auto" (zentriert) links/rechts bestehen */
        margin-top: 88px; /* bei Bedarf 72–96 px anpassen */
    }


    .about-content {
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    /* Nur Startseite: Footer fix an den unteren Rand anheften */
    body.no-scroll footer {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        bottom: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        transform: none !important;
        z-index: 999 !important;

        /* background: #00ccff;
        color: #ffffff; */
    }

    /* Falls auf der Startseite später doch Content steht:
       etwas Luft, damit der fixierte Footer nichts überdeckt */
    body.no-scroll main {
        padding-bottom: 56px;
    }
}

@media (max-width: 768px) {
    footer {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        background-image: none !important;
    }

    /* Header kompakt, alles in eine Zeile */
    header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 8px 12px; /* etwas enger am Rand */
    }

    /* Linke Seite darf flexibel schrumpfen, ohne Wrap */
    .nav-left {
        flex: 1 1 auto;
        min-width: 0;        /* wichtig gegen erzwungenen Umbruch */
        display: flex;
    }

    .nav-left ul {
        display: flex;
        flex-wrap: nowrap;   /* eine Zeile erzwingen */
        gap: 10px;           /* enger als Desktop */
        padding: 0;
        margin: 0;
    }

    .nav-left li {
        margin: 0;
        flex: 0 0 auto;      /* keine automatische Breitenvergrößerung */
    }

    /* Links: kleiner & kein Zeilenumbruch innerhalb des Textes */
    header a {
        font-size: clamp(12px, 3.3vw, 14px);
        line-height: 1.2;
        white-space: nowrap; /* verhindert "ABOUT BEE" -> 2 Zeilen */
    }

    /* Rechte Icon-Leiste kompakt halten */
    .nav-right {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0;
    }

    .nav-right .icon {
        width: 24px;
        height: 24px;
    }
}