/* --- BEERESCAPE LANDINGPAGE STYLESHEET (HYBRID DESIGN) --- */
/* Designed by Multopia IT-Solutions */

/* @import moved to non-render-blocking <link rel="preload"> in index.html (P-10) */

:root {
    /* Farbpalette - Casino Schwarz & Weiß */
    --bg-obsidian: #000000;
    --bg-surface: rgba(14, 14, 16, 0.95);
    --bg-control: rgba(26, 26, 30, 0.9);
    
    /* Akzente - Casino Gold & Bernstein */
    --beer-gold: #d4a359;
    --beer-gold-rgb: 212, 163, 89;
    --amber-glow: #b8863b;
    --amber-glow-rgb: 184, 134, 59;
    --system-red: #ff453a;
    --system-green: #30d158;
    
    /* Typografie & Rahmen */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.75);
    --text-muted: rgba(255, 255, 255, 0.5);
    --text-tertiary: rgba(255, 255, 255, 0.3);
    
    --font-headings: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Globales */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
    background: linear-gradient(-45deg, #000000, #040406, #100b05, #000000);
    background-size: 400% 400%;
    animation: gradientFlow 20s ease infinite;
    color: var(--text-primary);
}

h1, h2, h3, h4 {
    font-family: var(--font-headings);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--text-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-obsidian);
}
::-webkit-scrollbar-thumb {
    background: rgba(var(--beer-gold-rgb), 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--beer-gold-rgb), 0.5);
}

/* Layout Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* Navigation (Dunkel, passend zur App-Kopfzeile) */
.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.header-nav.scrolled {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px; /* Kompaktere Kopfzeile ohne Logo-Bild */
    transition: var(--transition-smooth);
}

.header-nav.scrolled .nav-container {
    height: 60px; /* Verkleinert sich beim Scrollen elegant */
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    line-height: 1.1;
    text-decoration: none;
}

.brand-logo img {
    height: 72px; /* Viel größeres Logo wie in der App */
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    transition: var(--transition-smooth);
}

.header-nav.scrolled .brand-logo img {
    height: 52px; /* Skaliert beim Scrollen mit */
}

.brand-logo span {
    font-family: var(--font-headings);
    font-weight: 800;
    font-size: 1.65rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff 0%, var(--beer-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-link:hover {
    color: var(--beer-gold);
}

/* Larger CTAs with more micro-interactions */
.btn-cta {
    background: linear-gradient(135deg, var(--beer-gold) 0%, var(--amber-glow) 100%);
    color: #000000 !important;
    padding: 14px 36px;
    border-radius: 99px;
    font-family: var(--font-headings);
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 6px 22px rgba(var(--beer-gold-rgb), 0.4);
    border: none;
    transition: var(--transition-smooth);
}

.btn-cta:hover {
    transform: translateY(-2.5px) scale(1.03);
    box-shadow: 0 10px 28px rgba(var(--beer-gold-rgb), 0.65), 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Minimalist Header Navigation Overrides */
.header-nav.minimal-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 80px);
    max-width: 1400px;
    border-radius: 99px;
    border: 1.5px solid rgba(var(--beer-gold-rgb), 0.35); /* Standout golden border */
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.85), 0 0 25px rgba(var(--beer-gold-rgb), 0.15); /* Modern deep glow shadow */
    background: rgba(8, 8, 10, 0.88); /* Standout opacity */
    backdrop-filter: blur(24px); /* Increased blur */
    -webkit-backdrop-filter: blur(24px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.header-nav.minimal-nav.scrolled {
    background: rgba(4, 4, 6, 0.96);
    border-color: rgba(var(--beer-gold-rgb), 0.6);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.95), 0 0 35px rgba(var(--beer-gold-rgb), 0.2);
}

.header-nav.minimal-nav .nav-container-wide {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    height: 72px;
    transition: var(--transition-smooth);
}

.header-nav.minimal-nav.scrolled .nav-container-wide {
    height: 58px;
}

/* Hide on scroll down, show on scroll up */
.header-nav.minimal-nav.header-hidden {
    transform: translate(-50%, -150%);
}

/* Brand wrapper & Powered by Multopia Badge */
.brand-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0;
    margin-bottom: 6px; /* Perfect bottom vertical alignment for badge with buttons */
}

@keyframes badgeBreath {
    0%, 100% { 
        border-color: rgba(255, 255, 255, 0.2); 
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
        transform: scale(1);
    }
    50% { 
        border-color: rgba(255, 255, 255, 0.35); 
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
        transform: scale(1.02);
    }
}

.powered-by-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.15); /* Slightly brighter glass background */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25); /* Sleek pill border */
    border-radius: 99px;
    padding: 2.5px 8px 2.5px 4px;
    text-decoration: none;
    transition: var(--transition-smooth);
    margin-left: 2px;
    margin-top: 5px; /* Spaced out slightly from the text above */
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    animation: badgeBreath 4s ease-in-out infinite;
}

.powered-by-badge:hover {
    transform: translateY(-1px) scale(1.04); /* Lift and scale on hover */
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(var(--beer-gold-rgb), 0.5);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), 0 0 8px rgba(var(--beer-gold-rgb), 0.15);
}

/* Multopia Logo (echtes PNG) */
.multopia-badge-logo {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 2px;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
    transition: var(--transition-smooth);
}

.powered-by-badge:hover .multopia-badge-logo {
    filter: drop-shadow(0 0 6px rgba(var(--beer-gold-rgb), 0.6));
    transform: scale(1.08);
}

/* Badge text */
.badge-text {
    font-family: var(--font-body);
    font-size: 0.55rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.65);
    transition: color var(--transition-smooth);
}

.badge-text strong {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    transition: color var(--transition-smooth);
}

.powered-by-badge:hover .badge-text {
    color: rgba(255, 255, 255, 0.85);
}

.powered-by-badge:hover .badge-text strong {
    color: var(--beer-gold);
}

