/*
Theme Name: Mädesüß Heilkräutermanufaktur
Theme URI: https://maedesuess-heilkraeutermanufaktur.de
Author: Mädesüß Heilkräutermanufaktur
Description: Blog-fokussiertes WordPress-Theme für die Mädesüß Heilkräutermanufaktur – gestaltet für Heilpflanzenportraits, Jahreskreisfeste-Beiträge und persönliche Geschichten rund um Kräuterkunde.
Version: 3.3
Requires PHP: 7.4
Text Domain: maedesuess
*/

/* ==========================================================================
   1. Custom Properties – Markenfarben & Typografie
   ========================================================================== */

:root {
  /* Primärfarbe */
  --color-sage: #A3A98D;

  /* Sekundär-/Akzentfarben */
  --color-terracotta: #D2A19C;
  --color-rose: #E1C4C0;
  --color-blush: #F0E4E6;
  --color-olive: #858B71;

  /* Logo-Farben (nur für Logo-Kontext, nicht als generelle UI-Farbe) */
  --color-logo-darkgreen: #114B1E;
  --color-logo-midgreen: #239530;
  --color-logo-mint: #C8E5CE;

  /* Funktionale Farben, aus der Palette abgeleitet */
  --color-text: #3A3A32;
  --color-text-light: #6b6b5f;
  --color-background: #FDFBF8;
  --color-surface: var(--color-blush);
  --color-border: #E4E0D6;

  /* Typografie
     Alex Brush ist bewusst nur Zierschrift (Logo, Widget-Titel, Footer).
     Überschriften und Beitragstitel laufen in Cormorant Garamond – lesbar
     auch bei langen Titeln und auf dem Handy. */
  --font-script: 'Alex Brush', cursive;
  --font-serif: 'Cormorant Garamond', Georgia, serif;

  /* Layout */
  --content-width: 760px;
  --wide-width: 1160px;
  --sidebar-width: 300px;
  --gap-col: 60px;

  /* Header-Logo (Variante 1: Emblem links, Schriftzug rechts)
     --wm-h-set / --em-h-set kommen aus dem Customizer
     (Design → Customizer → Header: Logo & Größen).
     Die abgeleiteten --wm-h / --em-h schrumpfen weiter unten
     in den Media Queries proportional mit. */
  --wm-h: var(--wm-h-set, 112px);
  --em-h: var(--em-h-set, 96px);
  --logo-gap: 38px;
}

/* ==========================================================================
   2. Reset & Grundlagen
   ========================================================================== */

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

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

body {
  margin: 0;
  background-color: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-serif);
  font-size: 20.5px;
  line-height: 1.7;
  font-weight: 400;
}

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

a {
  color: var(--color-olive);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover { color: var(--color-terracotta); }

ul, ol { padding-left: 1.4em; }

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2.5em 0;
}

/* Nur für Screenreader sichtbar */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  width: auto;
  height: auto;
  clip: auto;
  padding: 10px 18px;
  background: #fff;
  border: 2px solid var(--color-logo-darkgreen);
  border-radius: 4px;
  color: var(--color-logo-darkgreen);
}

/* ==========================================================================
   3. Typografie
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-logo-darkgreen);
  line-height: 1.25;
  margin: 1.4em 0 0.6em;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }

/* Zierschrift – bewusst sparsam eingesetzt */
.script,
.site-title a,
.widget-title,
.footer-branding {
  font-family: var(--font-script);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.entry-title,
.page-title {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-logo-darkgreen);
  letter-spacing: 0.005em;
}

.entry-title { font-size: 2.3rem; line-height: 1.22; }
.page-title { font-size: 2.3rem; }

.entry-title a { color: inherit; }
.entry-title a:hover { color: var(--color-olive); }

p { margin: 0 0 1.3em; }

blockquote {
  margin: 2em 0;
  padding: 0.5em 1.5em;
  border-left: 3px solid var(--color-terracotta);
  font-style: italic;
  color: var(--color-text-light);
}

/* ==========================================================================
   4. Layout
   ========================================================================== */

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

.container {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 24px;
}

.content-area {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Zweispaltiges Grundlayout: Inhalt links, Sidebar rechts */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
  gap: var(--gap-col);
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 48px 24px 0;
  align-items: start;
}

.single-main,
.page-main,
.blog-main { min-width: 0; }

@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ==========================================================================
   5. Header – randloses Mintband über die volle Breite
   ========================================================================== */

.site-header {
  background-color: var(--color-logo-mint);
  padding: 0;
  text-align: center;
  border-bottom: 1px solid rgba(17, 75, 30, 0.12);
}

