/*
Theme Name:  Everpuzzle
Theme URI:   https://everpuzzle.de
Author:      Sven Rothuysen
Description: Buntes, SEO-optimiertes Theme für Blog und WooCommerce
Version:     1.1.0
License:     GNU General Public License v2 or later
Text Domain: everpuzzle
Tags:        blog, e-commerce, responsive
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */

:root {
  /* Brand colours */
  --color-primary:     #7C3AED; /* Puzzle Purple */
  --color-primary-dark:#5B21B6;
  --color-pink:        #EC4899;
  --color-orange:      #F97316;
  --color-blue:        #0EA5E9;
  --color-mint:        #10B981;
  --color-gold:        #F59E0B;

  /* Category badge colours (index matches category order) */
  --cat-1: var(--color-primary);
  --cat-2: var(--color-pink);
  --cat-3: var(--color-orange);
  --cat-4: var(--color-blue);
  --cat-5: var(--color-mint);
  --cat-6: var(--color-gold);

  /* Sidebar / chrome */
  --sidebar-bg:        #1E1E2E;
  --sidebar-text:      #C4C4D4;
  --sidebar-width:     220px;
  --sidebar-hover:     rgba(255,255,255,.07);

  /* Surface / background */
  --bg:                #F8F7FF;
  --surface:           #FFFFFF;
  --surface-2:         #F1F0FA;
  --border:            #E4E2F5;
  --color-primary-light: #ede8ff; /* light primary tint for product-section headers */

  /* Text */
  --text:              #1A1A2E;
  --text-muted:        #6B6B8A;

  /* Header (mobile) */
  --header-height:     60px;
  --header-bg:         #1E1E2E;

  /* Typography */
  --font-heading:      'Nunito', system-ui, sans-serif;
  --font-body:         'Inter', system-ui, sans-serif;

  /* Spacing */
  --space-xs:  .25rem;
  --space-sm:  .5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;

  /* Radii */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.16);

  /* Layout */
  --max-width:  1460px;

  /* Transitions */
  --transition: .25s cubic-bezier(.19,1,.22,1);
}

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

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: var(--space-md);
}

h1 strong{
  display:block;
  color:var(--color-primary);
  line-height: 28px;
  font-size:0.8em;
}

ul, ol {
  list-style: none;
}

/* ============================================================
   PAGE LAYOUT — horizontal header, full-width content
   ============================================================ */

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Sticky header spans full width */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-height);
  background: var(--header-bg);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

/* Content area */
.site-main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

/* Full-width sections (hero etc.) break out of max-width */
.site-main--wide {
  max-width: none;
  padding: 0;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
  word-wrap: normal;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}
