:root {
    --bg: #05060a;
    --bg-elevated: #10121a;
    --accent: #4ea3ff;
    --accent-soft: rgba(78,163,255,0.15);
    --text: #f5f7ff;
    --muted: #9aa0b5;
    --border: #1b1f2b;
    --radius: 10px;
    --shadow-soft: 0 18px 40px rgba(0,0,0,0.45);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #151a2b 0, #05060a 55%);
    color: var(--text);
}

/* Header / Navigation */

header {
    background: #000;
    padding: 12px 20px;
    border-bottom: 1px solid #222;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    gap: 8px;                 /* noch kompakter */
}

nav li {
    display: block;
}

nav a {
    color: #eee;
    text-decoration: none;
    font-size: 0.85rem;       /* kleiner */
    padding: 3px 6px;         /* kompakter */
    border-radius: 4px;
    line-height: 1.1;
}

nav a:hover,
nav a.active {
    background: rgba(0,0,255,0.15);
}

/* Mobile */
@media (max-width: 600px) {
    nav ul {
        gap: 6px;
    }

    nav a {
        font-size: 0.8rem;
        padding: 3px 5px;
    }
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 40px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
    gap: 32px;
    align-items: center;
    margin-top: 24px;
}

.hero-text h1 {
    font-size: clamp(2.2rem, 3vw, 2.8rem);
    margin-bottom: 12px;
}

.hero-text p {
    color: var(--muted);
    max-width: 520px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.hero-card {
    background: radial-gradient(circle at top left, #1b2338 0, #0a0c13 55%);
    border-radius: 18px;
    padding: 18px;
    border: 1px solid rgba(0,0,255,0.04);
    box-shadow: var(--shadow-soft);
}

.hero-card img {
    width: 100%;
    border-radius: 14px;
    display: block;
}

/* Sections */

.section-title {
    font-size: 1.4rem;
    margin: 32px 0 12px;
}

.section-subtitle {
    color: var(--muted);
    margin-bottom: 18px;
}

/* Gallery */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.gallery a {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(0,0,255,0.04);
    background: #05060a;
}

.gallery img {
    width: 100%;
    display: block;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.gallery a::after {
    content: "Ansehen";
    position: absolute;
    inset: auto 10px 10px auto;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 0.7rem;
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.25s ease;
}

.gallery a:hover img {
    transform: scale(1.04);
    opacity: 0.9;
}

.gallery a:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* Galerie-Item mit Caption */

.gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-item img {
    width: 100%;
    border-radius: var(--radius);
}

.caption {
    margin-top: 6px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.3;
    max-width: 90%;
}

/* Carousel */

.carousel-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.carousel {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.carousel > img {
  flex: 0 0 100%;      /* jede Slide nimmt 100% der Wrapper-Breite */
  width: 100%;
  height: 60vh;        /* oder eine feste Höhe, je nach Layout */
  object-fit: cover;   /* sorgt für sauberes Zuschneiden */
  display: block;      /* entfernt Inline-Whitespace-Probleme */
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}


/* Galerie-Bilder auf Island-Seite etwas ruhiger */

.island-top-gallery img {
    height: 220px;
    object-fit: cover;
}

/* 360 Viewer */

.viewer-360-wrapper {
    margin-top: 16px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(0,0,255,0.06);
    box-shadow: var(--shadow-soft);
    background: #05060a;
}

#panorama {
    width: 100%;
    height: 420px;
}

/* About */

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 32px;
    margin-top: 24px;
}

.about-layout img {
    width: 100%;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

@media (max-width: 900px) {
    .hero,
    .about-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Footer */

footer {
    text-align: center;
    padding: 18px 10px 26px;
    color: var(--muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
    margin-top: 20px;
}

/* Wasserzeichen nur im Lightbox-Hauptbild */
#lb-watermark {
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 999999;
    opacity: 0.55;
    pointer-events: none;
    font-size: 1.2rem;
    color: rgba(0,0,255,0.85);
    font-family: Arial, sans-serif;
    font-weight: 600;
    display: none; /* wird per JS sichtbar */
}

/* Lightbox2 erzeugt beim Öffnen ein Overlay mit der Klasse .lightbox */
.lightbox #lb-watermark {
    display: block;
}

/* Manche Versionen nutzen .lb-open am body */
body.lb-open #lb-watermark {
    display: block;
}

/* Andere Versionen erzeugen #lightbox als Container */
#lightbox ~ #lb-watermark {
    display: block;
}

/* Und manche erzeugen .lb-outerContainer */
.lb-outerContainer ~ #lb-watermark {
    display: block;
}

