/*
Theme Name:   will-mixen Child
Theme URI:    https://www.will-mixen.de
Description:  Child Theme fuer will-mixen.de – modernes, editoriales Food-Blog Design
Author:       MixMyDay
Template:     astra
Version: 1.7.0
Text Domain:  will-mixen-child
*/

/* MOBILE OVERFLOW FIX */
html, body { overflow-x: hidden; }

/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */

:root {
  /* Farben */
  --wm-bg:           #FAF8F5;       /* Warmes Creme – Hintergrund */
  --wm-surface:      #FFFFFF;       /* Karten, Boxen */
  --wm-border:       #EDE9E3;       /* Subtile Trennlinien */

  --wm-text:         #1C1917;       /* Fast-Schwarz fuer Lesbarkeit */
  --wm-text-muted:   #78716C;       /* Metadaten, Labels */
  --wm-text-light:   #A8A29E;       /* Dezente Elemente */

  --wm-rose:         #B5626A;       /* Hauptfarbe – erdiges, dusty Rose */
  --wm-rose-dark:    #9A5059;       /* Hover-Zustand */
  --wm-rose-light:   #F3E7E8;       /* Heller Rose-Ton fuer Backgrounds */
  --wm-rose-soft:    #E8D0D2;       /* Noch heller, fuer Tags etc. */

  --wm-warm:         #C97B52;       /* Terrakotta-Akzent – warm, geerdet */

  /* Typografie */
  --wm-font-heading: 'Fraunces', Georgia, serif;   /* Bold, charakterstark – wie Athletics bei MB */
  --wm-font-body:    'Lato', -apple-system, sans-serif;

  /* Spacing */
  --wm-gap:          2rem;
  --wm-radius:       12px;
  --wm-radius-lg:    20px;
  --wm-radius-full:  999px;

  /* Schatten */
  --wm-shadow-sm:    0 1px 3px rgba(28, 25, 23, 0.06), 0 1px 2px rgba(28, 25, 23, 0.04);
  --wm-shadow-md:    0 4px 16px rgba(28, 25, 23, 0.08), 0 2px 6px rgba(28, 25, 23, 0.05);
  --wm-shadow-hover: 0 8px 32px rgba(28, 25, 23, 0.12), 0 4px 12px rgba(28, 25, 23, 0.07);

  /* Uebergaenge */
  --wm-transition:   all 0.25s ease;
}


/* ==========================================================================
   ASTRA CUSTOMIZER-VARIABLEN UEBERSCHREIBEN
   Astra setzt diese als :root-Variablen via Customizer-Inline-Style.
   Wir ueberschreiben sie hier mit hoeherem Spezifitaet-Trick.
   ========================================================================== */

:root,
html body {
  --ast-global-color-0: #B5626A !important;  /* Primaerfarbe (war #f12184) */
  --ast-global-color-1: #9A5059 !important;  /* Sekundaer */
  --ast-global-color-2: #1C1917 !important;  /* Dunkel */
  --ast-global-color-3: #FAF8F5 !important;  /* Hell */
  --ast-global-color-4: #78716C !important;  /* Grau */
  --ast-global-color-5: #EDE9E3 !important;  /* Border */
}

/* WPRM "Rezept speichern"-Button und aehnliche Astra-Buttons mit Inline-Color */
[style*="#f12184"],
[style*="f12184"] {
  color: #B5626A !important;
  border-color: #B5626A !important;
  background-color: #B5626A !important;
}

/* WPRM Save Recipe Button */
.wprm-recipe-block-container-columns .wprm-recipe-user-ratings,
.wprm-user-rating,
.wprm-recipe-user-ratings-stars,
.wprm-recipe-save-recipe-container a,
.wprm-recipe-save-recipe-container button,
[class*="wprm-recipe-save"] {
  background-color: #B5626A !important;
  border-color: #B5626A !important;
  color: #fff !important;
}

/* Bewertungs-Sterne: WPRM nutzt oft fill-Farbe */
.wprm-recipe-rating-stars span,
.wprm-rating-star svg,
.wprm-recipe-user-ratings-stars .wprm-rating-star-full svg {
  fill: #B5626A !important;
  color: #B5626A !important;
}

/* Alle verbleibenden Astra-Pink-Reste */
.ast-outline-button,
.ast-outline-button:hover {
  color: #B5626A !important;
  border-color: #B5626A !important;
}


/* ==========================================================================
   GLOBALE GRUNDLAGEN
   ========================================================================== */

body {
  background-color: var(--wm-bg) !important;
  font-family: var(--wm-font-body) !important;
  color: var(--wm-text) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.ast-archive-title,
.site-title {
  font-family: var(--wm-font-heading) !important;
  color: var(--wm-text) !important;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

a {
  color: var(--wm-rose) !important;
  transition: var(--wm-transition);
  text-decoration: none;
}

a:hover {
  color: var(--wm-rose-dark) !important;
}

/* Hauptfarbe ueberschreiben */
.ast-primary-color,
.ast-accent-color {
  color: var(--wm-rose) !important;
}

.ast-primary-bg-color,
.ast-accent-bg-color {
  background-color: var(--wm-rose) !important;
}


/* ==========================================================================
   LAYOUT – SIDEBAR BEREINIGEN (nur Lieblingskategorien-Widget verstecken)
   ========================================================================== */

/* Lieblingskategorien-Widget entfernen (ID block-11 = das spezifische Widget) */
#block-11 {
  display: none !important;
}

/* Haupt-Container */
.ast-container {
  max-width: 1280px !important;
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}

/* Desktop (ab 922px, Astras eigenem Breakpoint): Content 70%, Sidebar 28% */
@media (min-width: 922px) {
  #primary,
  .ast-right-sidebar #primary,
  .ast-left-sidebar #primary {
    width: 70% !important;
  }

  #secondary,
  .ast-right-sidebar #secondary,
  .ast-left-sidebar #secondary {
    width: 28% !important;
    background: transparent !important;
    padding-left: 2rem !important;
    border-left: 1px solid var(--wm-border) !important;
  }
}

/* Mobile (bis 921px): alles volle Breite, Sidebar unten */
@media (max-width: 921px) {
  #primary,
  .ast-right-sidebar #primary,
  .ast-left-sidebar #primary,
  #secondary,
  .ast-right-sidebar #secondary,
  .ast-left-sidebar #secondary {
    width: 100% !important;
    float: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border: none !important;
  }

  #secondary {
    margin-top: 2rem !important;
    border-top: 1px solid var(--wm-border) !important;
    padding-top: 2rem !important;
  }
}

/* Suchfeld in Sidebar wie bei MB */
#secondary .widget_search .search-field,
#secondary .wp-block-search__input {
  width: 100% !important;
  border: 1.5px solid var(--wm-text) !important;
  border-radius: 0 !important;
  padding: 0.6rem 1rem !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  background: var(--wm-surface) !important;
  box-shadow: none !important;
}

/* Sidebar Widget-Titel: UPPERCASE, fett wie MB */
#secondary .widget-title,
#secondary h2,
#secondary h3 {
  font-family: var(--wm-font-body) !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--wm-text) !important;
  margin-bottom: 1rem !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
}

/* Abstand zwischen Widgets */
#secondary .widget,
#secondary > * {
  margin-bottom: 2rem !important;
}

/* Leere Widgets unsichtbar machen */
#secondary .widget:empty,
#secondary .widget_block:empty,
#secondary > *:empty {
  display: none !important;
}