/* Obere Zeile im Band: Instagram und Lupe, rechts ausgerichtet
   auf derselben Rasterbreite wie Logo und Inhalt */
.header-utility {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 12px 24px 0;
}

/* Instagram – bewusst einfarbig im Logo-Grün statt im bunten
   Markenverlauf, damit es sich ins Mintband einfügt */
.header-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--color-logo-darkgreen);
  transition: opacity 0.2s ease;
}

.header-social-link:hover { color: var(--color-logo-darkgreen); opacity: 0.6; }

.header-social-link:focus-visible {
  outline: 2px solid var(--color-logo-darkgreen);
  outline-offset: 2px;
}

.social-icon { display: block; }

.header-search { position: relative; }

.search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  color: var(--color-logo-darkgreen);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: opacity 0.2s ease;
}

.search-toggle:hover { opacity: 0.6; }

.search-toggle:focus-visible {
  outline: 2px solid var(--color-logo-darkgreen);
  outline-offset: 2px;
}

.search-icon { display: block; }

/* Suchfeld klappt unter der Lupe auf */
.header-search-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  width: min(320px, calc(100vw - 48px));
  padding: 14px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(58, 58, 50, 0.12);
}

.header-search.is-open .header-search-panel { display: block; }

.header-search-panel .search-form { gap: 8px; }
.header-search-panel .search-field { font-size: 0.95rem; }
.header-search-panel .search-submit { padding: 10px 18px; font-size: 0.9rem; }

/* Logo-Gruppe links im Band, ausgerichtet an der linken Kante des
   Inhaltsrasters – dieselbe Breite und dasselbe Innenabstandsmaß wie .two-col,
   damit Logo und Text darunter auf einer Linie beginnen.
   Das Menü bleibt mittig. */
.site-branding {
  display: flex;
  justify-content: flex-start;
  max-width: var(--wide-width);
  margin: 0 auto;
  /* Oben knapper gehalten, weil die Lupenzeile darüber schon Luft schafft */
  padding: 8px 24px 12px;
}

.branding-link {
  display: flex;
  align-items: center;
  gap: var(--logo-gap);
  max-width: 100%;
  text-decoration: none;
}

.site-emblem {
  height: var(--em-h);
  width: var(--em-h);
  flex: none;
}

.site-wordmark {
  height: var(--wm-h);
  width: auto;
  flex: none;
}

/* Beide Logo-Teile schrumpfen proportional mit – ausgehend vom
   Wert, der im Customizer eingestellt ist */
@media (max-width: 760px) {
  :root {
    --wm-h: calc(var(--wm-h-set, 112px) * 0.74);
    --em-h: calc(var(--em-h-set, 96px) * 0.74);
    --logo-gap: 24px;
  }
}

@media (max-width: 480px) {
  :root {
    --wm-h: calc(var(--wm-h-set, 112px) * 0.56);
    --em-h: calc(var(--em-h-set, 96px) * 0.56);
    --logo-gap: 15px;
  }

  /* Seitliches Maß bleibt bei 24px, damit die Ausrichtung
     zum Inhalt darunter auch auf dem Handy stimmt */
  .site-branding { padding: 20px 24px 10px; }
}

.site-title {
  font-size: 2.6rem;
  margin: 0;
  color: var(--color-logo-darkgreen);
}

.site-title a { color: var(--color-logo-darkgreen); }

.site-description {
  font-family: var(--font-serif);
  color: var(--color-logo-midgreen);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 6px 0 0;
}

/* Hauptmenü */
.main-navigation { padding: 0 24px 18px; }

.main-navigation ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.main-navigation li { position: relative; }

.main-navigation a {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-logo-darkgreen);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: var(--color-logo-darkgreen);
  border-bottom-color: var(--color-logo-darkgreen);
}

/* Untermenüs */
.main-navigation ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  flex-direction: column;
  gap: 0;
  min-width: 210px;
  padding: 10px 0;
  background: var(--color-logo-mint);
  border: 1px solid rgba(17, 75, 30, 0.15);
  border-radius: 4px;
}

.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul { display: flex; }

.main-navigation ul ul li { text-align: left; }
.main-navigation ul ul a { display: block; padding: 6px 20px; border: none; }

/* Umschalt-Button für Untermenüs – wird per JavaScript eingesetzt
   und ist nur auf kleinen Bildschirmen sichtbar */