/* Social Media Box */
.social-card {
    margin-top: 30px;
    padding: 20px;
    background: rgba(0,0,255,0.05);
    border: 1px solid rgba(0,0,255,0.08);
    border-radius: 14px;
    text-align: center;
}

.social-card h3 {
    margin: 0 0 12px;
    color: #fff;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icons a {
    font-size: 1.8rem;
    color: #fff;
    opacity: 0.75;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.social-icons a:hover {
    opacity: 1;
    transform: translateY(-3px);
}

/* Schwebende Social Bubble */
.social-bubble {
    position: fixed;
    top: 50%;
    right: 22px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.sb-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;

}

.sb-icon i {
    font-size: 24px;
    color: white;
    transition: color 0.3s ease;
}

.sb-icon:hover {
    box-shadow: 0 0 12px rgba(0,0,255,0.6);
}

/* Instagram Hover */
.sb-icon.instagram:hover {
    background: #E1306C;
    transform: scale(1.15);
}

/* Facebook Hover */
.sb-icon.facebook:hover {
    background: #1877F2;
    transform: scale(1.15);
}


/* Mobile: Bubble unten rechts */
@media (max-width: 768px) {
    .social-bubble {
        top: auto;
        bottom: 20px;
        right: 20px;
        transform: none;
        flex-direction: row;
    }
}

/* 360 stuff */

#panoOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    z-index: 99999;
}

#panoViewer {
    width: 100%;
    height: 100%;
}

#panoClose {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #000;
    cursor: pointer;
    z-index: 100000;
}

/* x=close für Lightbox */

/* Lightbox Close Button anpassen */
.custom-close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-close-btn:hover {
    background: rgba(0, 0, 255, 0.9);
    transform: rotate(90deg);
}

/* About */
.about-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    line-height: 1.7;
}

.about-section h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    text-align: center;
}

.about-intro {
    font-size: 1.2rem;
    font-weight: 500;
}

.about-highlight {
    font-style: italic;
    margin-top: 20px;
    font-size: 1.1rem;
}

/* index.html */
.intro-section {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    line-height: 1.7;
}

.intro-section h1 {
    font-size: 2.4rem;
    margin-bottom: 20px;
    text-align: center;
}

.intro-text {
    font-size: 1.2rem;
    font-weight: 500;
}

.privacy-hint {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Floating Menu oben rechts */
.floating-menu {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 9999;
}

/* Hauptbutton */
.fm-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    border: none;
    font-size: 28px;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 0 12px rgba(0,0,255,0.25); /* Glow */
}

.floating-menu.active .fm-btn {
    transform: rotate(90deg);
    box-shadow: 0 0 18px rgba(0,0,255,0.45); /* stärkerer Glow */
}

/* Menüeinträge (diagonal gespiegelt, links oben) */
/* Quantum‑Ease diagonale Animation */
.fm-items {
    position: absolute;
    top: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;

    opacity: 0;
    pointer-events: none;

    /* diagonale Startposition */
    transform: translateX(-22px, -22px);

    transition:
        transform 0.45s cubic-bezier(0.25, 1.40, 0.35, 1.00),
        opacity 0.45s ease-out;
}