/* Widget-Rahmen nur wenn Inhalt vorhanden */
#secondary .widget {
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}


/* ==========================================================================
   CUSTOM HEADER (eigene header.php – ersetzt Astra Header Builder)
   ========================================================================== */

/* Astra-eigenen Header verstecken */
#masthead > *:not(.wm-top-bar):not(.wm-primary-header):not(.wm-search-bar):not(.wm-mobile-nav) {
  display: none !important;
}

/* Obere Leiste */
.wm-top-bar { background: var(--wm-rose-light); border-bottom: 1px solid var(--wm-rose-soft); }
.wm-top-bar-inner {
  max-width: 1280px; margin: 0 auto; padding: 0.45rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
}

.wm-top-bar .wm-search-toggle,
.wm-mobile-controls .wm-search-toggle {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  cursor: pointer !important;
  font-family: var(--wm-font-body) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--wm-text) !important;
  padding: 0 !important;
  transition: var(--wm-transition) !important;
  transform: none !important;
}
.wm-top-bar .wm-search-toggle:hover,
.wm-mobile-controls .wm-search-toggle:hover {
  color: var(--wm-rose) !important;
  background: none !important;
  background-color: transparent !important;
  transform: none !important;
}

.wm-social-icons { display: flex; align-items: center; gap: 0.9rem; }
.wm-social-link { color: var(--wm-text-muted) !important; display: flex; align-items: center; transition: var(--wm-transition); }
.wm-social-link:hover { color: var(--wm-rose) !important; }

/* Haupt-Header */
.wm-primary-header { background: var(--wm-surface); border-bottom: 2.5px solid var(--wm-text); }
.wm-header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0.9rem 2rem;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 1.5rem;
}

/* Logo */
.wm-logo { justify-self: center; text-align: center; }
.wm-logo a { display: inline-block; line-height: 0; }
.wm-logo img { max-height: 75px; width: auto; display: block; }
.wm-site-name {
  font-family: var(--wm-font-heading); font-size: 1.75rem;
  font-weight: 900; color: var(--wm-text); letter-spacing: -0.03em;
}

/* Navigation */
.wm-nav { display: flex; align-items: center; }
.wm-nav-left { justify-content: flex-end; }
.wm-nav-right { justify-content: flex-start; }

.wm-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.15rem; flex-wrap: wrap; }
.wm-menu li { position: relative; }
.wm-menu a {
  display: block; padding: 0.35rem 0.55rem;
  font-family: var(--wm-font-body); font-size: 0.78rem;
  font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--wm-text) !important; transition: var(--wm-transition); white-space: nowrap;
}
.wm-menu a:hover,
.wm-menu .current-menu-item > a,
.wm-menu .current-menu-ancestor > a { color: var(--wm-rose) !important; }

/* Submenü */
.wm-menu .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 200px;
  background: var(--wm-surface); border: 1px solid var(--wm-border);
  border-radius: var(--wm-radius); box-shadow: var(--wm-shadow-md);
  padding: 0.5rem 0; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: all 0.2s ease; z-index: 1000;
}
.wm-menu li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.wm-menu .sub-menu a { text-transform: none; letter-spacing: 0; font-weight: 400; padding: 0.45rem 1.1rem; font-size: 0.85rem; }

/* Suchleiste */
.wm-search-bar { background: var(--wm-bg); border-bottom: 1px solid var(--wm-border); padding: 0.75rem 0; }
.wm-search-bar-inner { max-width: 600px; margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; gap: 0.75rem; }
.wm-search-bar .search-form { flex: 1; }
.wm-search-bar .search-field {
  width: 100%; border: 1.5px solid var(--wm-text); border-radius: 0;
  padding: 0.6rem 1rem; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; background: var(--wm-surface);
}
.wm-search-close { background: none; border: none; cursor: pointer; font-size: 1.1rem; color: var(--wm-text-muted); padding: 0.25rem; }
.wm-search-close:hover { color: var(--wm-rose); }

/* Mobile Controls */
.wm-mobile-controls { display: none; align-items: center; gap: 1rem; justify-self: end; }
.wm-hamburger { background: none; border: none; cursor: pointer; padding: 0.25rem; display: flex; flex-direction: column; gap: 5px; }
.wm-hamburger span { display: block; width: 24px; height: 2px; background: var(--wm-text); }

/* Mobile Navigation */
.wm-mobile-nav { background: var(--wm-surface); border-bottom: 1px solid var(--wm-border); padding: 1rem 2rem 1.5rem; }
.wm-mobile-menu { list-style: none; margin: 0; padding: 0; }
.wm-mobile-menu a {
  display: block; padding: 0.6rem 0;
  font-family: var(--wm-font-body); font-size: 0.9rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--wm-text) !important; border-bottom: 1px solid var(--wm-border);
}
.wm-mobile-menu a:hover { color: var(--wm-rose) !important; }

/* Floating Buttons – Pink entfernen */
.ast-scroll-to-top, #scroll-to-top, .scrolltop, .back-to-top,
[class*="scroll-top"], [class*="scrolltop"], [id*="scroll-top"],
#ast-scroll-to-top-icon, .ast-scroll-to-top-icon {
  background-color: #B5626A !important;
  border-color: #B5626A !important;
}

/* Responsive Header */
@media (max-width: 1024px) {
  .wm-nav { display: none !important; }
  .wm-mobile-controls { display: flex !important; }
  .wm-header-inner { grid-template-columns: 1fr auto !important; }
  .wm-logo { justify-self: start !important; }
  .wm-top-bar .wm-social-icons { display: none !important; }
}
@media (max-width: 640px) {
  .wm-top-bar-inner, .wm-header-inner { padding-left: 1rem; padding-right: 1rem; }
}


/* ==========================================================================
   HERO / SEITEN-TITEL
   ========================================================================== */

.ast-archive-description,
.page-header,
.ast-page-header-content {
  background: linear-gradient(135deg, var(--wm-rose-light) 0%, var(--wm-bg) 60%) !important;
  padding: 3rem 0 2.5rem !important;
  margin-bottom: 3rem !important;
  border-bottom: 1px solid var(--wm-border) !important;
}

.ast-archive-title,
.page-title {
  font-size: clamp(1.8rem, 4vw, 3rem) !important;
  color: var(--wm-text) !important;
  margin-bottom: 0.5rem !important;
}

/* Breadcrumbs */
.ast-breadcrumbs-wrapper,
#ast-breadcrumbs {
  font-size: 0.82rem !important;
  color: var(--wm-text-muted) !important;
  margin-bottom: 0.5rem !important;
}

.ast-breadcrumbs a {
  color: var(--wm-text-muted) !important;
}

.ast-breadcrumbs a:hover {
  color: var(--wm-rose) !important;
}


/* ==========================================================================
   BLOG / ARCHIV – REZEPT-CARDS
   ========================================================================== */

/* Grid-Container */
.ast-archive-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
  gap: 2rem !important;
}

/* Einzelne Card */
.ast-article-post,
article.ast-article-post {
  background: var(--wm-surface) !important;
  border-radius: var(--wm-radius-lg) !important;
  overflow: hidden !important;
  box-shadow: var(--wm-shadow-sm) !important;
  border: 1px solid var(--wm-border) !important;
  transition: var(--wm-transition) !important;
  display: flex !important;
  flex-direction: column !important;
}

