:root {
    --bg-color: #1a1614;
    --text-main: #d3c4b7;
    --text-light: #fdf5eb;
    --accent: #f5a623;
    --accent-dark: #cc7a00;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

@font-face {
    font-family: 'Glober';
    src: url('src/fonts/Glober Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Glober';
    src: url('src/fonts/Glober Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Glober';
    src: url('src/fonts/Glober Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Glober';
    src: url('src/fonts/Glober Black.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Glober Book';
    src: url('src/fonts/Glober Book.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

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

html,
body {
    font-family: 'Glober', 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
}

main {
    position: relative;
    z-index: 1;
}

.luza-book {
    font-family: 'Glober Book', sans-serif;
    font-weight: normal;
}

.luza-bold {
    font-family: 'Glober', sans-serif;
    font-weight: bold;
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    pointer-events: none;
}

.glow-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.15), transparent 70%);
}

.glow-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(204, 122, 0, 0.1), transparent 70%);
}

.glow-3 {
    top: 30%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.1), transparent 70%);
}

.highlight {
    color: var(--accent);
}

.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    max-width: 100%;
    box-sizing: border-box;
    padding: 1.5rem 4rem;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    display: none;
    /* Hidden on desktop */
}

.hamburger {
    color: var(--text-light);
    font-size: 1.8rem;
    cursor: pointer;
}

.mobile-logo-link {
    text-decoration: none;
    color: var(--text-light);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: 1px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 400;
    font-size: 1rem;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent);
}

.btn-shop {
    padding: 0.6rem 1.5rem;
    background: var(--accent-dark);
    color: #fff !important;
    border-radius: 30px;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(69, 162, 158, 0.3);
    transition: all 0.3s ease;
}

.btn-shop:hover {
    background: var(--accent);
    color: #000 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 252, 241, 0.4);
}

.hero {
    height: 80vh;
    /* Reduced from 100vh to bring the next section closer */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    position: relative;
}

.hero-content {
    max-width: 800px;
    transform: translateY(-5vh);
    /* Shift text slightly upwards to make extra room for the indicator at the bottom */
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    color: var(--text-light);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.75rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.8;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.6;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-main);
    border-bottom: 2px solid var(--text-main);
    transform: rotate(45deg);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

.pin-master {
    height: 1200vh;
    position: relative;
}

.pin-container {
    height: 100vh;
    width: 100%;
    position: sticky;
    top: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-group {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-block {
    position: absolute;
    opacity: 0;
    transform: translateY(50px) scale(0.9);
}

.text-block h2 {
    font-size: 3.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.5);
}

.text-block p {
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 300;
    border-left: 3px solid var(--accent);
    padding: 1rem 1.5rem;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.1) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 0 12px 12px 0;
    margin-bottom: 2rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.8);
}

.btn-cta {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: transparent;
    color: var(--accent);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    border: 2px solid var(--accent);
    border-radius: 30px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-cta:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 20px rgba(102, 252, 241, 0.4);
    transform: translateY(-3px);
}

