/* =========================================
   1. CSS VARIABLEN (DIE THEMES)
   ========================================= */

/* Theme 1: FixFind Standard (Dein Original-CSS) */
:root {
    --primary: #0f172a;       
    --accent: #2563eb;        
    --accent-hover: #1d4ed8;
    --bg-body: #f8fafc;       
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --border-radius: 6px;
    --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Theme 2: Industrial Dark (Taschen aus LKW-Plane) */
[data-theme="industrial"] {
    --primary: #111111;       
    --accent: #eab308;        /* Industrie-Gelb */
    --accent-hover: #ca8a04;
    --bg-body: #1a1a1a;       /* Sehr dunkles Grau */
    --bg-card: #262626;       /* Leicht helleres Grau für Karten */
    --text-main: #f5f5f5;
    --text-light: #a3a3a3;
    --border-color: #404040;
    --border-radius: 2px;     /* Eher kantig, robuster Look */
    --font-heading: "Impact", "Arial Black", sans-serif; /* Fette, laute Headlines */
    --font-body: "Courier New", Courier, monospace;      /* Technischer Look */
    --shadow: 5px 5px 0px 0px rgba(0,0,0,0.5);           /* Brutalismus-Schatten */
}


/* =========================================
   2. DEMO BANNER STYLING
   ========================================= */
.demo-banner {
    background: #0f172a;
    color: white;
    padding: 1rem;
    font-family: sans-serif;
    position: sticky;
    top: 0;
    z-index: 9999;
    border-bottom: 3px solid #2563eb;
}
.demo-banner__content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.demo-banner__text p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-top: 0.2rem;
}
.demo-banner__controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.demo-btn {
    background: transparent;
    border: 1px solid #475569;
    color: #cbd5e1;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}
.demo-btn:hover { background: #1e293b; }
.demo-btn.active {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

/* =========================================
   3. SHOP WIDGET STYLING (Greift auf Variablen zu)
   ========================================= */
body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-body);
    margin: 0;
    transition: background-color 0.3s, color 0.3s;
}

.customer-website {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.dummy-header {
    text-align: center;
    margin-bottom: 3rem;
}
.dummy-header h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.dummy-header p {
    color: var(--text-light);
    font-size: 1.2rem;
}

/* Mock Produkt-Grid */
.mock-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.mock-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.mock-img {
    height: 250px;
    background: var(--border-color);
    border-radius: calc(var(--border-radius) - 2px);
    margin-bottom: 1rem;
}

.mock-card h3 {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.mock-card .price {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 1rem;
}

.mock-btn {
    width: 100%;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.8rem;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.2s;
}
.mock-btn:hover {
    background: var(--accent-hover);
}

/* =========================================
   4. NEUE DEMO ELEMENTE (Badge & Controls)
   ========================================= */
.demo-info-badge {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 320px;
    background: #0f172a;
    color: #f8fafc;
    padding: 1.2rem;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 9999;
    font-family: sans-serif;
    line-height: 1.4;
}
.demo-info-badge strong {
    display: block;
    color: #60a5fa;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.demo-info-badge p {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin: 0;
}

.demo-controls {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 9999;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-family: sans-serif;
    border: 1px solid #e2e8f0;
}
[data-theme="industrial"] .demo-controls {
    background: rgba(38, 38, 38, 0.9);
    border-color: #404040;
    color: white;
}

/* Anpassung der Switcher-Skript Bezeichner im JS */
#dummy-title { transition: color 0.3s; }
/* =========================================
   5. WEBSITE LAYOUT & FIXES
   ========================================= */
.site-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}
.site-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
}
.site-cart-toggle {
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: 0.2s;
}
.site-cart-toggle:hover { border-color: var(--accent); }
.cart-badge {
    background: var(--accent);
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.site-hero {
    text-align: center;
    padding: 4rem 1rem;
    background: var(--primary);
    color: white;
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
}
.site-about {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-light);
}

/* FIX: Karten-Stretching verhindern */
.mock-product-grid {
    align-items: start; /* Das verhindert das Stretchen der Karten */
}
.mock-card {
    cursor: pointer; /* Zeigt, dass sie klickbar ist */
    display: flex;
    flex-direction: column;
}
.mock-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.mock-card h3 { flex-grow: 1; } /* Schiebt Button nach unten, falls Titel kurz ist */

/* =========================================
   6. PRODUKT DETAILANSICHT
   ========================================= */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}
@media (max-width: 768px) { .product-detail { grid-template-columns: 1fr; } }
.pd-main-img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    border-radius: var(--border-radius);
    background: var(--bg-body);
    cursor: zoom-in;
    border: 1px solid var(--border-color);
}
.pd-gallery {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.pd-thumb {
    width: 80px; height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
}
.pd-thumb:hover { border-color: var(--accent); }
.pd-back {
    display: inline-block;
    margin-bottom: 1.5rem;
    cursor: pointer;
    color: var(--accent);
    font-weight: bold;
}

/* =========================================
   7. WARENKORB SLIDE-OUT & LIGHTBOX
   ========================================= */
.cart-overlay, .lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 10000;
    display: none; opacity: 0; transition: 0.3s;
}
.cart-overlay.open { display: block; opacity: 1; }

.cart-sidebar {
    position: fixed; top: 0; right: -450px; width: 100%; max-width: 400px; height: 100vh;
    background: var(--bg-card); z-index: 10001;
    display: flex; flex-direction: column;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1); transition: right 0.3s ease;
}
.cart-sidebar.open { right: 0; }
.cart-header, .cart-footer { padding: 1.5rem; border-bottom: 1px solid var(--border-color); display:flex; justify-content:space-between; align-items:center; }
.cart-footer { border-top: 1px solid var(--border-color); border-bottom: none; flex-direction:column; gap:1rem; }
.cart-items { flex-grow: 1; overflow-y: auto; padding: 1.5rem; }
.cart-item { display: flex; justify-content: space-between; margin-bottom: 1rem; padding-bottom:1rem; border-bottom:1px solid var(--border-color); }
.cart-item-title { font-weight: bold; }
.cart-total { font-size: 1.5rem; font-weight: bold; width: 100%; display:flex; justify-content:space-between; }
.close-btn { background:none; border:none; font-size:1.5rem; cursor:pointer; color:var(--text-main); }

/* Lightbox */
.lightbox.open { display: flex; justify-content: center; align-items: center; opacity: 1; backdrop-filter: blur(5px); }
.lightbox img { max-width: 90%; max-height: 90vh; border-radius: 8px; box-shadow: 0 10px 50px rgba(0,0,0,0.5); }
.lightbox-close { position: absolute; top: 20px; right: 30px; font-size: 3rem; color: white; cursor: pointer; }

/* Loader Spinner */
.spinner { width: 40px; height: 40px; border: 4px solid var(--border-color); border-top: 4px solid var(--accent); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 1rem auto; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* =========================================
   8. CHECKOUT FORMULAR STYLING
   ========================================= */
.mock-form-group { margin-bottom: 1.5rem; }
.mock-label { 
    display: block; margin-bottom: 0.5rem; font-weight: bold; 
    font-size: 0.9rem; color: var(--text-light); 
}
.mock-input { 
    width: 100%; padding: 0.8rem; border: 1px solid var(--border-color); 
    border-radius: var(--border-radius); background: var(--bg-body); 
    color: var(--text-main); font-family: inherit; font-size: 1rem; 
    box-sizing: border-box; transition: 0.2s;
}
.mock-input:focus { 
    outline: none; border-color: var(--accent); 
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); 
}
.mock-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }