/* FK Merkliste v2 – Blog */

/* Herz unter dem Titel (#merken) */
.fk-ml-haupt { cursor: pointer; display: inline-block; }
.fk-ml-haupt svg { transition: fill .15s, stroke .15s; }
.fk-ml-an svg { fill: #e0245e !important; stroke: #e0245e !important; }
.fk-ml-hupf svg { animation: fk-ml-hupf .45s ease-out; }
@keyframes fk-ml-hupf { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 70% { transform: scale(.9); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .fk-ml-hupf svg { animation: none; } }

/* Herz auf Kacheln */
.fk-ml-kachel { position: relative; }
.fk-ml-klein {
  position: absolute; top: 8px; right: 8px; z-index: 5;
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .92); box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.fk-ml-klein svg { width: 20px; height: 20px; fill: transparent; stroke: #333; stroke-width: 2.5px; overflow: visible; }
.fk-ml-klein:hover svg { stroke: #e0245e; }
.fk-ml-herz:focus-visible { outline: 3px solid #ffa50c; outline-offset: 2px; }

/* Zahl am Menüpunkt „Merkzettel" */
.fk-ml-zahl {
  display: inline-block; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px;
  border-radius: 9px; background: #e0245e; color: #fff !important;
  font-size: 11px; font-weight: bold; line-height: 18px; text-align: center; vertical-align: middle;
}
.fk-ml-zahl[hidden] { display: none; }
.fk-ml-zahl-oben {
  position: absolute; top: -4px; left: 13px; margin: 0;
  min-width: 17px; height: 17px; line-height: 17px; padding: 0 4px; border-radius: 9px;
  font-size: 10px; font-family: Arial, sans-serif; box-shadow: 0 0 0 2px #014c91; pointer-events: none;
}

/* Text neben dem Herz unter dem Titel (Theme setzt „Speichern" per ::after) */
.fk-ml-haupt.fk-ml-an::after { content: "Gespeichert" !important; }

/* Hinweisleiste unten */
.fk-ml-toast {
  /* links/rechts 16px statt left:50% – sonst steht auf dem Handy nur die halbe Breite zur Verfügung */
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100001; margin: 0 auto;
  width: fit-content; max-width: 560px; box-sizing: border-box;
  transform: translateY(150%); opacity: 0;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border-radius: 10px;
  background: #222; color: #fff; font-size: 15px; line-height: 1.3; box-shadow: 0 4px 18px rgba(0, 0, 0, .3);
  transition: transform .25s, opacity .25s; pointer-events: none;
}
.fk-ml-toast.auf { transform: translateY(0); opacity: 1; pointer-events: auto; }
.fk-ml-toast span { flex: 1 1 auto; min-width: 0; }
.fk-ml-toast button {
  flex: none; border: 0; background: none; color: #ffc768; font-weight: bold; font-size: 15px;
  padding: 4px 0; cursor: pointer; text-decoration: underline; white-space: nowrap;
}

/* Auswahl „Merken in …" */
.fk-ml-hg { position: fixed; inset: 0; z-index: 100002; background: rgba(0, 0, 0, .45); display: none; }
.fk-ml-wahl {
  position: fixed; z-index: 100003; left: 50%; bottom: 0; transform: translate(-50%, 100%);
  width: 100%; max-width: 480px; max-height: 85vh; overflow-y: auto;
  background: #fff; color: #222; border-radius: 16px 16px 0 0; padding: 16px 20px 20px;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, .2); transition: transform .25s; visibility: hidden;
}
html.fk-ml-offen .fk-ml-hg { display: block; }
html.fk-ml-offen .fk-ml-wahl { transform: translate(-50%, 0); visibility: visible; }
@media (min-width: 700px) {
  .fk-ml-wahl { bottom: auto; top: 50%; border-radius: 16px; transform: translate(-50%, -40%); opacity: 0; transition: opacity .2s, transform .2s; }
  html.fk-ml-offen .fk-ml-wahl { transform: translate(-50%, -50%); opacity: 1; }
}
.fk-ml-wahl-kopf { display: flex; justify-content: space-between; align-items: center; font-size: 18px; }
.fk-ml-x { border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: #666; padding: 0 4px; }
.fk-ml-wahl-rezept { color: #666; font-size: 14px; margin: 2px 0 10px; }
.fk-ml-wahl ul { list-style: none; margin: 0 0 12px; padding: 0; }
.fk-ml-wahl li { border-bottom: 1px solid #eee; margin: 0; }
.fk-ml-wahl label { display: flex; align-items: center; gap: 12px; padding: 12px 2px; cursor: pointer; margin: 0; font-weight: normal; }
.fk-ml-wahl input[type=checkbox] { width: 22px; height: 22px; accent-color: #e0245e; flex: none; margin: 0; }
.fk-ml-wahl label span { flex: 1; }
.fk-ml-wahl small { color: #888; }
.fk-ml-neu { display: flex; gap: 8px; margin-bottom: 12px; }
.fk-ml-neu input { flex: 1; min-width: 0; padding: 10px; border: 1px solid #ccc; border-radius: 8px; font-size: 16px; }
.fk-ml-neu button, .fk-ml-fertig {
  border: 0; border-radius: 8px; padding: 10px 16px; font-size: 16px; cursor: pointer;
}
.fk-ml-neu button { background: #f0f0f0; color: #222; }
.fk-ml-fertig { width: 100%; background: #ffa50c linear-gradient(to bottom, #ffc768, #ffa50c); color: #000; font-weight: bold; }

/* Seite „Mein Kochbuch" */
.fk-kb { margin: 1rem 0 2rem; }
.fk-kb-laden, .fk-kb-leer { color: #666; padding: 1rem 0; }
.fk-kb-gast { background: #fffbec; border: 1px solid #f3e2a9; border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 1.5rem; }
.fk-kb-gast p { margin: 0 0 .7rem; }
.fk-kb-knopf {
  display: inline-block; padding: .7rem 1.4rem; border-radius: 10px; margin: .2rem 0 .6rem;
  background: #ffa50c linear-gradient(to bottom, #ffc768, #ffa50c); color: #000 !important; font-weight: bold; text-decoration: none !important;
}
.fk-kb-klein { font-size: 14px; color: #666; }
.fk-kb-listen { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: .5rem; -webkit-overflow-scrolling: touch; }
.fk-kb-chip {
  flex: none; border: 1px solid #ddd; background: #fff; color: #333; border-radius: 20px;
  padding: 8px 14px; font-size: 15px; cursor: pointer; white-space: nowrap;
}
.fk-kb-chip small { color: #888; margin-left: 2px; }
.fk-kb-chip[aria-selected=true] { background: #013d87; border-color: #013d87; color: #fff; }
.fk-kb-chip[aria-selected=true] small { color: #cfdcf0; }
.fk-kb-plus { border-style: dashed; color: #013d87; }
.fk-kb-kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin: .5rem 0 .8rem; }
.fk-kb-kopf h2 { margin: 0; font-size: 1.5rem; }
.fk-kb-aktionen button, .fk-kb-knoepfe button {
  border: 0; background: none; color: #013d87; font-size: 14px; padding: 4px 6px; cursor: pointer; text-decoration: underline;
}
.fk-kb-werkzeug { display: flex; gap: 8px; margin-bottom: 1rem; }
.fk-kb-werkzeug input, .fk-kb-werkzeug select { padding: 8px 10px; border: 1px solid #ccc; border-radius: 8px; font-size: 16px; }
.fk-kb-werkzeug input { flex: 1; min-width: 0; }
.fk-kb-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
@media (max-width: 520px) { .fk-kb-raster { grid-template-columns: 1fr 1fr; gap: 10px; } }
.fk-kb-karte { display: flex; flex-direction: column; border: 1px solid #eee; border-radius: 10px; overflow: hidden; background: #fff; }
.fk-kb-bild { position: relative; display: block; aspect-ratio: 1 / 1; background: #f4f4f4; }
.post-content .fk-kb .fk-kb-bild img { width: 100% !important; max-width: none !important; height: 100% !important; object-fit: cover; display: block; margin: 0 !important; }
.fk-kb-haken { position: absolute; left: 8px; top: 8px; background: #2e7d32; color: #fff; font-size: 12px; font-weight: bold; padding: 3px 8px; border-radius: 12px; }
.ist-gekocht .fk-kb-bild img { opacity: .8; }
.fk-kb-text { padding: 10px 10px 6px; display: flex; flex-direction: column; flex: 1; }
.post-content .fk-kb a.fk-kb-titel { font-weight: bold; color: #222 !important; font-size: 15px; line-height: 1.3; text-decoration: none !important; }
.fk-kb-notiz { font-size: 14px; color: #555; background: #fffbec; border-radius: 6px; padding: 6px 8px; margin: 8px 0 0; white-space: pre-line; }
.fk-kb-notizform { margin-top: 8px; }
.fk-kb-notizform textarea { width: 100%; font-size: 16px; padding: 6px; border: 1px solid #ccc; border-radius: 6px; }
.fk-kb-notizform button { margin: 4px 6px 0 0; border: 0; border-radius: 6px; padding: 6px 10px; cursor: pointer; background: #f0f0f0; }
.fk-kb-notizform button[type=submit] { background: #013d87; color: #fff; }
.fk-kb-knoepfe { display: flex; flex-wrap: wrap; gap: 0 4px; margin-top: auto; padding-top: 8px; margin-left: -6px; }
.fk-kb-knoepfe [data-tun=gekocht][aria-pressed=true] { color: #2e7d32; font-weight: bold; text-decoration: none; }
.fk-kb-knoepfe [data-tun=weg], .fk-kb-knoepfe [data-tun=gast-weg] { color: #999; }
.fk-kb-fuss { margin-top: 1.5rem; }

/* Teilen */
.fk-kb-freigabe { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; background: #eef4fb; border-radius: 8px; padding: 10px 12px; margin-bottom: 1rem; font-size: 14px; }
.fk-kb-freigabe span { flex-basis: 100%; }
.fk-kb-freigabe input { flex: 1; min-width: 0; padding: 6px 8px; border: 1px solid #ccd; border-radius: 6px; font-size: 14px; background: #fff; }
.fk-kb-freigabe button { border: 0; background: none; color: #013d87; text-decoration: underline; cursor: pointer; font-size: 14px; padding: 4px; }

/* „Dafür brauchst du" + „Das könnte dir auch gefallen" */
.fk-kb-extra { margin-top: 2.5rem; }
.fk-kb-extra h3 { font-size: 1.3rem; margin: 0 0 .2rem; }
.fk-kb-extra .fk-kb-klein { margin: 0 0 .6rem; }
.fk-kb-band { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.post-content .fk-kb a.fk-kb-produkt, .post-content .fk-kb a.fk-kb-vs {
  flex: none; width: 160px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px;
  color: #222 !important; text-decoration: none !important; font-size: 14px; line-height: 1.25;
}
.post-content .fk-kb .fk-kb-produkt img, .post-content .fk-kb .fk-kb-vs img { max-width: none !important; width: 160px !important; height: 160px !important; object-fit: cover; border-radius: 8px; margin: 0 !important; display: block; background: #f4f4f4; }
.post-content .fk-kb .fk-kb-produkt img { object-fit: contain; background: #fff; border: 1px solid #eee; }
.fk-kb-vs-bild { display: block; }
.fk-kb-pname { font-weight: bold; }
.fk-kb-preis { color: #555; }

/* Reiter „Merkliste im Shop" in „Mein Kochbuch" */
.fk-kb-shop { border-color: #ffc768; }
.fk-kb-shop[aria-selected=true] { background: #ffa50c; border-color: #ffa50c; color: #000; }
.fk-kb-shop[aria-selected=true] small { color: #4a3000; }
.post-content .fk-kb .fk-kb-pbild img { object-fit: contain !important; background: #fff; padding: 6px; }
.fk-kb-variante { font-size: 13px; color: #666; margin-top: 2px; }
.fk-kb-preis { font-size: 14px; font-weight: bold; color: #222; margin-top: 4px; }
.fk-kb-aus { color: #b42318; font-weight: normal; }
.ist-aus .fk-kb-pbild img { opacity: .55; }
.post-content .fk-kb .fk-kb-knoepfe .fk-kb-wk {
  width: 100%; margin: 4px 0 4px 6px; padding: 8px 10px; border: 0; border-radius: 8px; cursor: pointer; text-align: center;
  background: #ffa50c linear-gradient(to bottom, #ffc768, #ffa50c); color: #000 !important; font-weight: bold; font-size: 14px; text-decoration: none !important;
}
.post-content .fk-kb .fk-kb-knoepfe .fk-kb-wk-link { background: #f0f0f0; font-weight: normal; }
.post-content .fk-kb .fk-kb-knoepfe .fk-kb-wk.ist-drin { background: #e6f4ea; color: #1e6b34 !important; }
.fk-kb-aktionen a { color: #013d87; font-size: 14px; text-decoration: underline; padding: 4px 6px; }

/* „Mein Kochbuch": rotes Herz oben rechts statt „Entfernen" */
.fk-kb-bildrahmen { display: block; position: relative; }
.fk-kb-bildrahmen .fk-ml-klein:hover svg { fill: #fff !important; stroke: #e0245e !important; }

/* Gäste-Hinweis in „Mein Kochbuch": kompakter, ohne Silbentrennung, Knopf mit schwarzer Schrift */
.post-content .fk-kb .fk-kb-gast { padding: .9rem 1rem; }
.post-content .fk-kb .fk-kb-gast p { font-size: 15px !important; line-height: 1.45 !important; margin: 0 0 .6rem !important; hyphens: manual; -webkit-hyphens: manual; }
.post-content .fk-kb .fk-kb-gast p strong { font-size: 15px; }
.post-content .fk-kb .fk-kb-gast .fk-kb-klein { font-size: 13px !important; color: #6b5a2e; margin: .4rem 0 0 !important; }
.post-content .fk-kb .fk-kb-gast a.fk-kb-knopf,
.post-content .fk-kb .fk-kb-gast a.fk-kb-knopf:hover,
.post-content .fk-kb .fk-kb-gast a.fk-kb-knopf:visited {
  color: #000 !important; font-size: 15px !important; line-height: 1.25 !important; padding: .65rem 1.2rem; margin: .2rem 0 .2rem;
  border-bottom: 0 !important; box-shadow: none;
}