.nav-link-minimal {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    border-bottom: 1.5px solid transparent;
    padding: 4px 0;
    transition: var(--transition-smooth);
}

.nav-link-minimal:hover {
    color: var(--beer-gold);
    border-color: var(--beer-gold);
}

.btn-cta-minimal {
    background: none;
    border: 1.8px solid var(--beer-gold);
    color: var(--beer-gold) !important;
    padding: 11px 28px;
    border-radius: 99px;
    font-family: var(--font-headings);
    font-weight: 800;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: var(--transition-smooth);
}

.btn-cta-minimal:hover {
    background: var(--beer-gold);
    color: #000000 !important;
    box-shadow: 0 8px 22px rgba(var(--beer-gold-rgb), 0.45);
    transform: translateY(-2px) scale(1.02);
}

/* Burger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #ffffff;
    transition: var(--transition-smooth);
}

/* --- SEKTIONEN-FARBSCHEMA (DARK CASINO DESIGN) --- */

.dark-section, .light-section, .light-section-alt {
    background-color: transparent; /* Flowing background gradient mesh flows through */
    color: var(--text-primary);
    position: relative;
    overflow: hidden; /* Verhindert horizontales Scrollen durch dekorative Hintergrundkarten */
    transform-style: preserve-3d;
    perspective: 1200px;
}

.light-section-alt {
    background-color: transparent;
    border-top: none;
    border-bottom: none;
}

/* Hero Section (Dunkel, Immersiv) */
.hero-section {
    padding-top: 180px;
    padding-bottom: 100px;
    background: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}

.hero-header-block {
    grid-column: 1;
    grid-row: 1;
}

.hero-text-block {
    grid-column: 1;
    grid-row: 2;
}

.hero-visual {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(var(--beer-gold-rgb), 0.12);
    border: 1.5px solid rgba(var(--beer-gold-rgb), 0.35);
    padding: 6px 18px;
    border-radius: 99px;
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--beer-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.4rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-title span {
    color: var(--beer-gold);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 550px;
}

/* Install Warning Highlight Banner - Gold & Modern */
.install-badge-info {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(var(--beer-gold-rgb), 0.06);
    border: 1px solid rgba(var(--beer-gold-rgb), 0.25);
    color: var(--beer-gold);
    padding: 16px 20px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 32px;
    max-width: 580px;
    line-height: 1.45;
}

.install-badge-info svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    padding: 14px 36px;
    border-radius: 99px;
    font-family: var(--font-headings);
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: 1.8px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2.5px) scale(1.03);
}

/* Minimalist Hero Section Overrides */
.hero-section.minimal-hero {
    padding-top: 150px;
    padding-bottom: 80px;
}

.hero-title-minimal {
    font-size: 3.1rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.hero-title-minimal span {
    color: var(--beer-gold);
}

.hero-desc-minimal {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-actions-minimal {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-secondary-minimal {
    background: none;
    color: #ffffff;
    padding: 11px 28px;
    border-radius: 99px;
    font-family: var(--font-headings);
    font-weight: 800;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: 1.8px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
}

.btn-secondary-minimal:hover {
    border-color: var(--beer-gold);
    color: var(--beer-gold);
    background: rgba(var(--beer-gold-rgb), 0.08);
    transform: translateY(-2px) scale(1.02);
}

/* --- CENTERED CARD STACK & SHUFFLE SYSTEM --- */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.landing-felt-coaster {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 380px;
    perspective: 1200px;
}

.card-stack-container {
    position: relative;
    width: 275px;
    height: 385px; /* Poker-Verhältnis 1:1.4 */
    cursor: pointer;
    transform-style: preserve-3d;
    transform: rotateX(45deg) rotateY(-4deg) rotateZ(-12deg);
    /* Transition is omitted for transform to enable instant fluid physics-based mouse tilt updates */
    border-radius: 14px;
}

.card-stack-container:hover {
    transform: rotateX(37deg) rotateY(-2deg) rotateZ(-9deg) scale(1.04);
}

.luxury-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('images/card.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    transition: transform 1.2s cubic-bezier(0.25, 0.8, 0.25, 1.0), box-shadow 1.2s ease-in-out;
    transform-style: preserve-3d;
    will-change: transform;
    filter: none !important;
    box-shadow: none !important;
}

/* Realistic 3D card shadow element */
.luxury-card .card-shadow {
    position: absolute;
    inset: 4px;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 14px;
    filter: blur(6px);
    transform: translateZ(-8px) scale(0.98);
    transition: transform 1.2s cubic-bezier(0.25, 0.8, 0.25, 1.0), 
                opacity 1.2s ease-in-out, 
                filter 1.2s ease-in-out;
    pointer-events: none;
    opacity: 0.65;
    z-index: -1;
}

/* Shadow when card is shuffling out */
.luxury-card.shuffling .card-shadow {
    transform: translate3d(-35px, 20px, -85px) scale(0.92);
    filter: blur(20px);
    opacity: 0.35;
}

/* Shadow when card is flipped and floating high */
.luxury-card.flipped .card-shadow {
    transform: translate3d(30px, 40px, 135px) scale(0.9);
    filter: blur(30px);
    opacity: 0.28;
}

/* Top card layout */
.luxury-card.card-1 {
    transform: translateZ(44px) translateX(0px) translateY(0px) rotate(0deg);
    opacity: 1.0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45) !important;
}

.luxury-card.card-1.flipped {
    transform: translate3d(0, -150px, 140px) rotateX(-10deg) scale(1.05) !important;
    box-shadow: 0 35px 50px rgba(0, 0, 0, 0.75) !important;
    z-index: 200 !important;
}

/* Shuffle animation triggered by JS script */
.card-stack-container.shuffle-active .luxury-card:not(.card-1) {
    animation: stackWiggle 0.5s ease-in-out;
}

.card-stack-container.shuffle-active #demoCard {
    animation: topCardShuffle 0.5s ease-in-out forwards;
}

.card-stack-container.shuffle-active {
    animation: stackLiftCycleLanding 0.5s ease-in-out;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5) !important;
}