.submenu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  /* Tastefläche bleibt 30px groß, ist aber unsichtbar –
     kein Kreis, kein Rahmen, keine Hintergrundfarbe */
  width: 30px;
  height: 30px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  color: var(--color-logo-darkgreen);
  cursor: pointer;
  flex: none;
  -webkit-appearance: none;
  appearance: none;
}

.submenu-toggle-icon {
  display: block;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}

.submenu-open > .submenu-toggle .submenu-toggle-icon {
  transform: translateY(1px) rotate(-135deg);
}

/* Burger-Button – nur auf kleinen Bildschirmen sichtbar */
.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin: 0 auto 16px;
  padding: 9px 20px;
  background: transparent;
  border: 1px solid var(--color-logo-darkgreen);
  border-radius: 30px;
  color: var(--color-logo-darkgreen);
  font-family: var(--font-serif);
  font-size: 0.9rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-toggle:hover { background: rgba(17, 75, 30, 0.07); color: var(--color-logo-darkgreen); }

.menu-toggle-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.menu-toggle-icon::before { top: -6px; }
.menu-toggle-icon::after { top: 6px; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }

  .main-navigation { display: none; padding-bottom: 20px; }
  .main-navigation.is-open { display: block; }

  .main-navigation ul { flex-direction: column; gap: 14px; }

  /* Menüpunkt und Umschalt-Button in einer Zeile, Untermenü darunter */
  .main-navigation .menu-item-has-children,
  .main-navigation .page_item_has_children {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }

  .submenu-toggle { display: inline-flex; }

  /* Untermenüs starten geschlossen – auch wenn ein Zeigegerät „hovert" */
  .main-navigation ul ul,
  .main-navigation li:hover > ul,
  .main-navigation li:focus-within > ul {
    display: none;
    position: static;
    transform: none;
    min-width: 0;
    flex-basis: 100%;
    margin: 4px 0 0;
    padding: 0 0 0 16px;
    background: transparent;
    border: none;
    border-left: 1px solid rgba(17, 75, 30, 0.2);
    gap: 12px;
  }

  /* Nur der angeklickte Punkt öffnet sich */
  .main-navigation li.submenu-open > ul { display: flex; }
}

/* ==========================================================================
   6. Blog – Beitragsliste
   ========================================================================== */

.post-list {
  display: grid;
  gap: 48px;
  margin: 8px 0 0;
}

.post-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.post-card:hover {
  box-shadow: 0 8px 24px rgba(58, 58, 50, 0.08);
  transform: translateY(-2px);
}

.post-card .post-thumbnail img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-card-body { padding: 26px 32px 30px; }

.post-card .entry-title { font-size: 1.75rem; margin: 0.2em 0 0.5em; }

.post-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-olive);
  margin-bottom: 0.5em;
}

.post-meta a { color: var(--color-olive); }

.entry-excerpt { color: var(--color-text); }

.read-more {
  display: inline-block;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-terracotta);
  border-bottom: 1px solid var(--color-terracotta);
}

.read-more:hover { color: var(--color-olive); border-color: var(--color-olive); }

.archive-header { padding: 0 0 8px; max-width: none; }
.archive-header .page-title { margin-top: 0; }

/* --------------------------------------------------------------------------
   Begrüßung über den Beiträgen
   -------------------------------------------------------------------------- */

.home-intro {
  margin: 0 0 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--color-border);
}

.home-intro-title {
  margin-top: 0;
  color: var(--color-logo-darkgreen);
}

/* em statt rem: wächst mit der Grundschriftgröße mit */
.home-intro-text { font-size: 1.05em; }

.home-intro-text > :first-child { margin-top: 0; }
.home-intro-text > :last-child { margin-bottom: 0; }

.home-intro-text img {
  border-radius: 6px;
  margin: 1.2em 0;
}

/* ==========================================================================
   6a. Bildkarten – Startseite und Beitragsvorschläge
   ========================================================================== */

/* Titel und Datum liegen auf dem Bild, hinterlegt mit einem schmalen
   Streifen in der Logofarbe. */
.media-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background-color: var(--color-logo-mint);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.media-card:hover {
  box-shadow: 0 8px 24px rgba(58, 58, 50, 0.12);
  transform: translateY(-2px);
}

.media-card-thumb { display: block; }

.media-card-thumb img,
.media-card-fallback {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.media-card-body {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px 11px;
  background-color: rgba(17, 75, 30, 0.82);
}

.media-card-body .post-meta {
  font-size: 0.68rem;
  margin-bottom: 0.35em;
  color: rgba(255, 255, 255, 0.85);
}

.media-card-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.25;
  margin: 0;
}

.media-card-title a {
  color: #fff;
  text-shadow: 0 1px 3px rgba(17, 75, 30, 0.5);
}