.ast-article-post:hover {
  box-shadow: var(--wm-shadow-hover) !important;
  transform: translateY(-3px) !important;
  border-color: var(--wm-rose-soft) !important;
}

/* Card-Bild */
.ast-blog-featured-section,
.ast-article-post .post-thumb-img-content {
  overflow: hidden !important;
  border-radius: 0 !important;
  aspect-ratio: 4/3 !important;
}

.ast-blog-featured-section img,
.ast-article-post .post-thumb-img-content img,
.ast-article-post .wp-post-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.4s ease !important;
  display: block !important;
}

.ast-article-post:hover .wp-post-image,
.ast-article-post:hover .ast-blog-featured-section img {
  transform: scale(1.04) !important;
}

/* Card-Inhalt */
.ast-article-post .blog-layout-1,
.ast-article-post .entry-content-single {
  padding: 1.25rem 1.5rem 1.5rem !important;
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Card-Titel */
.ast-article-post .entry-title {
  font-size: 1.15rem !important;
  line-height: 1.35 !important;
  margin-bottom: 0.5rem !important;
  font-weight: 700 !important;
}

.ast-article-post .entry-title a {
  color: var(--wm-text) !important;
  transition: var(--wm-transition) !important;
}

.ast-article-post .entry-title a:hover {
  color: var(--wm-rose) !important;
}

/* Card-Meta (Datum, Kategorie) */
.ast-article-post .entry-meta,
.ast-article-post .posted-on,
.ast-article-post .byline {
  font-size: 0.78rem !important;
  color: var(--wm-text-light) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  margin-bottom: 0.5rem !important;
}

.ast-article-post .entry-meta a,
.ast-article-post .cat-links a {
  color: var(--wm-rose) !important;
  font-weight: 600 !important;
}

/* Card-Excerpt */
.ast-article-post .entry-summary p,
.ast-article-post .entry-content p {
  font-size: 0.9rem !important;
  color: var(--wm-text-muted) !important;
  line-height: 1.65 !important;
  margin-bottom: 0 !important;
}

/* "Weiterlesen"-Link in Cards */
.ast-article-post .more-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.3rem !important;
  margin-top: auto !important;
  padding-top: 1rem !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: var(--wm-rose) !important;
}

.ast-article-post .more-link::after {
  content: '→';
  transition: var(--wm-transition);
}

.ast-article-post:hover .more-link::after {
  transform: translateX(3px);
}


/* ==========================================================================
   KATEGORIE-TAGS / LABELS
   ========================================================================== */

.cat-links a,
.tags-links a,
.entry-footer .cat-links a {
  display: inline-block !important;
  background: var(--wm-rose-light) !important;
  color: var(--wm-rose-dark) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  padding: 0.25rem 0.65rem !important;
  border-radius: var(--wm-radius-full) !important;
  transition: var(--wm-transition) !important;
}

.cat-links a:hover,
.tags-links a:hover {
  background: var(--wm-rose) !important;
  color: #fff !important;
}


/* ==========================================================================
   SINGLE POST / EINZELNES REZEPT
   ========================================================================== */

/* Post-Titel */
.single .entry-title,
.page .entry-title {
  font-size: clamp(2rem, 5vw, 3.25rem) !important;
  line-height: 1.15 !important;
  margin-bottom: 1rem !important;
}

/* Featured Image */
.single .post-thumb,
.post-thumbnail {
  border-radius: var(--wm-radius-lg) !important;
  overflow: hidden !important;
  margin-bottom: 2.5rem !important;
  box-shadow: var(--wm-shadow-md) !important;
}

/* Post-Meta unter dem Titel */
.single .entry-meta {
  font-size: 0.85rem !important;
  color: var(--wm-text-muted) !important;
  border-top: 1px solid var(--wm-border) !important;
  border-bottom: 1px solid var(--wm-border) !important;
  padding: 0.75rem 0 !important;
  margin-bottom: 2rem !important;
}

/* Content-Typografie */
.entry-content p {
  font-size: 1.05rem !important;
  line-height: 1.8 !important;
  color: var(--wm-text) !important;
  margin-bottom: 1.5rem !important;
}

.entry-content h2 {
  font-size: 1.6rem !important;
  margin-top: 2.5rem !important;
  margin-bottom: 1rem !important;
  padding-bottom: 0.5rem !important;
  border-bottom: 2px solid var(--wm-rose-light) !important;
}

.entry-content h3 {
  font-size: 1.25rem !important;
  margin-top: 2rem !important;
  margin-bottom: 0.75rem !important;
}

/* Blockquote */
.entry-content blockquote {
  border-left: 4px solid var(--wm-rose) !important;
  background: var(--wm-rose-light) !important;
  border-radius: 0 var(--wm-radius) var(--wm-radius) 0 !important;
  padding: 1.25rem 1.5rem !important;
  margin: 2rem 0 !important;
  font-style: italic !important;
  color: var(--wm-text-muted) !important;
}


/* ==========================================================================
   WPRM REZEPT-BLOCK
   ========================================================================== */

.wprm-recipe-container,
.wprm-recipe {
  border: 1px solid var(--wm-border) !important;
  border-radius: var(--wm-radius-lg) !important;
  box-shadow: var(--wm-shadow-md) !important;
  background: var(--wm-surface) !important;
  overflow: hidden !important;
  margin: 2.5rem 0 !important;
}

/* Rezept-Header */
.wprm-recipe-block-container-columns.wprm-recipe-block-container-columns-1 {
  background: linear-gradient(135deg, var(--wm-rose-light), var(--wm-bg)) !important;
  padding: 2rem !important;
  border-bottom: 1px solid var(--wm-border) !important;
}

/* Rezept-Name */
.wprm-recipe-name,
h2.wprm-recipe-name {
  font-family: var(--wm-font-heading) !important;
  font-size: 1.75rem !important;
  color: var(--wm-text) !important;
  letter-spacing: -0.02em !important;
}

/* Zeiten-Badges (Prep, Koch, Gesamt) */
.wprm-recipe-times-container {
  display: flex !important;
  gap: 1rem !important;
  flex-wrap: wrap !important;
  margin-top: 1rem !important;
}

.wprm-recipe-block-container-column {
  background: var(--wm-surface) !important;
  border-radius: var(--wm-radius) !important;
  padding: 0.75rem 1rem !important;
  border: 1px solid var(--wm-border) !important;
  text-align: center !important;
  min-width: 90px !important;
}

.wprm-recipe-block-container-column .wprm-recipe-block-container-column-label {
  font-size: 0.7rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: var(--wm-text-light) !important;
  font-weight: 600 !important;
}

.wprm-recipe-block-container-column .wprm-recipe-block-container-column-value {
  font-family: var(--wm-font-heading) !important;
  font-size: 1.25rem !important;
  color: var(--wm-rose) !important;
  font-weight: 700 !important;
}

/* Zutaten + Anleitung */
.wprm-recipe-ingredients-container,
.wprm-recipe-instructions-container {
  padding: 1.5rem 2rem !important;
}

.wprm-recipe-ingredient-name {
  font-size: 0.95rem !important;
}

.wprm-recipe-instruction-text {
  font-size: 0.95rem !important;
  line-height: 1.7 !important;
}

/* Bewertungs-Sterne */
.wprm-recipe-rating .wprm-rating-star.wprm-rating-star-full svg,
.wprm-recipe-rating .wprm-rating-star.wprm-rating-star-33 svg,
.wprm-recipe-rating .wprm-rating-star.wprm-rating-star-50 svg,
.wprm-recipe-rating .wprm-rating-star.wprm-rating-star-66 svg {
  fill: var(--wm-rose) !important;
}

