/*
Theme Name: Extendable Child
Template: extendable
*/

/* =========================================================
   WAFFELKATZE â€“ MASTER CSS (geordnet & stabil)
   Basierend auf deinem Original +a aktuelle Fixes
   ========================================================= */


/* =========================================================
   0) Fonts
   ========================================================= */

@font-face{
  font-family:"Karla";
  src:url("fonts/karla.woff2") format("woff2");
  font-weight:100 900;
  font-style:normal;
  font-display: swap;
}

@font-face{
  font-family:"Cormorant Garamond";
  src:url("fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  font-weight:500;
  font-style:normal;
  font-display:swap;
}


/* =========================================================
   1) Global Spacing / Grundregeln
   ========================================================= */

.wp-site-blocks{
  --wp--style--block-gap: 0.9rem;
}

/* Headings */
.wp-site-blocks .wp-block-heading{
  margin-block-start: 1.1rem;
  margin-block-end: 0.7rem;
}

/* Post Title */
.wp-site-blocks .wp-block-post-title{
  margin-block-start: 0;
  margin-block-end: 0.9rem;
}

/* AbsÃ¤tze */
.wp-site-blocks p{
  margin-block-start: 0;
  margin-block-end: 0.95rem;
}

/* Buttons-Block */
.wp-site-blocks .wp-block-buttons{
  margin-top: 0.9rem;
}

/* Gutenberg Group/Columns gap */
.wp-site-blocks .wp-block-group,
.wp-site-blocks .wp-block-columns{
  gap: 0.9rem;
}

/* Mobile kompakter */
@media (max-width: 768px){
  .wp-site-blocks{ --wp--style--block-gap: 0.75rem; }
  .wp-site-blocks .wp-block-heading{
    margin-block-start: 0.95rem;
    margin-block-end: 0.6rem;
  }
  .wp-site-blocks p{ margin-block-end: 0.85rem; }
  .wp-site-blocks .wp-block-buttons{ margin-top: 0.8rem; }
  .wp-site-blocks .wp-block-group,
  .wp-site-blocks .wp-block-columns{ gap: 0.75rem; }
}

/* Robust gegen horizontales Sprengen */
.wp-site-blocks,
.wp-block-post-content,
.entry-content,
.wp-block-group{
  overflow-wrap:anywhere;
  word-break:break-word;
}

/* Nur echte Content-Medien responsiv behandeln */
.wp-site-blocks img,
.wp-site-blocks video,
.wp-site-blocks iframe{
  max-width: 100%;
  height: auto;
}

/* SVG nicht global auf max-width zwingen */
.wp-site-blocks svg{
  height: auto;
}

/* =========================================================
   2) Recipe Bar
   ========================================================= */

.wk-recipebar{
  position: sticky;
  top: 0;
  z-index: 50;
  display:flex;
  gap:.6rem;
  align-items:center;
  padding:.65rem .9rem;
  border-bottom: 1px solid rgba(0,0,0,.08);
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.85);
}

.wk-recipebar__btn,
.wk-recipebar__link{
  text-decoration:none;
  font:inherit;
  border-radius:.75rem;
  padding:.55rem .8rem;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  cursor:pointer;
}

.wk-recipebar__btn--ghost{
  background:transparent;
}

.wk-recipebar{
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Wrapper = volle Breite (Background/Boder/Blur) */
.wk-recipebarWrap{
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(0,0,0,.08);
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.85);
}

/* Bar-Inhalt bleibt “content-breit” und sitzt mittig */
.wk-recipebar{
  display: flex;
  gap: .6rem;
  align-items: center;
  padding: .65rem .9rem;

  max-width: var(--wp--style--global--content-size);
  margin-left: auto;
  margin-right: auto;

  /* wichtig: Background/Border NICHT mehr hier */
  border-bottom: 0;
  background: transparent;
}



/* =========================================================
   WK Cookmode â€“ CLEAN (Focus + HUD + Active Step)
   Voraussetzungen:
   - Body bekommt .wk-cookmode
   - Wrapper um Zubereitung hat .wk-cookStage (deine Gruppe)
   - Steps sind .wk-prepStep / .is-active / .is-done
   ========================================================= */

/* 1) Basis */
body.wk-cookmode{
  font-size: 18px;
  line-height: 1.7;
  background: #fff;
}

/* Optional weniger Ablenkung */
body.wk-cookmode header,
body.wk-cookmode footer{
  display: none !important;
}

/* 2) Overlay: dim + blur (statt alles wegzuwerfen) */
body.wk-cookmode::before{
  content:"";
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 22, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9990;
}

/* 3) Stage in den Vordergrund als groÃŸes Panel */
body.wk-cookmode .wk-cookStage{
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(980px, calc(100vw - 24px));
  height: calc(100vh - 110px); /* Platz fÃ¼r HUD */
  overflow: auto;

  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);

  z-index: 9995;
  padding: 16px 16px 92px; /* unten Platz fÃ¼r HUD */
}

/* Stage: Gutenberg-Padding/Constraints entschÃ¤rfen */
body.wk-cookmode .wk-cookStage.has-global-padding{
  padding-left: 16px !important;
  padding-right: 16px !important;
}
body.wk-cookmode .wk-cookStage.is-layout-constrained > :where(*){
  max-width: 100% !important;
}

/* 4) Zubereitung innerhalb Stage */
body.wk-cookmode .wk-prep{
  max-width: 100%;
  margin: 0;
}

/* 5) Steps â€“ alle sichtbar, aktiver hervorgehoben */
body.wk-cookmode .wk-prepStep{
  border-radius: 18px;
  padding: 18px 16px;
  margin: 10px 0;
  opacity: 0.55;
  transition: transform 160ms ease, opacity 160ms ease, box-shadow 160ms ease, outline-color 160ms ease;
}

.wk-prepText .wk-ingredient{
  color: #395144;
  background: rgba(57, 81, 68, 0.06);
  padding: 1px 1px;
  border-radius: 6px;
}

body.wk-cookmode .wk-prepStep.is-active{
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.10);
  outline: 2px solid rgba(57,81,68,0.22);
  background: rgba(255,255,255,0.95);
}

body.wk-cookmode .wk-prepStep.is-done{
  opacity: 0.75;
}
body.wk-cookmode .wk-prepStep.is-done .wk-prepKicker,
body.wk-cookmode .wk-prepStep.is-done .wk-prepText{
  text-decoration: line-through;
  opacity: 0.75;
}

/* 6) HUD (unten, Ã¼ber allem) */
.wk-cookControls{
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 10000; /* Ã¼ber Overlay + Stage */
}

.wk-cookControls__inner{
  max-width: 920px;
  margin: 0 auto;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.10);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,.12);

  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}