@keyframes stackWiggle {
    0%, 100% { margin: 0; }
    25% { margin-left: -5px; margin-top: 3px; }
    75% { margin-left: 5px; margin-top: -3px; }
}

@keyframes topCardShuffle {
    0% {
        transform: translate3d(0, 0, 44px) rotate(0deg);
        z-index: 200;
    }
    40% {
        transform: translate3d(160px, -30px, 80px) rotate(12deg);
        z-index: 200;
    }
    70% {
        transform: translate3d(160px, -30px, -10px) rotate(12deg);
        z-index: 1;
    }
    100% {
        transform: translate3d(0, 0, 44px) rotate(0deg);
        z-index: 100;
    }
}

/* --- CARD TRANSFORMATION & INSIDES (FLIP-INNER) --- */
.flip-container {
    perspective: 1200px;
    background: none !important;
    background-image: none !important;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.flip-container.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-back, .flip-card-front {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 14px;
    overflow: hidden;
}

.flip-card-back {
    background-image: url('images/card.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.flip-card-front {
    transform: rotateY(180deg);
    background-image: url('images/card_no_logo.png?v=3');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    border: 1.5px solid rgba(var(--beer-gold-rgb), 0.35);
    border-radius: 14px;
    padding: 24px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.8), 0 10px 30px rgba(0, 0, 0, 0.6);
}

.flip-card-front::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(var(--beer-gold-rgb), 0.16);
    border-radius: 8px;
    pointer-events: none;
    z-index: 1;
}

.task-header-type {
    position: relative;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 2.5px;
    color: var(--beer-gold);
    text-transform: uppercase;
    margin-top: 4px;
    margin-bottom: 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.flip-card-front .task-title {
    position: relative;
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    margin: 6px 0;
    text-align: center;
    line-height: 1.3;
    word-break: break-word;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.8), 0 -0.5px 0 rgba(255, 255, 255, 0.15);
    letter-spacing: 0.5px;
    z-index: 2;
}

.flip-card-front .card-separator {
    position: relative;
    width: 60px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--beer-gold), transparent);
    margin: 6px auto;
    z-index: 2;
}

.task-description-scroll {
    position: relative;
    flex: 1;
    width: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    margin: 6px 0;
    padding-right: 4px;
    z-index: 2;
}

.task-description-scroll::-webkit-scrollbar {
    width: 4px;
}
.task-description-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 2px;
}
.task-description-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

.flip-card-front .task-description {
    font-size: 0.82rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
    margin: auto 0;
    text-align: center;
    font-weight: 500;
    word-break: break-word;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.2px;
}

/* --- KEYFRAMES FROM THE APP --- */
@keyframes containerShuffle {
    0%, 100% { transform: rotateX(45deg) rotateY(-4deg) rotateZ(-12deg); }
    25% { transform: rotateX(41deg) rotateY(-1deg) rotateZ(-17deg) scale(1.02); }
    50% { transform: rotateX(49deg) rotateY(-7deg) rotateZ(-7deg) scale(0.97); }
    75% { transform: rotateX(43deg) rotateY(-3deg) rotateZ(-15deg) scale(1.01); }
}

.card-stack-container.shuffle-active {
    animation: containerShuffle 0.8s ease-in-out;
}

@keyframes stackLiftCycleLanding {
    0%, 50% {
        transform: rotateX(40deg) rotateY(-8deg) rotateZ(-12deg) translateZ(0);
    }
    75% {
        transform: rotateX(32deg) rotateY(-16deg) rotateZ(-18deg) translateZ(16px);
    }
    85% {
        transform: rotateX(40deg) rotateY(-8deg) rotateZ(-12deg) translateZ(-3px);
    }
    92% {
        transform: rotateX(38deg) rotateY(-7deg) rotateZ(-11deg) translateZ(2px);
    }
    100% {
        transform: rotateX(40deg) rotateY(-8deg) rotateZ(-12deg) translateZ(0);
    }
}

/* Inline Card illustrations */
.flip-card-front .fact-illustration {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 8px auto !important;
    width: 100% !important;
    max-width: 220px !important;
    height: 100px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    pointer-events: none !important;
}

.flip-card-front .svg-illu {
    max-height: 100% !important;
    width: auto !important;
    overflow: visible !important;
}

@keyframes gentleLogoPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
    }
    50% {
        transform: scale(1.03);
        filter: drop-shadow(0 8px 22px rgba(var(--beer-gold-rgb), 0.35));
    }
}

/* --- HELDEN-LOGO (RIESEN-VERSION) --- */
.hero-logo-large {
    margin-bottom: 28px;
    display: flex;
    justify-content: flex-start;
}

.hero-logo-large img {
    max-width: 380px; /* Extrem großes pulsierendes Logo */
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 30px rgba(var(--beer-gold-rgb), 0.28));
    animation: gentleLogoPulse 4s ease-in-out infinite;
}

/* --- AMBIENT HINTERGRUND-TIEFE (3D DEEP CANVAS LAYER) --- */
#particlesCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background: transparent;
    transform: translateZ(-60px) scale(1.05); /* Pushed back in 3D space as a layer below */
    transform-style: preserve-3d;
}

/* Elevate Hero content subtly to float in a layer above the background */
.hero-header-block, .hero-text-block, .hero-visual {
    transform: translateZ(20px);
    transform-style: preserve-3d;
}

@media (max-width: 900px) {
    .hero-logo-large {
        justify-content: center;
    }
    .hero-logo-large img {
        max-width: 250px;
    }
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 56px auto;
}

.section-subtitle {
    color: var(--beer-gold);
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: rgba(14, 14, 16, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 40px 32px;
    border-radius: 16px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--beer-gold-rgb), 0.35);
    background: rgba(26, 26, 30, 0.5);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(var(--beer-gold-rgb), 0.05);
}

.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(var(--beer-gold-rgb), 0.08);
    border: 1.5px solid rgba(var(--beer-gold-rgb), 0.25);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--beer-gold);
}