/* Print-Button */
.wprm-recipe-print-link,
.wprm-recipe-jump-to-recipe-shortcode a {
  background: var(--wm-rose) !important;
  color: #fff !important;
  border-radius: var(--wm-radius-full) !important;
  padding: 0.5rem 1.25rem !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  border: none !important;
  transition: var(--wm-transition) !important;
}

.wprm-recipe-print-link:hover,
.wprm-recipe-jump-to-recipe-shortcode a:hover {
  background: var(--wm-rose-dark) !important;
  color: #fff !important;
}


/* ==========================================================================
   BUTTONS & CTA
   ========================================================================== */

.ast-button,
.wp-element-button,
.button,
button[type="submit"],
input[type="submit"],
.wpcf7-submit {
  background-color: var(--wm-rose) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--wm-radius-full) !important;
  padding: 0.75rem 1.75rem !important;
  font-family: var(--wm-font-body) !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: var(--wm-transition) !important;
  box-shadow: 0 2px 8px rgba(190, 95, 116, 0.3) !important;
}

.ast-button:hover,
.wp-element-button:hover,
.button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  background-color: var(--wm-rose-dark) !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(190, 95, 116, 0.4) !important;
}


/* ==========================================================================
   SUCHFELD
   ========================================================================== */

.search-form .search-field,
.ast-search-menu-icon input[type="search"] {
  border: 1.5px solid var(--wm-border) !important;
  border-radius: var(--wm-radius-full) !important;
  padding: 0.6rem 1.25rem !important;
  font-size: 0.9rem !important;
  background: var(--wm-bg) !important;
  transition: var(--wm-transition) !important;
}

.search-form .search-field:focus {
  border-color: var(--wm-rose) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px var(--wm-rose-light) !important;
}


/* ==========================================================================
   PAGINIERUNG
   ========================================================================== */

.ast-pagination .page-numbers,
.page-numbers {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.5rem !important;
  height: 2.5rem !important;
  border-radius: 50% !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: var(--wm-text-muted) !important;
  border: 1.5px solid var(--wm-border) !important;
  transition: var(--wm-transition) !important;
  background: var(--wm-surface) !important;
  text-decoration: none !important;
}

.ast-pagination .page-numbers:hover,
.page-numbers:hover {
  border-color: var(--wm-rose) !important;
  color: var(--wm-rose) !important;
  background: var(--wm-rose-light) !important;
}

.ast-pagination .page-numbers.current,
.page-numbers.current {
  background: var(--wm-rose) !important;
  border-color: var(--wm-rose) !important;
  color: #fff !important;
}


/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer,
#colophon {
  background-color: #1C1917 !important;
  color: #A8A29E !important;
  border-top: none !important;
  padding-top: 3rem !important;
}

.site-footer a {
  color: #D6D3D1 !important;
  transition: var(--wm-transition) !important;
}

.site-footer a:hover {
  color: var(--wm-rose) !important;
}

.footer-adv .ast-footer-overlay {
  background: transparent !important;
}

/* Footer Widget-Titel */
.site-footer .widget-title {
  font-family: var(--wm-font-heading) !important;
  color: #F5F5F4 !important;
  font-size: 1rem !important;
  margin-bottom: 1rem !important;
  padding-bottom: 0.5rem !important;
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

/* Copyright-Leiste */
.footer-bar,
.ast-small-footer {
  background-color: #0C0A09 !important;
  color: #78716C !important;
  font-size: 0.82rem !important;
  padding: 1rem 0 !important;
  margin-top: 2rem !important;
  border-top: 1px solid rgba(255,255,255,0.05) !important;
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
  .ast-container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .ast-archive-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .single .entry-title,
  .page .entry-title {
    font-size: 1.75rem !important;
  }

  .wprm-recipe-container {
    margin: 1.5rem -1rem !important;
    border-radius: 0 !important;
  }

  .wprm-recipe-ingredients-container,
  .wprm-recipe-instructions-container {
    padding: 1rem 1.25rem !important;
  }
}

@media (max-width: 544px) {
  .ast-archive-grid {
    grid-template-columns: 1fr !important;
  }

  .wprm-recipe-times-container {
    gap: 0.3rem !important;
  }

  .wprm-recipe-block-container-column {
    min-width: 75px !important;
    padding: 0.5rem 0.75rem !important;
  }
}


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

/* Scrollbar (Webkit) */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--wm-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--wm-border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--wm-rose-soft);
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Fokus-Ring */
:focus-visible {
  outline: 2px solid var(--wm-rose) !important;
  outline-offset: 3px !important;
}


/* ==========================================================================
   PHASE 1: BUG-FIXES (31.03.2026)
   ========================================================================== */

/* BUG 1: Whitespace zwischen Header und Content entfernen */
#primary,
.content-area.primary {
  margin-top: 0 !important;
}

/* Astra Page-Header/Breadcrumb Spacing reduzieren */
.ast-archive-description,
.page-header {
  margin-bottom: 1.5rem !important;
}

/* BUG 2: Weiterlesen-Buttons – Kontrast fixen */
.wp-block-button__link.uagb-text-link,
.uagb-post__cta .wp-block-button__link,
a.wp-block-button__link {
  background-color: var(--wm-rose) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--wm-radius-full) !important;
  padding: 0.55rem 1.6rem !important;
  font-family: var(--wm-font-body) !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  transition: var(--wm-transition) !important;
  text-decoration: none !important;
}

.wp-block-button__link.uagb-text-link:hover,
.uagb-post__cta .wp-block-button__link:hover,
a.wp-block-button__link:hover {
  background-color: var(--wm-rose-dark) !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
  box-shadow: var(--wm-shadow-sm) !important;
}

/* BUG 3: Footer Styling */
.site-footer {
  margin-top: 3rem !important;
}

.footer-adv {
  background: var(--wm-bg) !important;
  border-top: 2px solid var(--wm-text) !important;
  padding: 2.5rem 0 !important;
}

.footer-adv .ast-container {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 2rem !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 0 2rem !important;
}

.footer-adv .footer-adv-widget {
  flex: 1 !important;
  min-width: 200px !important;
}

.footer-adv .widget-title,
.footer-adv h4 {
  font-family: var(--wm-font-body) !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--wm-text) !important;
  margin-bottom: 0.75rem !important;
}

.footer-adv a {
  color: var(--wm-text-muted) !important;
  font-size: 0.9rem !important;
}

.footer-adv a:hover {
  color: var(--wm-rose) !important;
}

.ast-small-footer {
  background: var(--wm-text) !important;
  color: var(--wm-text-light) !important;
  padding: 1.5rem 0 !important;
  font-size: 0.82rem !important;
}

.ast-small-footer a {
  color: var(--wm-text-light) !important;
}

.ast-small-footer a:hover {
  color: #fff !important;
}

/* BUG 4: Content-Bereich – volle Breite auf Homepage */
body.home #primary,
body.home .content-area {
  width: 100% !important;
  max-width: 100% !important;
}

/* Spectra/UAG Post Grid – Optimierungen */
.uagb-post-grid {
  max-width: 1280px !important;
  margin: 0 auto !important;
}

