/*
Theme Name:  HäkelZauber
Theme URI:   https://hakelzauber.de
Description: Professionelles Häkelblog-Theme für den DACH-Markt. Kostenlose Häkelanleitungen, SEO-optimiert, DSGVO-konform. Kein Parent-Theme benötigt.
Author:      HäkelZauber
Author URI:  https://hakelzauber.de
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: maschenzauber
Tags:        blog, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
*/

/* ============================================================
   GOOGLE FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Lato:wght@300;400;700&family=Dancing+Script:wght@600&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --primary:       #7C5CBF;
  --primary-dark:  #5e3fa3;
  --primary-light: #f0ebfa;
  --secondary:     #F4A261;
  --secondary-dark:#e07d3a;
  --accent:        #52B788;
  --bg:            #FDFAF6;
  --text:          #2D2D2D;
  --muted:         #6B6B6B;
  --white:         #FFFFFF;
  --border:        #e8e0f5;

  --font-h:  'Playfair Display', Georgia, serif;
  --font-b:  'Lato', Helvetica, sans-serif;
  --font-a:  'Dancing Script', cursive;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;

  --sh-sm: 0 2px 8px rgba(124,92,191,.08);
  --sh-md: 0 4px 20px rgba(124,92,191,.14);
  --sh-lg: 0 8px 40px rgba(124,92,191,.18);

  --t: .25s ease;

  --container: 1200px;
  --content:   780px;
}

/* ============================================================
   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-b);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: .35rem; }

a { color: var(--primary); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--primary-dark); text-decoration: underline; }

p { margin-bottom: 1.3rem; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-h);
  color: var(--text);
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: .8rem;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.site-main { flex: 1; }

.content-area {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  padding: 3rem 0;
}

.content-area.no-sidebar {
  grid-template-columns: 1fr;
  max-width: var(--content);
  margin: 0 auto;
  width: 100%;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .75rem 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
}

/* Logo */
.site-logo { display: flex; align-items: center; gap: .7rem; text-decoration: none !important; flex-shrink: 0; }
.site-logo img { height: 44px; width: auto; }
.site-logo-text { display: flex; flex-direction: column; }
.site-logo-text .brand-name {
  font-family: var(--font-h);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
  white-space: nowrap;
}
.site-logo-text .brand-tagline {
  font-family: var(--font-b);
  font-size: .65rem;
  color: var(--muted);
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Navigation */
.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
}
.main-nav ul li { margin: 0; }
.main-nav ul li a {
  display: block;
  padding: .45rem .6rem;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--text);
  border-radius: var(--r-sm);
  transition: background var(--t), color var(--t);
  text-decoration: none !important;
  white-space: nowrap;
}
.main-nav ul li a:hover,
.main-nav ul li.current-menu-item > a {
  background: var(--primary-light);
  color: var(--primary);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--t);
}

/* ============================================================
   HERO (Homepage)
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--primary-light) 0%, #fff3e8 100%);
  text-align: center;
  padding: 4.5rem 1.5rem;
}
.hero h1 {
  color: var(--primary);
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: .7rem;
}
.hero-tagline {
  font-family: var(--font-a);
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 1.2rem;
}
.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 2rem;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .7rem 1.8rem;
  border-radius: var(--r-md);
  font-family: var(--font-b);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--t), transform var(--t), box-shadow var(--t), border-color var(--t);
  text-decoration: none !important;
}
.btn-primary {
  background: var(--primary);
  color: var(--white) !important;
  box-shadow: var(--sh-sm);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}
.btn-secondary {
  background: var(--secondary);
  color: var(--white) !important;
}
.btn-secondary:hover { background: var(--secondary-dark); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary) !important;
}
.btn-outline:hover { background: var(--primary); color: var(--white) !important; }

/* ============================================================
   CATEGORY GRID (Homepage)
   ============================================================ */
.section-title {
  font-family: var(--font-h);
  color: var(--primary);
  font-size: 1.7rem;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--secondary);
  margin: .6rem auto 0;
  border-radius: 2px;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  margin: 2rem 0 3rem;
}
.cat-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all var(--t);
  text-decoration: none !important;
  cursor: pointer;
}
.cat-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
}
.cat-card .cat-icon { font-size: 2.4rem; display: block; margin-bottom: .5rem; }
.cat-card .cat-name {
  font-family: var(--font-h);
  font-size: .95rem;
  color: var(--primary);
  font-weight: 700;
}
.cat-card .cat-count { font-size: .8rem; color: var(--muted); margin-top: .2rem; }

/* ============================================================
   POST CARDS (Blog Grid)
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.8rem;
}

.post-card {
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  transition: box-shadow var(--t), transform var(--t);
  display: flex;
  flex-direction: column;
}
.post-card:hover { box-shadow: var(--sh-md); transform: translateY(-4px); }

.post-card-thumb {
  overflow: hidden;
  aspect-ratio: 3/2;
  position: relative;
}
.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.post-card:hover .post-card-thumb img { transform: scale(1.1); }

/* Hover gradient overlay */
.post-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(80,30,140,.78) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.post-card:hover .post-card-thumb::after { opacity: 1; }

/* "Weiterlesen" overlay label */
.post-card-thumb-overlay {
  position: absolute;
  bottom: .9rem;
  left: 1rem;
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s, transform .35s;
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: .35rem;
}
.post-card-thumb-overlay::before {
  content: '';
  width: 18px;
  height: 2px;
  background: #fff;
  display: inline-block;
  transition: width .3s;
}
.post-card:hover .post-card-thumb-overlay { opacity: 1; transform: translateY(0); }
.post-card:hover .post-card-thumb-overlay::before { width: 28px; }