.feature-icon-wrapper svg {
    width: 22px;
    height: 22px;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Fakten-Sektion (Task Generation Info) */
.facts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.fact-item {
    display: flex;
    gap: 24px;
    background: rgba(14, 14, 16, 0.4);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.fact-item:hover {
    border-color: rgba(var(--beer-gold-rgb), 0.2);
}

.fact-number {
    font-family: var(--font-headings);
    font-weight: 300; /* Dünnere Ziffern */
    font-size: 2.8rem;
    color: var(--beer-gold);
    line-height: 1;
}

.fact-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.fact-content p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Spielmodi Section */
.modes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.mode-panel {
    background: rgba(14, 14, 16, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: var(--transition-smooth);
}

.mode-panel:hover {
    border-color: rgba(var(--beer-gold-rgb), 0.3);
    background: rgba(26, 26, 30, 0.5);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.mode-tag {
    align-self: flex-start;
    padding: 4px 14px;
    border-radius: 99px;
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.mode-panel.digital .mode-tag {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--text-secondary);
}

.mode-panel.hybrid .mode-tag {
    background: rgba(var(--beer-gold-rgb), 0.08);
    border: 1px solid var(--beer-gold);
    color: var(--beer-gold);
}

.mode-panel h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
}

.mode-panel p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

.mode-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mode-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.mode-list-item svg {
    width: 18px;
    height: 18px;
    color: var(--beer-gold);
    flex-shrink: 0;
}

/* Schnellstart */
.flow-illustration {
    background: rgba(14, 14, 16, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 48px;
}

.flow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.flow-step {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.flow-step-num {
    width: 38px;
    height: 38px;
    background: rgba(var(--beer-gold-rgb), 0.12);
    border: 1.5px solid var(--beer-gold);
    border-radius: 50%;
    color: var(--beer-gold);
    font-family: var(--font-headings);
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.flow-step h4 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.flow-step p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 240px;
    line-height: 1.5;
}

.flow-step-vector {
    width: 64px;
    height: 64px;
    color: var(--beer-gold);
    margin-bottom: 4px;
}

/* Loslegen CTA (Dunkel, passend zur App-Struktur) */
.cta-banner {
    background: linear-gradient(135deg, #0e0e10 0%, #000000 100%);
    border: 1px solid rgba(var(--beer-gold-rgb), 0.25);
    border-radius: 20px;
    padding: 64px 24px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.cta-banner h2 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.cta-banner p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 580px;
    margin: 0 auto 36px auto;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Globaler Footer (Originalgetreu aus der Web-App importiert) */
.minimal-footer {
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 24px 0;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border-top: none;
    background: transparent;
}

.minimal-footer a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.minimal-footer a:hover {
    color: var(--beer-gold);
}

.footer-copyright {
    display: block;
}

.footer-links {
    font-size: 0.75rem;
    opacity: 0.75;
    display: flex;
    gap: 8px;
}

.footer-links a {
    color: var(--beer-gold) !important;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-separator {
    margin: 0 6px;
    color: rgba(255, 255, 255, 0.25);
}

/* Responsive Queries */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
    .features-grid > :last-child {
        grid-column: span 2;
    }
    .facts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-nav {
        padding: 0;
    }
    .nav-container {
        height: 76px;
    }
    .brand-logo img {
        height: 44px;
    }
    .menu-toggle {
        display: flex;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 76px;
        left: 0;
        width: 100%;
        background: #000000;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        padding: 24px 0;
        gap: 20px;
    }
    .nav-links.active {
        display: flex;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    .hero-header-block {
        grid-column: 1;
        grid-row: 1;
    }
    .hero-visual {
        grid-column: 1;
        grid-row: 2;
        margin: 15px auto 25px auto;
        display: flex;
        justify-content: center;
        order: unset;
    }
    .hero-text-block {
        grid-column: 1;
        grid-row: 3;
    }
    .hero-description, .install-badge-info {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .features-grid > :last-child {
        grid-column: span 1;
    }
    .modes-grid {
        grid-template-columns: 1fr;
    }
    .flow-illustration {
        padding: 24px;
    }
    .flow-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .cta-banner h2 {
        font-size: 1.8rem;
    }

    /* Card stack scaling for tablets */
    .landing-felt-coaster {
        max-width: 280px;
    }
    .card-stack-container {
        width: 200px;
        height: 280px;
    }
    .demo-card-centered {
        min-height: 320px;
    }
    .demo-card-centered .card-stack-container {
        width: 220px;
        height: 308px;
    }

    /* Hero text scaling */
    .hero-title-minimal {
        font-size: 2.2rem;
    }
    .hero-desc-minimal {
        font-size: 1rem;
    }
    .hero-section.minimal-hero {
        padding-top: 110px;
        padding-bottom: 50px;
    }

    /* Prevent text overflow everywhere */
    .testphase-notice {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    /* Dramatically smaller card stack on phones */
    .landing-felt-coaster {
        max-width: 220px;
    }
    .card-stack-container {
        width: 155px;
        height: 217px;
        border-radius: 10px;
    }
    .demo-card-centered {
        min-height: 260px;
    }
    .demo-card-centered .card-stack-container {
        width: 170px;
        height: 238px;
    }
    .luxury-card {
        border-radius: 10px;
    }

    /* Scale card content text */
    .flip-card-front .task-header-type {
        font-size: 0.55rem;
        letter-spacing: 1.5px;
    }
    .flip-card-front .task-title {
        font-size: 0.85rem;
    }
    .flip-card-front .task-description {
        font-size: 0.68rem;
        line-height: 1.35;
    }
    .card-separator {
        margin: 6px auto;
        width: 35px;
    }

    /* Hero section tight fit */
    .hero-section.minimal-hero {
        padding-top: 100px;
        padding-bottom: 40px;
    }
    .hero-title-minimal {
        font-size: 1.7rem;
    }
    .hero-desc-minimal {
        font-size: 0.92rem;
    }
    .hero-logo-large img {
        height: 48px;
    }
    .hero-visual {
        margin-bottom: 0;
    }

    /* Section titles on small screens */
    .section-title {
        font-size: 1.4rem;
    }
    .section-subtitle {
        font-size: 0.7rem;
    }
    .section-desc {
        font-size: 0.85rem !important;
    }

    /* Prevent long words from breaking layout */
    .hero-header-block,
    .hero-text-block,
    .section-header,
    .feature-card,
    .concept-card,
    .lobby-panel,
    .security-card {
        overflow-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
    }

    /* CTA banner */
    .cta-banner h2 {
        font-size: 1.35rem;
    }
    .cta-banner p {
        font-size: 0.85rem;
    }
}

/* --- DYNAMIC INTERACTIVE SIMULATOR (DEMO SECTION) --- */
.demo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-top: 40px;
}

.lobby-panel {
    background: rgba(14, 14, 16, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 36px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.lobby-panel h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    border-bottom: 1.5px solid rgba(var(--beer-gold-rgb), 0.15);
    padding-bottom: 12px;
}

.spezi-avatars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 12px 0;
}

.spezi-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
    cursor: default;
}

.avatar-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(26, 26, 30, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-family: var(--font-headings);
    font-weight: 800;
    font-size: 1.3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    position: relative;
}

.avatar-name {
    font-family: var(--font-headings);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.spezi-avatar.active .avatar-circle {
    border-color: var(--beer-gold);
    background: rgba(var(--beer-gold-rgb), 0.15);
    transform: scale(1.1);
    box-shadow: 0 0 16px rgba(var(--beer-gold-rgb), 0.45);
    animation: avatarPulse 2s infinite ease-in-out;
}

.spezi-avatar.active .avatar-name {
    color: var(--beer-gold);
    font-weight: 800;
    transform: scale(1.05);
}

.spezi-avatar.inactive {
    opacity: 0.35;
    transform: scale(0.92);
}

@keyframes avatarPulse {
    0%, 100% {
        box-shadow: 0 0 12px rgba(var(--beer-gold-rgb), 0.4);
    }
    50% {
        box-shadow: 0 0 24px rgba(var(--beer-gold-rgb), 0.7);
        border-color: #ffffff;
    }
}

.demo-roll-btn {
    width: 100%;
    cursor: pointer;
    padding: 16px;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
}

.demo-roll-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--beer-gold-rgb), 0.5);
}

.demo-card-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

/* --- CARD CATEGORIES GLOW EFFECTS --- */
.mode-battle .flip-card-front {
    border-color: var(--amber-glow);
    box-shadow: inset 0 0 20px rgba(var(--amber-glow-rgb), 0.25), 0 10px 30px rgba(0, 0, 0, 0.6);
}
.mode-battle .task-header-type {
    color: var(--amber-glow);
}

.mode-challenge .flip-card-front {
    border-color: var(--beer-gold);
    box-shadow: inset 0 0 20px rgba(var(--beer-gold-rgb), 0.25), 0 10px 30px rgba(0, 0, 0, 0.6);
}
.mode-challenge .task-header-type {
    color: var(--beer-gold);
}

.mode-trap .flip-card-front {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.1), 0 10px 30px rgba(0, 0, 0, 0.6);
}
.mode-trap .task-header-type {
    color: rgba(255, 255, 255, 0.7);
}

.mode-bonus .flip-card-front {
    border-color: #ffffff;
    box-shadow: inset 0 0 25px rgba(var(--beer-gold-rgb), 0.35), 0 10px 30px rgba(0, 0, 0, 0.6);
}
.mode-bonus .task-header-type {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(var(--beer-gold-rgb), 0.6);
}

/* --- STATS SECTION STYLING --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-card {
    background: rgba(14, 14, 16, 0.45);
    border: 1px solid rgba(var(--beer-gold-rgb), 0.15);
    padding: 32px 20px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    transform-style: preserve-3d;
}

.stat-card:hover {
    transform: translate3d(0, -8px, 15px) rotateX(4deg);
    border-color: rgba(var(--beer-gold-rgb), 0.5);
    background: rgba(26, 26, 30, 0.6);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 15px rgba(var(--beer-gold-rgb), 0.15);
}

.stat-visual-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stat-progress-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-bg {
    fill: none;
    stroke: rgba(var(--beer-gold-rgb), 0.08);
    stroke-width: 5px;
}

.progress-bar {
    fill: none;
    stroke: var(--beer-gold);
    stroke-width: 5px;
    stroke-linecap: round;
    stroke-dasharray: 314.15;
    stroke-dashoffset: 314.15;
    filter: drop-shadow(0 0 5px rgba(var(--beer-gold-rgb), 0.8));
    transition: stroke-dashoffset 0.1s linear;
}

.stat-num {
    font-family: var(--font-headings);
    font-size: 1.6rem; /* Good size to fit inside the circle loading ring */
    font-weight: 900;
    color: var(--beer-gold);
    display: block;
    line-height: 1;
    margin: 0;
    background: linear-gradient(135deg, #ffffff 0%, var(--beer-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 2;
}

.stat-label {
    font-family: var(--font-headings);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: block;
    margin-bottom: 12px;
}

.stat-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* --- ANIMATED SVG MECHANISM ILLUSTRATIONS --- */
.fact-illustration {
    width: 100%;
    max-width: 290px;
    margin: 20px auto 0 auto;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 12px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}

.svg-illu {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

/* General illustration styling */
.illu-box {
    fill: rgba(26, 26, 30, 0.8);
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 1.5px;
}

.illu-text {
    fill: var(--text-secondary);
    font-size: 10px;
    font-family: var(--font-body);
    font-weight: 600;
}

.illu-text-sm {
    fill: var(--text-secondary);
    font-size: 9px;
    font-family: var(--font-body);
    font-weight: 500;
}

.illu-line {
    fill: none;
    stroke: rgba(var(--beer-gold-rgb), 0.25);
    stroke-width: 1.5px;
    stroke-dasharray: 4 4;
}

.illu-card-border {
    fill: none;
    stroke: rgba(var(--beer-gold-rgb), 0.35);
    stroke-width: 1.5px;
}

.illu-card-bg {
    fill: #0c0c10;
}

.illu-card-header {
    fill: var(--beer-gold);
    font-size: 7px;
    font-family: var(--font-headings);
    font-weight: 800;
    letter-spacing: 1px;
}

.illu-card-body {
    fill: #ffffff;
    font-size: 8px;
    font-family: var(--font-body);
    font-weight: 500;
}

.highlight-name {
    fill: var(--beer-gold);
    font-weight: 700;
}

/* Specific SVG animations */

/* 1. Personalized tasks */
#illuPersonalized .illu-arrows path {
    stroke-dasharray: 6 6;
    animation: flowLine 2s linear infinite;
}

@keyframes flowLine {
    to {
        stroke-dashoffset: -12;
    }
}

#illuPersonalized .highlight-name {
    animation: pulseHighlight 2s infinite ease-in-out;
}

@keyframes pulseHighlight {
    0%, 100% { fill: var(--beer-gold); opacity: 1; }
    50% { fill: #ffffff; opacity: 0.8; }
}

/* 2. Shop Expansion Packages */
#illuShopPackages .package-base {
    fill: rgba(var(--beer-gold-rgb), 0.1);
    stroke: var(--beer-gold);
    stroke-width: 1.5px;
}

#illuShopPackages .package-left {
    fill: rgba(var(--beer-gold-rgb), 0.05);
    stroke: var(--beer-gold);
    stroke-width: 1.5px;
    opacity: 0.8;
}

#illuShopPackages .package-right {
    fill: rgba(var(--beer-gold-rgb), 0.15);
    stroke: var(--beer-gold);
    stroke-width: 1.5px;
    opacity: 0.9;
}

#illuShopPackages .package-lid-left,
#illuShopPackages .package-lid-right {
    fill: rgba(var(--beer-gold-rgb), 0.08);
    stroke: var(--beer-gold);
    stroke-width: 1.2px;
    opacity: 0.75;
}

#illuShopPackages .shop-card-rect {
    fill: #0c0c10;
    stroke: var(--beer-gold);
    stroke-width: 1.5px;
}