/* Rezept-Card Titel im Grid */
.uagb-post__title a {
  font-family: var(--wm-font-heading) !important;
  color: var(--wm-text) !important;
  font-size: 1rem !important;
  line-height: 1.3 !important;
}

.uagb-post__title a:hover {
  color: var(--wm-rose) !important;
}

/* Kategorie-Sektions-Titel */
.uagb-post-grid .uagb-post__header-link,
.wp-block-uagb-post-grid h3 {
  font-family: var(--wm-font-heading) !important;
  color: var(--wm-rose) !important;
}

/* ==========================================================================
   AMAZON PRODUKT-BOXEN (AAWP-Ersatz)
   ========================================================================== */

.wm-amz-container {
  margin: 1.5rem 0;
}

.wm-amz-grid {
  display: grid;
  gap: 1rem;
}

.wm-amz-grid-2 { grid-template-columns: repeat(2, 1fr); }
.wm-amz-grid-3 { grid-template-columns: repeat(3, 1fr); }
.wm-amz-grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 600px) {
  .wm-amz-grid-2,
  .wm-amz-grid-3,
  .wm-amz-grid-4 {
    grid-template-columns: 1fr;
  }
}

.wm-amz-box {
  border: 1px solid #EDE9E3;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: all 0.25s ease;
}

.wm-amz-box:hover {
  box-shadow: 0 4px 16px rgba(28,25,23,0.08);
  border-color: #E8D0D2;
}

.wm-amz-link {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
  text-decoration: none !important;
  color: #1C1917 !important;
}

.wm-amz-image {
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wm-amz-img {
  max-width: 90px;
  max-height: 90px;
  object-fit: contain;
  border-radius: 6px;
}

.wm-amz-img-placeholder {
  width: 90px;
  height: 90px;
  background: #FAF8F5;
  border-radius: 6px;
}

.wm-amz-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.wm-amz-title {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  line-height: 1.35;
  color: #1C1917 !important;
}

.wm-amz-cta {
  font-size: 0.78rem;
  font-weight: 700;
  color: #B5626A !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wm-amz-box:hover .wm-amz-cta {
  color: #9A5059 !important;
}

/* ==========================================================================
   PHASE 2: HOMEPAGE REDESIGN (MB-STYLE) – 31.03.2026
   ========================================================================== */

/* --- Homepage Container --- */
.wm-home {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

body.home #primary {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.home .ast-container {
  max-width: 100% !important;
  padding: 0 !important;
}

/* --- Sektions-Layout --- */
.wm-section {
  padding: 3rem 0;
}

.wm-section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--wm-text);
  padding-bottom: 0.75rem;
}

.wm-section__tagline {
  font-family: var(--wm-font-body);
  font-size: 0.82rem;
  color: var(--wm-text-muted);
  letter-spacing: 0.03em;
}

.wm-section__title {
  font-family: var(--wm-font-body) !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--wm-text) !important;
  margin: 0 !important;
}

.wm-section__link {
  font-family: var(--wm-font-body) !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--wm-rose) !important;
  text-decoration: none !important;
  transition: var(--wm-transition) !important;
}

.wm-section__link:hover {
  color: var(--wm-rose-dark) !important;
}

/* --- Rezept-Card Grid --- */
.wm-recipe-grid {
  display: grid;
  gap: 1.5rem;
}

.wm-recipe-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .wm-recipe-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .wm-recipe-grid--4 {
    grid-template-columns: 1fr;
  }
  .wm-home {
    padding: 0 1rem;
  }
}

/* --- Rezept-Card --- */
.wm-card {
  display: block;
  text-decoration: none !important;
  color: var(--wm-text) !important;
  border-radius: var(--wm-radius) !important;
  overflow: hidden;
  transition: var(--wm-transition) !important;
  background: var(--wm-surface) !important;
}

.wm-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: var(--wm-shadow-hover) !important;
}

.wm-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.wm-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.wm-card:hover .wm-card__image img {
  transform: scale(1.05);
}

.wm-card__title {
  font-family: var(--wm-font-heading) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  padding: 0.85rem 0.75rem !important;
  margin: 0 !important;
  color: var(--wm-text) !important;
}

