/*
Theme Name: Hachiko Gold
Author: Hachiko Familie
Description: Ein modernes Dark-Mode Theme mit goldenen Akzenten, Custom Cursor und Dropdown Menüs.
Version: 1.2 (Fix für Menü-Reihenfolge)
*/

:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --accent-color: #eab308; /* Das Hachiko Gold */
    --accent-hover: #ca8a04;
    --dark-gray: #111827;
    --nav-bg: rgba(0, 0, 0, 0.95);
}

* {
    box-sizing: border-box;
    cursor: none; /* Versteckt den normalen Mauszeiger! WICHTIG */
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* --- Custom Cursor --- */
#cursor-dot, #cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    display: none; /* Wird per JS auf Desktop aktiviert */
}

#cursor-dot {
    width: 8px;
    height: 8px;
    background-color: white;
    mix-blend-mode: difference;
}

#cursor-ring {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Cursor Hover Effekt */
body.hovering #cursor-dot {
    transform: translate(-50%, -50%) scale(1.5);
    background-color: var(--accent-color);
}

body.hovering #cursor-ring {
    width: 50px;
    height: 50px;
    border-color: var(--accent-color);
    background-color: rgba(234, 179, 8, 0.1);
}

@media (min-width: 768px) {
    #cursor-dot, #cursor-ring { display: block; }
}

/* --- Header & Navigation --- */
.site-header {
    position: fixed;
    width: 100%;
    top: 0;
    padding: 1.5rem 2rem;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.site-header.scrolled {
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span { color: var(--accent-color); font-size: 1.8rem; }

/* --- MENÜ STRUKTUR (Desktop) --- */

/* 1. Hauptmenü-Container (Nur die oberste Ebene ist Flexbox/Horizontal) */
.main-navigation > ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 2. Hauptmenü-Punkte */
.main-navigation > ul > li {
    position: relative; /* Ankerpunkt für das Dropdown */
}

.main-navigation a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
    display: block; 
}

/* Stil nur für die obersten Links (Großbuchstaben, Unterstrich) */
.main-navigation > ul > li > a {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    padding: 10px 0;
    position: relative;
}

.main-navigation > ul > li > a:hover {
    color: var(--accent-color);
}

/* Goldener Unterstrich Animation */
.main-navigation > ul > li > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

.main-navigation > ul > li > a:hover::after { width: 100%; }


/* -------------------------------------------------------- */
/* --- DROPDOWN MENÜS (Unterseiten) --- */
/* -------------------------------------------------------- */

/* 1. Verstecken & Positionieren */
/* Wir nutzen 'ul ul', um sicherzustellen, dass wir jedes Untermenü treffen */
.main-navigation ul ul {
    display: block; /* Muss block sein, damit sie untereinander stehen */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--nav-bg);
    min-width: 220px;
    padding: 10px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    z-index: 9999;
    border-top: 2px solid var(--accent-color);
    list-style: none;
    
    /* Unsichtbar machen */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease-in-out;
}

/* 2. Einblenden beim Hover über den Hauptpunkt (li) */
.main-navigation li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 3. Styles für die Links IM Dropdown */
.main-navigation ul ul li {
    display: block; /* Untereinander! */
    margin: 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.main-navigation ul ul li:last-child { border-bottom: none; }

.main-navigation ul ul a {
    padding: 12px 20px;
    font-size: 0.9rem;
    color: #ccc;
    text-transform: none; /* Keine Großbuchstaben im Submenü */
}

.main-navigation ul ul a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--accent-color);
    padding-left: 25px; /* Kleiner Ruck nach rechts */
}

/* Verstecke den Unterstrich im Submenü */
.main-navigation ul ul a::after { display: none; }


/* --- MOBILE MENU & RESPONSIVE --- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(0,0,0,0.95);
    display: flex;
    flex-direction: column;
    justify-content: start; /* Oben anfangen */
    padding-top: 80px;
    align-items: center;
    transition: right 0.4s ease;
    z-index: 90;
    overflow-y: auto;
}

.mobile-menu-overlay.active { right: 0; }

.mobile-menu-overlay ul {
    list-style: none;
    text-align: center;
    padding: 0;
    width: 100%;
}

.mobile-menu-overlay a {
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    text-transform: uppercase;
    display: block;
    margin: 1rem 0;
}

/* --- HANDY LOGIK (Unterpunkte einrücken) --- */
@media (max-width: 768px) {
    .main-navigation { display: none; } /* PC Menü weg */
    .menu-toggle { display: block; } /* Button her */
    * { cursor: auto !important; }

    /* Im Mobile Overlay: Untermenüs immer zeigen, aber eingerückt */
    .mobile-menu-overlay ul ul {
        display: block;
        position: static;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        border-top: none;
        padding-left: 0;
        margin-top: -10px;
        margin-bottom: 10px;
    }

    .mobile-menu-overlay ul ul a {
        font-size: 1rem;
        color: #888;
        padding: 5px 0;
        margin: 0;
        border-left: 3px solid var(--accent-color); /* Goldene Markierung links */
        display: inline-block; /* Damit der Border nah am Text ist */
    }
}

/* --- Main Content Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 40px;
}

h1, h2, h3 { color: white; margin-bottom: 1rem; }
h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; color: var(--accent-color); }
p { color: #ccc; line-height: 1.6; max-width: 800px; }

/* Wordpress Buttons */
.wp-block-button__link {
    background-color: var(--accent-color);
    color: black;
    border-radius: 0;
    text-transform: uppercase;
    font-weight: bold;
    padding: 12px 24px;
    border: none;
}