#illuShopPackages .extreme-bg {
    stroke: #ffffff;
    fill: rgba(255, 255, 255, 0.05);
}

#illuShopPackages .versaut-bg {
    stroke: var(--beer-gold);
    fill: rgba(var(--beer-gold-rgb), 0.08);
}

#illuShopPackages .shop-card-text {
    fill: #ffffff;
    font-size: 7.5px;
    font-family: var(--font-headings);
    font-weight: 800;
}

#illuShopPackages .extreme-bg + .shop-card-text {
    fill: #ffffff;
}

#illuShopPackages .versaut-bg + .shop-card-text {
    fill: var(--beer-gold);
}

#illuShopPackages .card-extreme {
    transform: translate(65px, 20px) rotate(-15deg);
    animation: floatPackageCard1 3s infinite ease-in-out;
}

#illuShopPackages .card-versaut {
    transform: translate(170px, 15px) rotate(15deg);
    animation: floatPackageCard2 3.5s infinite ease-in-out;
}

@keyframes floatPackageCard1 {
    0%, 100% { transform: translate(65px, 20px) rotate(-15deg); }
    50% { transform: translate(65px, 14px) rotate(-12deg); }
}

@keyframes floatPackageCard2 {
    0%, 100% { transform: translate(170px, 15px) rotate(15deg); }
    50% { transform: translate(170px, 8px) rotate(12deg); }
}