/* --- TM7 Badge --- */
.wm-badge {
  display: inline-block;
  font-family: var(--wm-font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 2;
}

.wm-badge--tm7 {
  background: #1B5E20;
  color: #fff;
}

/* --- Kategorie-Buttons --- */
.wm-section__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.wm-cat-btn {
  font-family: var(--wm-font-body) !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  color: var(--wm-text) !important;
  border: 1.5px solid var(--wm-border) !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: var(--wm-radius-full) !important;
  transition: var(--wm-transition) !important;
}

.wm-cat-btn:hover {
  background: var(--wm-text) !important;
  color: #fff !important;
  border-color: var(--wm-text) !important;
}

/* --- Rezept der Woche (ROTW) --- */
.wm-section--rotw {
  background: var(--wm-rose-soft);
  margin: 0 -2rem;
  padding: 3rem 2rem;
}

.wm-rotw {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

.wm-rotw__label {
  font-family: var(--wm-font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wm-rose);
  display: block;
  margin-bottom: 0.75rem;
}

.wm-rotw__title {
  font-family: var(--wm-font-heading) !important;
  font-size: 2rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: var(--wm-text) !important;
  margin: 0 0 1rem 0 !important;
}

.wm-rotw__desc {
  font-size: 1rem;
  color: var(--wm-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.wm-rotw__image img {
  width: 100%;
  border-radius: var(--wm-radius-lg);
  box-shadow: var(--wm-shadow-md);
}

@media (max-width: 768px) {
  .wm-rotw {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .wm-rotw__image {
    order: -1;
  }
  .wm-section--rotw {
    margin: 0 -1rem;
    padding: 2rem 1rem;
  }
}

/* --- CTA Button --- */
.wm-btn {
  display: inline-block;
  font-family: var(--wm-font-body) !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  padding: 0.7rem 1.8rem !important;
  border-radius: var(--wm-radius-full) !important;
  transition: var(--wm-transition) !important;
}

.wm-btn--primary {
  background: var(--wm-rose) !important;
  color: #fff !important;
}

.wm-btn--primary:hover {
  background: var(--wm-rose-dark) !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
  box-shadow: var(--wm-shadow-sm) !important;
}

/* --- Newsletter-Sektion --- */
/* --- Newsletter Bar (MB-Style, slim) --- */
.wm-nl-bar {
  box-sizing: border-box;
  max-width: 100%;
  background: #2D3B2D;
  padding: 1.8rem 2rem;
  margin: 3rem 0;
  border-radius: var(--wm-radius-lg);
}
.wm-nl-bar__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.wm-nl-bar__headline {
  color: #fff;
  font-family: var(--wm-font-heading);
  font-size: 1.15rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.wm-nl-bar__desc {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  line-height: 1.4;
  flex: 1;
}
.wm-nl-bar__form {
  display: flex;
  flex-shrink: 0;
  gap: 0;
}
.wm-nl-bar__form input[type="email"] {
  padding: 0.7rem 1rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-right: none;
  border-radius: 6px 0 0 6px !important;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.9rem;
  width: 280px;
  outline: none;
  font-family: var(--wm-font-body);
}
.wm-nl-bar__form input[type="email"]::placeholder {
  color: rgba(255,255,255,0.5);
}
.wm-nl-bar__form input[type="email"]:focus {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.15);
}
.wm-nl-bar__form button {
  padding: 0.7rem 1.5rem !important;
  background: var(--wm-rose) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 0 6px 6px 0 !important;
  font-family: var(--wm-font-body);
  font-size: 0.85rem !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}
.wm-nl-bar__form button:hover {
  background: var(--wm-rose-dark) !important;
}

@media (max-width: 900px) {
  .wm-nl-bar { padding: 1.4rem 1.2rem !important; overflow: hidden; }
  .wm-nl-bar__inner { flex-wrap: wrap; }
  .wm-nl-bar__headline { width: 100%; font-size: 1.05rem; }
  .wm-nl-bar__desc { width: 100%; flex: unset; }
  .wm-nl-bar__form { width: 100%; max-width: 100%; box-sizing: border-box; }
  .wm-nl-bar__form input[type="email"] { flex: 1 !important; width: auto !important; min-width: 0; max-width: calc(100% - 120px); box-sizing: border-box; }
  .wm-nl-bar__form button { padding: 0.7rem 1rem !important; font-size: 0.8rem !important; flex-shrink: 0; }
}


/* =============================================
   PHASE 3: Rezeptseite Redesign
   Version 1.0.9 - 2026-03-31
   ============================================= */

/* --- 3.1 WPRM Color Override: Pink (#f2328e) -> Rose (#B5626A) --- */
.wprm-recipe-template-will-mixen-chic-2021 a[style*="background-color: #f2328e"],
.wprm-recipe-template-will-mixen-chic-2021 a[style*="background-color:#f2328e"] {
  background-color: var(--wm-rose, #B5626A) !important;
  border-color: var(--wm-rose, #B5626A) !important;
}
.wprm-recipe-template-will-mixen-chic-2021 div[style*="background-color: #f2328e"],
.wprm-recipe-template-will-mixen-chic-2021 div[style*="background-color:#f2328e"] {
  background-color: var(--wm-rose, #B5626A) !important;
}

/* Snippet Buttons (Zum Rezept / Rezept drucken) */
/* OLD: .wprm-recipe-link broad selector removed */
a.wprm-recipe-jump,
a.wprm-recipe-print {
  background-color: var(--wm-rose, #B5626A) !important;
  border-color: var(--wm-rose, #B5626A) !important;
}

/* WPRM Stars rating color */
.wprm-recipe-template-will-mixen-chic-2021 .wprm-rating .wprm-rating-star svg polygon,
.wprm-recipe-template-will-mixen-chic-2021 .wprm-rating .wprm-rating-star svg path {
  fill: var(--wm-rose, #B5626A) !important;
}

/* WPRM Link color in recipe card */
.wprm-recipe-template-will-mixen-chic-2021 a:not(.wprm-recipe-link):not(.wprm-recipe-pin):not(.wprm-recipe-slickstream) {
  color: var(--wm-rose, #B5626A) !important;
}

.wprm-recipe-template-will-mixen-chic-2021 a.wprm-recipe-link[style*="#f2328e"] {
  color: #fff !important;
}

/* "Hat dir das Rezept geschmeckt?" Banner */
.wprm-recipe-template-will-mixen-chic-2021 .wprm-call-to-action[style*="background-color: #f2328e"],
.wprm-recipe-template-will-mixen-chic-2021 .wprm-call-to-action[style*="background-color:#f2328e"] {
  background-color: var(--wm-rose, #B5626A) !important;
}

/* Snippet buttons secondary pink (#f34397) */
.wprm-recipe-snippet-container a[style*="f34397"],
.wprm-recipe-snippet-container a[style*="F34397"],
.wprm-recipe-snippet-container a[style*="f43497"],
.wprm-recipe-snippet-container a[style*="F43497"] {
  background-color: var(--wm-rose, #B5626A) !important;
  border-color: var(--wm-rose, #B5626A) !important;
}

/* Autor / Datum Farbe */
.entry-meta a,
.entry-meta {
  color: var(--wm-rose, #B5626A) !important;
}

/* --- 3.2 Hero-Bild full-width auf Single Posts --- */
.single .entry-content > .wp-block-image:first-of-type,
.single .entry-content > p:first-of-type img,
.single .entry-content img.wp-post-image,
.single .post-thumb img,
.single article .post-thumb img,
.single .entry-header img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto;
  border-radius: var(--wm-radius, 12px);
}

/* Post thumbnail in single view */
.single .ast-article-single .post-thumb-img-content img,
.single .ast-article-post .post-thumb-img-content img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto;
  border-radius: var(--wm-radius, 12px);
  margin-bottom: 1.5rem;
}

/* --- 3.3 Mehr Whitespace auf Rezeptseiten --- */
/* Rezeptkarte: mehr Abstand nach oben */
.wprm-recipe-container {
  margin-top: 2.5rem;
  margin-bottom: 2rem;
}

/* Rezeptkarte interne Abstande */
.wprm-recipe-template-will-mixen-chic-2021 {
  padding: 2rem 1.5rem !important;
}

/* Sections innerhalb Rezeptkarte */
.wprm-recipe-template-will-mixen-chic-2021 .wprm-recipe-block-container {
  margin-bottom: 1.5rem;
}

/* Zutaten / Anleitungen Headings */
.wprm-recipe-template-will-mixen-chic-2021 h2 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

/* Absaetze im Blog-Content */
.single .entry-content > p {
  margin-bottom: 1.3em;
}

/* Absaetze nach Ueberschriften */
.single .entry-content h2,
.single .entry-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* Snippet Buttons Bar: mehr Abstand */
.wprm-recipe-snippet-container {
  margin-bottom: 1.5rem;
}

/* --- 3.4 Breadcrumb Styling --- */
.ast-breadcrumbs {
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.ast-breadcrumbs a {
  color: var(--wm-rose, #B5626A);
}

/* --- 3.5 Recipe Card Button Fixes --- */
/* White text on rose-bg buttons (Save + Print have pink inline bg) */
.wprm-recipe-container a.wprm-recipe-link[style*="#f2328e"],
.wprm-recipe-container a.wprm-recipe-slickstream[style*="#f2328e"] {
  background-color: var(--wm-rose, #B5626A) !important;
  border-color: var(--wm-rose, #B5626A) !important;
  color: #fff !important;
}

/* Pin button: preserve original white bg + grey styling */
.wprm-recipe-container a.wprm-recipe-pin {
  background-color: #ffffff !important;
  border-color: #616161 !important;
  color: #616161 !important;
}

/* Print button: rose bg + white text */
.wprm-recipe-container a.wprm-recipe-print {
  color: #fff !important;
}

/* --- 3.6 Comprehensive WPRM Button Color Fix (class-based) --- */
/* Overrides global a{color:rose} for all action buttons regardless of inline style format */
a.wprm-recipe-jump,
a.wprm-recipe-print,
a.wprm-recipe-slickstream {
  background-color: var(--wm-rose, #B5626A) !important;
  border-color: var(--wm-rose, #B5626A) !important;
  color: #fff !important;
}

a.wprm-recipe-jump:hover,
a.wprm-recipe-print:hover,
a.wprm-recipe-slickstream:hover {
  background-color: var(--wm-rose-dark, #9A5059) !important;
  border-color: var(--wm-rose-dark, #9A5059) !important;
  color: #fff !important;
}

/* Pin button: preserve white bg + grey text */
.wprm-recipe-container a.wprm-recipe-pin {
  background-color: #ffffff !important;
  border-color: #616161 !important;
  color: #616161 !important;
}

.wprm-recipe-container a.wprm-recipe-pin:hover {
  background-color: #f5f5f5 !important;
  border-color: #424242 !important;
  color: #424242 !important;
}

/* "Hat dir das Rezept geschmeckt?" CTA div background */
.wprm-recipe-container div.wprm-recipe-block-container-columns {
  background-color: var(--wm-rose, #B5626A) !important;
  border-color: var(--wm-rose, #B5626A) !important;
}


/* ==========================================================================
   PHASE 3.5 – Layout, FAQ Fix, Jump-to-Recipe (minimalistbaker style)
   ========================================================================== */

/* --- 3.7 Fix Spectra/UAGB FAQ Icon (plus sign was filling entire screen) --- */
.uagb-faq-icon-wrap svg {
  width: 18px !important;
  height: 18px !important;
}
.uagb-faq-icon-wrap {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 24px !important;
  flex-shrink: 0 !important;
}

/* --- 3.8 Single Post Layout: centered container like minimalistbaker --- */
@media (min-width: 922px) {
  .single .site-content {
    display: flex !important;
    flex-wrap: wrap !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
  }

  .single .ast-article-single {
    padding: 2.5rem 3rem !important;
  }

  /* Reduce top spacing above title */
  .single .ast-breadcrumbs-wrapper {
    margin-bottom: 0.5rem !important;
  }
  .single .entry-title {
    margin-top: 0.25rem !important;
    margin-bottom: 0.5rem !important;
  }
  .single .entry-meta {
    margin-bottom: 1rem !important;
  }
}

/* --- 3.9 Jump to Recipe Button (minimalistbaker style) --- */
/* Hide print button and video button from snippet area */
.wprm-recipe-snippet-container .wprm-recipe-print,
.wprm-recipe-snippet-container a[href*="print"],
.wprm-recipe-snippet-container .wprm-recipe-video-jump {
  display: none !important;
}

/* Style the Jump to Recipe button like minimalistbaker */
.wprm-recipe-snippet-container a.wprm-recipe-jump,
.wprm-recipe-jump-to-recipe-shortcode a {
  display: inline-block !important;
  background: transparent !important;
  color: #333 !important;
  border: 1.5px solid #333 !important;
  border-radius: 0 !important;
  padding: 8px 20px !important;
  font-family: var(--wm-font-body, Lato, sans-serif) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}
.wprm-recipe-snippet-container a.wprm-recipe-jump:hover,
.wprm-recipe-jump-to-recipe-shortcode a:hover {
  background: #333 !important;
  color: #fff !important;
  border-color: #333 !important;
}

/* Remove the colored bar/container around snippet buttons */
.wprm-recipe-snippet-container {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0.5rem 0 1rem 0 !important;
  text-align: right !important;
}

/* Also style the "Zum Video" link similarly if present */
.wprm-recipe-snippet-container a.wprm-recipe-video-jump {
  display: inline-block !important;
}

/* --- 3.10 Reduce top spacing on single posts --- */
.single .ast-separate-container .ast-article-single {
  margin-top: 0 !important;
}
.single .ast-separate-container .ast-article-single .ast-post-format- {
  padding-top: 0 !important;
}
.single .entry-header {
  margin-bottom: 1rem !important;
}


/* ==========================================================================
   PHASE 4 - Post Header: Rating + Jump Row + Affiliate + Sidebar
   ========================================================================== */

#secondary.secondary {
    border-left: 0 !important;
    box-shadow: none !important;
}

.wm-post-header-meta {
    margin: 0 0 1.2rem 0;
}

.wm-jump-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin: 0.4rem 0 !important;
}

.wm-icon-slots {
    flex: 1;
    min-height: 28px;
}

.wm-jump-btn {
    display: inline-block !important;
    background: transparent !important;
    color: #333 !important;
    border: 1.5px solid #333 !important;
    border-radius: 0 !important;
    padding: 8px 20px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
}

.wm-jump-btn:hover {
    background: #333 !important;
    color: #fff !important;
}

body .entry-content .wm-post-header-meta p.wm-affiliate-notice {
    font-size: 18px !important;
    color: #bbb !important;
    font-style: italic !important;
    margin: 0.2rem 0 0 0 !important;
    line-height: 1.3 !important;
    letter-spacing: 0.3px !important;
}

.single .entry-meta {
    font-size: 0 !important;
}

.single .entry-meta .posted-on {
    font-size: 12px !important;
    color: #aaa !important;
    display: inline-block !important;
}

.single .entry-meta .posted-on::before {
    content: "Aktualisiert: ";
}

/* Rating-Hintergrund im Post-Header entfernen */
.wm-post-header-meta .wprm-recipe-rating {
    background: transparent !important;
    padding: 4px 0 !important;
}

/* --- Statische Bewertungsanzeige --- */
.wm-rating-display {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.wm-stars {
    color: #B5626A;
    font-size: 18px;
    letter-spacing: 2px;
    line-height: 1;
}
.wm-rating-text {
    font-size: 13px;
    color: #888;
}
/* WPRM Snippet-Buttons (pink) auf Einzelseiten ausblenden */
.single .wprm-recipe-snippet,
.single .wprm-recipe-template-snippet-buttons-new {
    display: none !important;
}
/* WPRM Roundup/Empfehlungs-Buttons: weisse Schrift auf Rose-Hintergrund */
.wprm-recipe-roundup-link.wprm-recipe-link {
    color: #fff !important;
}
.wprm-recipe-roundup-link.wprm-recipe-link:hover {
    color: #fff !important;
    opacity: 0.85;
}

/* =============================================
   FOOTER – Lesbarkeit verbessern
   ============================================= */

/* Footer Widget-Ueberschriften: weiss statt unsichtbar */
.site-footer .widget-title,
.site-footer .footer-adv .widget-title,
.footer-adv .widget-title {
    color: #e8e4e0 !important;
}

/* Footer Links: helles Grau fuer guten Kontrast */
.site-footer a,
.site-footer .footer-adv a,
.footer-adv a {
    color: #c8c3be !important;
}
.site-footer a:hover,
.site-footer .footer-adv a:hover,
.footer-adv a:hover {
    color: #B5626A !important;
}

/* Footer Fliesstext */
.site-footer,
.site-footer p,
.site-footer li {
    color: #a8a29e !important;
}

/* Copyright-Bereich unten */
.ast-small-footer,
.ast-small-footer-section,
.ast-small-footer-section p,
.ast-small-footer-section a {
    color: #a8a29e !important;
}
.ast-small-footer-section a:hover {
    color: #B5626A !important;
}

/* =============================================
   RECIPE INDEX - /rezepte/ Grid wie Minimalist Baker
   ============================================= */

/* Standard-Archiv auf /rezepte/ ausblenden */
body.category-rezepte .ast-archive-description,
body.category-rezepte #primary > .ast-row,
body.category-rezepte #primary > .ast-article-post,
body.category-rezepte .ast-pagination,
body.category-rezepte .ast-archive-entry-banner,
body.category-rezepte #primary article.post,
body.category-rezepte #primary .ast-row {
    display: none !important;
}
/* Sidebar auf /rezepte/ ausblenden fuer Full-Width */
body.category-rezepte #secondary,
body.category-rezepte .ast-right-sidebar #secondary {
    display: none !important;
}
body.category-rezepte #primary {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

/* Recipe Index Container */
.wm-recipe-index {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 1rem 1rem 3rem;
    overflow: hidden;
    box-sizing: border-box;
}
.wm-ri-title {
    text-align: center;
    font-size: 32px;
    letter-spacing: 4px;
    font-weight: 400;
    margin: 0 0 0.5rem;
    color: #2d3b2d;
}
.wm-ri-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
}
.wm-ri-intro p {
    color: #888;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Suchleiste */
.wm-ri-search-wrap {
    max-width: 500px;
    margin: 0 auto 2rem;
    position: relative;
}
.wm-ri-search-wrap input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 1px solid #ddd;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
}
.wm-ri-search-wrap input:focus {
    border-color: #B5626A;
}
.wm-ri-search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #aaa;
    pointer-events: none;
}

/* Filter */
.wm-ri-filters {
    text-align: center;
    margin-bottom: 2rem;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}
.wm-ri-filters-label {
    font-size: 13px;
    letter-spacing: 4px;
    color: #888;
    margin-bottom: 1rem;
    font-weight: 400;
}
.wm-ri-filter-row {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.wm-ri-filter label {
    display: block;
    font-size: 10px;
    letter-spacing: 2px;
    color: #555;
    margin-bottom: 4px;
    font-weight: 700;
    text-transform: uppercase;
}
.wm-ri-filter select {
    padding: 8px 30px 8px 12px;
    border: 1px solid #ddd;
    font-size: 13px;
    min-width: 150px;
    background: #fff;
    cursor: pointer;
    outline: none;
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23555' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}
.wm-ri-filter select:focus {
    border-color: #B5626A;
}
.wm-ri-filter-actions {
    display: flex;
    justify-content: center;
    gap: 2rem;
    align-items: center;
    margin-top: 0.5rem;
}
#wm-ri-reset {
    background: none;
    border: none;
    font-size: 11px;
    letter-spacing: 2px;
    color: #666;
    cursor: pointer;
    padding: 4px 8px;
    font-family: inherit;
    text-transform: uppercase;
}
#wm-ri-reset:hover { color: #2d3b2d; }
#wm-ri-clear {
    font-size: 11px;
    letter-spacing: 1px;
    color: #B5626A;
    cursor: pointer;
    text-transform: uppercase;
}
#wm-ri-clear:hover { text-decoration: underline; }

/* Rezept-Grid */
.wm-ri-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.wm-ri-card {
    text-decoration: none !important;
    color: #2d3b2d !important;
    text-align: center;
    transition: opacity 0.2s ease;
}
.wm-ri-card:hover {
    opacity: 0.8;
}
.wm-ri-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 3px;
    display: block;
}
.wm-ri-card h3 {
    font-size: 13px;
    font-weight: 600;
    margin: 0.5rem 0 0;
    line-height: 1.35;
    color: #2d3b2d;
    letter-spacing: 0.3px;
}

/* Zaehler */
.wm-ri-count {
    text-align: center;
    color: #aaa;
    font-size: 13px;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 900px) {
    .wm-ri-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
@media (max-width: 600px) {
    .wm-ri-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .wm-ri-card h3 { font-size: 12px; }
    .wm-ri-title { font-size: 24px; letter-spacing: 3px; }
    .wm-ri-filter-row { flex-direction: column; align-items: center; }
    .wm-ri-filter select { min-width: 200px; }
}

/* =====================================================
   ARCHIVE PAGES - Clean Grid Layout (Minimalist Baker Style)
   Targets: Tags, Categories (except /rezepte/ which has custom index)
   ===================================================== */

/* Hide sidebar on all archive pages */
body.archive:not(.category-rezepte) #secondary,
body.archive:not(.category-rezepte) .ast-right-sidebar #secondary {
    display: none !important;
}
body.archive:not(.category-rezepte) #primary {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

/* Archive header: centered, clean */
body.archive:not(.category-rezepte) .ast-archive-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    padding: 2rem 1rem 0;
    border-bottom: none;
}
body.archive:not(.category-rezepte) .ast-archive-description .page-title,
body.archive:not(.category-rezepte) .ast-archive-description .ast-archive-title {
    font-size: 32px;
    letter-spacing: 4px;
    font-weight: 400;
    text-transform: uppercase;
    color: #2d3b2d;
}
body.archive:not(.category-rezepte) .ast-archive-description p {
    color: #888;
    font-size: 15px;
}
body.archive:not(.category-rezepte) .ast-breadcrumbs-wrapper,
body.archive:not(.category-rezepte) .ast-archive-entry-banner {
    display: none !important;
}

/* Hide excerpts, meta, read-more */
body.archive:not(.category-rezepte) .entry-content,
body.archive:not(.category-rezepte) .ast-excerpt-container,
body.archive:not(.category-rezepte) .ast-blog-single-element.ast-taxonomy-container,
body.archive:not(.category-rezepte) .ast-blog-single-element.ast-meta-container,
body.archive:not(.category-rezepte) .entry-meta,
body.archive:not(.category-rezepte) .cat-links,
body.archive:not(.category-rezepte) .read-more,
body.archive:not(.category-rezepte) .ast-button-wrap {
    display: none !important;
}

/* 4-column card grid */
body.archive:not(.category-rezepte) #primary .ast-row,
body.archive:not(.category-rezepte) #primary > .ast-row {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
}

/* Clean card style */
body.archive:not(.category-rezepte) article.post {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center;
    box-shadow: none !important;
    width: 100% !important;
}
body.archive:not(.category-rezepte) .ast-article-inner {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

/* Square images */
body.archive:not(.category-rezepte) .post-thumb-img-content img,
body.archive:not(.category-rezepte) .ast-blog-featured-section img {
    aspect-ratio: 1 !important;
    object-fit: cover !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 3px !important;
}

/* Clean titles */
body.archive:not(.category-rezepte) .entry-title {
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    color: #2d3b2d !important;
    margin: 0.5rem 0 0 !important;
}
body.archive:not(.category-rezepte) .entry-title a {
    color: #2d3b2d !important;
    text-decoration: none !important;
}
body.archive:not(.category-rezepte) .entry-title a:hover {
    opacity: 0.7;
}

/* Pagination clean */
body.archive:not(.category-rezepte) .ast-pagination {
    max-width: 1100px;
    margin: 2rem auto;
    text-align: center;
}
body.archive:not(.category-rezepte) .ast-pagination .page-numbers {
    padding: 8px 14px;
    border: 1px solid #ddd;
    color: #2d3b2d;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 1px;
}
body.archive:not(.category-rezepte) .ast-pagination .page-numbers.current {
    background: #2d3b2d;
    color: #fff;
    border-color: #2d3b2d;
}

/* Responsive archive grid */
@media (max-width: 900px) {
    body.archive:not(.category-rezepte) #primary .ast-row {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1rem !important;
    }
    body.archive:not(.category-rezepte) .ast-archive-description .page-title,
    body.archive:not(.category-rezepte) .ast-archive-description .ast-archive-title {
        font-size: 26px;
        letter-spacing: 3px;
    }
}
@media (max-width: 600px) {
    body.archive:not(.category-rezepte) #primary .ast-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.6rem !important;
    }
    body.archive:not(.category-rezepte) .ast-archive-description .page-title,
    body.archive:not(.category-rezepte) .ast-archive-description .ast-archive-title {
        font-size: 22px;
        letter-spacing: 2px;
    }
    body.archive:not(.category-rezepte) .entry-title {
        font-size: 12px !important;
    }
}
