/* ============================================================
   CROSSOVER X — main.css
   Globales Stylesheet: Header, Footer, Menü, Social Bar
   ============================================================ */

/* ---- 0. RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background-color: #000; color: #fff; min-height: 100vh; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ============================================================
   1. LOKALE FONTS
   ============================================================ */
@font-face {
    font-family: 'Arial Narrow';
    src: url('../../../uploads/fonts/Arial Narrow/arialnarrow.woff2') format('woff2'),
         url('../../../uploads/fonts/Arial Narrow/arialnarrow.ttf') format('truetype');
    font-weight: normal; font-style: normal;
}
@font-face {
    font-family: 'Arial Narrow';
    src: url('../../../uploads/fonts/Arial Narrow/arialnarrow_bold.woff2') format('woff2');
    font-weight: bold; font-style: normal;
}
@font-face {
    font-family: 'Bangers';
    src: url('../../../uploads/fonts/Bangers/Bangers-Regular.woff2') format('woff2');
    font-weight: normal; font-style: normal;
}
@font-face {
    font-family: 'Inter';
    src: url('../../../uploads/fonts/Inter/Inter-VariableFont_opsz,wght.woff2') format('woff2-variations');
    font-weight: 100 900; font-style: normal;
}
@font-face {
    font-family: 'Lato';
    src: url('../../../uploads/fonts/lato/S6uyw4BMUTPHjx4wXg.woff2') format('woff2');
    font-weight: normal; font-style: normal;
}
@font-face {
    font-family: 'Open Sans';
    src: url('../../../uploads/fonts/open-sans/memSYaGs126MiZpbA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsjZ0B4gaVI.woff2') format('woff2');
    font-weight: normal; font-style: normal;
}
@font-face {
    font-family: 'Pixelify Sans';
    src: url('../../../uploads/fonts/Pixelify_Sans/PixelifySans-VariableFont_wght.woff2') format('woff2-variations');
    font-weight: 400 700; font-style: normal;
}
@font-face {
    font-family: 'Pokemon Solid';
    src: url('../../../uploads/fonts/pokemon/Pokemon Solid.woff2') format('woff2');
    font-weight: normal; font-style: normal;
}
@font-face {
    font-family: 'Raleway';
    src: url('../../../uploads/fonts/raleway/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVvaorCFPrEHJA.woff2') format('woff2');
    font-weight: normal; font-style: normal;
}
@font-face {
    font-family: 'Retrobit';
    src: url('../../../uploads/fonts/Retrobit/Retrobit.woff2') format('woff2');
    font-weight: normal; font-style: normal;
}
@font-face {
    font-family: 'Yugioh Matrix';
    src: url('../../../uploads/fonts/Yugioh Matrix Book/Yu-Gi-Oh! Matrix Book.woff2') format('woff2');
    font-weight: normal; font-style: normal;
}

/* ============================================================
   2. CSS VARIABLES
   ============================================================ */
:root {
    --world-color: #ff0000;
    --vault-icon-size: 100px;
    --header-height: 80px;
    --transition-standard: 0.3s ease-in-out;
}