.media-card-title a:hover { color: var(--color-logo-mint); }

/* Beiträge ohne Titelbild: mintfarbene Fläche, dunkelgrüne Schrift */
.media-card--no-image {
  display: flex;
  align-items: flex-end;
  aspect-ratio: 16 / 10;
  padding: 14px 16px 15px;
}

.media-card--no-image .media-card-thumb { display: none; }

.media-card--no-image .media-card-body {
  position: static;
  padding: 0;
  background-color: transparent;
}

.media-card--no-image .post-meta { color: var(--color-olive); }

.media-card--no-image .media-card-title a {
  color: var(--color-logo-darkgreen);
  text-shadow: none;
}

/* --------------------------------------------------------------------------
   Startseite: ein großer Beitrag, zwei kleinere rechts, der Rest zu dritt
   -------------------------------------------------------------------------- */

.post-mosaic {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  margin: 8px 0 20px;
}

.mosaic-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
}

/* Gibt es nur einen Beitrag, bekommt er die ganze Breite */
.mosaic-side:empty { display: none; }
.post-mosaic:has(.mosaic-side:empty) { grid-template-columns: 1fr; }

/* Der große Beitrag füllt die Höhe der beiden kleinen rechts.
   Das Bild liegt dafür absolut, damit es die Zeilenhöhe nicht bestimmt. */
.media-card--lead { min-height: 300px; }

.media-card--lead .media-card-thumb {
  position: absolute;
  inset: 0;
}

.media-card--lead .media-card-thumb img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.media-card--lead .media-card-body { padding: 14px 20px 16px; }

.media-card--lead .media-card-title { font-size: 1.5rem; }

.media-card--lead .media-card-body .post-meta { font-size: 0.72rem; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 20px;
}

@media (max-width: 640px) {
  .post-mosaic {
    grid-template-columns: 1fr;
    margin-bottom: 20px;
  }

  .mosaic-side { grid-template-rows: auto; }

  .media-card--lead { min-height: 0; }

  .media-card--lead .media-card-thumb { position: static; }

  .media-card--lead .media-card-thumb img { aspect-ratio: 16 / 10; }

  .media-card--lead .media-card-title { font-size: 1.3rem; }

  .post-grid { grid-template-columns: 1fr; }

  .media-card-thumb img,
  .media-card-fallback { aspect-ratio: 2 / 1; }

  .media-card--no-image { aspect-ratio: 2 / 1; }

  .media-card-title { font-size: 1.2rem; }
}

/* ==========================================================================
   7. Einzelbeitrag & Seiten
   ========================================================================== */

.single-post .entry-header,
.page-main .entry-header { margin-bottom: 1.6em; }

.single-post .entry-header .entry-title,
.page-main .entry-header .page-title { margin-top: 0; }

.single-post .post-thumbnail,
.page-main .post-thumbnail {
  margin: 0 0 2.2em;
  border-radius: 6px;
  overflow: hidden;
}

.entry-content h2 {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.3em;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.95em;
}

.entry-content table th,
.entry-content table td {
  border: 1px solid var(--color-border);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

.entry-content table th {
  background-color: var(--color-surface);
  color: var(--color-logo-darkgreen);
  font-family: var(--font-serif);
  font-weight: 600;
}

.entry-footer {
  margin-top: 2.5em;
  padding-top: 1.5em;
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* --------------------------------------------------------------------------
   Für dich vielleicht auch interessant
   -------------------------------------------------------------------------- */

.related-posts { margin: 3.5em 0 0; }

.related-posts-title {
  font-family: var(--font-script);
  font-size: 1.9rem;
  color: var(--color-logo-darkgreen);
  margin: 0 0 1.1em;
  border-bottom: none;
  padding-bottom: 0;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 20px;
}

@media (max-width: 640px) {
  .related-list { grid-template-columns: 1fr; }
}

/* Die Bildkarten selbst stehen in Abschnitt 6a */

/* --------------------------------------------------------------------------
   Pflanzenregister A–Z
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Jahreskreis-Übersicht
   -------------------------------------------------------------------------- */

.wheel-list {
  display: grid;
  gap: 18px;
  margin: 1.8em 0 0;
}

.wheel-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
}

.wheel-card:last-child { border-bottom: none; padding-bottom: 0; }

.wheel-thumb { display: block; }

.wheel-thumb img,
.wheel-thumb-fallback {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
}

.wheel-thumb-fallback { background-color: var(--color-logo-mint); }

.wheel-card-title {
  font-family: var(--font-script);
  font-size: 2rem;
  margin: 0 0 0.1em;
  border-bottom: none;
  padding-bottom: 0;
}

.wheel-card-title a { color: var(--color-logo-darkgreen); }
.wheel-card-title a:hover { color: var(--color-terracotta); }

.wheel-card-date {
  margin: 0 0 0.2em;
  font-size: 0.92rem;
  color: var(--color-text);
}

.wheel-card-count {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-olive);
}

