@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: rgba(15, 20, 40, 0.7);
  --bg-card-hover: rgba(20, 28, 55, 0.85);
  --border-subtle: rgba(245, 158, 11, 0.15);
  --border-glow: rgba(245, 158, 11, 0.4);
  --color-primary: #f59e0b;
  --color-primary-light: #fbbf24;
  --color-primary-dark: #d97706;
  --color-secondary: #f97316;
  --color-success: #22c55e;
  --color-error: #ef4444;
  --text-primary: #f0f0f5;
  --text-secondary: #8892a8;
  --text-muted: #6b7280;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-glow: 0 0 30px rgba(245, 158, 11, 0.12);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

a { color: var(--color-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-primary-light); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-normal);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.navbar-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; color: var(--text-primary); }
.navbar-brand img { height: 36px; }
.navbar-brand span { background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--text-secondary); font-weight: 500; font-size: 0.95rem; transition: color var(--transition-fast); }
.nav-links a:hover { color: var(--text-primary); }
.nav-cart { position: relative; background: none; border: 2px solid var(--border-subtle); border-radius: var(--radius-sm); padding: 8px 14px; color: var(--text-primary); cursor: pointer; font-size: 1.1rem; transition: all var(--transition-fast); }
.nav-cart:hover { border-color: var(--color-primary); background: rgba(245, 158, 11, 0.1); }
.cart-badge { position: absolute; top: -8px; right: -8px; background: var(--color-primary); color: var(--bg-primary); font-size: 0.7rem; font-weight: 700; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.cart-badge.hidden { display: none; }
.hamburger { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: hidden; padding-top: 80px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(245, 158, 11, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(249, 115, 22, 0.06) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-badge {
  display: inline-block; padding: 6px 18px; border-radius: 50px;
  background: rgba(245, 158, 11, 0.1); border: 1px solid var(--border-subtle);
  color: var(--color-primary); font-size: 0.85rem; font-weight: 600; margin-bottom: 24px;
  letter-spacing: 1px; text-transform: uppercase;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 .highlight { background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 1.15rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto 36px; }
.hero-hex {
  position: absolute; opacity: 0.04; font-size: 400px; color: var(--color-primary);
  pointer-events: none; z-index: 0;
}
.hero-hex.left { left: -100px; top: 10%; transform: rotate(-15deg); }
.hero-hex.right { right: -100px; bottom: 10%; transform: rotate(25deg); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius-md); font-family: var(--font-heading);
  font-weight: 600; font-size: 1rem; border: none; cursor: pointer;
  transition: all var(--transition-normal); text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--bg-primary); box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4); color: var(--bg-primary); }
.btn-secondary {
  background: transparent; border: 2px solid var(--border-subtle);
  color: var(--text-primary);
}
.btn-secondary:hover { border-color: var(--color-primary); background: rgba(245, 158, 11, 0.05); }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

/* ===== SECTIONS ===== */
section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header p { color: var(--text-secondary); max-width: 600px; margin: 12px auto 0; font-size: 1.05rem; }
.section-label {
  display: inline-block; color: var(--color-primary); font-size: 0.8rem;
  font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px;
}

/* ===== PRODUCT CARDS ===== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 32px; }
.product-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all var(--transition-normal); position: relative;
}
.product-card:hover { transform: translateY(-6px); border-color: var(--border-glow); box-shadow: var(--shadow-glow); }
.product-card-image {
  height: 300px; background: var(--bg-secondary); display: flex;
  align-items: center; justify-content: center; overflow: hidden; position: relative;
}
.product-card-image img { width: 100%; height: 100%; object-fit: cover; }
.product-card-image canvas { max-width: 90%; max-height: 90%; }
.product-card-body { padding: 28px; }
.product-card-body h3 { margin-bottom: 8px; }
.product-card-body p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 20px; }
.product-price { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--color-primary); }
.product-price-row { display: flex; align-items: center; justify-content: space-between; }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-subtle); }
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-text h2 { margin-bottom: 16px; }
.about-text p { color: var(--text-secondary); margin-bottom: 16px; }
.about-features { list-style: none; margin-top: 24px; }
.about-features li { padding: 8px 0; color: var(--text-secondary); display: flex; align-items: center; gap: 10px; }
.about-features li::before { content: '⬡'; color: var(--color-primary); font-size: 1.2rem; }

/* ===== EVENTS ===== */
.events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.event-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 32px; text-align: center;
  transition: all var(--transition-normal);
}
.event-card:hover { border-color: var(--border-glow); }
.event-icon { font-size: 2.5rem; margin-bottom: 16px; }
.event-card h3 { margin-bottom: 8px; }
.event-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* ===== FOOTER ===== */
.footer {
  padding: 48px 0 24px; border-top: 1px solid var(--border-subtle);
  background: rgba(0,0,0,0.3);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-brand span { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 8px; }
.footer h4 { margin-bottom: 16px; font-size: 0.95rem; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { color: var(--text-muted); font-size: 0.9rem; }
.footer ul a:hover { color: var(--text-primary); }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid var(--border-subtle); color: var(--text-muted); font-size: 0.8rem; }

/* ===== KONFIGURATOR ===== */
.konfigurator-page { padding-top: 100px; min-height: 100vh; }
.konfigurator-container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.konfigurator-preview {
  position: sticky; top: 100px;
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 32px;
  display: flex; align-items: center; justify-content: center;
  min-height: 500px;
}
#product-canvas { max-width: 100%; border-radius: var(--radius-sm); }
.konfigurator-controls {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 32px;
}
.product-tabs { display: flex; gap: 8px; margin-bottom: 32px; }
.product-tab {
  flex: 1; padding: 12px; border-radius: var(--radius-sm);
  background: transparent; border: 2px solid var(--border-subtle);
  color: var(--text-secondary); font-family: var(--font-heading);
  font-weight: 600; font-size: 0.9rem; cursor: pointer;
  transition: all var(--transition-fast);
}
.product-tab.active { border-color: var(--color-primary); color: var(--color-primary); background: rgba(245, 158, 11, 0.08); }
.product-tab:hover:not(.active) { border-color: var(--text-muted); }
.control-group { margin-bottom: 28px; }
.control-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 10px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; font-family: var(--font-heading); }
.control-group input[type="text"] {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--bg-secondary); border: 1px solid var(--border-subtle);
  color: var(--text-primary); font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color var(--transition-fast);
}
.control-group input[type="text"]:focus { outline: none; border-color: var(--color-primary); }
.control-group input[type="text"]::placeholder { color: var(--text-muted); }
.color-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.color-swatch {
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  border: 3px solid transparent; transition: all var(--transition-fast);
  position: relative;
}
.color-swatch:hover { transform: scale(1.1); }
.color-swatch.active { border-color: var(--color-primary); box-shadow: 0 0 12px rgba(245, 158, 11, 0.4); }
.color-swatch::after {
  content: attr(data-name); position: absolute; bottom: -22px; left: 50%;
  transform: translateX(-50%); font-size: 0.65rem; color: var(--text-muted);
  white-space: nowrap; opacity: 0; transition: opacity var(--transition-fast); pointer-events: none;
}
.color-swatch:hover::after { opacity: 1; }
.price-section {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; border-top: 1px solid var(--border-subtle); margin-top: 20px;
}
.price-label { color: var(--text-secondary); font-size: 0.95rem; }
.price-value { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; color: var(--color-primary); }
.btn-add-cart { width: 100%; justify-content: center; font-size: 1.05rem; padding: 16px; margin-top: 16px; }