.image-group {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.product-img {
    position: absolute;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.5);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

.site-footer {
    background-color: #0d0b0a;
    padding: 3rem 2rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 5rem;
    position: relative;
    z-index: 20;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: 2px;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-copy {
    color: rgba(211, 196, 183, 0.5);
    /* var(--text-main) with opacity */
    font-size: 0.8rem;
    margin-top: 1rem;
}

.btn-large {
    padding: 1rem 3rem;
    background: var(--accent);
    color: #000;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: 40px;
    box-shadow: 0 0 20px rgba(102, 252, 241, 0.5);
    transition: all 0.3s;
}

.btn-large:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(102, 252, 241, 0.8);
}

@media (max-width: 900px) {
    .glass-header {
        left: 0;
        width: 100%;
        /* Removing 100vw ensures no overflow scroll bug */
        box-sizing: border-box;
        padding: 1rem 1.5rem;
    }

    .header-container {
        display: flex;
    }

    nav {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 70vw;
        max-width: 300px;
        background: rgba(13, 11, 10, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-left: 1px solid var(--glass-border);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        z-index: 99;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    nav.nav-active {
        right: 0;
    }

    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 98;
        /* Just below the nav */
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
    }

    .menu-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    nav ul {
        flex-direction: column;
        gap: 2.5rem;
    }

    nav ul li a:not(.btn-cta) {
        font-size: 1.5rem;
    }

    /* Hide the desktop logo inside the UL when on mobile */
    nav ul li:first-child {
        display: none;
    }

    .hero-content {
        transform: translateY(0);
    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    .text-group {
        left: 0;
        width: 100%;
        top: 10%;
        height: 40vh;
        /* Giving explicit height so flexbox can center the absolute children correctly */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .text-block {
        width: 100%;
        max-width: 100%;
        padding: 0 1.5rem;
        margin-top: 0;
    }

    .text-block h2 {
        font-size: 2rem;
    }

    .text-block p {
        font-size: 1rem;
        padding: 0.8rem 1rem;
    }

    .image-group {
        left: 0;
        right: auto;
        width: 100%;
        top: 50%;
        bottom: auto;
        height: 40vh;
        /* Consistent explicit height for centering */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .product-img {
        max-height: 40vh;
        max-width: 90vw;
    }
}

.flyers-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 0;
    /* Keep it above the body background */
    pointer-events: none;
}

.flyer-img {
    position: absolute;
    max-width: 50vw;
    max-height: 20vh;
    object-fit: contain;
    opacity: 0.25;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

/* --- Ueber Uns Page Styles --- */
.ueberuns-hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Dark gradient overlay to ensure text is readable over the image */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('src/images/slider-header-4.jpg') center/cover no-repeat;
    margin-bottom: 2rem;
}

.ueberuns-hero h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    color: var(--text-light);
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
    padding-top: 4rem;
    /* Offset for header */
}

/* --- Kundenfotos Page Styles --- */
.kundenfotos-hero {
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.kundenfotos-hero h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    color: var(--text-light);
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    object-fit: contain;
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-info {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--text-light);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease 0.2s, transform 0.3s ease 0.2s;
}

.lightbox.active .lightbox-info {
    opacity: 1;
    transform: translateY(0);
}

.lightbox-info h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.lightbox-info p {
    font-size: 1.2rem;
    color: #ccc;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--accent);
}

/* TCG Grid Layout */
.kundenfotos-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 2rem 150px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem 3rem;
    /* Extra gap so flyers shine through */
}

@media (max-width: 1024px) {
    .kundenfotos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .kundenfotos-grid {
        grid-template-columns: 1fr;
    }
}

/* TCG Card Style (4:5 Aspect Ratio) */
.tcg-card {
    width: 100%;
    aspect-ratio: 1 / 1.4;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    /* Typical card corner radius */
    position: relative;
    transform-origin: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    transition: border-color 0.3s, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    overflow: hidden;
    /* Reset inline transform if any, default to straight */
    transform: rotate(0deg);
}

.tcg-card:hover {
    /* Tilt using dynamic CSS variable passed from JS */
    transform: translateY(-15px) scale(1.05) rotate(var(--hover-tilt, 5deg)) !important;
    z-index: 10;
}

.tcg-card>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* TCG Overlay (Holographic / TCG Frame Placeholder) */
.tcg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* This is your placeholder! Just replace the placeholder image when you have the TCG frame ready */
    background-image: url('src/images/tcg-overlay-placeholder.png');
    background-size: cover;
    background-position: center;
    pointer-events: none;
    /* Let clicks pass through */
    z-index: 5;
    background-color: rgba(255, 255, 255, 0.1);
    /* Temporary visual indicator for the overlay */
    border-radius: 15px;
}

/* Info Block permanently visible */
.tcg-card .info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 100%);
    text-align: left;
    opacity: 1;
    /* Changed from 0 to 1 so text is always visible */
    pointer-events: none;
    z-index: 6;
    /* Above the overlay so text is readable */
}

.tcg-card .info h3 {
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: 1.5rem;
}

.tcg-card .info p {
    font-size: 1rem;
    margin: 0;
    color: #ccc;
}

.btn-gallery-add {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent);
    text-decoration: none;
}