@media (max-width: 520px) {
  .wheel-card { grid-template-columns: 84px 1fr; gap: 16px; }

  .wheel-card-title { font-size: 1.6rem; }
}

.index-link { margin: 1.2em 0 0; }

.index-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 1.8em 0 2.2em;
  padding-bottom: 1.4em;
  border-bottom: 1px solid var(--color-border);
}

.index-jump a,
.index-jump span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2em;
  padding: 0.25em 0.35em;
  font-size: 0.95rem;
  border-radius: 4px;
}

.index-jump a {
  color: var(--color-logo-darkgreen);
  background-color: var(--color-logo-mint);
}

.index-jump a:hover {
  background-color: var(--color-logo-darkgreen);
  color: #fff;
}

/* Buchstaben ohne Eintrag – sichtbar, aber zurückgenommen */
.index-jump span {
  color: var(--color-border);
}

.index-group { margin-bottom: 2.2em; }

.index-letter {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--color-logo-darkgreen);
  margin: 0 0 0.3em;
  padding-bottom: 0.15em;
  border-bottom: 1px solid var(--color-border);
  scroll-margin-top: 20px;
}

.index-list {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 36px;
}

.index-list li {
  margin-bottom: 0.55em;
  line-height: 1.4;
  break-inside: avoid;
}

.index-list a { color: var(--color-logo-darkgreen); }
.index-list a:hover { color: var(--color-terracotta); }

/* Der vollständige Beitragstitel, wenn er vom Registernamen abweicht */
.index-note {
  display: block;
  font-size: 0.78rem;
  color: var(--color-text-light);
}

.index-count {
  margin-top: 2em;
  padding-top: 1.2em;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-light);
}

@media (max-width: 640px) {
  .index-list { columns: 1; }
}

/* ==========================================================================
   8. Rechte Spalte – Widgets
   ========================================================================== */

.widget-area {
  position: sticky;
  top: 24px;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .widget-area {
    position: static;
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
  }
}

.widget {
  margin-bottom: 36px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--color-border);
}

.widget:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.widget-title {
  font-size: 1.75rem;
  color: var(--color-logo-darkgreen);
  margin: 0 0 0.5em;
  line-height: 1.2;
}

.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { margin-bottom: 0.55em; line-height: 1.45; }

.widget p:last-child { margin-bottom: 0; }

.widget-placeholder {
  padding: 20px 22px;
  background: #fff;
  border: 1px dashed var(--color-border);
  border-radius: 6px;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* Autorenbox */
.widget-author { text-align: center; }

.widget-author .widget-title { text-align: center; }

.author-photo-wrap { margin: 0 0 1em; }

.widget-author .author-photo-wrap .author-photo,
.author-photo {
  display: block;
  width: 200px;
  max-width: 100%;
  height: 200px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  object-fit: cover;
  object-position: center 30%;
}

.author-text { color: var(--color-text); }
.author-text p:last-child { margin-bottom: 0; }

.author-cta { margin: 1.2em 0 0; }

/* Disclaimer-Box */
.disclaimer-box {
  padding: 4px 0 4px 18px;
  background-color: transparent;
  border-left: 3px solid var(--color-terracotta);
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--color-text-light);
  border-radius: 0;
}

.disclaimer-box p:last-child { margin-bottom: 0; }

/* Im Beitragstext hat der Hinweis mehr Abstand nach oben */
.entry-content .disclaimer-box { margin-top: 3em; }

/* Newsletter-Box */
.newsletter-box {
  padding: 22px 22px 20px;
  background-color: var(--color-logo-mint);
  border-radius: 6px;
}

.newsletter-text {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--color-text);
}

.newsletter-text p:last-child { margin-bottom: 0; }

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 1.1em;
}

.newsletter-input {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 30px;
}

.newsletter-input::placeholder { color: var(--color-text-light); }

.newsletter-input:focus {
  outline: 2px solid var(--color-logo-darkgreen);
  outline-offset: 1px;
}

.newsletter-submit { width: 100%; }

/* Vorschau ohne angebundenen Dienst */
.newsletter-form.is-inactive .newsletter-input,
.newsletter-form.is-inactive .newsletter-submit {
  opacity: 0.6;
  cursor: not-allowed;
}

