/* =========================================
   0. GLOBAL SETTINGS & RESET
   ========================================= */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }

/* =========================================
   1. FONTS IMPORT
   ========================================= */
@font-face { font-family: 'Amatic SC'; font-style: normal; font-weight: 400; src: url('fonts/amatic-sc-v28-latin-regular.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Amatic SC'; font-style: normal; font-weight: 700; src: url('fonts/amatic-sc-v28-latin-700.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 400; src: url('fonts/cinzel-v26-latin-regular.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 700; src: url('fonts/cinzel-v26-latin-700.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Dancing Script'; font-style: normal; font-weight: 400; src: url('fonts/dancing-script-v29-latin-regular.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Dancing Script'; font-style: normal; font-weight: 700; src: url('fonts/dancing-script-v29-latin-700.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Great Vibes'; font-style: normal; font-weight: 400; src: url('fonts/great-vibes-v21-latin-regular.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 300; src: url('fonts/lato-v25-latin-300.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 400; src: url('fonts/lato-v25-latin-regular.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 700; src: url('fonts/lato-v25-latin-700.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Monoton'; font-style: normal; font-weight: 400; src: url('fonts/monoton-v22-latin-regular.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 300; src: url('fonts/montserrat-v31-latin-300.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; src: url('fonts/montserrat-v31-latin-regular.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; src: url('fonts/montserrat-v31-latin-700.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 800; src: url('fonts/montserrat-v31-latin-800.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Orbitron'; font-style: normal; font-weight: 400; src: url('fonts/orbitron-v35-latin-regular.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Orbitron'; font-style: normal; font-weight: 500; src: url('fonts/orbitron-v35-latin-500.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Pacifico'; font-style: normal; font-weight: 400; src: url('fonts/pacifico-v23-latin-regular.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Pinyon Script'; font-style: normal; font-weight: 400; src: url('fonts/pinyon-script-v24-latin-regular.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400; src: url('fonts/playfair-display-v40-latin-regular.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 700; src: url('fonts/playfair-display-v40-latin-700.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Quicksand'; font-style: normal; font-weight: 400; src: url('fonts/quicksand-v37-latin-regular.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Quicksand'; font-style: normal; font-weight: 700; src: url('fonts/quicksand-v37-latin-700.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Sacramento'; font-style: normal; font-weight: 400; src: url('fonts/sacramento-v17-latin-regular.woff2') format('woff2'); font-display: swap; }

:root {
    --gold: #D4AF37;
    --gold-light: #f3e5ab;
    --gold-dark: #b5952f;
    --dark: #333;
    --light: #f9f9f9;
    --white: #fff;
    --brand-color: #ff7675;
    
    --font-heading-main: 'Playfair Display', serif;
    --font-body-main: 'Montserrat', sans-serif;

    /* Fallback Bingo Grid */
    --bg-card: #ffffff;
    --color-main: #333333;
    --color-accent: #D4AF37;
    --color-grid: #D4AF37;
    --font-head: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --border-width: 4px;
    --border-style: solid;
    --border-radius: 0px;
    --grid-gap: 4px;
}

body {
    margin: 0;
    font-family: var(--font-body-main);
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

h1, h2, h3, h4 { font-family: var(--font-heading-main); color: var(--dark); margin-top: 0; }
h1 { font-size: 3rem; margin-bottom: 0.5rem; }
h2 { font-size: 1.8rem; margin-bottom: 1rem; border-bottom: 2px solid #eee; padding-bottom: 10px; display: inline-block; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; width: 100%; }

/* =========================================
   3. HEADER & HERO
   ========================================= */
.hero {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%; animation: gradientBG 15s ease infinite;
    color: white; 
    /* Viel Platz, da Navi jetzt darunter kommt */
    padding: 100px 20px 100px 20px; 
    text-align: center; position: relative; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
@keyframes gradientBG { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.hero::before { content: ''; position: absolute; top: -50px; left: -50px; width: 200px; height: 200px; background: rgba(255,255,255,0.1); border-radius: 50%; z-index: 0; }
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }

.brand-logo { display: inline-block; margin-bottom: 20px; }
.brand-logo span { display: block; line-height: 1; }
.brand-top { font-family: 'Great Vibes', cursive; font-size: 4rem; color: #fff; text-shadow: 2px 2px 4px rgba(0,0,0,0.2); transform: rotate(-5deg) translateX(-20px); }
.brand-bottom { font-family: 'Montserrat', sans-serif; font-size: 5rem; font-weight: 800; text-transform: uppercase; letter-spacing: 10px; background: -webkit-linear-gradient(#fff, #eee); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0px 10px 20px rgba(0,0,0,0.2); }

.hero p { font-size: 1.3rem; margin-bottom: 30px; font-weight: 300; opacity: 0.9; }

.btn-cta, .btn-primary, .btn-xl { border: none; cursor: pointer; border-radius: 50px; text-transform: uppercase; font-weight: bold; transition: all 0.3s; }
.btn-cta { background: white; color: #e73c7e; padding: 18px 45px; font-size: 1.2rem; box-shadow: 0 5px 15px rgba(0,0,0,0.2); animation: pulse 2s infinite; }
.btn-cta:hover { transform: translateY(-3px) scale(1.05); color: #23a6d5; }
.btn-primary, .btn-xl { background: var(--gold); color: white; padding: 12px 30px; font-size: 1.1rem; border-radius: 4px; }
.btn-xl { font-size: 1.3rem; padding: 20px 40px; }
.btn-primary:hover, .btn-xl:hover { transform: scale(1.05); background: var(--gold-dark); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); } 70% { box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }

/* =========================================
   NAVIGATION (Sticky Transformation)
   ========================================= */
.main-nav {
    /* 1. Basis-Verhalten */
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    
    /* 2. Style im "lockeren" Zustand (Standard) */
    background: rgba(255, 255, 255, 0.95); /* Hell & sauber */
    border-bottom: 1px solid transparent;
    padding: 20px 0; /* Locker: Viel Platz */
    text-align: center;
    
    /* 3. Transition: Damit das Umschalten weich ist */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Container für Buttons */
.main-nav ul {
    list-style: none; padding: 0; margin: 0 auto;
    display: inline-flex; justify-content: center; align-items: center; gap: 10px;
    max-width: 1200px;
    transition: all 0.4s ease; /* Auch der Inhalt animiert mit */
}
.main-nav li { margin: 0; }

/* Links */
.main-nav a {
    text-decoration: none;
    color: #444;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 25px; /* Große Klickfläche */
    border-radius: 50px;
    transition: all 0.3s ease;
}

/* Hover */
.main-nav a:hover {
    color: var(--gold);
    background: rgba(0,0,0,0.03);
    transform: translateY(-2px);
}
.main-nav a.active {
    color: var(--gold-dark);
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Button "Gestalten" */
.main-nav a[href="/gestalten"] {
    background: var(--gold);
    color: white;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.2);
}
.main-nav a[href="/gestalten"]:hover {
    background: var(--gold-dark);
    transform: scale(1.05);
}

/* === ZUSTAND: ANGEDOCKT / STICKY === */
/* Diese Klasse wird per JS gesetzt, wenn die Navi oben anstößt */
.main-nav.is-stuck {
    padding: 8px 0; /* Schmaler / Kompakter */
    background: rgba(255, 255, 255, 0.85); /* Mehr Glas-Effekt */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08); /* Schatten dazu */
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.main-nav.is-stuck a {
    font-size: 0.8rem; /* Schrift etwas dezenter */
    padding: 8px 18px; /* Button kleiner */
}

/* =========================================
   MOBILE RESPONSIVE: COMPACT GRID
   ========================================= */
@media (max-width: 900px) {
    .main-nav {
        padding: 10px 10px; /* Wenig Platz an den Rändern */
    }
    
    .main-nav.is-stuck {
        padding: 5px 10px; /* Noch kompakter wenn sticky */
    }

    /* Das Grid */
    .main-nav ul {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Zweispaltig */
        gap: 6px;
        width: 100%;
    }

    .main-nav li { display: flex; }

    .main-nav a {
        width: 100%;
        text-align: center;
        padding: 10px 5px;
        font-size: 0.75rem;
        border-radius: 8px; /* Kachel */
        justify-content: center;
        display: flex;
        align-items: center;
        background: #f4f4f4; /* Leichter Hintergrund für Struktur */
    }
    
    .main-nav.is-stuck a {
        padding: 8px 5px; /* Kompakter beim Scrollen */
        background: rgba(255,255,255,0.5); /* Glasig */
    }

    /* Highlight Button */
    .main-nav a[href="/gestalten"] {
        background: var(--gold);
        color: white;
        grid-column: span 2; /* Volle Breite */
        order: -1; /* Immer ganz oben */
    }
    
    /* FAQ füllt Lücken */
    .main-nav li:nth-child(5) { grid-column: span 2; }
    .main-nav li:nth-child(5) a { background: transparent; border: 1px solid #eee; }
}

/* ... (Restliche CSS wie Konfigurator, Themes, Footer bleiben unverändert) ... */
/* Hier der Kürze halber nur die Sektions-Starts, bitte füge den Rest deines Theme-Codes hier an */
.section { padding: 60px 0; }
.split-view { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.input-panel { background: white; padding: 30px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.preview-panel { position: sticky; top: 80px; z-index: 10; }
.form-group { margin-bottom: 20px; }
label { display: block; font-weight: bold; margin-bottom: 5px; font-size: 0.9rem; text-transform: uppercase; color: #555; }
input, select { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box; font-size: 16px; font-family: inherit; transition: border 0.3s; }
input:focus, select:focus { border-color: var(--gold); outline: none; }
.hint { font-size: 0.9rem; color: #777; margin-bottom: 15px; font-style: italic; }
.terms-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.form-row { display: flex; gap: 20px; margin-bottom: 20px; align-items: stretch; }
.grid-size-selector { display: flex; gap: 10px; width: 100%; }
.grid-option { flex: 1; background: #fff; border: 2px solid #e0e0e0; border-radius: 8px; padding: 10px 5px; text-align: center; cursor: pointer; transition: all 0.2s ease; display: flex; flex-direction: column; justify-content: center; align-items: center; user-select: none; }
.grid-option:hover { border-color: var(--gold); background: #fffbf0; transform: translateY(-2px); }
.grid-option.active { border-color: var(--gold); background: var(--gold); color: white; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.grid-option span { font-weight: 800; font-size: 1.2rem; display: block; line-height: 1.1; font-family: var(--font-heading-main); }
.grid-option small { font-size: 0.75rem; color: #888; margin-top: 4px; font-weight: normal; font-family: var(--font-body-main); }
.grid-option.active small { color: rgba(255,255,255,0.9); }
.toggle-group { display: flex; align-items: center; gap: 15px; background: #fdfdfd; padding: 10px; border: 1px solid #eee; border-radius: 4px; margin-bottom: 20px; }
.switch { position: relative; display: inline-block; width: 50px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--gold); }
input:checked + .slider:before { transform: translateX(24px); }
.toggle-label { font-weight: bold; color: #555; font-size: 0.95rem; }
.upload-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn-upload { display: inline-block; background: #fff; border: 2px dashed #aaa; color: #555; padding: 10px 20px; border-radius: 4px; cursor: pointer; font-weight: bold; transition: all 0.3s; text-align: center; }
.btn-upload:hover { border-color: var(--gold); color: var(--gold); background: #fffdf5; }
.btn-delete { background: #ff7675; color: white; border: none; padding: 10px 15px; border-radius: 4px; cursor: pointer; font-size: 0.9rem; }
.upload-status { font-size: 0.85rem; margin-top: 8px; color: #888; width: 100%; }
.design-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); gap: 10px; margin-bottom: 20px; }
.design-option { width: 50px; height: 50px; border-radius: 50%; cursor: pointer; border: 3px solid #eee; box-shadow: 0 2px 5px rgba(0,0,0,0.1); transition: all 0.2s; }
.design-option:hover, .design-option.active { transform: scale(1.15); box-shadow: 0 0 0 2px white, 0 0 0 4px var(--gold); border-color: #333; }
.bingo-theme-container { background-color: var(--bg-card); color: var(--color-main); font-family: var(--font-body); padding: 30px; text-align: center; box-shadow: 0 15px 40px rgba(0,0,0,0.1); transition: all 0.3s ease; border: 1px solid #eee; background-size: cover; background-position: center; position: relative; z-index: 0; -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; color-adjust: exact !important; }
.bingo-theme-container.has-bg-image::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255, 255, 255, 0.65); z-index: -1; border-radius: inherit; }
.bingo-theme-container > * { position: relative; z-index: 1; }
.bingo-theme-container h1 { font-family: var(--font-head); font-size: 2.5rem; margin: 0; line-height: 1.2; color: var(--color-main); }
.bingo-theme-container h3 { font-family: var(--font-body); font-weight: 300; font-size: 1rem; color: var(--color-main); opacity: 0.8; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 2px; }
.bingo-theme-container .bingo-names { font-family: var(--font-head); font-size: 2rem; color: var(--color-accent); margin: 10px 0 20px 0; }
.bingo-theme-container .grid-preview, .bingo-theme-container .bingo-grid { display: grid; grid-template-columns: repeat(var(--grid-cols, 4), 1fr); gap: var(--grid-gap); border: var(--border-width) var(--border-style) var(--color-grid); background-color: var(--color-grid); border-radius: var(--border-radius); overflow: hidden; }
.bingo-theme-container .grid-box, .bingo-theme-container .bingo-cell { background-color: var(--bg-card); color: var(--color-main); font-family: var(--font-body); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: 5px; font-size: 0.9rem; line-height: 1.3; word-break: break-word; position: relative; z-index: 2; }
.bingo-theme-container.hide-grid-lines .bingo-grid, .bingo-theme-container.hide-grid-lines .grid-preview { background-color: transparent !important; border-color: transparent !important; box-shadow: none !important; }
.bingo-theme-container.hide-grid-lines .bingo-cell, .bingo-theme-container.hide-grid-lines .grid-box { border: none !important; }
.theme-classic { }
.theme-mint { --bg-card: #f0fff4; --color-main: #2d3436; --color-accent: #00b894; --color-grid: #55efc4; --font-head: 'Quicksand', sans-serif; --border-radius: 12px; }
.theme-rose { --bg-card: #fff0f5; --color-main: #636e72; --color-accent: #e84393; --color-grid: #fd79a8; --font-head: 'Great Vibes', cursive; --border-style: double; --border-width: 6px; }
.theme-boho { --bg-card: #fffcf5; --color-main: #5d4037; --color-accent: #d35400; --color-grid: #e67e22; --font-head: 'Cinzel', serif; --font-body: 'Montserrat', sans-serif; }
.theme-sky { --bg-card: #e3f2fd; --color-main: #2c3e50; --color-accent: #0984e3; --color-grid: #74b9ff; --font-head: 'Amatic SC', cursive; --font-body: 'Quicksand', sans-serif; --border-radius: 15px; }
.theme-lavender { --bg-card: #f3e5f5; --color-main: #4a148c; --color-accent: #8e24aa; --color-grid: #ce93d8; --font-head: 'Pinyon Script', cursive; }
.theme-eucalyptus { --bg-card: #ffffff; --color-main: #2f3640; --color-accent: #44bd32; --color-grid: #7f8c8d; --font-head: 'Montserrat', sans-serif; --border-width: 2px; }
.theme-midnight { --bg-card: #2d3436; --color-main: #dfe6e9; --color-accent: #fdcb6e; --color-grid: #fdcb6e; --font-head: 'Cinzel', serif; --font-body: 'Lato', sans-serif; }
.theme-minimal { --bg-card: #ffffff; --color-main: #000000; --color-accent: #000000; --color-grid: #000000; --font-head: 'Montserrat', sans-serif; --font-body: 'Montserrat', sans-serif; --border-width: 6px; }
.theme-peach { --bg-card: #fff3e0; --color-main: #e67e22; --color-accent: #d35400; --color-grid: #fab1a0; --font-head: 'Dancing Script', cursive; }
.theme-forest { --bg-card: #ffffff; --color-main: #1e3721; --color-accent: #2d5a32; --color-grid: #1e3721; --font-head: 'Playfair Display', serif; --border-style: dashed; --border-width: 3px; }
.theme-lemon { --bg-card: #fffae6; --color-main: #555; --color-accent: #f1c40f; --color-grid: #f9ca24; --font-head: 'Amatic SC', cursive; }
.theme-berry { --bg-card: #fff0f3; --color-main: #833471; --color-accent: #b33771; --color-grid: #6d214f; --font-head: 'Great Vibes', cursive; }
.theme-slate { --bg-card: #f1f2f6; --color-main: #2f3542; --color-accent: #57606f; --color-grid: #a4b0be; --font-head: 'Lato', sans-serif; --border-radius: 4px; }
.theme-ocean { --bg-card: #e0f7fa; --color-main: #006064; --color-accent: #00acc1; --color-grid: #4dd0e1; --font-head: 'Montserrat', sans-serif; }
.theme-kraft { --bg-card: #f4e4bc; --color-main: #5d4037; --color-accent: #3e2723; --color-grid: #795548; --font-head: 'Cinzel', serif; --border-style: dotted; }
.theme-cherry { --bg-card: #fff; --color-main: #636e72; --color-accent: #ff7675; --color-grid: #fab1a0; --font-head: 'Dancing Script', cursive; --border-radius: 20px; }
.theme-royal { --bg-card: #fff; --color-main: #192a56; --color-accent: #273c75; --color-grid: #192a56; --font-head: 'Playfair Display', serif; --border-width: 1px; }
.theme-pure { --bg-card: #fff; --color-main: #666; --color-accent: #999; --color-grid: #eee; --font-head: 'Quicksand', sans-serif; }
.theme-copper { --bg-card: #fff; --color-main: #333; --color-accent: #b87333; --color-grid: #cd7f32; --font-head: 'Playfair Display', serif; --border-style: groove; --border-width: 8px; }
.theme-neon-pink { --bg-card: #121212; --color-main: #ffffff; --color-accent: #ff00ff; --color-grid: #ff00ff; --font-head: 'Monoton', cursive; --font-body: 'Montserrat', sans-serif; --border-width: 2px; }
.bingo-theme-container.theme-neon-pink h1, .bingo-theme-container.theme-neon-pink .bingo-names { text-shadow: 0 0 5px #ff00ff, 0 0 15px #ff00ff, 0 0 30px #ff00ff; }
.bingo-theme-container.theme-neon-pink .bingo-grid { box-shadow: 0 0 10px #ff00ff, inset 0 0 10px #ff00ff; }
.bingo-theme-container.theme-neon-pink .bingo-cell, .bingo-theme-container.theme-neon-pink .grid-box { background: #000; color: #fff; border: 1px solid #ff00ff; }
.theme-neon-blue { --bg-card: #050510; --color-main: #e0f7fa; --color-accent: #00e5ff; --color-grid: #00e5ff; --font-head: 'Orbitron', sans-serif; --font-body: 'Lato', sans-serif; --border-width: 2px; }
.bingo-theme-container.theme-neon-blue h1, .bingo-theme-container.theme-neon-blue .bingo-names { text-shadow: 0 0 5px #00e5ff, 0 0 20px #00e5ff; letter-spacing: 3px; }
.bingo-theme-container.theme-neon-blue .bingo-grid { box-shadow: 0 0 15px #00e5ff; }
.bingo-theme-container.theme-neon-blue .bingo-cell, .bingo-theme-container.theme-neon-blue .grid-box { color: #00e5ff; }
.theme-gatsby { --bg-card: #2c3e50; --color-main: #ecf0f1; --color-accent: #f1c40f; --color-grid: #f1c40f; --font-head: 'Cinzel', serif; --border-style: double; --border-width: 8px; }
.bingo-theme-container.theme-gatsby .bingo-grid { border-radius: 0; }
.theme-disco { --bg-card: #341f97; --color-main: #feca57; --color-accent: #ff9f43; --color-grid: #48dbfb; --font-head: 'Pacifico', cursive; --font-body: 'Quicksand', sans-serif; --border-width: 5px; --border-radius: 20px; --border-style: dashed; }
.bingo-theme-container.theme-disco h1 { transform: rotate(-3deg); color: #ff6b6b; text-shadow: 3px 3px 0px #feca57; }
.theme-script { --bg-card: #fff; --color-main: #000; --color-accent: #000; --color-grid: #000; --font-head: 'Sacramento', cursive; --font-body: 'Playfair Display', serif; --border-width: 1px; }
.bingo-theme-container.theme-script h1 { font-size: 4rem; }
.checkout-wrapper { margin-top: 30px; background: var(--white); padding: 40px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); max-width: 500px; margin-left: auto; margin-right: auto; border-top: 5px solid #27ae60; }
.hidden { display: none; }
.site-footer { background: linear-gradient(to bottom, #ffffff, #f8f9fa); color: #555; padding: 70px 0 30px; margin-top: 80px; font-size: 0.95rem; position: relative; border-top: none; }
.site-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: linear-gradient(90deg, #ee7752, #e73c7e, #23a6d5, #23d5ab); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; text-align: left; }
.footer-col h3 { color: #2c3e50; margin-bottom: 20px; font-family: 'Playfair Display', serif; letter-spacing: 1px; font-weight: 700; }
.footer-col h4 { color: #e73c7e; font-size: 1.0rem; margin-bottom: 20px; font-family: 'Lato', sans-serif; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { color: #666; text-decoration: none; transition: all 0.3s ease; display: inline-block; font-weight: 500; }
.footer-col a:hover { color: #23a6d5; transform: translateX(5px); }
.brand-col p { max-width: 300px; line-height: 1.8; opacity: 0.9; }
.footer-bottom { border-top: 1px solid #eee; padding-top: 30px; text-align: center; font-size: 0.85rem; color: #888; }
@media (max-width: 900px) { 
    .split-view { display: flex; flex-direction: column; gap: 30px; }
    .preview-panel { order: -1; position: relative; top: 0; width: 100%; margin-bottom: 20px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; } 
    .brand-col p { margin: 0 auto 20px; } 
    .footer-col a:hover { transform: none; } 
    .btn-upload, .btn-primary, .btn-xl { padding: 15px 30px; width: 100%; text-align: center; margin-bottom: 10px; }
    .design-option { width: 55px; height: 55px; }
    .brand-top { font-size: 3rem; }
    .brand-bottom { font-size: 3rem; letter-spacing: 5px; }
    h1 { font-size: 2.2rem; }
    .form-row { flex-direction: column; gap: 15px; }
}
@media (max-width: 480px) {
    .terms-grid { grid-template-columns: 1fr; }
    .container { padding: 15px; }
    .input-panel { padding: 20px; }
    .toggle-group { flex-direction: row; justify-content: space-between; }
}
@media print { .ui-container, header, footer, .checkout-wrapper { display: none !important; } body, .page-wrapper { margin: 0; background: white; } }
.modal { display: none; position: fixed; z-index: 9999; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.8); align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.modal:target { display: flex; opacity: 1; pointer-events: auto; }
.modal-content { background: #fff; width: 90%; max-width: 800px; max-height: 90vh; padding: 40px; border-radius: 8px; position: relative; overflow-y: auto; box-shadow: 0 10px 30px rgba(0,0,0,0.3); text-align: left; border-top: 5px solid var(--gold); animation: slideUp 0.4s ease-out; }
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-close { position: absolute; top: 15px; right: 20px; text-decoration: none; font-size: 2rem; color: #999; line-height: 1; transition: color 0.2s; }
.modal-close:hover { color: var(--gold); }
.modal h2 { margin-top: 0; border-bottom: 2px solid #eee; padding-bottom: 15px; display: block; }
.eeat-section { background: #fff; padding: 60px 0; border-top: 1px solid #eee; text-align: left; }
.eeat-wrapper { position: relative; max-width: 900px; margin: 0 auto; }
#eeat-toggle { display: none; }
.eeat-content { max-height: 180px; overflow: hidden; position: relative; transition: max-height 0.8s ease; }
.eeat-fade-overlay { position: absolute; bottom: 0; left: 0; right: 0; height: 100px; background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,1)); pointer-events: none; transition: opacity 0.3s; }
.eeat-btn { display: inline-block; margin-top: 20px; color: var(--gold); font-weight: bold; cursor: pointer; text-decoration: underline; font-family: var(--font-body-main); }
.eeat-btn::after { content: " ▼"; font-size: 0.8em; }
#eeat-toggle:checked ~ .eeat-content { max-height: 2000px; }
#eeat-toggle:checked ~ .eeat-content .eeat-fade-overlay { opacity: 0; pointer-events: none; }
#eeat-toggle:checked ~ .eeat-btn { display: none; }
.eeat-btn-close { display: none; margin-top: 20px; color: #999; cursor: pointer; text-decoration: underline; }
#eeat-toggle:checked ~ .eeat-btn-close { display: inline-block; }