/*
Theme Name: Häkeltraum
Theme URI: https://häkeltraum.de/
Author: Häkeltraum Team
Author URI: https://häkeltraum.de/
Description: Ein gemütliches, modernes und schnelles WordPress-Theme speziell für Häkeln, Amigurumi, DIY und Handarbeiten. Inspiriert von erstklassigen Handarbeitsmagazinen – mit Kategoriengitter, Materiallisten zum Abhaken, druckbaren Häkelanleitungen und mobil-optimiertem Design.
Version: 1.2.0
Update URI: false
Tested up to: 6.7
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hakeltraum
Tags: blog, craft, crochet, diy, grid-layout, custom-menu, featured-images, custom-logo, one-column, right-sidebar
*/

/* ==========================================================================
   CSS CUSTOM PROPERTIES (HÄKELTRAUM - NATÜRLICHE HÄKEL-PALETTE)
   ========================================================================== */
:root {
  /* 1. Background: Creme / Leinen (#FAF6EF) - Wolle & Naturpapier */
  --cq-bg-cream: #FAF6EF;
  --cq-bg-white: #ffffff;

  /* 2. Text: Anthrazit (#2E2A27) - Warmes Schwarz, augenschonend */
  --cq-dark: #2E2A27;
  --cq-dark-soft: #46413D;
  --cq-text-main: #2E2A27;
  --cq-text-muted: #6B655E;
  --cq-text-light: #9B948C;

  /* 3. Primary: Salbeigrün / Sage (#8FA58A) - Header, Links, Buttons */
  --cq-primary: #8FA58A;
  --cq-primary-dark: #748A6F;
  --cq-primary-light: #EBF1EA;
  --cq-primary-soft: #F2F6F1;

  /* 4. Accent: Terrakotta / Rost (#C46A4A) - CTA, Badges, Highlights */
  --cq-accent: #C46A4A;
  --cq-accent-dark: #A85335;
  --cq-accent-soft: #FBF0EC;

  /* 5. Secondary: Rosé / Altrosa (#E3B5A8) - Cards, Tags, Hover */
  --cq-secondary: #E3B5A8;
  --cq-secondary-light: #FAF2EF;
  --cq-secondary-border: #E8C8BE;

  /* 6. Neutral: Haferflocken (#E8DFD0) - Borders, Trennlinien, Footer-Rahmen */
  --cq-neutral: #E8DFD0;
  --cq-neutral-light: #F4EFE6;
  --cq-border-light: #E8DFD0;
  --cq-border-subtle: #EFE8DD;

  /* 7. Bonus: Dunkles Waldgrün (#3F5B4A) - Große Überschriften & Footer */
  --cq-forest: #3F5B4A;
  --cq-forest-dark: #2C4234;

  /* Compatibility Aliases for Theme Elements */
  --cq-coral: #8FA58A;          /* Salbeigrün (Primary) */
  --cq-coral-dark: #748A6F;
  --cq-coral-light: #EBF1EA;
  --cq-coral-soft: #FAF2EF;     /* Rosé / Altrosa soft wash */
  --cq-peach: #FAF2EF;          /* Soft Card background */
  --cq-peach-border: #E8DFD0;   /* Haferflocken border */
  --cq-sage: #8FA58A;           /* Salbeigrün */
  --cq-sage-dark: #3F5B4A;      /* Dunkles Waldgrün */

  /* Typography */
  --cq-font-sans: 'Nunito Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --cq-font-heading: 'Quicksand', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --cq-font-accent: 'Caveat', cursive;

  /* Border Radiuses */
  --cq-radius-sm: 8px;
  --cq-radius-md: 14px;
  --cq-radius-lg: 20px;
  --cq-radius-xl: 26px;
  --cq-radius-pill: 60px;

  /* Shadows (Warm soft shadows) */
  --cq-shadow-subtle: 0 4px 16px rgba(46, 42, 39, 0.05);
  --cq-shadow-card: 0 8px 24px rgba(46, 42, 39, 0.07);
  --cq-shadow-hover: 0 14px 36px rgba(46, 42, 39, 0.12);
  --cq-shadow-pop: 0 10px 30px rgba(46, 42, 39, 0.15);

  /* Container */
  --cq-container-max: 1200px;
  --cq-container-narrow: 860px;
  --cq-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-family: var(--cq-font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cq-text-main);
  background-color: var(--cq-bg-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--cq-bg-cream);
  color: var(--cq-text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--cq-text-main);
  text-decoration: none;
  transition: var(--cq-transition);
}

a:hover {
  color: var(--cq-coral);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--cq-font-heading);
  color: var(--cq-forest, var(--cq-dark));
  font-weight: 700;
  line-height: 1.25;
  margin-top: 0;
}

p {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

ul, ol {
  margin-top: 0;
  padding-left: 1.5rem;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

/* Container */
.cq-container {
  width: 100%;
  max-width: var(--cq-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.cq-container-narrow {
  width: 100%;
  max-width: var(--cq-container-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Accessibility */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 14px;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}