.newsletter-notice {
  margin: 0.9em 0 0;
  padding: 10px 12px;
  background: #fff;
  border: 1px dashed var(--color-border);
  border-radius: 4px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--color-text-light);
}

.newsletter-privacy {
  margin: 1em 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--color-text-light);
}

.newsletter-privacy a { color: var(--color-logo-darkgreen); }

/* --------------------------------------------------------------------------
   Formulare fremder Versanddienste (z. B. Brevo) an die Optik der Seite
   anpassen. !important ist hier nötig – solche Anbieter schreiben Farben
   und Schriften meist direkt als Inline-Stil an jedes Element, das lässt
   sich nur mit derselben Waffe überschreiben.
   -------------------------------------------------------------------------- */

.newsletter-embed { margin-top: 1.1em; }

.newsletter-embed input[type="email"],
.newsletter-embed input[type="text"],
.newsletter-embed input[type="submit"],
.newsletter-embed button { width: 100%; max-width: 100%; }

/* Eigene Box und eigenen Rahmen des Formulars entfernen – der mintfarbene
   Kasten des Widgets übernimmt das schon */
.newsletter-embed .sib-form {
  background-color: transparent !important;
  text-align: left !important;
  padding: 0 !important;
}

.newsletter-embed #sib-form-container,
.newsletter-embed #sib-container {
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  max-width: 100% !important;
  padding: 0 !important;
}

/* Titel und Einleitungstext liefert schon das Widget selbst – die
   gleichlautenden Felder des Formulars werden deshalb ausgeblendet.
   Ohne Unterstützung für :has() bleiben sie sichtbar, das ist unschädlich. */
.newsletter-embed div.sib-form-block[style*="font-size:32px"],
.newsletter-embed div.sib-form-block:has(.sib-text-form-block) {
  display: none !important;
}

.newsletter-embed .form__entry { margin-bottom: 12px !important; }

.newsletter-embed .entry__label,
.newsletter-embed .entry__specification,
.newsletter-embed .sib-form__declaration p,
.newsletter-embed .entry__choice span:not(.checkbox) {
  font-family: var(--font-serif) !important;
  color: var(--color-text) !important;
}

/* Rotes Pflichtfeld-Sternchen (aus data-required="*") ausblenden – ohne
   die Beispiel-Mailadresse braucht es diesen Hinweis nicht mehr. */
.newsletter-embed .entry__label::after,
.newsletter-embed .entry__label[data-required]::after {
  content: none !important;
  display: none !important;
}

.newsletter-embed .entry__specification,
.newsletter-embed .sib-form__declaration p {
  font-family: var(--font-serif) !important;
  font-size: 0.78rem !important;
  color: var(--color-text-light) !important;
}

.newsletter-embed .sib-form__declaration a { color: var(--color-logo-darkgreen) !important; }

/* Das Kugel-Symbol neben dem Brevo-Hinweis passt nicht zur Optik */
.newsletter-embed .declaration-block-icon { display: none !important; }

.newsletter-embed input.input {
  width: 100% !important;
  padding: 11px 14px !important;
  font-family: var(--font-serif) !important;
  font-size: 0.95rem !important;
  color: var(--color-text) !important;
  background: #fff !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 30px !important;
  box-sizing: border-box !important;
}

.newsletter-embed input.input:focus {
  outline: 2px solid var(--color-logo-darkgreen) !important;
  outline-offset: 1px !important;
}

/* Eigenes Häkchen statt Brevos Positionierung zu reparieren. Die Zeile
   liegt als echtes Flexbox-Paar aus Kästchen + Text vor, nicht über
   text-indent oder frei positionierte Elemente – so bleiben auch
   umgebrochene Zeilen zuverlässig unter der ersten Zeile ausgerichtet,
   unabhängig von Brevos eigenem "hängendem Einzug". */
