/*
Theme Name: Solarselbstversorger Magazin
Theme URI: https://solarselbstversorger.de
Author: Solarselbstversorger
Description: Editoriales Magazin-Theme für solarselbstversorger.de — klare Typografie, strukturiertes Layout, schnell. Nachgebaut nach dem Vorbild des GrowerMagazin-Themes, für Balkonkraftwerke & Photovoltaik neu eingefärbt.
Version: 1.0
License: GNU General Public License v2
Text Domain: solarselbstversorger
*/

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:      #12140f;
  --paper:    #f6f3ea;
  --paper2:   #ece6d6;
  --pine:     #123c33;  /* dunkles Kiefer-/Waldgrün statt Moos — Header, Hero, Footer */
  --pine2:    #1f5c4c;  /* helleres Grün für Hover/Links */
  --sun:      #ffc94a;  /* warmes Sonnengelb statt Acid-Lime — Akzentfarbe */
  --sun2:     #ffdd85;
  --rust:     #ae4416;  /* Terrakotta — "Meistgelesen"-Label, Hover, Warnungen (WCAG-AA-geprüft) */
  --muted:    #5c5a4e;  /* ≥4.5:1 Kontrast auf paper/paper2/weiß */
  --border:   #cfc9ba;
  --white:    #ffffff;
  --font-head: 'Bebas Neue', Impact, sans-serif;
  --font-body: 'Newsreader', Georgia, serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

/* ─── NAVIGATION ─── */
#site-header {
  background: var(--pine);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.header-inner {
  display: flex;
  align-items: stretch;
  height: 60px;
}

.site-logo {
  font-family: var(--font-head);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  color: var(--sun);
  text-decoration: none;
  padding: 0 2rem 0 0;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,0.08);
  margin-right: 1rem;
}

.main-nav {
  display: flex;
  align-items: stretch;
  flex: 1;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: stretch;
  gap: 0;
}

.main-nav ul li a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 14px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-right: 1px solid rgba(255,255,255,0.07);
  transition: color 0.15s, background 0.15s;
}

.main-nav ul li a:hover,
.main-nav ul li.current-menu-item a {
  color: var(--sun);
  background: rgba(255,255,255,0.05);
}

.header-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.5rem;
}

.btn-write {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--sun);
  color: var(--pine);
  padding: 7px 16px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-write:hover { background: var(--sun2); color: var(--pine); }

/* ─── SKIP LINK ─── */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -60px;
  background: var(--sun);
  color: var(--pine);
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  z-index: 1000;
  transition: top 0.15s;
}
.skip-link:focus { top: 1rem; }

/* ─── FOCUS VISIBILITY (a11y) ─── */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 2px;
}

/* ─── MOBILE NAV TOGGLE (Hamburger) ─── */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--sun);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.mobile-nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) { opacity: 0; }
.mobile-nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── MOBILE NAV DRAWER ─── */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18,20,15,0.6);
  z-index: 299;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 86vw);
  background: var(--pine);
  z-index: 300;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body.mobile-nav-open { overflow: hidden; }
body.mobile-nav-open .mobile-nav-overlay { opacity: 1; pointer-events: auto; }
body.mobile-nav-open .mobile-nav { transform: translateX(0); }

.mobile-nav-inner { padding: 1.25rem 1.5rem 2.5rem; }

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.mobile-nav-logo {
  font-family: var(--font-head);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: var(--sun);
}

.mobile-nav-close {
  width: 40px;
  height: 40px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--sun);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.mobile-nav-shop-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--sun);
  color: var(--pine);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 14px 16px;
  margin-bottom: 1.5rem;
  min-height: 44px;
}
.mobile-nav-shop-cta:hover { background: var(--sun2); }

.mobile-nav-list,
.mobile-nav-footer-list { list-style: none; }

.mobile-nav-list li { border-bottom: 1px solid rgba(255,255,255,0.1); }
.mobile-nav-list li a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 2px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mobile-nav-list li.current-menu-item a,
.mobile-nav-list li a:hover { color: var(--sun); }

.mobile-nav-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-nav-footer-list { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-footer-list a {
  display: block;
  padding: 6px 2px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.mobile-nav-footer-list a:hover { color: rgba(255,255,255,0.7); }

/* ─── TRUST BAR ─── */
.trust-bar {
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 8px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.trust-bar-inner::-webkit-scrollbar { display: none; }
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
}
.trust-icon { color: var(--sun); }

/* ─── WERBUNG/AFFILIATE-HINWEIS (automatisch am Artikelanfang) ─── */
.ad-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff6e2;
  color: #7a5710;
  border: 1px solid #ecd8a0;
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  margin: 0 0 1.75rem;
}
.ad-notice .ad-notice-icon { flex-shrink: 0; }

/* ─── READING PROGRESS BAR ─── */
.reading-progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--sun);
  z-index: 260;
  transition: width 0.1s linear;
}