/* 3. Seed sync mixing */
#illuSeedSync .illu-phone-border {
    fill: none;
    stroke: rgba(255, 255, 255, 0.15);
    stroke-width: 2px;
}

#illuSeedSync .illu-phone-screen {
    fill: #000000;
}

#illuSeedSync .phone-card {
    fill: none;
    stroke-width: 1.5px;
    border-radius: 4px;
}

#illuSeedSync .phone-card.c-back {
    stroke: rgba(255, 255, 255, 0.08);
    fill: rgba(255, 255, 255, 0.02);
}

#illuSeedSync .phone-card.c-front {
    stroke: var(--beer-gold);
    fill: rgba(var(--beer-gold-rgb), 0.06);
    animation: cardMishMosh 2s infinite ease-in-out;
}

@keyframes cardMishMosh {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(4deg); }
}

#illuSeedSync .seed-node-bg {
    fill: rgba(var(--beer-gold-rgb), 0.08);
    stroke: var(--beer-gold);
    stroke-width: 1.5px;
}

#illuSeedSync .seed-label {
    fill: var(--text-muted);
    font-size: 6px;
    font-family: var(--font-headings);
    font-weight: 700;
    text-anchor: middle;
}

#illuSeedSync .seed-value {
    fill: var(--beer-gold);
    font-size: 8px;
    font-family: var(--font-headings);
    font-weight: 800;
    text-anchor: middle;
}

#illuSeedSync .sync-link {
    fill: none;
    stroke: var(--beer-gold);
    stroke-width: 1.5px;
    stroke-dasharray: 3 3;
    animation: flowLine 2s linear infinite;
}

/* 4. Turn manager */
#illuTurnManager .timeline-line {
    fill: none;
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 2px;
}

#illuTurnManager .player-circle {
    fill: rgba(26, 26, 30, 0.9);
    stroke: rgba(255, 255, 255, 0.15);
    stroke-width: 1.5px;
    transition: var(--transition-smooth);
}

#illuTurnManager .player-text {
    fill: #ffffff;
    font-size: 9px;
    font-family: var(--font-headings);
    font-weight: 800;
    text-anchor: middle;
}

#illuTurnManager .player-status {
    fill: var(--text-muted);
    font-size: 8px;
    font-family: var(--font-body);
    text-anchor: middle;
}