.wk-cookControls button{
  appearance: none;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  border-radius: 999px;
  padding: 10px 12px;
  cursor: pointer;
}

.wk-cookControls__status{
  min-width: 140px;
  text-align: center;
  font-weight: 600;
  opacity: 0.9;
}

/* Mobile */
@media (max-width: 680px){
  body.wk-cookmode{ font-size: 17px; }
  .wk-cookControls__status{ min-width: 110px; font-size: 14px; }
  .wk-cookControls button{ padding: 9px 10px; }
  body.wk-cookmode .wk-cookStage{
    top: 10px;
    width: calc(100vw - 20px);
  }
}

/* =========================================================
   3) Recipe Layout (nur Grid â€“ OHNE Zutaten-Logik)
   ========================================================= */

.wk-recipe__layout{
  display:grid;
  gap:1.2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px){
  .wk-recipe__layout{
    grid-template-columns: minmax(320px, 380px) 1fr;
    align-items:start;
  }
}

/* =========================================================
   5) Steps â€“ robust (Container + Liste)
   ========================================================= */

.wk-steps{
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 1.2rem;
  padding: 2.5rem;
  background:#fff;
}

.wk-steps__list{
  margin: .8rem 0 0;
  padding-left: 2rem;
  display:grid;
  gap:.75rem;
}

.wk-steps__list li{
  margin:0;
}


/* =========================================================
   7) Portionen Control â€“ robust (Input + Buttons)
   Fix fÃ¼r dein aktuelles UI im Screenshot
   ========================================================= */

.wk-servingsControl{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-radius:18px;
  background: rgba(0,0,0,0.04);
  width: fit-content;
}

/* +/- Buttons */
.wk-servingsControl button{
  width:38px;
  height:38px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,0.12);
  background:#fff;
  cursor:pointer;
  font-size:20px;
  line-height:1;
}

/* Number Input */
.wk-servingsControl input[type="number"]{
  width:56px;
  height:38px;
  text-align:center;
  border-radius:12px;
  border:1px solid rgba(0,0,0,0.12);
  background:#fff;
  font-weight:600;
}

/* Spinner entfernen */
.wk-servingsControl input[type="number"]::-webkit-outer-spin-button,
.wk-servingsControl input[type="number"]::-webkit-inner-spin-button{
  -webkit-appearance:none;
  margin:0;
}
.wk-servingsControl input[type="number"]{
  -moz-appearance:textfield;
  appearance:textfield;
}

/* Number Input â€“ Font fix */
.wk-servingsControl input[type="number"]{
  font-family: 'Karla', sans-serif;
  font-size: 16px;        /* ggf. anpassen */
  letter-spacing: 0.02em; /* optional, wirkt ruhiger */
}

.wk-servingsControl,
.wk-servingsControl button,
.wk-servingsControl input{
  font-family: 'Karla', sans-serif;
}

/* =========================================================
   9) wk-recipecard (nur einmal)
   ========================================================= */

.wk-recipecard{
  max-width: 1360px;
  margin: 60px auto;
  padding: 56px;
  background: #E3D7D242;
  border-radius: 30px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.06);
}

.wk-recipecard__grid{
  display:grid;
  gap:.6rem 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}


/* =========================================================
   10) Icon Headings (Tatzen) – zentriert & sauber
   ========================================================= */

/* =========================================================
   Icon Headings (Tatzen) – feinjustiert nach Kontext
   ========================================================= */

.wk-icon-title{
  display: flex;
  align-items: flex-start;     /* Icon an Zeile 1 koppeln */
  justify-content: center;     /* bleibt zentriert */
  gap: 8px;
  text-align: center;
}

.wk-icon-title::before{
  content:"";
  width: 18px;
  height: 18px;

  background-color: currentColor;
  -webkit-mask: url('https://waffelkatze.de/wp-content/uploads/2026/02/Minipawungerade22_schwarz.svg') center / contain no-repeat;
          mask: url('https://waffelkatze.de/wp-content/uploads/2026/02/Minipawungerade22_schwarz.svg') center / contain no-repeat;

  flex: 0 0 auto;
  opacity: .85;

  /* Desktop/Standard: etwas weiter runter, damit es nicht "zu hoch" wirkt */
  margin-top: 0.31em;
  transform: none;
}

/* --- Mobile normal (z.B. "Zutaten"): hängt dir zu tief -> etwas weniger margin-top --- */
@media (max-width: 768px){
  .wk-icon-title{ gap: 6px; }

  .wk-icon-title::before{
    width: 16px;
    height: 16px;
    margin-top: 0.13em;  /* runter = kleiner Wert, hoch = größer Wert */
  }
}

/* --- Hero / Green Glass: große Headline -> etwas mehr, damit es optisch auf Zeile 1 sitzt --- */
@media (max-width: 768px){
  .wk-green-glass-full .wk-icon-title::before{
    margin-top: 0.26em;
  }
}

/* =========================================================
   11) Glass / Fullbleed â€“ FIXED (ohne horizontalen Scroll)
   ========================================================= */
/* =========================================================
   11) WK Glass / Fullbleed â€“ FINAL VERSION
   ========================================================= */

/* =========================
   GREEN GLASS (normal)
   ========================= */

.wk-green-glass{
  background: rgba(57,81,68,0.38);
  color: #ffffff;
  border-radius: 28px;
  padding: 2rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}


/* =========================
   GREEN GLASS FULLBLEED
   ========================= */