/* ─── BACK TO TOP ─── */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pine);
  color: var(--sun);
  border: none;
  font-size: 18px;
  cursor: pointer;
  z-index: 150;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s, background 0.15s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--pine2); }

/* ─── CATEGORY BAR ─── */
.cat-bar {
  background: var(--paper2);
  border-bottom: 1px solid var(--border);
}

.cat-bar-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cat-bar-inner::-webkit-scrollbar { display: none; }

.cat-bar-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
  margin-right: 8px;
}

.cat-pill {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  transition: all 0.12s;
  white-space: nowrap;
  background: transparent;
}
.cat-pill:hover { border-color: var(--pine); color: var(--pine); }
.cat-pill.current { background: var(--pine); color: white; border-color: var(--pine); }

/* ─── HERO ─── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  border-bottom: 2px solid var(--ink);
}

.hero-main {
  background: var(--pine);
  padding: 3rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.hero-main::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent, transparent 2px,
    rgba(255,255,255,0.015) 2px, rgba(255,255,255,0.015) 4px
  );
  pointer-events: none;
}

.hero-main:hover .hero-title { text-decoration: underline; text-decoration-color: var(--sun); }

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sun);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--sun);
}

.hero-title {
  font-family: var(--font-head);
  font-size: 5rem;
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: white;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.hero-excerpt {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  line-height: 1.6;
  max-width: 380px;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.hero-read {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--sun);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.hero-sidebar {
  display: grid;
  grid-template-rows: 1fr 1fr;
  border-left: 2px solid var(--ink);
  min-width: 0;
}

.hero-side-post {
  padding: 2rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: background 0.15s;
}
.hero-side-post:hover { background: var(--paper2); }
.hero-side-post:last-child { border-bottom: none; }

.side-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.side-title {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
}

.side-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  display: flex;
  gap: 10px;
}

/* ─── MAIN CONTENT GRID ─── */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 280px;
}

.content-col {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--border);
  min-width: 0;
}
.content-col:last-child { border-right: none; }
.content-col:first-child { padding-left: 0; }

.col-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 1.5rem;
}

.col-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.col-more {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.12s;
}
.col-more:hover { color: var(--ink); }

/* ─── POST ITEMS ─── */
.post-featured {
  padding: 1.5rem 0;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 1.5rem;
  text-decoration: none;
  color: var(--ink);
  display: block;
}

.post-featured-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 10px;
}

.post-featured-title {
  font-family: var(--font-head);
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.post-featured:hover .post-featured-title {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.post-featured-excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.post-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--ink);
  display: block;
}

.post-item:hover .post-item-title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.post-meta-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 6px;
}

.meta-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--pine2);
  flex-shrink: 0;
}
.meta-dot.rust { background: var(--rust); }

.post-item-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 6px;
}

.post-item-excerpt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}

/* ─── SINGLE POST ─── */
.single-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
}

.single-content {
  padding: 3rem 3rem 3rem 0;
  border-right: 1px solid var(--border);
  min-width: 0;
}

.single-header { margin-bottom: 2.5rem; }

.single-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  display: flex;
  gap: 12px;
}

.single-title {
  font-family: var(--font-head);
  font-size: 3.5rem;
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-bottom: 1.5rem;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.single-body {
  font-size: 1.05rem;
  line-height: 1.75;
}

.single-body h2 {
  font-family: var(--font-head);
  font-size: 2rem;
  letter-spacing: 0.02em;
  margin: 2.5rem 0 1rem;
  color: var(--pine);
}

.single-body h3 {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 2rem 0 0.75rem;
  color: var(--muted);
}

.single-body p { margin-bottom: 1.25rem; }

.single-body ul, .single-body ol {
  margin: 0 0 1.25rem 1.5rem;
}

.single-body li { margin-bottom: 0.4rem; }
.single-body li::marker { color: var(--pine2); }

.single-body blockquote {
  border-left: 3px solid var(--sun);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--muted);
}