body.style-tech    { --world-color: #ff0000; }
body.style-retro   { --world-color: #ADFF2F; }
body.style-tcg     { --world-color: #00FFFF; }
body.style-special { --world-color: #FF00FF; }

/* ============================================================
   3. HEADER
   ============================================================ */
.main-vault-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background-color: #000;
    border-bottom: 2px solid var(--world-color);
    transition: border-color var(--transition-standard);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 40px;
    gap: 20px;
}
.header-logo-link { flex-shrink: 0; display: flex; align-items: center; }
.header-logo { width: 300px; height: auto; object-fit: contain; }

.vault-status-display {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--world-color);
    transition: color var(--transition-standard), opacity 0.5s ease-in-out;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.header-controls { display: flex; align-items: center; gap: 10px; flex-shrink: 0; position: relative; }
.header-icon {
    width: var(--vault-icon-size);
    height: var(--vault-icon-size);
    object-fit: contain;
    cursor: pointer;
    transition: opacity 0.5s ease-in-out, transform 0.2s;
}
.header-icon:hover { transform: scale(1.05); }
.avatar-wrapper { position: relative; }
#vault-sound-toggle { transition: filter 0.3s ease; }
#vault-sound-toggle.sound-is-on { filter: drop-shadow(0 0 8px rgba(0,255,255,0.6)); }

#theme-picker {
    display: none;
    flex-direction: column;
    gap: 15px;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.95);
    border: 1px solid #333;
    border-radius: 4px;
    padding: 15px;
    min-width: 120px;
}
#theme-picker.is-open { display: flex; }
#theme-picker img { width: 100%; object-fit: contain; cursor: pointer; transition: transform 0.2s ease; border-radius: 2px; }
#theme-picker img:hover { transform: scale(1.15); }

/* ============================================================
   4. STICKY CONTACT BAR
   ============================================================ */
.vault-sticky-contact {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 20px;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #333;
    transition: transform 0.4s ease-in-out, border-color var(--transition-standard);
    transform: translateY(-100%);
}
.vault-sticky-contact.is-sticky { transform: translateY(0); border-bottom-color: var(--world-color); }
.sticky-avatar { width: 60px; height: 60px; object-fit: contain; }
.sticky-phone { font-family: 'Inter', sans-serif; font-size: 22px; font-weight: 500; color: #fff; transition: color var(--transition-standard); }
.sticky-phone:hover { color: var(--world-color); }

/* ============================================================
   5. SOCIAL BAR
   ============================================================ */
.social-bar-section { background-color: #000; border-top: 1px solid #1a1a1a; }
.social-bar-inner { display: flex; justify-content: space-around; align-items: center; padding: 10px 20px; max-width: 800px; margin: 0 auto; }
.social-icon-wrapper { position: relative; display: block; width: 60px; height: 60px; flex-shrink: 0; }
.social-icon-wrapper img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 0.3s ease-in-out; }
.icon-normal  { opacity: 1; }
.icon-hover   { opacity: 0; }
.social-icon-wrapper:hover .icon-normal { opacity: 0; }
.social-icon-wrapper:hover .icon-hover  { opacity: 1; }

/* ============================================================
   6. FOOTER
   ============================================================ */
.vault-main-footer { position: relative; background-color: #000; padding: 60px 20px; overflow: visible; }
.footer-badge { position: absolute; z-index: 1; pointer-events: none; background-repeat: no-repeat; transition: background-image 0.5s ease-in-out; }
.footer-inner { position: relative; z-index: 5; display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 30px; max-width: 1000px; margin: 0 auto; }
.footer-box { background: rgba(0,0,0,0.9); backdrop-filter: blur(5px); padding: 40px; border-radius: 4px; border: 1px solid #333; min-height: 280px; flex: 1 1 380px; max-width: 480px; display: flex; flex-direction: column; gap: 20px; }
.footer-map-box { justify-content: center; }
.footer-logo { width: 200px; height: auto; object-fit: contain; }
.footer-address { font-family: 'Inter', sans-serif; font-size: 18px; color: #fff; line-height: 1.6; }
.vault-main-footer iframe { width: 100%; height: 300px; border-radius: 6px; border: 3px solid #eee; filter: grayscale(100%) invert(90%) contrast(90%); }

@media (min-width: 992px) {
    .vault-main-footer { padding-top: 120px; }
    .footer-badge { top: -100px; left: 50%; transform: translateX(-50%); width: 100%; max-width: 1920px; height: 400px; background-size: cover; background-position: center bottom; opacity: 1; }
    body.style-tech    .footer-badge { background-image: url('https://crossoverxcards.com/wp-content/uploads/2026/05/bg_desktop_footer_1920x400_schematech.png'); }
    body.style-retro   .footer-badge { background-image: url('https://crossoverxcards.com/wp-content/uploads/2026/05/bg_desktop_footer_1920x400_schemaretro.png'); }
    body.style-tcg     .footer-badge { background-image: url('https://crossoverxcards.com/wp-content/uploads/2026/05/bg_desktop_footer_1920x400_schematcg.png'); }
    body.style-special .footer-badge { background-image: url('https://crossoverxcards.com/wp-content/uploads/2026/05/bg_desktop_footer_1920x400_schemaspecial.png'); }
}
@media (max-width: 991px) {
    .vault-main-footer { overflow: hidden; }
    .footer-badge { top: 10%; right: -10%; width: 320px; height: 380px; background-size: contain; background-position: center; opacity: 0.25; filter: blur(1px); }
    body.style-tech    .footer-badge { background-image: url('https://crossoverxcards.com/wp-content/uploads/2026/05/bg_mobile_footer_750x800_schemastech.png'); }
    body.style-retro   .footer-badge { background-image: url('https://crossoverxcards.com/wp-content/uploads/2026/05/bg_mobile_footer_750x800_schemaretro.png'); }
    body.style-tcg     .footer-badge { background-image: url('https://crossoverxcards.com/wp-content/uploads/2026/05/bg_mobile_footer_750x800_schematcg.png'); }
    body.style-special .footer-badge { background-image: url('https://crossoverxcards.com/wp-content/uploads/2026/05/bg_mobile_footer_750x800_schemaspecial.png'); }
}

/* ============================================================
   7. LEGAL BAR
   ============================================================ */
.vault-footer-legal { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 20px 40px; padding: 20px; background-color: #000; border-top: 1px solid #1a1a1a; }
.legal-link { font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 500; color: #fff; letter-spacing: 0.05em; transition: color var(--transition-standard); }
.legal-link:hover { color: var(--world-color); }

/* ============================================================
   8. FLOATING MENU
   ============================================================ */
.vault-floating-menu-trigger {
    position: fixed;
    bottom: 20px; right: 20px;
    width: var(--vault-icon-size);
    height: var(--vault-icon-size);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.vault-floating-menu-trigger > img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 0.2s ease; }
.btn-open-normal  { opacity: 1; z-index: 20; }
.btn-open-hover   { opacity: 0; z-index: 15; }
.btn-close-normal { opacity: 0; z-index: 10; }
.btn-close-hover  { opacity: 0; z-index: 10; }
.vault-floating-menu-trigger:not(.vault-menu-open):hover .btn-open-normal { opacity: 0; }
.vault-floating-menu-trigger:not(.vault-menu-open):hover .btn-open-hover  { opacity: 1; }
.vault-menu-open .btn-open-normal  { opacity: 0; }
.vault-menu-open .btn-open-hover   { opacity: 0; }
.vault-menu-open .btn-close-normal { opacity: 1; z-index: 30; }
.vault-menu-open:hover .btn-close-normal { opacity: 0; }
.vault-menu-open:hover .btn-close-hover  { opacity: 1; z-index: 30; }

.vault-floating-menu-items {
    position: absolute;
    bottom: calc(var(--vault-icon-size) + 10px);
    right: 0;
    width: 64px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.3s cubic-bezier(0.165,0.84,0.44,1), visibility 0.3s, transform 0.3s cubic-bezier(0.165,0.84,0.44,1);
}
.vault-menu-open .vault-floating-menu-items { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.menu-item-holo { position: relative; width: 64px; height: 64px; display: block; }
.menu-item-holo img { position: absolute; top: 0; right: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 0.2s ease; }
.holo-normal { opacity: 1; }
.holo-active { opacity: 0; }
.menu-item-holo:hover .holo-normal { opacity: 0; }
.menu-item-holo:hover .holo-active { opacity: 1; }

/* ============================================================
   9. RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .header-inner { padding: 10px 20px; }
    .footer-inner { flex-direction: column; align-items: center; }
    .footer-box { max-width: 100%; flex: 1 1 100%; }
}
@media (max-width: 767px) {
    :root { --vault-icon-size: 70px; }
    .header-inner { padding: 8px 10px; gap: 8px; }
    .header-logo { width: 150px; }
    .vault-status-display { display: none; }
    .sticky-phone { font-size: 18px; }
    .sticky-avatar { width: 45px; height: 45px; }
    .social-icon-wrapper { width: 45px; height: 45px; }
    .legal-link { font-size: 11px; }
    .vault-floating-menu-trigger { bottom: 15px; right: 15px; }
    /* FIX: Menu-Items auf Mobile 52px → 68px — besser antippbar */
    .vault-floating-menu-items { width: 68px; bottom: calc(var(--vault-icon-size) + 8px); gap: 2px; }
    .menu-item-holo { width: 68px; height: 68px; }
}
@media (min-width: 1920px) {
    :root { --vault-icon-size: 120px; }
    .vault-floating-menu-items { width: 80px; bottom: calc(var(--vault-icon-size) + 10px); }
    .menu-item-holo { width: 80px; height: 80px; }
}

/* ============================================================
   10. SEITENÜBERGANG
   ============================================================ */
#page-transition-overlay {
    position: fixed; inset: 0; z-index: 9999999;
    background: #000; display: flex; align-items: center; justify-content: center;
    pointer-events: none; opacity: 0;
}
#page-transition-overlay.is-entering { pointer-events: auto; animation: pageTransIn 0.55s cubic-bezier(0.4,0,0.2,1) forwards; }
#page-transition-overlay.is-leaving  { animation: pageTransOut 0.45s cubic-bezier(0.4,0,0.2,1) forwards; }
@keyframes pageTransIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes pageTransOut { from { opacity: 1; } to { opacity: 0; } }
#page-transition-overlay .pt-eye {
    width: clamp(120px,20vw,220px); height: auto; object-fit: contain;
    filter: sepia(1) saturate(5) hue-rotate(5deg) brightness(2) drop-shadow(0 0 30px rgba(200,168,75,0.8));
    opacity: 0; transform: scale(0.5);
    transition: opacity 0.25s ease, transform 0.35s ease;
    animation: ptEyeSpin 1s linear infinite;
}
#page-transition-overlay.is-entering .pt-eye { opacity: 1; transform: scale(1); }
@keyframes ptEyeSpin { from { transform: scale(1) rotate(0deg); } to { transform: scale(1) rotate(360deg); } }
#page-transition-overlay::after {
    content: ''; position: absolute; left: 0; right: 0; height: 2px;
    background: linear-gradient(to right,transparent,#c8a84b,#fff,#c8a84b,transparent);
    box-shadow: 0 0 20px rgba(200,168,75,0.8);
    animation: ptScanline 0.55s ease-in-out forwards; opacity: 0;
}
#page-transition-overlay.is-entering::after { opacity: 1; }
@keyframes ptScanline { 0% { top:-2px; opacity:0; } 20% { opacity:1; } 100% { top:100%; opacity:0.3; } }

/* ============================================================
   11. HQ NAME HOVER GLOW
   ============================================================ */
.hq-member-name { transition: text-shadow 0.35s ease; }
.hq-member-text-col:hover .hq-member-name {
    text-shadow: 0 0 15px rgba(255,255,255,0.9), 0 0 35px rgba(200,168,75,0.6), 0 0 60px rgba(200,168,75,0.3);
}