.post-card-thumb-placeholder {
  width: 100%;
  aspect-ratio: 3/2;
  background: linear-gradient(135deg, var(--primary-light), #fff3e8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
}

/* ============================================================
   FEATURED ARTICLE (homepage top)
   ============================================================ */
.featured-article {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 8px 36px rgba(107,63,160,.13);
  overflow: hidden;
  margin-bottom: 2.5rem;
  transition: box-shadow .3s, transform .3s;
  text-decoration: none !important;
}
.featured-article:hover {
  box-shadow: 0 16px 48px rgba(107,63,160,.22);
  transform: translateY(-4px);
}
.featured-article-img {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--primary-light);
}
.featured-article-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform .6s ease;
  max-height: 480px;
}
.featured-article:hover .featured-article-img img { transform: scale(1.03); }
.featured-article-img::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(30,10,74,.25) 0%, transparent 100%);
  pointer-events: none;
}
.featured-badge {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  background: var(--secondary);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 50px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.featured-article-body {
  padding: 1.8rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 3px solid var(--primary-light);
}
.featured-article-cat {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .25rem .8rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  text-decoration: none !important;
}
.featured-article-title {
  font-family: var(--font-h);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 1rem;
  text-decoration: none !important;
}
.featured-article-title:hover { color: var(--primary); }
.featured-article-excerpt {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex: 1;
}
.featured-article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.featured-article-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--primary);
  color: #fff !important;
  padding: .75rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none !important;
  transition: background .2s, transform .2s;
  align-self: flex-start;
}
.featured-article-cta:hover { background: var(--primary-dark); transform: translateX(3px); }
.featured-article-no-img {
  background: linear-gradient(135deg, #6b3fa0, #9b6dce);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
}

/* ============================================================
   CATEGORY COLOR CODING
   ============================================================ */
/* amigurumi — orange */
.category-amigurumi .post-card-cat { background: #fff3ee; color: #c4520a; }
.category-amigurumi .post-card-cat:hover { background: #c4520a; color: #fff !important; }
.category-amigurumi .post-card-thumb-placeholder { background: linear-gradient(135deg, #fff3ee, #ffe0d0); }
.category-amigurumi .post-card:hover .post-card-thumb::after,
.category-amigurumi.post-card:hover .post-card-thumb::after { background: linear-gradient(to top, rgba(196,82,10,.75) 0%, transparent 55%); }

/* Anfänger — green */
.category-haekelanleitungen-anfaenger .post-card-cat { background: #edf7ee; color: #2e7d32; }
.category-haekelanleitungen-anfaenger .post-card-cat:hover { background: #2e7d32; color: #fff !important; }
.category-haekelanleitungen-anfaenger .post-card-thumb-placeholder { background: linear-gradient(135deg, #edf7ee, #c8e6c9); }

/* kostenlose-muster — rose */
.category-kostenlose-muster .post-card-cat { background: #fce4ec; color: #c2185b; }
.category-kostenlose-muster .post-card-cat:hover { background: #c2185b; color: #fff !important; }
.category-kostenlose-muster .post-card-thumb-placeholder { background: linear-gradient(135deg, #fce4ec, #f8bbd0); }

/* accessoires — teal */
.category-accessoires .post-card-cat { background: #e0f7fa; color: #00838f; }
.category-accessoires .post-card-cat:hover { background: #00838f; color: #fff !important; }
.category-accessoires .post-card-thumb-placeholder { background: linear-gradient(135deg, #e0f7fa, #b2ebf2); }

/* wohnen — blue */
.category-wohnen .post-card-cat { background: #e3f2fd; color: #1565c0; }
.category-wohnen .post-card-cat:hover { background: #1565c0; color: #fff !important; }
.category-wohnen .post-card-thumb-placeholder { background: linear-gradient(135deg, #e3f2fd, #bbdefb); }

/* saisonal — amber */
.category-saisonal .post-card-cat { background: #fff8e1; color: #e65100; }
.category-saisonal .post-card-cat:hover { background: #e65100; color: #fff !important; }
.category-saisonal .post-card-thumb-placeholder { background: linear-gradient(135deg, #fff8e1, #ffecb3); }

/* tipps-techniken — cyan */
.category-tipps-techniken .post-card-cat { background: #e1f5fe; color: #0277bd; }
.category-tipps-techniken .post-card-cat:hover { background: #0277bd; color: #fff !important; }
.category-tipps-techniken .post-card-thumb-placeholder { background: linear-gradient(135deg, #e1f5fe, #b3e5fc); }

/* baby-kinder — pink */
.category-baby-kinder .post-card-cat { background: #fce4ec; color: #ad1457; }
.category-baby-kinder .post-card-cat:hover { background: #ad1457; color: #fff !important; }
.category-baby-kinder .post-card-thumb-placeholder { background: linear-gradient(135deg, #fce4ec, #f48fb1); }

.post-card-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }

.post-card-cat {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .2rem .7rem;
  border-radius: 50px;
  margin-bottom: .7rem;
  text-decoration: none !important;
}
.post-card-cat:hover { background: var(--primary); color: var(--white) !important; }

.post-card-title {
  font-family: var(--font-h);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .7rem;
  line-height: 1.4;
}
.post-card-title a { color: inherit; text-decoration: none !important; }
.post-card-title a:hover { color: var(--primary); }

.post-card-excerpt {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: .8rem;
  margin-top: auto;
}
.post-card-read-more {
  color: var(--primary);
  font-weight: 700;
  font-size: .85rem;
  text-decoration: none !important;
}
.post-card-read-more:hover { color: var(--primary-dark); }

/* ============================================================
   SINGLE POST / ARTICLE
   ============================================================ */
.entry-header { margin-bottom: 2rem; }
.entry-header .entry-cats { margin-bottom: .8rem; }
.entry-header .entry-cats a {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .2rem .8rem;
  border-radius: 50px;
  margin-right: .4rem;
  text-decoration: none !important;
}
.entry-header .entry-title { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: .8rem; }
.entry-meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: .85rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.entry-meta svg { width: 14px; height: 14px; }

.entry-featured-image {
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 2rem;
  max-height: 500px;
}
.entry-featured-image img { width: 100%; height: 100%; object-fit: cover; }

.entry-content { font-size: 1.05rem; line-height: 1.8; }
.entry-content h2 {
  color: var(--primary);
  padding-bottom: .4rem;
  border-bottom: 3px solid var(--secondary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.entry-content h3 { color: var(--primary-dark); margin-top: 1.8rem; }
.entry-content ul, .entry-content ol { margin-bottom: 1.3rem; }
.entry-content li { margin-bottom: .4rem; }

.entry-content blockquote {
  border-left: 4px solid var(--secondary);
  background: #fff8f0;
  padding: 1rem 1.5rem;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--muted);
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .95rem;
}
.entry-content table th {
  background: var(--primary);
  color: var(--white);
  padding: .7rem 1rem;
  text-align: left;
}
.entry-content table td {
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--border);
}
.entry-content table tr:nth-child(even) td { background: var(--primary-light); }

.entry-footer { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 2px solid var(--border); }
.entry-tags a {
  display: inline-block;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: .8rem;
  padding: .2rem .7rem;
  border-radius: 50px;
  margin: .2rem;
  text-decoration: none !important;
  transition: all var(--t);
}
.entry-tags a:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }

/* Post navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
}
.nav-previous, .nav-next {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.2rem;
  transition: all var(--t);
}
.nav-previous:hover, .nav-next:hover { border-color: var(--primary); box-shadow: var(--sh-sm); }
.nav-next { text-align: right; }
.nav-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); display: block; margin-bottom: .3rem; }
.nav-title { font-family: var(--font-h); font-size: .95rem; color: var(--primary); }

/* ============================================================
   SPECIAL CONTENT BOXES
   ============================================================ */
.affiliate-disclosure {
  background: #fff8e1;
  border-left: 4px solid var(--secondary);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: .8rem 1.2rem;
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: 2rem;
  font-style: italic;
}

.materials-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
}
.materials-box strong { color: var(--primary); }

.pattern-card {
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.3rem;
  margin: 1.2rem 0;
  transition: border-color var(--t), box-shadow var(--t);
}
.pattern-card:hover { border-color: var(--primary); box-shadow: var(--sh-sm); }
.pattern-card h3 { color: var(--primary); margin-top: 0; }

.difficulty { color: var(--secondary); font-size: 1rem; }

.faq-section { margin: 2rem 0; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: .7rem;
  overflow: hidden;
}
.faq-question {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  padding: .9rem 1.2rem;
  cursor: pointer;
}
.faq-answer { padding: .9rem 1.2rem; line-height: 1.7; }

.tip-box {
  background: #f0faf4;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 1rem 1.3rem;
  margin: 1.5rem 0;
}
.tip-box strong { color: var(--accent); }

/* ============================================================
   NEWSLETTER BOX
   ============================================================ */
.newsletter-box {
  background: linear-gradient(135deg, var(--primary) 0%, #9b7dd4 100%);
  color: var(--white);
  border-radius: var(--r-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  margin: 3rem 0;
}
.newsletter-box h3 {
  font-family: var(--font-h);
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: .5rem;
}
.newsletter-box p { color: rgba(255,255,255,.9); margin-bottom: 1.5rem; }
.newsletter-form {
  display: flex;
  gap: .7rem;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: .8rem 1.2rem;
  border-radius: var(--r-md);
  border: none;
  font-size: 1rem;
  outline: none;
}
.newsletter-form .btn { white-space: nowrap; }
.newsletter-note { font-size: .78rem; opacity: .8; margin-top: .8rem; margin-bottom: 0; }

/* Sidebar newsletter widget */
.widget-newsletter {
  background: var(--primary-light);
  border-radius: var(--r-md);
  padding: 1.5rem;
  text-align: center;
}
.widget-newsletter h3 { color: var(--primary); font-size: 1rem; margin-bottom: .5rem; }
.widget-newsletter input {
  width: 100%;
  padding: .6rem .9rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  margin-bottom: .6rem;
  font-size: .9rem;
}
.widget-newsletter .btn { width: 100%; justify-content: center; }

/* ============================================================
   SIDEBAR & WIDGETS
   ============================================================ */
.sidebar { }

.widget {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 1.5rem;
  margin-bottom: 1.8rem;
  box-shadow: var(--sh-sm);
}
.widget-title {
  font-family: var(--font-h);
  font-size: 1.05rem;
  color: var(--primary);
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--secondary);
  margin-bottom: 1rem;
}
.widget ul { padding: 0; list-style: none; }
.widget ul li {
  padding: .45rem 0;
  border-bottom: 1px solid var(--border);
  margin: 0;
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--text); font-size: .92rem; }
.widget ul li a:hover { color: var(--primary); }

.widget_tag_cloud a {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .78rem !important;
  padding: .2rem .7rem;
  border-radius: 50px;
  margin: .2rem;
  text-decoration: none !important;
  transition: all var(--t);
}
.widget_tag_cloud a:hover { background: var(--primary); color: var(--white) !important; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .4rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}
/* Reset list styles when WP outputs <ul class="page-numbers"> */
.pagination ul.page-numbers,
nav.pagination ul {
  display: flex;
  align-items: center;
  gap: .4rem;
  list-style: none !important;
  margin: 0;
  padding: 0;
}
.pagination ul.page-numbers li,
nav.pagination ul li {
  list-style: none !important;
  display: flex;
}
.pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 .6rem;
  border-radius: var(--r-sm);
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  border: 1px solid var(--border);
  text-decoration: none !important;
  transition: all var(--t);
  white-space: nowrap;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--primary);
  color: var(--white) !important;
  border-color: var(--primary);
}
.pagination .page-numbers.dots {
  border: none;
  min-width: auto;
  cursor: default;
}
.pagination .page-numbers.next,
.pagination .page-numbers.prev {
  padding: 0 1rem;
  gap: .3rem;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumb {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb .sep { margin: 0 .4rem; }

/* ============================================================
   ARCHIVE / CATEGORY PAGE
   ============================================================ */
.archive-header {
  background: var(--primary-light);
  border-radius: var(--r-md);
  padding: 2rem;
  margin-bottom: 2.5rem;
  border-left: 5px solid var(--primary);
}
.archive-header h1 { color: var(--primary); margin-bottom: .3rem; }
.archive-header p { color: var(--muted); margin: 0; }

/* ============================================================
   SEARCH RESULTS
   ============================================================ */
.search-header { margin-bottom: 2rem; }
.search-form-wrap {
  display: flex;
  gap: .5rem;
  max-width: 500px;
}
.search-form-wrap input[type="search"] {
  flex: 1;
  padding: .7rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--t);
}
.search-form-wrap input[type="search"]:focus { border-color: var(--primary); }
.search-form-wrap button { padding: .7rem 1.2rem; }

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404 {
  text-align: center;
  padding: 5rem 1rem;
}
.error-404 .error-number {
  font-family: var(--font-h);
  font-size: 8rem;
  color: var(--primary-light);
  line-height: 1;
  font-weight: 700;
  margin-bottom: 1rem;
}
.error-404 h2 { color: var(--primary); }
.error-404 p { color: var(--muted); max-width: 480px; margin: 0 auto 2rem; }

/* ============================================================
   PAGE (Static)
   ============================================================ */
.page-content { max-width: var(--content); margin: 0 auto; }
.page-content h2 { color: var(--primary); margin-top: 2rem; }
.page-content h3 { color: var(--primary-dark); }

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}
.comments-title { font-size: 1.3rem; color: var(--primary); margin-bottom: 1.5rem; }

.comment-list { list-style: none; padding: 0; }
.comment {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 1.2rem;
  margin-bottom: 1rem;
  box-shadow: var(--sh-sm);
}
.comment-author img { border-radius: 50%; }
.comment-meta { font-size: .85rem; color: var(--muted); margin-bottom: .5rem; }
.reply a { color: var(--primary); font-size: .85rem; font-weight: 700; }

.comment-respond { margin-top: 2rem; }
.comment-respond h3 { color: var(--primary); margin-bottom: 1.2rem; }
.comment-respond input,
.comment-respond textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font-b);
  font-size: .95rem;
  margin-bottom: 1rem;
  outline: none;
  transition: border-color var(--t);
}
.comment-respond input:focus,
.comment-respond textarea:focus { border-color: var(--primary); }
.comment-respond textarea { min-height: 130px; resize: vertical; }
.comment-respond input[type="submit"] {
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
  border: none;
  width: auto;
  padding: .7rem 1.8rem;
  border-radius: var(--r-md);
}
.comment-respond input[type="submit"]:hover { background: var(--primary-dark); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,.85);
  margin-top: auto;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  padding: 3.5rem 1.5rem 2.5rem;
  max-width: var(--container);
  margin: 0 auto;
}

.footer-widget h4 {
  font-family: var(--font-h);
  color: var(--white);
  font-size: 1.05rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid rgba(244,162,97,.5);
  margin-bottom: 1rem;
}
.footer-widget p { color: rgba(255,255,255,.75); font-size: .9rem; margin-bottom: .6rem; }
.footer-widget ul { list-style: none; padding: 0; }
.footer-widget ul li { margin-bottom: .4rem; }
.footer-widget ul li a {
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  text-decoration: none !important;
  transition: color var(--t);
}
.footer-widget ul li a:hover { color: var(--secondary); }

.footer-widget .social-links { display: flex; gap: .6rem; margin-top: .8rem; }
.footer-widget .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: var(--r-sm);
  font-size: 1.1rem;
  color: var(--white) !important;
  transition: background var(--t);
}
.footer-widget .social-links a:hover { background: var(--secondary); }

.footer-newsletter input {
  width: 100%;
  padding: .6rem .9rem;
  border-radius: var(--r-sm);
  border: none;
  margin-bottom: .5rem;
  font-size: .9rem;
}
.footer-newsletter .btn-secondary { width: 100%; justify-content: center; font-size: .9rem; padding: .6rem 1rem; }

.footer-bottom {
  background: var(--primary-dark);
  text-align: center;
  padding: 1.1rem 1.5rem;
}
.footer-bottom-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .8rem;
}
.footer-bottom p { font-size: .82rem; color: rgba(255,255,255,.55); margin: 0; }
.footer-bottom nav a {
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  margin: 0 .6rem;
  text-decoration: none !important;
  transition: color var(--t);
}
.footer-bottom nav a:hover { color: var(--secondary); }

/* ============================================================
   WP BLOCKS / GUTENBERG
   ============================================================ */
.wp-block-image img { border-radius: var(--r-md); }
.wp-block-quote {
  border-left: 4px solid var(--secondary);
  padding: 1rem 1.5rem;
  background: #fff8f0;
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.wp-block-button__link {
  background: var(--primary) !important;
  border-radius: var(--r-md) !important;
}
.wp-block-separator { border-color: var(--border); }

/* ToC (Easy Table of Contents) */
#ez-toc-container {
  background: var(--primary-light) !important;
  border: 2px solid var(--primary) !important;
  border-radius: var(--r-md) !important;
}
#ez-toc-container a { color: var(--primary) !important; }

/* Rank Math breadcrumbs */
.rank-math-breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 1.5rem; }
.rank-math-breadcrumb a { color: var(--primary); }

/* ============================================================
   SKIP LINK (ACCESSIBILITY)
   ============================================================ */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  padding: .8rem 1.2rem;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  z-index: 9999;
}

/* ============================================================
   HERO – REDESIGNED
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #6b3fa0 0%, #9b6dce 50%, #b88de8 100%);
  position: relative;
  overflow: hidden;
  padding: 0;
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-bg-pattern svg { width: 100%; height: 100%; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  padding: 5rem 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.18);
  color: rgba(255,255,255,.95);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,.3);
  margin-bottom: 1.2rem;
}

.hero-text h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1.2rem;
}
.hero-text h1 em {
  font-style: normal;
  color: var(--secondary);
}
.hero-text p {
  color: rgba(255,255,255,.88);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 2rem;
}

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-lg { padding: .9rem 2rem; font-size: 1rem; }

/* Hero-specific button overrides */
@keyframes hero-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.45); }
  50%       { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
}
.hero .btn-primary {
  background: #fff;
  color: #6b3fa0 !important;
  border-color: #fff;
  animation: hero-pulse 2.2s ease-in-out infinite;
}
.hero .btn-primary:hover {
  background: #f0ecfb;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  animation: none;
}
.hero .btn-outline {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.8);
  color: #fff !important;
  backdrop-filter: blur(4px);
}
.hero .btn-outline:hover {
  background: rgba(255,255,255,.25);
  border-color: #fff;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

.hero-stats {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.2);
}
.hero-stat { text-align: center; }
.hero-stat strong {
  display: block;
  font-family: var(--font-h);
  font-size: 1.5rem;
  color: var(--white);
  line-height: 1;
}
.hero-stat span {
  display: block;
  font-size: .75rem;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: .2rem;
}

/* Hero visual card */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-card-preview {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: center;
  width: 100%;
  max-width: 320px;
}
.hcp-yarn { font-size: 4rem; margin-bottom: 1.2rem; }
.hcp-items {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-bottom: 1.4rem;
}
.hcp-items span {
  background: rgba(255,255,255,.2);
  color: var(--white);
  font-size: .82rem;
  font-weight: 700;
  padding: .3rem .8rem;
  border-radius: 50px;
}
.hcp-tagline {
  font-family: var(--font-a);
  font-size: 1.15rem;
  color: rgba(255,255,255,.9);
  margin: 0;
}

/* ============================================================
   CATEGORY SECTION – REDESIGNED
   ============================================================ */
.cat-section {
  padding: 4rem 0;
  background: var(--white);
}
.section-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
  margin-top: -.8rem;
  margin-bottom: 2.5rem;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.cat-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.1rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none !important;
  transition: all var(--t);
  cursor: pointer;
}
.cat-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--sh-sm);
}
.cat-card-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-sm);
}
.cat-card-info { flex: 1; min-width: 0; }
.cat-card .cat-name {
  display: block;
  font-family: var(--font-h);
  font-size: .95rem;
  color: var(--text);
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cat-card .cat-count {
  display: block;
  font-size: .75rem;
  color: var(--muted);
  margin-top: .1rem;
}
.cat-arrow {
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity var(--t), transform var(--t);
}
.cat-card:hover .cat-arrow { opacity: 1; transform: translateX(3px); }

/* ============================================================
   AUTHOR BOX
   ============================================================ */
.author-box {
  display: flex;
  gap: 1.8rem;
  align-items: flex-start;
  background: var(--primary-light);
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  margin: 3rem 0;
}
.author-box-photo img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  box-shadow: var(--sh-sm);
  flex-shrink: 0;
}
.author-box-header {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  flex-wrap: wrap;
  margin-bottom: .6rem;
}
.author-box-name {
  font-family: var(--font-h);
  font-size: 1.15rem;
  color: var(--primary);
  margin: 0;
}
.author-box-role {
  font-size: .82rem;
  color: var(--muted);
  font-style: italic;
}
.author-box-bio {
  font-size: .92rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: .9rem;
}
.author-box-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.author-link {
  font-size: .88rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none !important;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 1px;
  transition: color var(--t), border-color var(--t);
}
.author-link:hover { color: var(--primary-dark); border-color: var(--primary-dark); }

/* ============================================================
   RELATED ARTICLES
   ============================================================ */
.related-articles {
  margin: 3rem 0;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}
.related-title {
  font-family: var(--font-h);
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.related-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
  margin-top: .4rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.related-card {
  background: var(--white);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  text-decoration: none !important;
  transition: box-shadow var(--t), transform var(--t);
  display: flex;
  flex-direction: column;
}
.related-card:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-3px);
}
.related-card-img {
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--primary-light);
}
.related-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.related-card:hover .related-card-img img { transform: scale(1.06); }
.related-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.related-card-body { padding: 1rem; flex: 1; }
.related-card-cat {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--primary);
  margin-bottom: .4rem;
}
.related-card-body h4 {
  font-family: var(--font-h);
  font-size: .92rem;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: .4rem;
}
.related-card-date { font-size: .75rem; color: var(--muted); }

/* ============================================================
   STICKY MOBILE CTA BAR
   ============================================================ */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(135deg, #6b3fa0, #9b6dce);
  color: #fff;
  padding: .9rem 1.2rem;
  z-index: 3000;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  box-shadow: 0 -4px 20px rgba(107,63,160,.3);
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.34,1.1,.64,1);
}
.mobile-cta-bar.visible { transform: translateY(0); }
.mobile-cta-bar p { margin: 0; font-size: .88rem; font-weight: 600; flex: 1; }
.mobile-cta-bar .btn { white-space: nowrap; font-size: .82rem; padding: .55rem 1.1rem; flex-shrink: 0; }
.mobile-cta-close {
  background: rgba(255,255,255,.2);
  border: none;
  color: #fff;
  width: 26px; height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: .8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .mobile-cta-bar { display: flex; }
}

/* ============================================================
   SOCIAL PROOF SECTION
   ============================================================ */
.social-proof {
  background: #f9f7ff;
  border-top: 1px solid #e4dcf5;
  border-bottom: 1px solid #e4dcf5;
  padding: 3rem 0;
}
.sp-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.sp-stat {
  text-align: center;
  padding: .5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.sp-num {
  font-family: var(--font-h);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.sp-lbl { font-size: .82rem; color: var(--muted); }
.sp-divider {
  width: 1px;
  height: 40px;
  background: #e4dcf5;
  flex-shrink: 0;
}
.sp-testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.sp-testimonial {
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(107,63,160,.08);
  border: 1px solid #e4dcf5;
}
.sp-quote {
  font-size: .9rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 1rem;
  font-style: italic;
}
.sp-quote::before { content: '"'; color: var(--primary); font-size: 1.5rem; line-height: 0; vertical-align: -0.4em; }
.sp-author {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.sp-avatar { font-size: 1.8rem; }
.sp-author strong { display: block; font-size: .88rem; color: var(--text); }
.sp-author span { font-size: .78rem; color: var(--muted); }
.sp-stars { margin-left: auto; color: #FF9900; font-size: .9rem; }

/* ============================================================
   ANIMATED YARN SVG
   ============================================================ */
.widget-yarn-deco { padding: 1rem; text-align: center; border: none !important; background: none !important; }
.yarn-anim-wrap { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.yarn-svg { width: 90px; height: 90px; }

@keyframes yarn-spin-1 { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes yarn-spin-2 { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
@keyframes yarn-tail-swing {
  0%, 100% { d: path("M60 8 Q80 30 60 50 Q40 30 60 8"); }
  50%       { d: path("M60 8 Q90 20 70 50 Q50 40 60 8"); }
}
.yarn-ring { transform-origin: 60px 60px; }
.yarn-ring-1 { animation: yarn-spin-1 6s linear infinite; }
.yarn-ring-2 { animation: yarn-spin-2 4s linear infinite; }
.yarn-tail   { animation: yarn-tail-swing 2s ease-in-out infinite; }
.yarn-deco-text { font-size: .78rem; color: var(--primary); font-style: italic; font-family: var(--font-script, 'Dancing Script', cursive); margin: 0; }

/* ============================================================
   AD SLOTS
   ============================================================ */
.mz-ad-slot {
  background: #fafafa;
  border: 1px dashed #d4c5f0;
  border-radius: 8px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0;
  position: relative;
}
.mz-ad-label {
  font-size: .7rem;
  color: #bbb;
  text-transform: uppercase;
  letter-spacing: .1em;
  position: absolute;
  top: .4rem;
  right: .6rem;
}
.mz-ad-sidebar { min-height: 250px; }
.mz-ad-content { min-height: 90px; }

/* ============================================================
   BOOKMARK BUTTON
   ============================================================ */
.entry-title-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.entry-title-row .entry-title { flex: 1; margin-bottom: 0; }
.bookmark-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: #f0ecfb;
  border: 2px solid #e4dcf5;
  color: var(--primary);
  font-size: .82rem;
  font-weight: 700;
  padding: .5rem .9rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: .3rem;
}
.bookmark-btn svg { width: 16px; height: 16px; }
.bookmark-btn:hover { background: #e4dcf5; transform: scale(1.04); }
.bookmark-btn.bookmarked { background: var(--primary); border-color: var(--primary); color: #fff; }
.bookmark-btn.bookmarked svg { fill: #fff; stroke: #fff; }

/* ============================================================
   POPULAR BADGE (card + article)
   ============================================================ */
.card-badge-popular {
  position: absolute;
  top: .7rem;
  left: .7rem;
  background: #ff5722;
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  padding: .25rem .65rem;
  border-radius: 50px;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.popular-badge {
  background: #ff5722;
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  padding: .3rem .8rem;
  border-radius: 50px;
  white-space: nowrap;
  margin-top: .4rem;
  flex-shrink: 0;
}

/* ============================================================
   STITCH CALCULATOR
   ============================================================ */
.stitch-calc {
  background: linear-gradient(135deg, #f9f7ff, #f0ecfb);
  border: 2px solid #e4dcf5;
  border-radius: 16px;
  margin: 2rem 0;
  overflow: hidden;
}
.stitch-calc-header {
  background: var(--primary);
  color: #fff;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.stitch-calc-icon { font-size: 2rem; }
.stitch-calc-header h3 { color: #fff; margin: 0; font-size: 1.15rem; }
.stitch-calc-header p { margin: 0; font-size: .82rem; opacity: .85; }
.stitch-calc-body { padding: 1.5rem; }
.stitch-calc-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.stitch-field label { display: block; font-size: .82rem; font-weight: 700; color: var(--text); margin-bottom: .4rem; }
.stitch-field input,
.stitch-field select {
  width: 100%;
  padding: .65rem .9rem;
  border: 2px solid #e4dcf5;
  border-radius: 8px;
  font-size: .95rem;
  outline: none;
  background: #fff;
  transition: border-color .2s;
}
.stitch-field input:focus,
.stitch-field select:focus { border-color: var(--primary); }
.stitch-calc-btn { width: 100%; justify-content: center; }
.stitch-calc-result { margin-top: 1.2rem; animation: fadeInUp .4s ease; }
@keyframes fadeInUp { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
.sc-result-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .8rem;
  margin-bottom: .8rem;
}
.sc-result-item {
  background: #fff;
  border-radius: 10px;
  padding: .9rem .7rem;
  text-align: center;
  border: 1px solid #e4dcf5;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.sc-result-item strong { font-size: 1.4rem; color: var(--primary); font-family: var(--font-h); }
.sc-result-item span { font-size: .75rem; color: var(--muted); }
.sc-result-highlight { border-color: var(--primary); background: #f0ecfb; }
.sc-result-highlight strong { font-size: 1.7rem; }
.sc-disclaimer { font-size: .75rem; color: var(--muted); text-align: center; margin: 0; }

/* Jump to Pattern button */
.jump-to-pattern {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--secondary);
  color: #fff !important;
  padding: .65rem 1.3rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none !important;
  margin-bottom: 1.5rem;
  transition: background .2s, transform .2s;
}
.jump-to-pattern:hover { background: var(--secondary-dark, #d4724a); transform: translateY(-2px); }

/* ============================================================
   NEU BADGE + DIFFICULTY BADGE
   ============================================================ */
.card-badge-new {
  position: absolute;
  top: .7rem;
  right: .7rem;
  background: #00c853;
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .05em;
  padding: .25rem .65rem;
  border-radius: 50px;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.post-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  margin-bottom: .7rem;
  flex-wrap: wrap;
}
.post-card-top-row .post-card-cat { margin-bottom: 0; }
.difficulty-badge {
  font-size: .65rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 50px;
  white-space: nowrap;
  letter-spacing: .03em;
}

/* ============================================================
   CATEGORY FILTER BAR
   ============================================================ */
.cat-filter-bar {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding: .2rem 0;
}
.cat-filter-btn {
  background: #f0ecfb;
  border: 2px solid transparent;
  color: var(--primary);
  font-size: .82rem;
  font-weight: 700;
  padding: .4rem 1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s;
}
.cat-filter-btn:hover { background: #e4dcf5; transform: translateY(-1px); }
.cat-filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.post-card.hidden-by-filter {
  display: none;
}

/* ============================================================
   SHARE BUTTONS (single post — floating left)
   ============================================================ */
.share-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  position: fixed;
  left: max(1rem, calc(50% - var(--container)/2 - 60px));
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  opacity: 0;
  transition: opacity .4s;
}
.share-buttons.visible { opacity: 1; }
.share-label {
  font-size: .65rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin-bottom: .3rem;
}
.share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.share-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.share-btn:hover { transform: scale(1.15); box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.share-pinterest  { background: #E60023; }
.share-whatsapp   { background: #25D366; }
.share-facebook   { background: #1877F2; }
.share-copy       { background: #6c757d; }
.share-copy.copied { background: #00c853; }

/* ============================================================
   AMAZON PRODUCT BOX
   ============================================================ */
.amazon-box {
  border: 2px solid #ffd700;
  border-radius: 14px;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0,0,0,.08);
}
.amazon-box-badge {
  position: absolute;
  top: 0; left: 0;
  background: #FF9900;
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  padding: .3rem .9rem;
  border-radius: 0 0 10px 0;
  letter-spacing: .04em;
}
.amazon-box-inner {
  display: flex;
  gap: 1.5rem;
  padding: 2rem 1.5rem 1.5rem;
  align-items: flex-start;
}
.amazon-box-img {
  flex-shrink: 0;
  width: 110px;
}
.amazon-box-img img {
  width: 100%;
  border-radius: 8px;
  object-fit: contain;
}
.amazon-box-content { flex: 1; }
.amazon-box-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: .5rem;
  line-height: 1.4;
}
.amazon-box-rating {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem;
}
.amazon-stars { color: #FF9900; font-size: 1rem; letter-spacing: .05em; }
.amazon-rating-val { font-size: .82rem; color: var(--muted); }
.amazon-box-price {
  font-size: .95rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.amazon-box-price strong { color: #B12704; font-size: 1.15rem; }
.amazon-box-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #FF9900;
  color: #fff !important;
  padding: .65rem 1.3rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: .88rem;
  text-decoration: none !important;
  transition: background .2s, transform .2s;
}
.amazon-box-btn:hover { background: #e68900; transform: translateY(-1px); }
.amazon-disclaimer {
  font-size: .72rem;
  color: var(--muted);
  margin-top: .6rem;
  opacity: .7;
}

/* ============================================================
   SKELETON LOADING
   ============================================================ */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
body.is-loading .post-card-thumb,
body.is-loading .post-card-thumb-placeholder {
  background: linear-gradient(90deg, #f0ecfb 25%, #e4dcf5 50%, #f0ecfb 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
}
body.is-loading .post-card-body {
  background: linear-gradient(90deg, #fafafa 25%, #f0f0f0 50%, #fafafa 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
}

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
#read-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  z-index: 9999;
  transition: width .1s linear;
  border-radius: 0 2px 2px 0;
}

/* ============================================================
   SCROLL FADE-IN ANIMATIONS
   ============================================================ */
.fade-in-el {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-in-el.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   TABLE OF CONTENTS
   ============================================================ */
.toc-box {
  background: #f9f7ff;
  border: 1px solid #e4dcf5;
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 2rem;
  max-width: 640px;
}
.toc-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-h);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  padding: 0;
  display: flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
  text-align: left;
}
.toc-chevron { font-size: .75rem; margin-left: auto; }
.toc-list {
  list-style: none;
  margin: .8rem 0 0;
  padding: 0;
  display: block;
}
.toc-list li { margin: .35rem 0; }
.toc-list li a {
  color: var(--text);
  text-decoration: none;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  transition: color .2s;
}
.toc-list li a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  opacity: .5;
}
.toc-list li a:hover,
.toc-list li a.active { color: var(--primary); }
.toc-list li a.active::before { opacity: 1; }
.toc-list li.toc-h3 { padding-left: 1.2rem; }
.toc-list li.toc-h3 a { font-size: .85rem; }
.toc-list li.toc-h3 a::before { width: 4px; height: 4px; }

/* ============================================================
   BACK TO TOP + CIRCLE PROGRESS
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  background: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity .3s, transform .3s, box-shadow .2s;
  box-shadow: 0 4px 18px rgba(124,92,191,.3);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.back-to-top.visible { opacity: 1; transform: scale(1); }
.back-to-top:hover { box-shadow: 0 6px 24px rgba(124,92,191,.5); transform: scale(1.08); }

.btt-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.btt-ring-bg {
  fill: none;
  stroke: #e4dcf5;
  stroke-width: 3;
}
.btt-ring-progress {
  fill: none;
  stroke: var(--primary);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dashoffset .15s linear;
}
.btt-arrow {
  position: relative;
  z-index: 1;
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

/* ============================================================
   NEWSLETTER POPUP
   ============================================================ */
#newsletter-popup {
  position: fixed;
  inset: 0;
  background: rgba(20,10,40,.7);
  backdrop-filter: blur(5px);
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
#newsletter-popup.open { opacity: 1; pointer-events: all; }
body.popup-open { overflow: hidden; }

.popup-inner {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,.3);
  transform: scale(.9) translateY(20px);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
#newsletter-popup.open .popup-inner { transform: scale(1) translateY(0); }

.popup-close {
  position: absolute;
  top: .9rem;
  right: .9rem;
  background: #f0ecfb;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: .85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.popup-close:hover { background: #e4dcf5; color: var(--primary); }

.popup-icon {
  font-size: 3rem;
  margin-bottom: .8rem;
  animation: popup-bounce .6s ease .3s both;
}
@keyframes popup-bounce {
  0%   { transform: scale(0) rotate(-20deg); }
  70%  { transform: scale(1.2) rotate(5deg); }
  100% { transform: scale(1) rotate(0); }
}
.popup-inner h3 {
  font-family: var(--font-h);
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: .6rem;
}
.popup-inner p { color: var(--muted); font-size: .92rem; margin-bottom: 1.2rem; }
.popup-form { display: flex; flex-direction: column; gap: .6rem; margin-bottom: .8rem; }
.popup-form input[type="email"] {
  padding: .8rem 1rem;
  border: 2px solid #e4dcf5;
  border-radius: 8px;
  font-size: .95rem;
  outline: none;
  transition: border-color .2s;
  text-align: center;
}
.popup-form input[type="email"]:focus { border-color: var(--primary); }
.popup-form .btn { width: 100%; justify-content: center; padding: .85rem; font-size: .95rem; }
.popup-note { font-size: .75rem; color: var(--muted); opacity: .8; margin: 0; }

/* ============================================================
   PLACEHOLDER CARDS — beautiful gradient
   ============================================================ */
.post-card-thumb-placeholder {
  position: relative;
  overflow: hidden;
}
.post-card-thumb-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,.06) 0px,
    rgba(255,255,255,.06) 2px,
    transparent 2px,
    transparent 14px
  );
}
.post-card-thumb-placeholder span {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.12));
  transition: transform .4s ease;
}
.post-card:hover .post-card-thumb-placeholder span { transform: scale(1.15) rotate(-5deg); }

/* ============================================================
   SEARCH OVERLAY
   ============================================================ */
#search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  padding: .4rem;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
#search-toggle:hover { color: var(--primary); background: rgba(124,92,191,.08); }

#search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,10,40,.85);
  backdrop-filter: blur(6px);
  z-index: 5000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
#search-overlay.open { opacity: 1; pointer-events: all; }
.search-overlay-inner {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 560px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  transform: translateY(-20px);
  transition: transform .3s;
}
#search-overlay.open .search-overlay-inner { transform: translateY(0); }
.search-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #f0ecfb;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: .9rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-close:hover { background: #e4dcf5; }
.search-overlay-hint {
  font-family: var(--font-h);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.2rem;
}
#search-overlay form { display: flex; gap: .6rem; }
#search-overlay input[type="search"] {
  flex: 1;
  padding: .75rem 1rem;
  border: 2px solid #e4dcf5;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color .2s;
}
#search-overlay input[type="search"]:focus { border-color: var(--primary); }
.search-quick-links {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  font-size: .85rem;
  color: var(--muted);
}
.search-quick-links a {
  background: #f0ecfb;
  color: var(--primary);
  padding: .3rem .75rem;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s;
}
.search-quick-links a:hover { background: #e4dcf5; }

/* ============================================================
   STICKY SIDEBAR
   ============================================================ */
.sidebar {
  position: sticky;
  top: 5rem;
  align-self: flex-start;
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #e4dcf5 transparent;
}

/* ============================================================
   READING TIME BADGE ON CARDS
   ============================================================ */
.post-card-reading-time {
  font-size: .75rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .25rem;
}

/* ============================================================
   ARCHIVE / CATEGORY HEADER
   ============================================================ */
.archive-header {
  background: linear-gradient(135deg, #f9f7ff 0%, #f0ecfb 100%);
  border-radius: 14px;
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
  border-left: 5px solid var(--primary);
}
.archive-header h1 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: .5rem;
}
.archive-header p {
  color: var(--muted);
  font-size: .95rem;
  margin: 0;
}
.archive-count-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .7rem;
  border-radius: 20px;
  margin-top: .6rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .content-area { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .footer-widgets { grid-template-columns: 1fr 1fr; }
  .toc-box { max-width: 100%; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }

  .featured-article-img img { max-height: 300px; }
  .featured-article-body { padding: 1.2rem 1.5rem 1.5rem; }
  .featured-article-title { font-size: 1.25rem; }

  .share-buttons { display: none; }
  .amazon-box-inner { flex-direction: column; }
  .amazon-box-img { width: 80px; }
  .sp-testimonials { grid-template-columns: 1fr; }
  .stitch-calc-row { grid-template-columns: 1fr; }
  .sc-result-grid { grid-template-columns: 1fr 1fr; }
  .sp-divider { display: none; }
  .sp-stats { gap: 1rem; }

  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 1rem 0; }
  .main-nav ul li a { padding: .6rem 1rem; }
  .nav-toggle { display: block; }

  /* Hero mobile */
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1.5rem; }
  .hero-visual { display: none; }
  .hero-stats { gap: 1.2rem; }
  .hero-stat strong { font-size: 1.2rem; }

  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .posts-grid { grid-template-columns: 1fr; }
  .footer-widgets { grid-template-columns: 1fr; }
  .post-navigation { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input[type="email"] { min-width: 0; }

  /* Author box mobile */
  .author-box { flex-direction: column; align-items: center; text-align: center; }
  .author-box-links { justify-content: center; }

  /* Related articles mobile */
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .header-inner { padding: .7rem 1rem; }
  .site-logo-text .brand-tagline { display: none; }
  .hero-btns .btn-lg { padding: .75rem 1.4rem; font-size: .9rem; }
  .hero-stats { gap: .8rem; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header, .sidebar, .site-footer, .newsletter-box, .post-navigation { display: none; }
  .content-area { grid-template-columns: 1fr; }
  body { font-size: 12pt; }
}

/* ============================================================
   FOOTER REDESIGN
   ============================================================ */
.footer-wave { line-height: 0; margin-bottom: -1px; }
.footer-wave svg { display: block; width: 100%; height: 60px; }
.footer-top { background: #1e0e4a; padding: 3.5rem 0 2.5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
}
.footer-logo-link {
  display: flex; align-items: center; gap: .5rem;
  text-decoration: none; margin-bottom: 1rem;
}
.footer-logo-yarn { font-size: 2rem; }
.footer-logo-name { font-family: var(--font-h); font-size: 1.4rem; color: #fff; font-weight: 700; }
.footer-brand-desc { color: rgba(255,255,255,.65); font-size: .88rem; line-height: 1.6; margin-bottom: 1.2rem; }
.footer-social-row { display: flex; gap: .5rem; }
.fsoc {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; transition: transform .2s, opacity .2s;
  text-decoration: none;
}
.fsoc svg { width: 16px; height: 16px; }
.fsoc:hover { transform: translateY(-3px); opacity: .85; }
.fsoc-pin  { background: #e60023; }
.fsoc-ig   { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.fsoc-tt   { background: #010101; }
.fsoc-yt   { background: #ff0000; }

.footer-col-h {
  font-family: var(--font-h); color: #fff; font-size: .95rem;
  margin-bottom: 1rem; padding-bottom: .5rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-col-links ul { list-style: none; padding: 0; margin: 0; }
.footer-col-links li { margin-bottom: .45rem; }
.footer-col-links a {
  color: rgba(255,255,255,.6); font-size: .87rem;
  text-decoration: none; transition: color .2s;
  display: flex; align-items: center; gap: .4rem;
}
.footer-col-links a:hover { color: var(--secondary); }

.footer-col-nl p { color: rgba(255,255,255,.65); font-size: .88rem; margin-bottom: 1rem; }
.footer-nl-form { display: flex; flex-direction: column; gap: .5rem; }
.footer-nl-form input {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #fff; padding: .6rem .9rem; border-radius: var(--r-sm); font-size: .9rem;
}
.footer-nl-form input::placeholder { color: rgba(255,255,255,.4); }
.footer-nl-form input:focus { outline: none; border-color: var(--secondary); }
.footer-nl-form .btn-secondary { width: 100%; justify-content: center; font-size: .88rem; padding: .6rem; }
.footer-nl-note { font-size: .75rem; color: rgba(255,255,255,.4); margin-top: .5rem; }

.footer-bottom { background: #120840; padding: .9rem 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-bottom-inner p { font-size: .8rem; color: rgba(255,255,255,.4); margin: 0; }
.footer-bottom-nav { display: flex; gap: 1.2rem; }
.footer-bottom-nav a { font-size: .8rem; color: rgba(255,255,255,.4); text-decoration: none; transition: color .2s; }
.footer-bottom-nav a:hover { color: rgba(255,255,255,.8); }

/* ============================================================
   MOBILE MENU OVERLAY + ANIMATION
   ============================================================ */
.nav-overlay {
  position: fixed; inset: 0; z-index: 98;
  background: rgba(10,4,30,.6); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.nav-overlay.active { opacity: 1; pointer-events: all; }

@media (max-width: 768px) {
  .main-nav {
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.22,.68,0,1.2), opacity .3s;
    opacity: 0;
  }
  .main-nav.nav-open {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ============================================================
   ARTICLE H2 / H3 UPGRADE
   ============================================================ */
.entry-content h2 {
  border-bottom: none !important;
  border-left: 4px solid var(--secondary);
  background: linear-gradient(90deg, rgba(255,179,71,.08) 0%, transparent 100%);
  padding: .6rem 1rem !important;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin-top: 2.5rem !important;
  margin-bottom: 1rem !important;
}
.entry-content h3 {
  position: relative;
  padding-left: 1rem;
  color: var(--primary-dark);
  margin-top: 1.8rem;
}
.entry-content h3::before {
  content: '';
  position: absolute; left: 0; top: .15em;
  width: 3px; height: 1em;
  background: var(--secondary);
  border-radius: 2px;
}

/* ============================================================
   BLOCKQUOTE UPGRADE
   ============================================================ */
.entry-content blockquote {
  position: relative;
  border-left: none !important;
  background: linear-gradient(135deg, var(--primary-light) 0%, #fff8f5 100%) !important;
  padding: 2rem 2rem 1.5rem 3.5rem !important;
  border-radius: var(--r-md) !important;
  margin: 2rem 0 !important;
  font-style: normal !important;
  font-size: 1.08rem;
  color: var(--primary-dark) !important;
  box-shadow: 0 2px 12px rgba(93,46,140,.08);
}
.entry-content blockquote::before {
  content: '\201C';
  position: absolute; left: .8rem; top: .2rem;
  font-size: 5rem; line-height: 1;
  color: var(--secondary); opacity: .5;
  font-family: Georgia, serif;
}
.entry-content blockquote p { margin: 0; }
.entry-content blockquote cite, .entry-content blockquote footer {
  display: block; margin-top: .8rem;
  font-size: .85rem; color: var(--muted); font-style: italic;
}

/* ============================================================
   POST NAVIGATION WITH THUMBNAILS
   ============================================================ */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
}
.nav-card {
  display: flex; align-items: center; gap: .8rem;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: .9rem;
  text-decoration: none; transition: all var(--t);
  overflow: hidden;
}
.nav-card:hover { border-color: var(--primary); box-shadow: var(--sh-sm); transform: translateY(-2px); }
.nav-card-img {
  width: 70px; height: 70px; object-fit: cover;
  border-radius: var(--r-sm); flex-shrink: 0;
}
.nav-card-placeholder {
  width: 70px; height: 70px; border-radius: var(--r-sm);
  background: var(--primary-light); display: flex;
  align-items: center; justify-content: center;
  font-size: 2rem; flex-shrink: 0;
}
.nav-card-body { flex: 1; min-width: 0; }
.nav-card-body-right { text-align: right; }
.nav-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); display: block; margin-bottom: .25rem; }
.nav-title { font-family: var(--font-h); font-size: .88rem; color: var(--primary); display: block; margin-bottom: .2rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nav-cat { font-size: .75rem; color: var(--muted); }

/* ============================================================
   PAGE TRANSITION
   ============================================================ */
body { opacity: 1; transition: opacity .25s ease; }
body.page-exit { opacity: 0; }

/* ============================================================
   SECTION HEADING ANIMATION
   ============================================================ */
.section-title {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.section-title.title-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.mz-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(5,2,15,.92); backdrop-filter: blur(8px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
  padding: 1.5rem;
}
.mz-lightbox.lb-open { opacity: 1; pointer-events: all; }
.mz-lb-img {
  max-width: min(90vw, 900px);
  max-height: 80vh; object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  transform: scale(.92);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.mz-lightbox.lb-open .mz-lb-img { transform: scale(1); }
.mz-lb-caption {
  color: rgba(255,255,255,.7); font-size: .9rem;
  margin-top: .8rem; text-align: center; max-width: 600px;
}
.mz-lb-close {
  position: absolute; top: 1rem; right: 1.2rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: 1.1rem; width: 40px; height: 40px;
  border-radius: 50%; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: background .2s;
}
.mz-lb-close:hover { background: rgba(255,255,255,.2); }

/* make article images show cursor:zoom-in */
.entry-content img { cursor: zoom-in; }

/* ============================================================
   FOOTER RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .footer-bottom-nav { flex-wrap: wrap; justify-content: center; }
  .post-navigation { grid-template-columns: 1fr; }
}

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9998;
  background: #1e0e4a;
  padding: 1rem 1.5rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,.3);
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.22,.68,0,1.2);
}
.cookie-banner.cookie-visible { transform: translateY(0); }
.cookie-banner-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.cookie-banner-text { flex: 1; min-width: 260px; }
.cookie-banner-title { font-family: var(--font-h); color: #fff; font-size: 1rem; margin-bottom: .3rem; font-weight: 700; }
.cookie-banner-text p { color: rgba(255,255,255,.7); font-size: .85rem; margin: 0; }
.cookie-banner-text a { color: var(--secondary); }
.cookie-banner-btns { display: flex; gap: .7rem; flex-shrink: 0; }
.cookie-btn-reject { border-color: rgba(255,255,255,.3); color: rgba(255,255,255,.7) !important; font-size: .88rem; padding: .5rem 1rem; }
.cookie-btn-accept { font-size: .88rem; padding: .5rem 1.2rem; }
@media (max-width: 600px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; }
  .cookie-banner-btns { flex-direction: column; }
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404-page {
  min-height: 80vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 3rem 1.5rem; text-align: center;
}
.e404-yarn {
  width: 160px; height: 160px; margin-bottom: 2rem;
  animation: e404-float 3s ease-in-out infinite;
}
.e404-yarn svg { width: 100%; height: 100%; }
@keyframes e404-float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.e404-spin { animation: yarn-spin-1 6s linear infinite; transform-origin: 100px 100px; }
.e404-spin-rev { animation: yarn-spin-2 4s linear infinite; transform-origin: 100px 100px; }
.e404-tail { animation: yarn-tail-swing 2s ease-in-out infinite; transform-origin: 100px 30px; }
.e404-number {
  font-family: var(--font-h); font-size: 7rem; font-weight: 900;
  color: var(--primary-light); line-height: 1;
  text-shadow: 2px 4px 0 var(--secondary);
  margin-bottom: .5rem;
}
.e404-title { font-size: 1.6rem; color: var(--primary); margin-bottom: 1rem; }
.e404-title em { color: var(--secondary); font-style: normal; }
.e404-desc { color: var(--muted); max-width: 480px; margin: 0 auto 2rem; line-height: 1.7; }
.e404-search { max-width: 420px; margin: 0 auto 1.5rem; }
.e404-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.e404-cats h3 { color: var(--primary); margin-bottom: 1.2rem; }
.e404-cat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: .7rem; max-width: 600px; margin: 0 auto;
}
.e404-cat-card {
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: .8rem .5rem;
  text-decoration: none; font-size: .82rem; color: var(--primary);
  transition: all var(--t);
}
.e404-cat-card span:first-child { font-size: 1.8rem; }
.e404-cat-card:hover { border-color: var(--primary); box-shadow: var(--sh-sm); transform: translateY(-2px); }
@media (max-width: 480px) { .e404-cat-grid { grid-template-columns: repeat(2,1fr); } }

/* ============================================================
   COMMENTS REDESIGN
   ============================================================ */
.mz-comments-area { margin-top: 2.5rem; }
.mz-comments-title {
  display: flex; align-items: center; gap: .5rem;
  font-size: 1.3rem; color: var(--primary); margin-bottom: 1.5rem;
  padding-bottom: .7rem; border-bottom: 2px solid var(--border);
}
.mz-comments-icon { font-size: 1.4rem; }
.mz-comment-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.mz-comment { padding: 0; }
.mz-comment-card {
  display: flex; gap: 1rem;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 1.1rem;
  transition: box-shadow var(--t);
}
.mz-comment-card:hover { box-shadow: var(--sh-sm); }
.mz-comment-avatar { flex-shrink: 0; }
.mz-avatar-img { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--primary-light); }
.mz-comment-body { flex: 1; min-width: 0; }
.mz-comment-header { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: .5rem; }
.mz-comment-author { color: var(--primary); font-size: .95rem; }
.mz-comment-date { font-size: .78rem; color: var(--muted); }
.mz-reply-link a {
  font-size: .78rem; color: var(--secondary); text-decoration: none;
  padding: .15rem .5rem; border: 1px solid var(--secondary);
  border-radius: 20px; transition: all var(--t);
}
.mz-reply-link a:hover { background: var(--secondary); color: #fff; }
.mz-comment-text { font-size: .92rem; line-height: 1.65; color: var(--text); }
.mz-comment-text p { margin: 0; }
.mz-comment-pending { font-size: .8rem; color: var(--muted); font-style: italic; margin-top: .4rem; }
.mz-no-comments {
  text-align: center; padding: 2rem;
  background: var(--bg); border-radius: var(--r-md);
  margin-bottom: 1.5rem;
}
.mz-no-comments span { font-size: 2.5rem; display: block; margin-bottom: .5rem; }
.mz-no-comments p { color: var(--muted); margin: 0; }

/* Comment form */
.mz-comment-form-wrap {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.8rem; margin-top: 2rem;
}
.mz-comment-form-title { color: var(--primary); font-size: 1.2rem; margin-bottom: .4rem; }
.mz-comment-form-note { font-size: .83rem; color: var(--muted); margin-bottom: 1.2rem; }
.mz-form-row { margin-bottom: 1rem; }
.mz-form-row input, .mz-form-row textarea {
  width: 100%; border: 1.5px solid var(--border);
  border-radius: var(--r-sm); padding: .7rem 1rem;
  font-family: var(--font-body); font-size: .95rem; color: var(--text);
  background: var(--bg); transition: border-color .2s;
}
.mz-form-row input:focus, .mz-form-row textarea:focus {
  outline: none; border-color: var(--primary);
  background: #fff;
}
.mz-form-row textarea { resize: vertical; min-height: 120px; }
.mz-submit-btn { margin-top: .5rem; }
.mz-comments-closed { color: var(--muted); font-style: italic; font-size: .9rem; }

/* ============================================================
   ARTICLE TOOLS (Font adjuster + Print btn)
   ============================================================ */
.article-tools {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: .6rem 1rem;
  margin-bottom: 1.5rem;
}
.font-adjuster { display: flex; align-items: center; gap: .4rem; }
.font-adjuster-label { font-size: .8rem; color: var(--muted); margin-right: .2rem; }
.font-btn {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--r-sm); padding: .3rem .65rem;
  font-family: var(--font-h); font-weight: 700; cursor: pointer;
  transition: all var(--t); color: var(--primary); font-size: .85rem;
}
.font-btn:hover { border-color: var(--primary); background: var(--primary-light); }
.font-btn-mid { font-size: 1rem; padding: .25rem .65rem; }
.print-btn {
  display: flex; align-items: center; gap: .4rem;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--r-sm); padding: .35rem .8rem;
  font-size: .85rem; color: var(--muted); cursor: pointer;
  transition: all var(--t);
}
.print-btn svg { width: 15px; height: 15px; }
.print-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ============================================================
   EMPFOHLENE PRODUKTE
   ============================================================ */
.emp-produkte {
  background: linear-gradient(135deg, #fffbf0 0%, var(--primary-light) 100%);
  border: 2px solid var(--secondary);
  border-radius: var(--r-lg); padding: 1.5rem; margin: 2.5rem 0;
}
.emp-produkte-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem;
}
.emp-produkte-title { margin: 0; font-size: 1.1rem; color: var(--primary); }
.emp-produkte-note { font-size: .75rem; color: var(--muted); font-style: italic; }
.emp-produkte-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.emp-prod-card {
  background: var(--white); border-radius: var(--r-md);
  overflow: hidden; border: 1px solid var(--border);
  transition: all var(--t);
}
.emp-prod-card:hover { box-shadow: var(--sh-sm); transform: translateY(-2px); }
.emp-prod-img-wrap {
  background: var(--bg); height: 90px;
  display: flex; align-items: center; justify-content: center;
}
.emp-prod-placeholder { font-size: 2.5rem; }
.emp-prod-body { padding: .8rem; }
.emp-prod-label {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--secondary);
  background: rgba(255,179,71,.1); padding: .15rem .5rem;
  border-radius: 20px; display: inline-block; margin-bottom: .4rem;
}
.emp-prod-name { font-size: .88rem; color: var(--primary); font-weight: 600; margin-bottom: .3rem; line-height: 1.3; }
.emp-prod-price { font-size: .9rem; color: #c0392b; font-weight: 700; margin-bottom: .6rem; }
.emp-prod-btn { font-size: .78rem; padding: .4rem .7rem; width: 100%; justify-content: center; }
@media (max-width: 600px) { .emp-produkte-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FEEDBACK WIDGET
   ============================================================ */
.feedback-widget {
  background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.5rem; text-align: center; margin: 2rem 0;
}
.feedback-question p { font-family: var(--font-h); font-size: 1.05rem; color: var(--primary); margin-bottom: 1rem; }
.feedback-btns { display: flex; gap: 1rem; justify-content: center; }
.feedback-btn {
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  background: var(--white); border: 2px solid var(--border);
  border-radius: var(--r-md); padding: .8rem 2rem;
  cursor: pointer; font-size: .9rem; color: var(--text);
  transition: all var(--t); font-family: var(--font-body);
}
.feedback-btn:hover { transform: translateY(-3px); box-shadow: var(--sh-sm); }
.feedback-yes:hover { border-color: #2e7d32; color: #2e7d32; }
.feedback-no:hover  { border-color: #c62828; color: #c62828; }
.feedback-btn.voted-yes { border-color: #2e7d32; background: #edf7ee; color: #2e7d32; }
.feedback-btn.voted-no  { border-color: #e53935; background: #ffebee; color: #c62828; }
.feedback-icon { font-size: 1.8rem; }
.feedback-thanks {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  animation: feedback-pop .4s cubic-bezier(.34,1.56,.64,1);
}
.feedback-thanks-icon { font-size: 2.5rem; }
.feedback-thanks p { color: var(--primary); font-family: var(--font-h); margin: 0; }
@keyframes feedback-pop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ============================================================
   MATERIALS CHECKLIST
   ============================================================ */
.mz-checklist { list-style: none !important; padding: 0 !important; }
.mz-chk-label {
  display: flex; align-items: flex-start; gap: .7rem;
  cursor: pointer; padding: .45rem 0; user-select: none;
}
.mz-chk { display: none; }
.mz-chk-custom {
  width: 20px; height: 20px; min-width: 20px;
  border: 2px solid var(--primary); border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); transition: all .2s;
  margin-top: .1em;
}
.mz-chk:checked + .mz-chk-custom {
  background: var(--primary); border-color: var(--primary);
}
.mz-chk:checked + .mz-chk-custom::after {
  content: '✓'; color: #fff; font-size: .8rem; font-weight: 700;
}
.mz-chk-text { font-size: .95rem; line-height: 1.5; }
li.mz-chk-done .mz-chk-text { text-decoration: line-through; color: var(--muted); }
.mz-chk-clear {
  display: inline-block; margin-top: .5rem;
  font-size: .78rem; color: var(--muted);
  background: none; border: 1px solid var(--border);
  border-radius: 20px; padding: .2rem .7rem;
  cursor: pointer; transition: all var(--t);
}
.mz-chk-clear:hover { border-color: var(--primary); color: var(--primary); }

/* Print: show checklist checked state properly */
@media print {
  .mz-chk-custom { border: 1.5px solid #000 !important; background: #fff !important; }
  .mz-chk-done .mz-chk-custom { background: #000 !important; }
  .article-tools, .share-buttons, .feedback-widget, .emp-produkte,
  .author-box, .related-articles, .post-navigation, .back-to-top,
  .sticky-cta-bar, .cookie-banner, .mz-lightbox { display: none !important; }
}

/* ============================================================
   HERO IMAGE (Customizer)
   ============================================================ */
.hero-img-wrap {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  max-width: 520px;
  width: 100%;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  border-radius: var(--r-lg);
  aspect-ratio: 4/3;
}
.hero-img-badge {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--secondary); color: #fff;
  font-family: var(--font-h); font-size: .85rem;
  font-weight: 700; padding: .3rem .9rem;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