/* ===== CART SIDEBAR ===== */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 2000; opacity: 0; pointer-events: none; transition: opacity var(--transition-normal); }
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-sidebar {
  position: fixed; top: 0; right: -420px; width: 400px; max-width: 90vw;
  height: 100vh; background: var(--bg-secondary); z-index: 2001;
  display: flex; flex-direction: column;
  border-left: 1px solid var(--border-subtle);
  transition: right var(--transition-normal);
}
.cart-sidebar.open { right: 0; }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border-subtle); }
.cart-header h3 { font-size: 1.2rem; }
.cart-close { background: none; border: none; color: var(--text-secondary); font-size: 1.5rem; cursor: pointer; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border-subtle); }
.cart-item-preview { width: 64px; height: 64px; border-radius: var(--radius-sm); background: var(--bg-card); flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 0.95rem; margin-bottom: 4px; }
.cart-item-info p { font-size: 0.8rem; color: var(--text-muted); }
.cart-item-price { font-weight: 700; color: var(--color-primary); white-space: nowrap; }
.cart-item-remove { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.8rem; margin-top: 4px; }
.cart-item-remove:hover { color: var(--color-error); }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.cart-empty .icon { font-size: 3rem; margin-bottom: 12px; }
.cart-footer { padding: 20px 24px; border-top: 1px solid var(--border-subtle); }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.cart-total span:first-child { font-weight: 600; }
.cart-total span:last-child { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 800; color: var(--color-primary); }
.btn-checkout { width: 100%; justify-content: center; }

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 3000;
  background: var(--bg-secondary); border-top: 1px solid var(--border-subtle);
  padding: 20px; transform: translateY(100%); transition: transform var(--transition-normal);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-content { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cookie-content p { flex: 1; color: var(--text-secondary); font-size: 0.9rem; min-width: 300px; }
.cookie-buttons { display: flex; gap: 10px; }

/* ===== SUCCESS PAGE ===== */
.success-page, .cancel-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 40px 24px;
}
.success-icon, .cancel-icon { font-size: 4rem; margin-bottom: 20px; }
.success-page h1, .cancel-page h1 { margin-bottom: 12px; }
.success-page p, .cancel-page p { color: var(--text-secondary); max-width: 500px; margin: 0 auto 32px; }

/* ===== LEGAL PAGES ===== */
.legal-page { padding-top: 120px; padding-bottom: 80px; }
.legal-page h1 { margin-bottom: 32px; }
.legal-page h2 { margin-top: 32px; margin-bottom: 12px; font-size: 1.3rem; }
.legal-page p, .legal-page li { color: var(--text-secondary); margin-bottom: 12px; line-height: 1.7; }
.legal-page ul { padding-left: 20px; }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-secondary); padding: 20px; gap: 16px; border-bottom: 1px solid var(--border-subtle); }
  .products-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .konfigurator-container { grid-template-columns: 1fr; }
  .konfigurator-preview { position: static; min-height: 350px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero { min-height: 90vh; }
  section { padding: 60px 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .btn { padding: 12px 24px; font-size: 0.9rem; }
  .color-swatch { width: 34px; height: 34px; }
}