#illuTurnManager .circle-active {
    stroke: var(--beer-gold);
    fill: rgba(var(--beer-gold-rgb), 0.08);
    animation: glowActivePlayer 1.5s infinite alternate ease-in-out;
}

@keyframes glowActivePlayer {
    from { stroke-width: 1.5px; filter: none; }
    to { stroke-width: 2.5px; filter: drop-shadow(0 0 3px var(--beer-gold)); }
}

#illuTurnManager .active-status {
    fill: var(--beer-gold);
    font-weight: 700;
}

#illuTurnManager .circle-empty {
    stroke: rgba(255, 255, 255, 0.05);
    opacity: 0.4;
}

#illuTurnManager .empty-status {
    fill: var(--system-red);
    opacity: 0.6;
}

#illuTurnManager .cross-line-player {
    stroke: var(--system-red);
    stroke-width: 1.5px;
    opacity: 0.6;
}

#illuTurnManager .turn-skip-arrow {
    fill: none;
    stroke: var(--beer-gold);
    stroke-width: 1.5px;
    stroke-dasharray: 4 4;
    animation: flowLine 2s linear infinite;
}

/* Responsive simulator and mockup additions */
.demo-card-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    margin-top: 40px;
}

.modes-grid-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: stretch;
}

.modes-list-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.phone-mockup-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.neutral-phone {
    width: 280px;
    height: 560px;
    background: #000000;
    border: 8px solid #1a1a1a;
    border-radius: 36px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(var(--beer-gold-rgb), 0.15);
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    will-change: transform;
    animation: floatPhone 8s ease-in-out infinite;
}

.neutral-phone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes floatPhone {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) rotate(1deg);
    }
}

@media (max-width: 900px) {
    .modes-grid-split {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .neutral-phone {
        width: 240px;
        height: 480px;
        margin: 20px auto 0 auto;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .demo-card-centered {
        min-height: 360px;
    }
}

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

/* --- BLOCK SPACING & SCROLL REVEAL --- */
.section {
    padding: 65px 0;
}

#liveDemo {
    padding-bottom: 20px;
}

#stats {
    padding-top: 20px;
}

@media (max-width: 768px) {
    .section {
        padding: 35px 0;
    }
    #liveDemo {
        padding-bottom: 10px;
    }
    #stats {
        padding-top: 10px;
    }
}

.reveal-on-scroll {
    opacity: 0;
    transform: translate3d(0, 45px, -35px) rotateX(10deg);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translate3d(0, 0, 20px) rotateX(0deg); /* 3D elevation of 20px above background layer */
}

/* --- INTERACTIVE CONCEPT GRID --- */
.interactive-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    perspective: 1200px;
    margin-top: 40px;
}

.concept-card-wrapper {
    position: relative;
    height: 350px;
    width: 100%;
}

.concept-card {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
}

.concept-card:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Concept Card Back Labels (showing when closed) */
.concept-card-back-label {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(var(--beer-gold-rgb), 0.3);
    border-radius: 10px;
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 85%;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    transition: var(--transition-smooth);
}

.concept-card:hover .concept-card-back-label {
    border-color: var(--beer-gold);
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 12px 28px rgba(var(--beer-gold-rgb), 0.25);
}

.concept-number {
    font-family: var(--font-headings);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--beer-gold);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.concept-name {
    font-family: var(--font-headings);
    font-size: 0.88rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

/* Confetti particles */
.sparkle-particle {
    will-change: transform, opacity;
}

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

@media (max-width: 580px) {
    .interactive-grid {
        grid-template-columns: 1fr;
    }
    .concept-card-wrapper {
        height: 260px;
    }
}

/* --- FEATURE GRID (Spielkonzept) --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.feature-tile {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(var(--beer-gold-rgb), 0.15);
    border-radius: 14px;
    padding: 28px 24px;
    text-align: center;
    transform: rotate(var(--rotation, 0deg)) translateY(0);
    transition: border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-tile:hover {
    border-color: var(--beer-gold);
    transform: rotate(0deg) translateY(-8px) scale(1.03);
    box-shadow: 0 15px 35px rgba(var(--beer-gold-rgb), 0.25), 0 0 15px rgba(255, 255, 255, 0.05);
    z-index: 10;
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: var(--beer-gold);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-tile h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: 800;
}

.feature-tile p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

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

/* --- SICHERHEITS BLOCK --- */
.security-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.security-card {
    background: rgba(14, 14, 16, 0.45);
    border: 1.5px solid rgba(var(--beer-gold-rgb), 0.15);
    padding: 40px 24px;
    border-radius: 18px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.security-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(var(--beer-gold-rgb), 0.45);
    background: rgba(26, 26, 30, 0.6);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6), 0 0 15px rgba(var(--beer-gold-rgb), 0.1);
}

.security-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(var(--beer-gold-rgb), 0.08);
    border: 1.5px solid rgba(var(--beer-gold-rgb), 0.25);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--beer-gold);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
}

.security-card:hover .security-icon-wrapper {
    transform: rotate(10deg) scale(1.1);
    background: rgba(var(--beer-gold-rgb), 0.15);
    border-color: var(--beer-gold);
    color: #ffffff;
}

.security-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
}

.security-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .security-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .header-nav.minimal-nav {
        top: 10px;
        width: calc(100% - 32px);
        border-radius: 20px;
    }
    .header-nav.minimal-nav.header-hidden {
        transform: translate(-50%, -180%);
    }
    .header-nav.minimal-nav .nav-container-wide {
        height: 64px;
        padding: 0 20px;
        display: flex;
    }
    .header-nav.minimal-nav.scrolled .nav-container-wide {
        height: 54px;
    }
}


