/* =========================================
   MAKO MERMAIDS MOD - OFFICIAL STYLE (FINAL)
   ========================================= */

/* 1. FONTS & VARIABLES */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&family=Playfair+Display:ital,wght@1,500&display=swap');

:root {
    --deep-sea: #001220;
    --ocean: #004e92;
    --moon-glow: #00d2ff;
    --glass: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Update ganz oben in style.css */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* VERBIETET seitliches Scrollen */
    position: relative; /* Wichtig für Mobile */
}

body {
    background: radial-gradient(circle at top right, #001f3f, var(--deep-sea));
    color: var(--text);
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    
    /* NEU: Schiebt den Inhalt runter, damit das Menü nichts verdeckt */
    padding-top: 90px; 
}


/* 3. NAVIGATION (Inklusive Hamburger) */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    backdrop-filter: blur(10px);
    background: rgba(0, 18, 32, 0.9);
    
    /* HIER IST DIE ÄNDERUNG: */
    position: fixed; /* Statt sticky - Zwingt es festzuhalten */
    width: 100%;     /* Wichtig, damit es über den ganzen Bildschirm geht */
    top: 0;
    left: 0;         /* Sicherstellen, dass es ganz links anfängt */
    
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}


.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--moon-glow);
    text-shadow: 0 0 15px var(--moon-glow);
    font-weight: bold;
    z-index: 1001;
    text-decoration: none;
}

/* Hamburger Icon (am PC unsichtbar) */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--moon-glow);
    transition: 0.3s;
    border-radius: 5px;
}

/* Navigation Links (PC Version) */
.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 30px;
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--moon-glow);
    text-shadow: 0 0 10px var(--moon-glow);
}



/* 4. HERO SECTION */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

h1 {
    font-size: 4rem;
    font-family: 'Playfair Display', serif;
    background: linear-gradient(to right, #fff, var(--moon-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

/* 5. CARDS & LAYOUT */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px 20px;
}

.card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.1);
}

h2 {
    color: var(--moon-glow);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
    display: inline-block;
}

h3 { margin-bottom: 10px; color: #fff; }

/* 6. BUTTONS */
.btn-glow {
    background: transparent;
    border: 2px solid var(--moon-glow);
    color: var(--moon-glow);
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50px;
    text-decoration: none;
    transition: 0.4s;
    display: inline-block;
    margin: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-glow:hover {
    background: var(--moon-glow);
    color: var(--deep-sea);
    box-shadow: 0 0 25px var(--moon-glow);
    transform: scale(1.05);
}

/* 7. WIKI TABLES */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

th, td { padding: 15px; text-align: left; border-bottom: 1px solid var(--glass-border); }
th { background: rgba(0, 210, 255, 0.1); color: var(--moon-glow); }

/* 8. GRID SYSTEMS */
.item-grid, .gallery-grid {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}
.item-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.gallery-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.item-card {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 10px;
    border-left: 3px solid var(--moon-glow);
}

.gallery-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--glass-border);
    transition: 0.3s;
    cursor: pointer;
}

/* 9. LIGHTBOX (Bilder groß) */
.lightbox {
    display: none; position: fixed; z-index: 2000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.95); backdrop-filter: blur(5px);
}
.lightbox-content {
    margin: auto; display: block;
    max-width: 90%; max-height: 80vh;
    border-radius: 10px; position: relative; top: 50%; transform: translateY(-50%);
}
.close-btn { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 40px; cursor: pointer; }
.lightbox-arrow {
    position: absolute; top: 50%; padding: 16px; color: white;
    font-weight: bold; font-size: 30px; cursor: pointer; user-select: none;
}
.prev { left: 10px; } .next { right: 10px; }

/* Flash Effekt für Pfeile */
.lightbox-arrow.flash-active {
    background-color: var(--moon-glow); color: var(--deep-sea);
}

/* 10. FOOTER & BUBBLES */
footer { text-align: center; padding: 60px 20px; background: rgba(0,0,0,0.4); border-top: 1px solid var(--glass-border); margin-top:50px;}
.social-btn { display: inline-block; padding: 10px 20px; margin: 5px; color: white; text-decoration: none; border-radius: 8px; }
.tt { background: #000; border: 1px solid #333; }
.dc { background: #5865F2; }
.md { background: #1bd96a; color: #000; }
.cf { background: #F16436; }
.mc { background: #1C262F; }

/* Animationen */
.hidden { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.show { opacity: 1; transform: translateY(0); }

.mouse-bubble {
    position: absolute; width: 10px; height: 10px;
    background: rgba(0, 210, 255, 0.6); border-radius: 50%;
    pointer-events: none; transform: translate(-50%, -50%);
    animation: bubbleFloat 1s linear forwards; z-index: 9999;
}
@keyframes bubbleFloat {
    100% { transform: translate(-50%, -150%) scale(0); opacity: 0; }
}

/* =========================================
/* =========================================
   🚨 MOBILE FIX (DIE NEUE, SICHERE VERSION)
   ========================================= */
@media (max-width: 768px) {
    /* WICHTIG: Verhindert seitliches Scrollen auf der ganzen Seite */
    html, body {
        overflow-x: hidden;
        position: relative;
    }

    /* Burger sichtbar machen */
    .hamburger { display: flex; }

    /* Menü verstecken (Neue Methode!) */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0; /* Fest am rechten Rand */
        height: 100vh;
        width: 100%; /* Volle Breite */
        background: rgba(0, 18, 32, 0.98);
        backdrop-filter: blur(20px);
        
        /* Flexbox zum Zentrieren */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        
        /* Das ist der Trick: Schiebt es 100% nach rechts raus */
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
    }

    /* Wenn Menü offen ist */
    .nav-links.active {
        /* Schiebt es zurück auf 0 (sichtbar) */
        transform: translateX(0);
    }

    /* Links im mobilen Menü größer machen */
    .nav-links a {
        margin: 25px 0;
        font-size: 2rem;
        display: block;
    }

    /* Burger Animation zum X */
    .hamburger.toggle span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .hamburger.toggle span:nth-child(2) { opacity: 0; }
    .hamburger.toggle span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

    /* Andere Mobile Fixes */
    table { display: block; overflow-x: auto; white-space: nowrap; }
    .gallery-grid { grid-template-columns: 1fr; }
    .mouse-bubble { display: none; }
    h1 { font-size: 2.5rem; }
}