.newsletter-embed .entry__choice {
  text-indent: 0 !important;
  padding: 0 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.newsletter-embed .entry__choice label {
  position: relative !important;
  display: flex !important;
  align-items: flex-start !important;
  padding-left: 0 !important;
  margin: 0 !important;
  text-indent: 0 !important;
  white-space: normal !important;
  min-height: 20px;
  font-family: var(--font-serif) !important;
  font-size: 0.85rem !important;
  line-height: 1.45 !important;
  color: var(--color-text) !important;
  cursor: pointer;
}

/* Brevos eigene Kästchen-Grafik komplett ausblenden – die Position
   dieser Grafik lässt sich nicht zuverlässig korrigieren, weil sie von
   Brevos eigenem, nicht einsehbarem Stylesheet abhängt. Das Theme
   zeichnet das Kästchen stattdessen selbst als echtes Flex-Element vor
   dem Text – nicht mehr frei positioniert. */
.newsletter-embed .entry__choice .checkbox { display: none !important; }

.newsletter-embed .entry__choice input.input_replaced {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  opacity: 0 !important;
  z-index: 2;
  cursor: pointer;
}

.newsletter-embed .entry__choice label::before {
  content: "";
  order: -1;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  margin-right: 10px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  box-sizing: border-box;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px 11px;
}

.newsletter-embed .entry__choice label:has(input:checked)::before {
  background-color: var(--color-logo-darkgreen);
  border-color: var(--color-logo-darkgreen);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5L6.5 12L13 4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Textspalte: nimmt den restlichen Platz, umgebrochene Zeilen stehen
   dadurch automatisch bündig unter der ersten Zeile, nicht unter dem
   Kästchen. */
.newsletter-embed .entry__choice label > span:last-child {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  padding-left: 0 !important;
}

.newsletter-embed .entry__choice label > span:last-child p {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* „z. B. abc@xyz.com" unter dem E-Mail-Feld ist überflüssig; der Hinweis
   zum Abbestellen unter dem Häkchen (eigene Klasse sib-optin) bleibt */
.newsletter-embed .sib-input .entry__specification { display: none !important; }

.newsletter-embed .sib-form-block__button {
  width: 100% !important;
  font-family: var(--font-serif) !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.03em !important;
  background-color: var(--color-sage) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 30px !important;
  padding: 12px 28px !important;
  cursor: pointer !important;
}

.newsletter-embed .sib-form-block__button:hover { background-color: var(--color-olive) !important; }

/* --------------------------------------------------------------------------
   Knopf „Nach oben"
   -------------------------------------------------------------------------- */

/* Die Ausnahmeliste bei den Buttons weiter unten greift hier nicht,
   deshalb setzt dieser Block seine Gestaltung selbst und steht davor. */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;

  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;

  background-color: var(--color-logo-darkgreen);
  color: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(58, 58, 50, 0.22);
  cursor: pointer;

  /* Vor dem ersten Scrollen unsichtbar und nicht anklickbar */
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background-color 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover { background-color: var(--color-olive); }

.back-to-top:focus-visible {
  outline: 2px solid var(--color-logo-darkgreen);
  outline-offset: 3px;
}

.back-to-top svg { display: block; }

@media (max-width: 640px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }
}

/* Wer weniger Bewegung eingestellt hat, bekommt keinen Einflug */
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity 0.01s linear, visibility 0.01s linear; transform: none; }
  .back-to-top.is-visible { transform: none; }
}

/* --------------------------------------------------------------------------
   Knopf „Rezept drucken"
   -------------------------------------------------------------------------- */

/* Erst sichtbar, wenn das Skript den Knopf freigeschaltet hat */
.print-button-wrap {
  display: none;
  margin: 0 0 1.8em;
}

.print-button-wrap.is-ready { display: block; }

.print-button::before {
  /* Kleines Druckersymbol, damit der Knopf auch im Vorbeischauen erkennbar ist */
  content: "";
  display: inline-block;
  width: 0.95em;
  height: 0.95em;
  margin-right: 0.5em;
  vertical-align: -0.1em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 3h10v4H7zM5 8h14a2 2 0 0 1 2 2v6h-4v5H7v-5H3v-6a2 2 0 0 1 2-2zm4 9h6v3H9z'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 3h10v4H7zM5 8h14a2 2 0 0 1 2 2v6h-4v5H7v-5H3v-6a2 2 0 0 1 2-2zm4 9h6v3H9z'/></svg>") center / contain no-repeat;
}

/* --------------------------------------------------------------------------
   Brotkrümelnavigation
   -------------------------------------------------------------------------- */

.breadcrumbs {
  margin: 0 0 1.2em;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--color-text-light);
  line-height: 1.5;
}

.breadcrumbs a { color: var(--color-olive); }
.breadcrumbs a:hover { color: var(--color-terracotta); }

.breadcrumb-sep {
  margin: 0 0.5em;
  color: var(--color-border);
}

.breadcrumb-current { color: var(--color-text-light); }

/* ==========================================================================
   8b. Druckansicht
   ========================================================================== */