/* ─── TABELLEN ─── */
.single-body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 0.92rem;
}
.single-body table th,
.single-body table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}
.single-body table th {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--paper2);
  color: var(--ink);
}
.single-body table tr:nth-child(even) td { background: var(--paper2); }

.single-body a:not(.wp-block-button__link):not([class*="btn" i]):not([class*="button" i]) {
  color: var(--pine2) !important;
  text-decoration: underline !important;
}
.single-body a:not(.wp-block-button__link):not([class*="btn" i]):not([class*="button" i]):hover {
  color: var(--rust) !important;
}

/* ─── TOC-PLUGIN ANGLEICHUNG ─── */
.single-body [class*="toc" i] a,
.single-body [id*="toc" i] a {
  color: var(--pine2) !important;
  text-decoration: underline !important;
}
.single-body [class*="toc" i] a:hover,
.single-body [id*="toc" i] a:hover { color: var(--rust) !important; }
.single-body [class*="toc" i] li::marker,
.single-body [id*="toc" i] li::marker { color: var(--pine2); }
.single-body [class*="toc" i] :is(h2, h3, h4, .toc-title, .ez-toc-title, .lwptoc_title strong) {
  font-family: var(--font-mono) !important;
  font-size: 12px !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: var(--muted) !important;
}

/* ─── SHARED CTA BUTTON ─── */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  padding: 13px 22px;
  min-height: 44px;
  cursor: pointer;
  transition: background 0.15s, transform 0.08s;
}
.btn-cta:hover { background: var(--pine); }
.btn-cta:active { transform: scale(0.98); }
.btn-cta .arrow { color: var(--sun); }
.btn-cta.btn-cta-block { display: flex; width: 100%; }

/* ─── IN-CONTENT PRODUKT-EMPFEHLUNG (Shortcode [solar_produkt]) ─── */
.solar-product-box {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--sun);
  margin: 2rem 0;
  padding: 1.25rem;
}
.spb-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pine);
  background: var(--sun2);
  padding: 3px 8px;
  margin-bottom: 0.75rem;
}
.spb-inner {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.spb-image {
  flex-shrink: 0;
  width: 110px;
  height: 110px;
  display: block;
  background: var(--paper2);
  overflow: hidden;
}
.spb-image img { width: 100%; height: 100%; object-fit: cover; }
.spb-content { flex: 1; min-width: 0; }
.spb-title {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 4px;
}
.spb-title:hover { text-decoration: underline; }
.spb-rating {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--rust);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}
.spb-rating span { color: var(--muted); margin-left: 4px; }
.spb-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}
.spb-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.spb-price {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  color: var(--pine);
}
.spb-cta { padding: 10px 18px; font-size: 11px; }
.spb-disclosure {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted);
  margin-top: 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
}

.single-sidebar { padding: 3rem 0 3rem 2.5rem; min-width: 0; }

/* ─── SIDEBAR WIDGETS ─── */
.widget-area {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 0;
  max-width: 100%;
}

.widget-area *,
.widget-area *::before,
.widget-area *::after {
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.widget-area img,
.widget-area iframe,
.widget-area video,
.widget-area table {
  height: auto;
}
.widget-area input,
.widget-area .wp-block-search__inside-wrapper,
.widget-area form {
  width: 100% !important;
}

.widget-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 1rem;
}

.widget ul { list-style: none; }

.widget ul li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  cursor: pointer;
  transition: color 0.12s;
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li:hover { color: var(--pine2); }
.widget ul li a { text-decoration: none; flex: 1; }
.widget ul li .count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}

.widget-quote {
  background: var(--pine);
  padding: 1.5rem;
}

.widget-quote blockquote {
  font-style: italic;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.widget-quote cite {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sun);
  font-style: normal;
}

/* Newsletter widget */
.widget-newsletter {
  background: var(--paper2);
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.widget-newsletter h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  letter-spacing: 0.03em;
  color: var(--pine);
  margin-bottom: 6px;
}

