:root {
  /* Color System - Electric Blueprint */
  --jz-bg: #F6F7F9;
  /* Neutral gray-white background (NOT blue-tinted) */
  --jz-surface: #FFFFFF;
  /* Pure white for cards */
  --jz-blue: #2563EB;
  /* Arbeits-Blau (accents only) */
  --jz-text: #0F172A;
  /* Deep slate for headlines */
  --jz-text-body: #1e293b;
  /* Darker gray for better contrast (WCAG 4.5:1+) */
  --jz-border: rgba(15, 23, 42, 0.08);
  /* Subtle borders */

  /* Spacing System */
  --jz-radius: 24px;
  --jz-radius-sm: 12px;
  --jz-spacing-xs: 8px;
  --jz-spacing-sm: 16px;
  --jz-spacing-md: 24px;
  --jz-spacing-lg: 32px;

  /* Typography Scale */
  --jz-font-headline: 'Manrope', sans-serif;
  --jz-font-body: 'Inter', sans-serif;
}

/* ========================================
   BASE RESET & ACCESSIBILITY
   ======================================== */

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

body {
  font-family: var(--jz-font-body);
  color: var(--jz-text-body);
  background-color: var(--jz-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Screenreader-only class for hidden helper text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip to main content link for keyboard navigation */
.skip-to-main {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--jz-blue);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-to-main:focus {
  top: 0;
}

/* ========================================
   BENTO GRID LAYOUT SYSTEM
   ======================================== */

.jz-product-area {
  padding: 30px 15px;
  background-color: var(--jz-bg);
}

.jz-bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  /* Mobile First: Single column */
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Desktop Grid (3 columns) */
@media (min-width: 1024px) {
  .jz-bento-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 24px;
  }

  /* Main card spans 2 columns */
  .card-main {
    grid-column: span 2;
  }
}

/* ========================================
   FOCUS STATES (WCAG Accessibility)
   ======================================== */

.jz-btn-touch:focus-visible,
.jz-expander-trigger:focus-visible,
.jz-radio input:focus+.jz-radio-box {
  outline: 3px solid var(--jz-blue);
  outline-offset: 4px;
}

/* Remove default focus outline for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* ARIA expanded state support */
[aria-expanded="true"] .jz-arrow {
  transform: rotate(180deg);
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */

/* Hide on mobile */
@media (max-width: 767px) {
  .hide-mobile {
    display: none !important;
  }
}

/* Hide on desktop */
@media (min-width: 1024px) {
  .hide-desktop {
    display: none !important;
  }
}

/* Container max-widths */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 30px;
  }
}

/* ========================================
   ACCESSIBILITY WIDGET Z-INDEX MANAGEMENT
   ======================================== */

/* 
 * Prevent accessibility widget icons from overlapping with mobile UI elements
 * Applies to UserWay, Eye-Able, and similar widgets
 */
#userwayAccessibilityIcon,
.eye-able-icon,
#accessibility-widget-icon {
  bottom: 80px !important;
  /* Higher position for thumb-friendly mobile usage */
  right: 20px !important;
  z-index: 9999 !important;
}

/* Ensure widget doesn't interfere with sticky elements */
.jz-accessibility-hook {
  position: relative;
  z-index: 10000;
}