/* --- TESTPHASE NOTICE (WEBSITE) --- */
.testphase-notice {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    background: linear-gradient(135deg, rgba(212, 163, 89, 0.08) 0%, rgba(10, 10, 12, 0.9) 100%);
    border: 1px solid rgba(212, 163, 89, 0.25);
    border-left: 4px solid var(--beer-gold);
    padding: 0.8rem 1.5rem;
    border-radius: 14px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.8rem;
    text-align: left;
    max-width: 100%;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 
                0 0 15px rgba(212, 163, 89, 0.04),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.testphase-notice:hover {
    border-color: rgba(212, 163, 89, 0.55);
    border-left-color: #ffffff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 
                0 0 25px rgba(212, 163, 89, 0.15);
    transform: translateY(-1.5px);
}

.testphase-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--beer-gold);
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.testphase-svg {
    width: 100%;
    height: 100%;
    stroke: var(--beer-gold);
    animation: rotateWiggle 4s ease-in-out infinite;
}

.testphase-text strong {
    color: var(--beer-gold);
    text-transform: uppercase;
    font-size: 0.76rem;
    letter-spacing: 1px;
    margin-right: 4px;
    background: rgba(212, 163, 89, 0.12);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(212, 163, 89, 0.2);
}

.testphase-text a {
    color: var(--beer-gold);
    text-decoration: underline;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.testphase-text a:hover {
    color: #ffffff;
}

@keyframes rotateWiggle {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(-8deg); }
    20% { transform: rotate(8deg); }
    30% { transform: rotate(-6deg); }
    40% { transform: rotate(6deg); }
    50% { transform: rotate(0deg); }
}

/* --- INTERACTIVE GAME CONCEPT GUIDELINE --- */
.guideline-container {
    background: rgba(14, 14, 16, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 40px;
    margin-top: 48px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.guideline-tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 40px;
    background: rgba(0, 0, 0, 0.25);
    padding: 8px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.guideline-tab {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 14px 10px;
    color: var(--text-secondary);
    font-family: var(--font-headings);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: var(--transition-smooth);
}

.guideline-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.02);
}

.guideline-tab.active {
    color: var(--beer-gold);
    background: rgba(var(--beer-gold-rgb), 0.08);
    border-color: rgba(var(--beer-gold-rgb), 0.2);
    box-shadow: 0 4px 15px rgba(var(--beer-gold-rgb), 0.05);
}

.guideline-tab .tab-num {
    font-size: 0.75rem;
    font-weight: 800;
    opacity: 0.5;
    letter-spacing: 0.5px;
}

.guideline-tab.active .tab-num {
    opacity: 1;
}

.guideline-tab .tab-name {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guideline-display {
    position: relative;
    min-height: 280px;
}

.guideline-content {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.guideline-content.active {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 48px;
    align-items: center;
    opacity: 1;
    transform: translateY(0);
}

.guideline-visual {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 260px;
    box-shadow: inset 0 4px 20px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.guideline-visual::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(var(--beer-gold-rgb), 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.guideline-svg {
    width: 100%;
    height: 100%;
    max-height: 180px;
    overflow: visible;
}

.guideline-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.guideline-text h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.guideline-text p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

.guideline-text strong {
    color: var(--beer-gold);
}

.internet-disclaimer {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.33;
    margin-top: 20px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* Specific SVG animations for the guidelines */
.guideline-svg rect,
.guideline-svg circle,
.guideline-svg path,
.guideline-svg line {
    vector-effect: non-scaling-stroke;
}

/* Animations for step 1 (Board/bottles) */
.guideline-content.active #step-content-1 path {
    animation: bottleSlide 3s ease-in-out infinite alternate;
}
@keyframes bottleSlide {
    0% { transform: translateY(0); }
    100% { transform: translateY(-5px); }
}

/* Animations for step 2 (Phone sync) */
.guideline-content.active #step-content-2 line {
    animation: phonePulseLines 2s ease-in-out infinite;
}
@keyframes phonePulseLines {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; stroke: var(--beer-gold); }
}

/* Animations for step 3 (Mugs clinking) */
.guideline-content.active #step-content-3 path:nth-child(1) {
    animation: mugTiltLeft 1.5s ease-in-out infinite alternate;
}
.guideline-content.active #step-content-3 path:nth-child(3) {
    animation: mugTiltRight 1.5s ease-in-out infinite alternate;
}
@keyframes mugTiltLeft {
    0% { transform: rotate(0deg); transform-origin: 77px 140px; }
    100% { transform: rotate(-5deg); transform-origin: 77px 140px; }
}
@keyframes mugTiltRight {
    0% { transform: rotate(0deg); transform-origin: 122px 140px; }
    100% { transform: rotate(5deg); transform-origin: 122px 140px; }
}

/* Responsive Guideline Rules */
@media (max-width: 991px) {
    .guideline-container {
        padding: 30px;
    }
    .guideline-tabs {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .guideline-tabs {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .guideline-content.active {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .guideline-visual {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .guideline-tabs {
        grid-template-columns: 1fr;
    }
    .guideline-container {
        padding: 20px;
    }
}

/* --- GLOBAL MOBILE OVERFLOW PROTECTION --- */
@media (max-width: 768px) {

    .testphase-notice {
        font-size: 0.8rem;
        padding: 0.65rem 1.2rem;
        border-left-width: 3px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 360px) {
    /* Ultra-small phones (iPhone SE, Galaxy S21 etc.) */
    .card-stack-container {
        width: 130px;
        height: 182px;
    }
    .demo-card-centered .card-stack-container {
        width: 145px;
        height: 203px;
    }
    .hero-title-minimal {
        font-size: 1.45rem;
    }
    .hero-desc-minimal {
        font-size: 0.82rem;
    }
    .btn-cta {
        font-size: 0.78rem;
        padding: 10px 22px;
    }
    .section {
        padding: 25px 0;
    }
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

}

/* Prevent horizontal overflow on any device */
html {
    overflow-x: hidden;
}

/* P-09: Disable expensive backdrop-filter on mobile for better performance */
@media (max-width: 768px), (prefers-reduced-motion: reduce) {
    .header-nav,
    .header-nav.minimal-nav,
    .powered-by-badge,
    .lobby-panel,
    .stat-card,
    .concept-card-back-label,
    .security-card,

    .testphase-notice,
    .guideline-container {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}