@media print {

  /* Alles, was auf Papier nichts zu suchen hat */
  .site-header,
  .main-navigation,
  .menu-toggle,
  .header-bar,
  .header-search-panel,
  .search-toggle,
  .header-social-link,
  .widget-area,
  .site-footer,
  .back-to-top,
  .pagination,
  .related-posts,
  .index-jump,
  .index-link,
  .breadcrumbs,
  .print-button-wrap,
  .single-post .post-thumbnail,
  .page-main .post-thumbnail,
  #comments,
  .comment-respond,
  .skip-link {
    display: none !important;
  }

  /* Der Inhalt bekommt die ganze Seite */
  .two-col,
  .single-post,
  .page-main,
  .blog-main {
    display: block !important;
    grid-template-columns: none !important;
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11.5pt;
    line-height: 1.45;
  }

  a { color: #000; text-decoration: none; }

  /* Adressen hinter Links, damit der Ausdruck nachvollziehbar bleibt.
     Interne Sprungmarken bleiben außen vor. */
  .entry-content a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    word-break: break-all;
  }

  h1 { font-size: 19pt; }
  h2 { font-size: 14pt; }
  h3 { font-size: 12.5pt; }

  h1, h2, h3 { break-after: avoid; page-break-after: avoid; }

  p, li, blockquote, tr, img { break-inside: avoid; page-break-inside: avoid; }

  /* Bilder im Beitragstext bleiben, sie zeigen oft Arbeitsschritte –
     das Titelbild ist dagegen nur Schmuck und wird oben ausgeblendet. */
  .entry-content img { max-width: 100%; max-height: 9cm; width: auto; }

  .entry-content table th { background: #eee !important; color: #000 !important; }

  /* Der Hinweis muss mit aufs Papier, aber ohne Farbfläche */
  .disclaimer-box {
    background: none !important;
    border-left: 2px solid #999 !important;
    font-size: 9.5pt;
    color: #000;
  }

  /* Woher der Ausdruck kommt */
  .entry-footer::after {
    content: "Quelle: maedesuess-heilkraeutermanufaktur.de";
    display: block;
    margin-top: 1em;
    font-size: 9pt;
    color: #444;
  }

  @page { margin: 2cm 1.8cm; }
}

/* ==========================================================================
   9. Formulare & Buttons
   ========================================================================== */

/* Die Bedienelemente im Header sind ausgenommen – Burger, Untermenü-Pfeil
   und Lupe sollen keine grünen Pillen sein */
.btn,
input[type="submit"],
button:not(.menu-toggle):not(.submenu-toggle):not(.search-toggle):not(.back-to-top) {
  display: inline-block;
  font-family: var(--font-serif);
  background-color: var(--color-sage);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1rem;
  letter-spacing: 0.03em;
  transition: background-color 0.2s ease;
}

.btn:hover,
input[type="submit"]:hover,
button:not(.menu-toggle):not(.submenu-toggle):not(.search-toggle):not(.back-to-top):hover { background-color: var(--color-olive); color: #fff; }

.btn-small { padding: 9px 22px; font-size: 0.9rem; }

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: var(--font-serif);
  font-size: 1rem;
  background-color: #fff;
  color: var(--color-text);
}

.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }

/* ==========================================================================
   10. Pagination
   ========================================================================== */

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 48px 0 60px;
}

.pagination a,
.pagination span {
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-logo-darkgreen);
  font-size: 0.9rem;
}

.pagination .current {
  background-color: var(--color-sage);
  color: #fff;
  border-color: var(--color-sage);
}

/* ==========================================================================
   11. Footer
   ========================================================================== */

.site-footer {
  margin-top: auto;
  background-color: var(--color-olive);
  color: #F5F1E8;
  padding: 48px 0 28px;
  text-align: center;
}

.site-footer a { color: #F5F1E8; text-decoration: underline; }
.site-footer a:hover { color: var(--color-blush); }

.footer-branding {
  font-size: 2.4rem;
  margin: 0 0 0.1em;
  line-height: 1.1;
}

.footer-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  margin: 1.6em 0 0;
  padding: 0;
  font-size: 0.9rem;
}

.footer-meta {
  font-size: 0.82rem;
  opacity: 0.85;
  margin-top: 1.5em;
}

/* ==========================================================================
   12. Responsive Feinschliff
   ========================================================================== */

@media (max-width: 600px) {
  body { font-size: 17px; }

  .two-col { padding-top: 32px; }

  .entry-title { font-size: 1.9rem; }
  .page-title { font-size: 1.9rem; }
  .post-card .entry-title { font-size: 1.55rem; }

  .post-card-body { padding: 22px 20px 26px; }

  .footer-branding { font-size: 2rem; }
}