.wk-green-glass-full{
  position: relative;
  width: 100vw;
  max-width: 100vw;

  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  box-sizing: border-box;
  padding: 3rem clamp(16px, 4vw, 48px);
  border-radius: 0;

  background: rgba(57,81,68,0.38);
  color: #ffffff;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}


/* =========================
   OLIVE (normal)
   ========================= */

.wk-olive{
  background: rgba(118,126,104,0.38);
  color: #ffffff;
  border-radius: 28px;
  padding: 2rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}


/* =========================
   OLIVE FULLBLEED
   ========================= */

.wk-olive-full{
  position: relative;
  width: 100vw;
  max-width: 100vw;

  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  box-sizing: border-box;
  padding: 3rem clamp(16px, 4vw, 48px);
  border-radius: 0;

  background: rgba(118,126,104,0.38);
  color: #ffffff;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}


/* =========================
   ROSE GLASS (normal)
   ========================= */

.wk-rose-glass{
  background: rgba(255,239,234,0.65);
  color: #2b2b2b;
  border-radius: 28px;
  padding: 2rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}


/* =========================================================
   12) NÃ¤hrwerttabelle (Standard)
   ========================================================= */

.naehrwerte-wrapper{
  width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}

.naehrwerte-tabelle{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  font-size:0.95rem;
  border:1px solid #59747C;
  border-radius:8px;
  overflow:hidden;
  background:transparent;
}

.naehrwerte-tabelle th,
.naehrwerte-tabelle td{
  padding:12px 14px;
  text-align:left;
  vertical-align:middle;
}

.naehrwerte-tabelle thead th{
  background-color:#59747C;
  color:#fff;
  font-weight:600;
  border-bottom:2px solid #59747C;
  background-clip: padding-box;
}

.naehrwerte-tabelle tbody td{
  border-bottom:1px solid #59747C;
}

.naehrwerte-tabelle tbody tr:last-child td{
  border-bottom:none;
}

/* =========================================================
   WK Card System â€“ Zutatenkarte mit Bild (FINAL)
   Ziel:
   - .wk-card     = Ã¤uÃŸere Schale (rundet alles, clippt)
   - .wk-cardPad  = rechte Spalte / Panel (Padding + Rahmen)
   ========================================================= */

/* 1) Ã„uÃŸere Card (betrifft beide Spalten) */
.wk-card{
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
}

/* =========================================================
   WK Zutatenpanel â€“ sauber & reduziert
   ========================================================= */

/* rechtes Panel */
.wk-cardPad{
  position: relative;
  background: #ffffff;   /* dein helles Panel */
  border-radius: 28px;
  padding: 48px 40px 40px 40px;
}

/* Inhalt im rechten Panel wirklich nach rechts schieben */
.wk-cardPad > .wp-block-group{
  padding-left: 0px !important; /* teste 80, dann 120 */
  padding-right: 0 !important;
}

/* innerer Rahmen */
.wk-cardPad::before{
  content: "";
  position: absolute;
  top: 0px;
  left: 20px;
  right: 20px;
  bottom: 0px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 22px;
  pointer-events: none;
}

/* Inhalt */
.wk-cardPad > *{
  position: relative;
  z-index: 2;
}

/* Headline */
.wk-cardPad h2{
  margin: 0 0 24px 0;
  text-align: center;
}

/* Zutatenliste */
.wk-ingredients__list{
  padding-left: 12px;
  gap: .6rem;
}

.wk-ingredients__list li{
  line-height: 1.4;
}

.wk-ingredients__list input[type="checkbox"]{
  margin-right: 8px;
}


.wk-cardPad .wk-ingredients__list{
  padding-left: 40px !important; /* Effekt */
}

/* Ãœberschrift nicht einrÃ¼cken */
.wk-cardPad h2,
.wk-cardPad .wk-icon-title{
  padding-left: 0 !important;
}



/*----------------------Bewertungen im Overview mi Sternen ausstatte-----------------------*/

/* Bewertung: Layout */
.wk-ratingWrap{
  margin-top: 8px;
}

/* Fallback (5 leere Sterne) */
.wk-starsFallback{
  font-size: 1.45rem;
  letter-spacing: 3px;
  opacity: 0.35;
  margin-top: 6px;
}

/* Wenn Site Reviews etwas rendert, Fallback ausblenden */
.wk-ratingWrap .glsr-summary + .wk-starsFallback{
  display: none;
}

/* Site Reviews Summary etwas hÃ¼bscher in der Karte */
.wk-card--social .glsr-summary{
  gap: 10px;
  align-items: center;
}

/* =========================
   WK Overview â€“ FINAL CLEAN (ersetzen)
   ========================= */

/* -------- Theme Variablen (einheitliche Farbe) -------- */
.wk-overview{
  --wk-accent: #395144;                 /* HauptgrÃ¼n */
  --wk-border: rgba(89,116,124,0.16);   /* Border auÃŸen */
  --wk-card-border: rgba(89,116,124,0.14);
  --wk-line: rgba(89,116,124,0.10);
  --wk-bg: rgba(255,255,255,0.55);
  --wk-card-bg: rgba(255,255,255,0.72);
  --wk-text: #2b2b2b;
}

/* Wrapper */
.wk-overview{
  max-width: 1200px;
  margin: 22px auto 0;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--wk-border);
  background: var(--wk-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--wk-text);
}

/* Grid */
.wk-overviewGrid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

/* Card */
.wk-overviewCard{
  border-radius: 16px;
  border: 1px solid var(--wk-card-border);
  background: var(--wk-card-bg);
  padding: 16px;
  min-height: 120px;
}

/* Head: Icon links, Content rechts */
.wk-oiHead{
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 14px;
  align-items: start;
}

.wk-oiHead::before{
  content: "";
  width: 40px;
  height: 40px;
  justify-self: start;
  margin-top: 2px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.95;
  filter: none;
}

/* Typo */
.wk-label{
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 700;
  margin: 0;
}

.wk-value{
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 650;
  margin: 0;
}


/* ---------- ZEIT: Gesamtzeit + Subinfos ---------- */

/* Gesamtzeit + Wert in einer Zeile */
.wk-card--time .wk-oiHead .wk-oiText{
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.wk-card--time .wk-label{
  white-space: nowrap;
}

.wk-card--time .wk-value{
  white-space: nowrap;
  opacity: 0.95;
}

/* Subblock beginnt unter dem Text (also nach Icon-Spalte) */
.wk-card--time .wk-oiSub{
  margin-top: 14px;                  
  padding-top: 12px;
  border-top: 1px solid rgba(89,116,124,0.10); /* Linie erzwingen */
}

/* Platz fÃ¼r das groÃŸe Icon */
.wk-timeRows{
  position: relative;
  padding-left: 60px;
}

/* Zwei Zeilen, aber nur EIN Icon fÃ¼r beide:
   Icon hÃ¤ngt am Wrapper .wk-timeRows */
/* Zeit-Wrapper: Platz fÃ¼r groÃŸes Icon */
/* ===== Zeitkarte: Subblock EinrÃ¼ckung wie Head ===== */

/* Icon fÃ¼r die beiden Zeilen: gleiche GrÃ¶ÃŸe wie oben, zentriert */
.wk-timeRows{
  position: relative;
  padding-left: 60px; /* Platz fÃ¼r groÃŸes Icon */
}

.wk-timeRows::before{
  content:"";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;         /* gleiche GrÃ¶ÃŸe wie Head-Icon */
  height: 38px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.95;
  background-image: url('https://waffelkatze.de/wp-content/uploads/2026/02/waffelkatze_Kochzeit_icon_transparentDIY.svg');
}

.wk-subRow{
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 3px 0;
  font-size: 0.95rem;
  line-height: 1.3;
  opacity: 0.92;
}

.wk-subLabel{ opacity: 0.82; font-weight: 500; }
.wk-subValue{ font-weight: 650; opacity: 0.98; }

/* ---------- FAKTEN: Schwierigkeit + Kalorien ---------- */

.wk-card--facts{
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: center;
}

.wk-factDivider{
  height: 1px;
  margin: 12px 0;
  background: var(--wk-line);
}

.wk-card--facts .wk-oiHead--difficulty .wk-oiText{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.wk-card--facts .wk-oiHead--difficulty .wk-label{
  margin-right: 2px;
  white-space: nowrap;
}

/* Dots */
.wk-dots{
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.wk-dot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(89,116,124,0.25);
}

.wk-dot.is-on{
  background: var(--wk-accent);
}

/* Badge */
.wk-badge{
  font-size: 0.92rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(57,81,68,0.10);
  border: 1px solid rgba(57,81,68,0.18);
  color: var(--wk-accent);
  font-weight: 650;
  white-space: nowrap;
}

/* Kalorien: Label + Wert in einer Zeile */
.wk-card--facts .wk-oiHead--calories .wk-oiText{
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.wk-card--facts .wk-oiHead--calories .wk-label,
.wk-card--facts .wk-oiHead--calories .wk-value{
  white-space: nowrap;
}

/* ---------- SOCIAL: Bewertung + Kommentare mittiger ---------- */

.wk-card--social{
  display: flex;
  align-items: center;
}

.wk-card--social .wk-oiText{
  /* nicht links kleben */
  padding-top: 2px;
}

.wk-card--social .wk-label{
  margin-bottom: 10px;
}

/* Site Reviews inline: Sterne + Text zusammen */
.wk-sr-inline .glsr-summary-text{
  flex-basis: 0%;
}

/* Social Block optisch mittiger, ohne alles zu zentrieren */
.wk-card--social .glsr-summary{
  justify-content: flex-start;
  gap: 10px;
}

/* Kommentarzeile */
.wk-socialComments{
  margin-top: 10px;
  font-size: 0.95rem;
  opacity: 0.9;
}

.wk-socialCommentsNr{
  font-weight: 750;
  color: var(--wk-accent);
}

/* =========================
   WK Overview â€“ Intelligentes Umklappen (Container Queries)
   ========================= */

/* Jede Kachel misst ihre eigene Breite */
.wk-overviewCard{
  container-type: inline-size;
}

/* Optische Wortzerhacker im Overview verhindern */
.wk-overview .wk-label,
.wk-overview .wk-subLabel{
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

/* Wenn eine Kachel schmal wird, klappt sie elegant um */
@container (max-width: 320px){

  /* Social: Sterne unter "Bewertung" */
  .wk-card--social .wk-labelLine{
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  /* Zeit: Minuten unter Label */
  .wk-card--time .wk-subRow{
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  /* Gesamtzeit: Wert unter Label */
  .wk-card--time .wk-oiHead--total .wk-oiText{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* ---------- Icons (einheitliche Lage: links vor Inhalt) ---------- */

.wk-oiHead--total::before{
  background-image:url('https://waffelkatze.de/wp-content/uploads/2026/02/waffelkatze_uhr_icon_transparent.svg');
}

.wk-oiHead--difficulty::before{
  background-image:url('https://waffelkatze.de/wp-content/uploads/2026/02/waffelkatze_topf_icon_transparent.svg');
}

.wk-oiHead--calories::before{
  background-image:url('https://waffelkatze.de/wp-content/uploads/2026/02/apple-icon-stroke.svg');
}

.wk-oiHead--rating::before{
  background-image:url('https://waffelkatze.de/wp-content/uploads/2026/02/Tatze_IConDIY.svg');
}

/* ===== Katze grÃ¶ÃŸer & etwas hÃ¶her setzen ===== */
.wk-oiHead--rating::before{
  width: 38px;      
  height: 38px;
opacity: 0.8;
  transform: translateY(-2px); /* optisch besser mittig */
}

/* Hover subtil */
.wk-overviewCard:hover{
  border-color: rgba(57,81,68,0.22);
  transform: translateY(-1px);
  transition: transform 160ms ease, border-color 160ms ease;
}

/* Responsive */
@media (max-width: 920px){
  .wk-overviewGrid{ grid-template-columns: 1fr; }
  .wk-overviewCard{ min-height: auto; }
}

/* =========================
   WK Overview â€“ Feinschliff (Overrides)
   ========================= */

/* Head-Zeilen vertikal mittig ausrichten */
.wk-oiHead{
  align-items: center; /* statt start */
}

.wk-recipeBody,
.wk-recipecard,
.wk-mediaCard,
.wp-block-group{
  box-sizing: border-box;
}

/* Einheitlicher Accent */
.wk-overview{
  --wk-accent: #395144;
}

/* Dots + Badge bereits auf Accent â€“ hier noch Icons optisch angleichen */
.wk-oiHead::before,
.wk-timeRows::before{
  filter: grayscale(1) saturate(0.2) brightness(0.55); /* macht SVGs einheitlicher */
  opacity: 0.95;
}

/* ===== Social Card Layout ===== */

/* ===== Rating Sticker Katze ===== */

.wk-card--social{
  position: relative;
  overflow: visible;
}

.wk-ratingStickerCat{
  position: absolute;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 6;
  pointer-events: none;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.18));
}



/* Karte mittig ausrichten */
.wk-card--social{
  display: flex;
  align-items: center; /* vertikal */
}

/* Head: Katze links, Textblock rechts */
.wk-card--social .wk-oiHead{
  align-items: center;
}

/* Textblock kompakt */
.wk-card--social .wk-oiText{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Label + Sterne in einer Zeile */
.wk-labelLine{
  display: inline-flex;
 align-items: baseline;
  gap: 12px;
}

/* Sterne grÃ¶ÃŸer + mehr Raum */
.wk-starsFallback{
  font-size: 1.45rem;
  letter-spacing: 3px;
  line-height: 1;
  opacity: 0.45;
}

/* Wenn Site Reviews Summary da ist: Fallback aus */
.wk-card--social .glsr-summary ~ .wk-labelLine .wk-starsFallback{
  display: none;
}

/* Site Reviews Summary (falls sichtbar) hÃ¼bsch in eine Zeile */
.wk-card--social .glsr-summary{
  order: 1;               /* oben */
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.wk-card--social .wk-labelLine{ order: 2; }
.wk-card--social .wk-socialComments{ order: 3; }

/* Textblock kompakter */
.wk-card--social .wk-oiText{
  gap: 1px;           /* vorher grÃ¶ÃŸer */
}

/* Kommentare nÃ¤her ran */
.wk-card--social .wk-socialComments{
  margin-top: 1px;    /* vorher ~10px */
  font-size: 0.95rem;
}

/* =========================
   WK Zubereitung â€“ Timeline Steps (final)
   ========================= */

.wk-prep{
  max-width: 720px;
}

.wk-prepTitle{
  margin: 0 0 22px 0;
}

.wk-prepSteps{
  border-top: 1px solid rgba(0,0,0,0.08);
}

.wk-prepStep{
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  align-items: start;
}

.wk-prepStep--last{
  border-bottom: 0;
}

.wk-prepNr{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 17,6px;
  line-height: 1,7;
  background: rgba(89,116,124,0.12); /* zart â€“ passend zu deinem Stil */
  color: #395144; /* falls du deine GrÃ¼n-TÃ¶ne nutzt */
}

.wk-prepKicker{
  margin: 0 0 6px 0;
  font-size: 1.2rem;
  line-height: 1.4;
}

.wk-prepText{
  margin: 0;
  line-height: 1.50;
}


.wk-info{
  background: rgba(118, 126, 104, 0.38) !important;
  color: #fff !important;
  padding: 2rem;
  border-radius: 28px;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/*========================================= Zubereitungssteps Ende =============================================*/

/* =========================================================
   WK INGREDIENTS â€“ LEGACY (einfach & isoliert)
   ========================================================= */

.wk-ingredients-legacy{
  margin: 32px 0;
}

.wk-ingredients-legacy__list{
  list-style: disc outside;
  padding-left: 22px;
  margin: 18px 0 0;
}

.wk-ingredients-legacy__list li{
  margin: 8px 0;
  line-height: 1.5;
}

.wk-ingredients-legacy__list input[type="checkbox"]{
  margin-right: 8px;
  transform: translateY(1px);
}


/* =========================================================
   WK â€“ Legacy IngredientsWrap (data-qty/data-unit sichtbar machen)
   Ziel: normale Bullet-Liste + Menge/Einheit davor
   ========================================================= */

.wk-ingredientsWrap .wk-ingredientsList{
  list-style: disc outside;
  padding-left: 22px;
  margin: 14px 0 0;
}

.wk-ingredientsWrap .wk-ingredientsList > li{
  display: list-item;
  margin: 8px 0;
  line-height: 1.5;
  text-transform: none; /* falls irgendwo global kleingeschrieben wird */
}

/* das Mengen-Label, das JS einfÃ¼gt */
.wk-ingredientsWrap .wk-qty{
  font-weight: 700;
  margin-right: 8px;
  white-space: nowrap;
}

/* optional: wenn du Menge optisch wie â€žBadgeâ€œ willst (dezent) */
.wk-ingredientsWrap .wk-qty.is-badge{
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.08);

}


/* Kategorie / Archiv: Featured Image stabilisieren */
.category .wp-block-post-featured-image img,
.archive .wp-block-post-featured-image img{
  height: auto !important;
}

/* =========================================
   WK Portionen Buttons – clean & modern
   ========================================= */

.wk-servingsRow{
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}

.wk-servingsLabel,
.wk-servingsRow strong{
  font-weight: 700;
}

/* Button-Gruppe */
.wk-servingsBtns{
  display: inline-flex;
  gap: 8px;
}

/* Buttons */
.wk-servingsBtns button[data-servings]{
  appearance: none;
  border: 1px solid rgba(0,0,0,0.18);
  background: rgba(255,255,255,0.65);
  color: inherit;
  font: inherit;

  padding: 8px 10px;
  line-height: 1;
  border-radius: 10px;

  cursor: pointer;
  transition: transform .06s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

/* Hover */
.wk-servingsBtns button[data-servings]:hover{
  background: rgba(255,255,255,0.9);
  border-color: rgba(0,0,0,0.28);
}

/* Active (dein JS setzt .is-active und aria-pressed="true") */
.wk-servingsBtns button[data-servings].is-active,
.wk-servingsBtns button[data-servings][aria-pressed="true"]{
  background: #ffffff;
  border-color: rgba(0,0,0,0.35);
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
  transform: translateY(-1px);
  font-weight: 700;
}

/* Press feedback */
.wk-servingsBtns button[data-servings]:active{
  transform: translateY(0px) scale(0.98);
}

/* Keyboard focus */
.wk-servingsBtns button[data-servings]:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(57,81,68,0.25); /* dein Grün-Ton, soft */
  border-color: rgba(57,81,68,0.55);
}

/* Mobile: etwas kompakter */
@media (max-width: 480px){
  .wk-servingsBtns{
    gap: 6px;
  }
  .wk-servingsBtns button[data-servings]{
    padding: 7px 9px;
    border-radius: 9px;
  }
}


/* FIX: Box-Sizing ok – aber alignfull NICHT kastrieren */
.wp-site-blocks{
  box-sizing: border-box;
  max-width: 100%;
}

/* alignfull in Ruhe lassen */
.alignfull,
.wp-block-group.alignfull{
  max-width: none;
}

html, body{
  overflow-x: clip;
}

/* Fallback für ältere Browser */
@supports not (overflow: clip){
  html, body{ overflow-x: hidden; }
}


/* =========================
   FIX: Portionen-UI zentrieren
   ========================= */
.wk-servingsSection{
  display: flex;
  justify-content: center;
  margin: 0 0 18px;
}

/* Falls irgendwo text-align:center reinfunkt */
.wk-servingsControl{
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

/*---------------------------------------------------------------------BEWERTUNGEN--------------------------------------------------------------*/

/* =========================
   Waffelkatze – Site Reviews (scoped)
   Wrapper-Klasse: wk-reviews
   ========================= */

.wk-reviews{
  background: #fff;
}

/* Gesamter Block auf 1200px und zentriert */
.wk-reviews .glsr,
.wk-reviews .glsr-form,
.wk-reviews .glsr-reviews,
.wk-reviews .glsr-summary{
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Innenabstand + typografischer Grundlook */
.wk-reviews .glsr{
  padding: 28px 18px;
  color: var(--wk-text, #1f2a26); /* fallback */
  font-family: var(--wk-font-body, Karla, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
  font-size: 1rem; /* 16px */
  line-height: 1.55;
}

/* Überschriften/Labels zentrieren */
.wk-reviews .glsr .glsr-form-title,
.wk-reviews .glsr .glsr-summary-title,
.wk-reviews .glsr label{
  text-align: center;
}

/* Felder sauber, modern, wie deine Cards */
.wk-reviews .glsr input[type="text"],
.wk-reviews .glsr input[type="email"],
.wk-reviews .glsr input[type="url"],
.wk-reviews .glsr textarea,
.wk-reviews .glsr select{
  width: 100%;
  max-width: 760px;               /* wirkt eleganter als full-bleed */
  margin-left: auto;
  margin-right: auto;
  display: block;

  background: #fff;
  color: inherit;

  border: 1px solid rgba(31,42,38,0.18);
  border-radius: 14px;
  padding: 12px 14px;

  font-family: inherit;
  font-size: 1rem;
}

.wk-reviews .glsr textarea{
  min-height: 160px;
  resize: vertical;
}

.wk-reviews .glsr input:focus,
.wk-reviews .glsr textarea:focus,
.wk-reviews .glsr select:focus{
  outline: none;
  border-color: rgba(57,81,68,0.55); /* #395144 vibe */
  box-shadow: 0 0 0 4px rgba(57,81,68,0.12);
}

/* Sterne mittig + Farbe */
.wk-reviews .glsr .glsr-star-rating,
.wk-reviews .glsr .glsr-rating{
  justify-content: center;
}

.wk-reviews .glsr .glsr-star svg,
.wk-reviews .glsr .glsr-star polygon,
.wk-reviews .glsr .glsr-star path{
  fill: #f4b400; /* warmes gold */
}

/* Checkbox/Consent Zeile etwas hübscher & zentriert */
.wk-reviews .glsr .glsr-field-is_approved,
.wk-reviews .glsr .glsr-toggle{
  max-width: 760px;
  margin: 12px auto 0;
}

/* Button zentrieren + Waffelkatze-Style */
.wk-reviews .glsr .glsr-button,
.wk-reviews .glsr button[type="submit"],
.wk-reviews .glsr input[type="submit"]{
  display: flex;                 /* statt inline-flex */
  align-items: center;
  justify-content: center;

  margin: 18px auto 0;
  width: fit-content;            /* verhindert 100% Breite */
  
  padding: 12px 18px;
  border-radius: 999px;

  border: 0;
  background: #395144;
  color: #fff;

  font-family: var(--wk-font-body, Karla, system-ui, sans-serif);
  font-size: 1rem;
  font-weight: 600;

  cursor: pointer;
}

/* Reviews-Liste: wie kleine elegante Cards */
.wk-reviews .glsr-review{
  background: #fff;
  border: 1px solid rgba(31,42,38,0.12);
  border-radius: 18px;
  padding: 18px 18px;
  margin: 16px auto;
  max-width: 1200px;
}

/* Review Header mittig */
.wk-reviews .glsr-review .glsr-review-title,
.wk-reviews .glsr-review .glsr-review-author,
.wk-reviews .glsr-review .glsr-review-date{
  text-align: center;
}

/* Meta leicht gedämpft */
.wk-reviews .glsr-review .glsr-review-date,
.wk-reviews .glsr-review .glsr-review-author{
  opacity: 0.75;
  font-size: 0.95rem;
}

/* Form-Spacings ruhiger */
.wk-reviews .glsr .glsr-field{
  margin: 14px 0;
}

.wk-reviews .glsr .glsr-field label{
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Submit-Zeile wirklich zentrieren */
.wk-reviews .glsr [data-field="submit-button"] .wp-block-buttons{
  justify-content: center !important;
}

/* =========================
   Site Reviews Summary – Sterne zentrieren
   ========================= */

/* Der Block, der die Sterne enthält */
.wk-reviews .glsr .glsr-summary-stars{
  display: flex;
  justify-content: center;
}
/* =========================
   Site Reviews – Summary komplett zentrieren
   ========================= */

.wk-reviews .glsr .glsr-summary{
  display: flex;
  flex-direction: column;     /* untereinander */
  align-items: center;        /* horizontal mittig */
  text-align: center;         /* Text ebenfalls mittig */
}

.wk-reviews .glsr .glsr-summary{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wk-reviews .glsr .glsr-summary-rating{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}


/* =========================
   WK Action Buttons – robust
   ========================= */

:root{
  --wk-actions-col-gap: 0px;  /* Abstand zwischen linken/rechten Button-Gruppen */
  --wk-actions-btn-gap: 8px;   /* Abstand zwischen Buttons innerhalb einer Gruppe */
}

/* 2 Spalten: links & rechts */
.wk-actionsGrid{
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--wk-actions-col-gap);
  margin-top: 20px;
}

/* Button-Reihen */
.wk-actionsCol{
  display: flex;
  gap: var(--wk-actions-btn-gap);
  flex-wrap: wrap;
  align-items: center;
}

/* RECHTS wirklich rechts: Grid-level Alignment */
.wk-actionsCol--right{
  justify-content: flex-end; /* innerhalb der Gruppe */
  justify-self: end;         /* innerhalb des Grid-Cells -> wirklich rechts */
}


.wk-actionBtn{
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Button-Style */
.wk-actionBtn{
  appearance: none;
  border: 1px solid rgba(0,0,0,0.14);
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .12s ease;
}

.wk-actionBtn:hover{ box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
.wk-actionBtn:active{ transform: translateY(1px); }

/* Mobile */
@media (max-width: 680px){
  .wk-actionsGrid{
    grid-template-columns: 1fr;
    row-gap: 10px;
  }
  .wk-actionsCol--right{
    justify-self: start;
    justify-content: flex-start;
  }
}

/* Elegante Unterstreichung für Überschriften */
.wk-heading-line {
  position: relative;
  padding-bottom: 12px; /* Abstand Text zur Linie */
}

.wk-heading-line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: rgba(0, 0, 0, 0.08); /* sehr feine Linie */
}


/* =========================
   WK – Soft Section Background
   ========================= */

.wk-soft-section{
  background: rgba(0,0,0,0.04);
  padding: 60px 40px;
  border-radius: 28px;
  margin: 80px 0;
}

/* =========================================================
   WK Zutaten – V2 Layout (2 Spalten)
   Funktioniert mit deinem bestehenden HTML + JS:
   .wk-ingredients--scale + .wk-ingredients__list + .wk-qty[data-qty]
   ========================================================= */

/* Basis: Liste als Grid */
.wk-ingredients--scale .wk-ingredients__list{
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px 0; /* row-gap / column-gap */
}

/* 2-Spalten enger */
@media (min-width: 768px){
  .wk-ingredients--scale .wk-ingredients__list{
    grid-template-columns: 1fr 1fr;
    column-gap: 0;  /* vorher 40px */
  }
}

/* Einträge: Checkbox + Text hübsch ausrichten */
.wk-ingredients--scale .wk-ingredients__list > li{
  margin: 0;
}

.wk-ingredients--scale .wk-ingredients__list > li > label{
  display: inline-flex;
  align-items: flex-start;
  line-height: 1.5;
}

/* Checkbox leicht nach unten, damit optisch mittig */
.wk-ingredients--scale .wk-ingredients__list input[type="checkbox"]{
  margin-top: 2px;
}

/* Menge hervorheben */
.wk-ingredients--scale .wk-qty{
  font-weight: 700;
  margin-right: 2px;
  white-space: nowrap;
}


/* Actions als echtes 2-Spalten-Grid, passend zur Zutatenliste */
/* Actions als echtes 2-Spalten-Grid, passend zur Zutatenliste */
.wk-ingredients--scale .wk-actionsGrid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 0;     /* wie Zutaten */
  margin-top: 22px;
}

/* Zutaten + Actions gemeinsam leicht nach rechts schieben */
.wk-ingredients--scale .wk-ingredients__list,
.wk-ingredients--scale .wk-actionsGrid{
  padding-left: 19px; /* hier pixelweise justieren */
}

/* rechte Gruppe links in ihrer Spalte starten (statt am Rand) */
.wk-ingredients--scale .wk-actionsCol--right{
  justify-self: start;
  justify-content: flex-start;
}



/* =========================
   Mobile-Fixes: Zutaten + Actions

   ========================= */


@media (max-width: 640px){

  /* Zutaten: zwei Spalten -> eine Spalte */
  .wk-ingredients--scale .wk-ingredientsGrid,
  .wk-ingredients--scale .wk-ingredients__grid{
    grid-template-columns: 1fr !important;
    column-gap: 0 !important;
    row-gap: 10px;
  }

  /* Checkbox + Text dürfen nicht “auseinander reißen” */
  .wk-ingredients--scale .wk-ingredients__item{
    min-width: 0;
  }

  /* Actions: 2-Spalten-Grid -> 1 Spalte, kein Desktop-Offset */
  .wk-ingredients--scale .wk-actionsGrid{
    grid-template-columns: 1fr !important;
    column-gap: 0 !important;
    row-gap: 12px;
    padding-left: 0 !important;
    margin-top: 22px; /* dein “Luft”-Wert für Mobile */
  }

  /* rechte Spalte nicht mehr “anders” behandeln */
  .wk-ingredients--scale .wk-actionsCol--right{
    justify-self: stretch !important;
  }

  /* Buttons: zwei pro Reihe, sauber wrap */
  .wk-ingredients--scale .wk-actionsCol{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .wk-ingredients--scale .wk-actionBtn{
    flex: 1 1 calc(50% - 5px);
    white-space: nowrap;
  }
}


/* Share-Icon im Button */
.wk-actionBtn{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wk-shareIcon{
  width: 14px;
  height:14px;
  opacity: 0.85;
  flex-shrink: 0;
}

.wk-recipe h1,
.wk-recipe h2,
.wk-recipe h3{
  hyphens: none;
  -webkit-hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}
.wk-recipe p,
.wk-recipe li{
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word; /* Sicherheitsnetz für Monsterwörter */
}



/* =========================
   WK Card – Bild links full-bleed innerhalb der Card
   ========================= */

/* 1) Linke Spalte/Wrapper darf KEIN Padding/Margin haben */
/* Linke Bildspalte sauber resetten */
.wk-card > .wp-block-column:first-child{
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
}

.wk-card > .wp-block-column:first-child > .wp-block-group{
  padding: 0 !important;
  margin: 0 !important;
  height: 100%;
}

.wk-cardCover{
  padding: 0 !important;
  margin: 0 !important;
  min-height: 100% !important;
  height: 100% !important;
  width: 100% !important;
  overflow: hidden !important;
}

/* 2) Figure/Image-Block darf keinen Außenabstand haben */
.wk-card .wp-block-image,
.wk-card figure{
  margin: 0 !important;
}

/* 3) Bild soll die Fläche wirklich füllen */
.wk-card .wp-block-image img,
.wk-card figure img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wk-ratingStickerCat{
  width: 250px;
  height: 250px;
  top: +30px;
  right: -65px;
  transform: rotate(8deg);
}

@media (max-width: 768px){
  .wk-ratingStickerCat{
    width: 150px;
    height: 150px;
    top: +18px;
    right: -32px;
    transform: rotate(6deg);
  }
}

.wk-divider-wrap{
  position: relative;
  margin: 80px 0;
}

.wk-divider{
  border: none;
  border-top: 2px solid #1f1f1f;
  margin: 0;
}

.wk-divider-cat{
  position: absolute;
  bottom: calc(100% - 29px);          /* sitzt direkt auf der Linie */
  left: 20%;
  transform: translateX(-70%);
  width: 220px;          /* anpassen */
  height: auto;
  pointer-events: none;  /* blockiert nichts */
}

@media (max-width: 768px){
  .wk-divider-cat{
    width: 150px;
  }
}

/* =========================================================
   Mobile – konsolidiert (WK) | ein Block, keine Doppelungen
   ========================================================= */
@media (max-width: 768px){

  /* -----------------------------------------
     0) Basis-Typo (global im Beitrag)
     ----------------------------------------- */
  .entry-content{
    font-size: 16px;
    line-height: 1.6;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Headings / Text global etwas ruhiger */
  .entry-content h1{
    font-size: clamp(24px, 6vw, 30px);
    line-height: 1.15;
  }
  .entry-content h2{
    font-size: clamp(20px, 5vw, 24px);
    line-height: 1.2;
  }
  .entry-content h3{
    font-size: clamp(18px, 4.5vw, 20px);
    line-height: 1.25;
  }
  .entry-content p{
    font-size: 16px;
    line-height: 1.6;
  }

  /* Keine wilde Wort-Zerlegung in wichtigen Elementen */
  .entry-content h1,
  .entry-content h2,
  .entry-content h3,
  .entry-content .wk-actionBtn,
  .entry-content .wk-steps strong,
  .entry-content .wk-ingredients__item{
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: auto;
  }

  /* Gruppen im Content nicht zusätzlich einrücken */
  .entry-content .wp-block-group{
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Constrained-Layout im Beitrag auf Mobile entschärfen (einmal sauber) */
  .entry-content.is-layout-constrained > :where(*){ 
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* -----------------------------------------
     1) Cards / Icons
     ----------------------------------------- */
  .wk-overviewCard,
  .wk-infoGrid,
  .wk-recipecard{
    padding: 14px !important;
    border-radius: 16px !important;
  }

  .wk-overviewCard svg,
  .wk-recipecard svg,
  .wk-infoGrid svg{
    width: 18px !important;
    height: 18px !important;
  }

  /* Kreis kleiner */
  .wk-prepNr{
    width: 20px;
    height: 20px;
    font-size: 15px;
    line-height: 1.2;
  }

  /* -----------------------------------------
     2) HERO / COVER (Full Bleed + lesbar)
     Scope: nur oberstes alignfull Cover im Beitrag
     ----------------------------------------- */

  /* Full-bleed Cover auf Mobile (robuster gegen Container-Padding) */
  .entry-content > .wp-block-cover.alignfull,
  .entry-content > .wp-block-cover-image.alignfull{
    width: 100vw !important;
    max-width: 100vw !important;

    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;

    border-radius: 0 !important; /* optional – mobile cleaner */
  }

  /* Inner Container im Cover */
  .entry-content > .wp-block-cover.alignfull .wp-block-cover__inner-container,
  .entry-content > .wp-block-cover-image.alignfull .wp-block-cover__inner-container{
    padding: 20px 16px 28px !important;
    width: 100%;
    box-sizing: border-box;
  }

  /* Cover-Bild sauber skalieren */
  .entry-content > .wp-block-cover.alignfull img.wp-block-cover__image-background,
  .entry-content > .wp-block-cover-image.alignfull img.wp-block-cover__image-background{
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: 40% 50% !important; /* optional: Fokus leicht links */
  }

  /* Green Glass im Hero: Breite/Spacing */
  .wp-block-group.wk-green-glass-full{
    width: min(92vw, 420px) !important;
    max-width: 420px !important;
    margin: 0 auto !important;

    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Subheadings kompakter im Hero (nur dort) */
  .wk-green-glass-full h1{ font-size: 25px !important; line-height: 1.15 !important; }
  .wk-green-glass-full h2{ font-size: 22px !important; line-height: 1.2 !important; }
  .wk-green-glass-full h3{ font-size: 19px !important; line-height: 1.25 !important; }

  /* Absatzspacing im Hero */
  .wp-block-cover .wp-block-group.wk-green-glass-full > p,
  .wp-block-cover-image .wp-block-group.wk-green-glass-full > p{
    margin-top: 12px !important;
    margin-bottom: 12px !important;
    line-height: 1.6;
    font-size: 16px;
  }

  /* Titelspacing im Hero */
  .wp-block-cover .wp-block-group.wk-green-glass-full > .wp-block-post-title,
  .wp-block-cover .wp-block-group.wk-green-glass-full > h1,
  .wp-block-cover .wp-block-group.wk-green-glass-full > h2,
  .wp-block-cover-image .wp-block-group.wk-green-glass-full > .wp-block-post-title,
  .wp-block-cover-image .wp-block-group.wk-green-glass-full > h1,
  .wp-block-cover-image .wp-block-group.wk-green-glass-full > h2{
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    line-height: 1.08;
  }

/* Der Inner-Container, in dem die wk-green-glass-full sitzt */
  .entry-content .wp-block-cover__inner-container{
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  /* ABER: nur wenn wirklich eine wk-green-glass-full drin ist, sonst beeinflussen wir zu viel.
     Deshalb begrenzen wir es zusätzlich auf deine Seitenstruktur: */
  .entry-content .wp-block-cover__inner-container > .wk-green-glass-full,
  .entry-content .wp-block-cover__inner-container > .wp-block-group.wk-green-glass-full{
    margin-left: auto !important;
    margin-right: auto !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
    position: relative !important;
  }



  /* -----------------------------------------
     3) Footer – Mobile Zentrierung (inkl. "Übeltäter" neutralisieren)
     ----------------------------------------- */
  footer{ text-align: center; }

  footer .wp-block-columns{
    flex-direction: column !important;
    align-items: center !important;
  }

  footer .wp-block-column{
    width: 100% !important;
    text-align: center;
  }

  /* Text links (Desktop) nur mobil neutralisieren */
  footer .has-text-align-left{
    text-align: center !important;
  }

  /* Navigation / Listen zentrieren */
  footer .wp-block-navigation,
  footer .wp-block-navigation__container,
  footer .wp-block-navigation__responsive-container-content,
  footer .wp-block-page-list,
  footer ul{
    justify-content: center !important;
    text-align: center !important;
  }

  footer .wp-block-navigation.is-vertical{
    --navigation-layout-align: center !important;
    --navigation-layout-justify: center !important;
  }

  footer ul,
  footer ol{
    padding-left: 0 !important;
    margin-left: 0 !important;
    list-style-position: inside;
  }

  footer a{ display: inline-block; }

  footer .wp-block-buttons,
  footer .wp-block-social-links,
  footer .wp-block-site-logo{
    justify-content: center !important;
  }

  footer nav,
  footer .wp-block-group,
  footer .wp-block-column > *{
    align-items: center;
  }

  footer li{
    margin-left: 0 !important;
    padding-left: 0 !important;
    text-indent: 0 !important;
  }

  footer li::marker{ content: "" !important; }

  footer .wp-block-page-list ul{
    padding-left: 0 !important;
    margin-left: 0 !important;
  }


  /* 1) Header-Bereich als eine Zeile ausrichten */
  header .wp-block-group,
  header .wp-block-columns{
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 7px !important;
  }

  /* 2) Logo/Title-Block darf schrumpfen, aber nicht umbrechen */
  header .wp-block-site-title,
  header .wp-block-site-title a{
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important; /* falls es zu lang wird */
    max-width: 80vw;                    /* verhindert, dass es alles sprengt */
  }

  /* 3) Site-Title kleiner, damit er reinpasst */
  header .wp-block-site-title{
    font-size: 20px !important;   /* ggf. 18–22 testen */
    line-height: 1.1 !important;
    margin: 0 !important;
  }

  /* 4) Logo etwas kleiner + nach links (wenn nötig) */
  header .wp-block-site-logo img{
    width: 60px !important;       /* ggf. 40–52 */
    height: auto !important;
  }

  /* 5) Falls irgendwo "word-break:anywhere" im Header greift: killen */
  header,
  header *{
    word-break: normal !important;
    overflow-wrap: normal !important;
  }
}

  /* =========================================================
     WK Recipebar (Mobile) – full bleed + sticky + leichter
     ========================================================= */

@media (max-width: 768px){

  .wk-recipebarWrap{
    position: sticky !important;
    top: 0 !important;
    z-index: 999 !important;

    /* Leiste bleibt im Layout normal */
    padding: 6px 10px !important;
    background: transparent !important; /* Hintergrund kommt vom ::before */
  }

  .wk-recipebarWrap::before{
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    top: 0;
    bottom: 0;

    background: rgba(255,255,255,.62);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0,0,0,.08);

    z-index: -1; /* liegt hinter Buttons */
  }


  .wk-recipebarWrap{
    width: 100vw !important;
    max-width: 100vw !important;

    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;

    left: auto !important;
    right: auto !important;
  }

  .wk-recipebarWrap{ padding: 6px 10px !important; }
  .wk-recipebar__link,
  .wk-recipebar__btn{ padding: 8px 12px !important; font-size: 14px !important; }

.wk-recipebar{
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100%;
  }

  .wk-recipebar__link,
  .wk-recipebar__btn{
    background: transparent !important;
    border: 1px solid rgba(0,0,0,.15) !important;
    transition: all .2s ease;
  }

 .wk-recipebar__link:hover,
  .wk-recipebar__btn:hover{
    background: rgba(0,0,0,.06) !important;
    border-color: rgba(0,0,0,.25) !important;
  }

  /* Falls WP irgendein Default-Button-Styling reinmischt */
  .wk-recipebar__btn--ghost{
    background: transparent !important;
  }
}