.fm-items a {
    background: #111;
    color: #fff;
    padding: 10px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.95rem;
    white-space: nowrap;
    box-shadow: 0 0 10px rgba(0,0,255,0.15); /* Glow */
    transition: 0.3s ease;
	will-change: transform, box-shadow;
    opacity: 0;
    transform: translate(-12px, -12px);
    transition:
        transform 0.45s cubic-bezier(0.25, 1.40, 0.35, 1.00),
        opacity 0.45s ease-out;

}

/* Aktiviert */
.floating-menu.active .fm-items {
    opacity: 1;
    pointer-events: auto;

    /* Zielposition */
    transform: translate(0, 0);
}


.floating-menu.active .fm-items a {
    opacity: 1;
    transform: translate(0, 0);
}


/* Hover Glow */
.fm-items a:hover {
    background: #222;
    box-shadow: 0 0 25px rgba(0,0,255,0.55);
}

/* --- Weicher Nebel-Glow für den Hauptbutton --- */
.fm-btn {
    box-shadow:
        0 0 12px rgba(0,0,255,0.25),
        0 0 25px rgba(0,0,255,0.15),
        0 0 40px rgba(0,0,255,0.10);
    backdrop-filter: blur(2px);
}

.floating-menu.active .fm-btn {
    box-shadow:
        0 0 18px rgba(0,0,255,0.35),
        0 0 35px rgba(0,0,255,0.25),
        0 0 55px rgba(0,0,255,0.20);
}

/* --- Weicher Nebel-Glow für die Menüeinträge --- */
.fm-items a {
    box-shadow:
        0 0 25px rgba(180, 90, 255, 0.35),
        0 0 45px rgba(120, 40, 220, 0.25),
        inset 0 0 12px rgba(0,0,255,0.10);
}


.floating-menu.active .fm-items a {
    box-shadow:
        0 0 18px rgba(0,0,255,0.35),
        0 0 35px rgba(0,0,255,0.22),
        0 0 55px rgba(0,0,255,0.15);
}

/* --- Hover: stärkerer Nebel, aber weich --- */
.fm-items a:hover {
    background: #222;
    box-shadow:
        0 0 25px rgba(0,0,255,0.55),
        0 0 45px rgba(0,0,255,0.35),
        0 0 70px rgba(0,0,255,0.25);
}


/* Orion-Violett Farbpalette */
:root {
    --nebula1: rgba(70, 146, 255, 0.35);   /* helles Violett */
    --nebula2: rgba(65, 117, 255, 0.25);   /* tieferes Violett */
    --nebula3: rgba(25, 25, 255, 0.20);    /* dunkler Kern */
}

/* Pulsierende Nebel-Animation */
@keyframes nebulaPulse {
    0% {
        box-shadow:
            0 0 18px var(--nebula1),
            0 0 35px var(--nebula2),
            0 0 55px var(--nebula3);
    }
    50% {
        box-shadow:
            0 0 28px var(--nebula1),
            0 0 55px var(--nebula2),
            0 0 85px var(--nebula3);
    }
    100% {
        box-shadow:
            0 0 18px var(--nebula1),
            0 0 35px var(--nebula2),
            0 0 55px var(--nebula3);
    }
}

/* --- Pulsierender Nebel für den Hauptbutton --- */
.floating-menu.active .fm-btn {
    animation: nebulaPulse 3.5s ease-in-out infinite;
    backdrop-filter: blur(3px);
}

/* --- Pulsierender Nebel für die Menüeinträge --- */
.floating-menu.active .fm-items a {
    animation: nebulaPulse 4s ease-in-out infinite;
    backdrop-filter: blur(4px);
}

/* Hover: stärkerer violetter Nebel */
.fm-items a:hover {
    background: #1a0f2b;
    box-shadow:
        0 0 35px var(--nebula1),
        0 0 65px var(--nebula2),
        0 0 95px var(--nebula3);
}