.widget-newsletter p {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.nl-form { display: flex; }

.nl-form input[type="email"] {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-right: none;
  background: white;
  font-family: var(--font-mono);
  font-size: 12px;
  outline: none;
  color: var(--ink);
}

.nl-form input[type="email"]::placeholder { color: var(--muted); }

.nl-form button {
  padding: 9px 14px;
  background: var(--pine);
  color: white;
  border: 1px solid var(--pine);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.12s;
}
.nl-form button:hover { background: var(--pine2); }

/* ─── ARCHIVE / BLOG PAGE ─── */
.archive-header {
  padding: 3rem 0 2rem;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 2.5rem;
}

.archive-title {
  font-family: var(--font-head);
  font-size: 3rem;
  letter-spacing: 0.02em;
  line-height: 1;
}

.archive-desc {
  color: var(--muted);
  font-size: 14px;
  margin-top: 0.5rem;
}

.archive-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0;
}
.archive-main {
  padding-right: 2rem;
  border-right: 1px solid var(--border);
  min-width: 0;
}
.archive-aside { padding-left: 2rem; min-width: 0; }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.posts-grid .post-item {
  padding: 1.5rem;
  min-width: 0;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.posts-grid .post-item:nth-child(3n) { border-right: none; }

/* ─── STICKY BUY BAR (Einzelartikel mit Produkt-Empfehlung) ─── */
.sticky-buy-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.12);
  padding: 0.75rem 1.5rem;
  z-index: 180;
  transform: translateY(100%);
  transition: transform 0.25s ease;
  display: none;
}
.sticky-buy-bar.is-visible { transform: translateY(0); }
.sticky-buy-bar-inner { display: flex; align-items: center; gap: 10px; max-width: 1200px; margin: 0 auto; }
.sticky-buy-bar-thumb {
  width: 44px; height: 44px; flex-shrink: 0; overflow: hidden; background: var(--paper2);
}
.sticky-buy-bar-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sticky-buy-bar-info { flex: 1; min-width: 0; }
.sticky-buy-bar-title {
  font-size: 13px; font-weight: 600; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sticky-buy-bar-price { font-family: var(--font-mono); font-size: 11px; color: var(--pine); }
.sticky-buy-bar .btn-cta { padding: 10px 16px; font-size: 10.5px; flex-shrink: 0; }

/* ─── FOOTER ─── */
#site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.4);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: var(--sun);
  text-decoration: none;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.12s;
}
.footer-links a:hover { color: rgba(255,255,255,0.85); }

.footer-copy {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.55);
}

/* ─── WRITE BAR (nur für Redakteure/Admins sichtbar) ─── */
.write-bar {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 0.875rem 2rem;
  position: sticky;
  bottom: 0;
  z-index: 100;
  display: none;
}

.write-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.write-bar-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  flex-shrink: 0;
}

.write-bar-templates {
  display: flex;
  gap: 6px;
  flex: 1;
}

.tpl-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.45);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.12s;
  white-space: nowrap;
}
.tpl-btn:hover { border-color: var(--sun); color: var(--sun); }

.write-bar-cta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--sun);
  color: var(--pine);
  border: none;
  padding: 8px 20px;
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.12s;
}
.write-bar-cta:hover { background: var(--sun2); color: var(--pine); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-sidebar { border-left: none; border-top: 2px solid var(--ink); grid-template-rows: auto auto; }
  .content-grid { grid-template-columns: 1fr; }
  .content-col { border-right: none; border-bottom: 1px solid var(--border); padding: 2rem 0; }
  .posts-grid { grid-template-columns: 1fr 1fr; }
  .single-layout { grid-template-columns: 1fr; }
  .single-sidebar { padding: 2rem 0 0; border-top: 1px solid var(--border); }

  .archive-layout { grid-template-columns: 1fr; }
  .archive-main { padding-right: 0; border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
  .archive-aside { padding-left: 0; }
  .footer-inner { flex-direction: column; text-align: center; gap: 1rem; }
  .hero-title { font-size: 3.5rem; }
  .single-title { font-size: 2.6rem; }

  .main-nav { display: none; }
  .mobile-nav-toggle { display: flex; }
  .btn-write { display: none; } /* Editor-Button macht am Hamburger-Menü sonst zu eng, Schreib-Leiste unten reicht */

  .sticky-buy-bar { display: block; }
}

@media (max-width: 600px) {
  .header-inner { padding: 0 1rem; }
  .posts-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.8rem; }
  .single-title { font-size: 2.1rem; }
  .hero-main { padding: 2rem; }
  .write-bar-templates { display: none; }
  .trust-bar-inner {
    overflow-x: visible;
    justify-content: center;
    padding: 7px 0;
  }
  .trust-item:nth-child(n+2) { display: none; }
  .back-to-top { right: 1rem; bottom: 1rem; }

  .spb-inner { flex-direction: column; }
  .spb-image { width: 100%; height: auto; aspect-ratio: 16/9; }
  .spb-footer { flex-direction: column; align-items: stretch; }
  .spb-cta { justify-content: center; }

  .sticky-buy-bar-thumb { display: none; }
}
