/* Lieblinge — Header, Sheet, Start-Rail, Seite */

.lk-nav__fav {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--lk-ink, #2f1f12);
  font-size: 18px;
  cursor: pointer;
  border-radius: 10px;
  text-decoration: none;
}
.lk-nav__fav:hover,
.lk-nav__fav:focus-visible {
  color: #ea8a37;
  background: #fdf3e7;
  outline: 0;
  text-decoration: none;
}
.lk-nav__fav-badge {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ea8a37;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
}
.lk-nav__fav--desktop { display: inline-flex; }
.lk-nav__fav--mobile { display: none; }
@media (max-width: 767.98px) {
  .lk-nav__fav--desktop { display: none !important; }
  .lk-nav__fav--mobile { display: inline-flex; }
}

/* ---------- Sheet ---------- */
body.lk-fav-sheet-open { overflow: hidden; }

.lk-fav-sheet {
  position: fixed;
  inset: 0;
  z-index: 1200;
}
.lk-fav-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(47, 31, 18, 0.42);
  border: 0;
  cursor: pointer;
}
.lk-fav-sheet__panel {
  position: absolute;
  display: flex;
  flex-direction: column;
  background: #fff7ef;
  color: #2f1f12;
  box-shadow: -16px 0 48px rgba(47, 31, 18, 0.16);
  outline: 0;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.lk-fav-sheet__grab { display: none; }

/* Kein <header>: style.css färbt alle header charcoal. Defensiv trotzdem überschreiben. */
.lk-fav-sheet .lk-fav-sheet__head,
.lk-fav-sheet header.lk-fav-sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 16px !important;
  background: #fff7ef !important;
  color: #2f1f12 !important;
  border-bottom: 1px solid #efe2d2;
}
.lk-fav-sheet .lk-fav-sheet__head a,
.lk-fav-sheet header.lk-fav-sheet__head a {
  color: inherit;
  text-decoration: none;
}
.lk-fav-sheet__brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.lk-fav-sheet__mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #f0e6da;
  color: #ea8a37;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(47, 31, 18, 0.05);
}
.lk-fav-sheet__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #2f1f12;
}
.lk-fav-sheet__sub {
  margin: 4px 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #6f6258;
}
.lk-fav-sheet__close {
  width: 40px;
  height: 40px;
  border: 1px solid #f0e6da;
  border-radius: 999px;
  background: #fff;
  color: #2f1f12;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(47, 31, 18, 0.05);
}
.lk-fav-sheet__close:hover,
.lk-fav-sheet__close:focus-visible {
  background: #fdf3e7;
  outline: 0;
}
.lk-fav-sheet__body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px 18px;
  background: #fff7ef;
  -webkit-overflow-scrolling: touch;
}
.lk-fav-sheet__empty {
  margin: 28px 12px;
  text-align: center;
  color: #6f6258;
  font-weight: 600;
  font-size: 0.92rem;
}
.lk-fav-sheet__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lk-fav-sheet__foot {
  padding: 16px 18px calc(18px + env(safe-area-inset-bottom, 0));
  background: #fdf3e7;
  border-top: 1px solid #efe2d2;
  box-shadow: 0 -8px 24px rgba(47, 31, 18, 0.04);
}
.lk-fav-sheet__all {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 18px;
  border-radius: 999px;
  background: #7ba245;
  color: #fff !important;
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none !important;
  box-shadow: 0 6px 16px rgba(92, 143, 58, 0.22);
}
.lk-fav-sheet__all:hover,
.lk-fav-sheet__all:focus-visible {
  background: #5c8f3a;
  color: #fff !important;
  text-decoration: none !important;
}
.lk-fav-sheet__note {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: #9a8d82;
}

@media (min-width: 768px) {
  .lk-fav-sheet__panel {
    top: 0;
    right: 0;
    bottom: 0;
    width: min(400px, 100%);
    animation: lk-fav-in 0.28s ease;
  }
}
@media (max-width: 767.98px) {
  .lk-fav-sheet__panel {
    left: 0;
    right: 0;
    bottom: 0;
    max-height: min(88vh, 720px);
    border-radius: 24px 24px 0 0;
    animation: lk-fav-up 0.28s ease;
  }
  .lk-fav-sheet__grab {
    display: block;
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: #eadccb;
    margin: 10px auto 0;
  }
}
@keyframes lk-fav-in {
  from { transform: translateX(18px); opacity: 0.6; }
  to { transform: none; opacity: 1; }
}
@keyframes lk-fav-up {
  from { transform: translateY(24px); opacity: 0.6; }
  to { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .lk-fav-sheet__panel { animation: none; }
}

.lk-fav-row {
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #f0e6da;
  box-shadow: 0 6px 18px rgba(47, 31, 18, 0.05);
}
.lk-fav-row__hit {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 8px 10px 12px;
  text-decoration: none;
  color: inherit;
}
.lk-fav-row__hit:hover {
  text-decoration: none !important;
  color: inherit !important;
  background: transparent !important;
}
.lk-fav-row__visual {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: #fdf3e7;
  flex-shrink: 0;
  border: 1px solid #f0e6da;
}
.lk-fav-row__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lk-fav-row__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lk-fav-row__name {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lk-fav-row__meta {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6f6258;
}
.lk-fav-row__go {
  width: 28px;
  height: 28px;
  margin-left: auto;
  border-radius: 50%;
  background: #f1e5d6;
  color: #6f6258;
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lk-fav-heart--row {
  position: static !important;
  width: 40px !important;
  height: 40px !important;
  margin: 0 10px 0 0;
  flex-shrink: 0;
}
.lk-fav-heart {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  z-index: 4;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid #f0e6da;
  background: rgba(255, 255, 255, 0.95);
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lk-fav-heart:hover,
.lk-fav-heart--on,
.lk-fav-heart.mm-metzg-fav-btn--on {
  color: #ea8a37;
}
.lk-fav-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff3cd;
  color: #8a6d15;
  font-size: 0.65rem;
  font-weight: 800;
}

/* Karten sind klickbar — kein Link-Hover (Unterstreichung, Blau, Hintergrund). */
a.lk-fav-rail-card__hit,
a.lk-fav-row__hit,
a.lk-fav-page-card__hit,
a.lk-fav-rail-card__hit:hover,
a.lk-fav-rail-card__hit:focus,
a.lk-fav-rail-card__hit:active,
a.lk-fav-rail-card__hit:visited,
a.lk-fav-row__hit:hover,
a.lk-fav-row__hit:focus,
a.lk-fav-row__hit:active,
a.lk-fav-row__hit:visited,
a.lk-fav-page-card__hit:hover,
a.lk-fav-page-card__hit:focus,
a.lk-fav-page-card__hit:active,
a.lk-fav-page-card__hit:visited {
  color: inherit !important;
  text-decoration: none !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}
a.lk-fav-rail-card__hit:hover *,
a.lk-fav-row__hit:hover *,
a.lk-fav-page-card__hit:hover * {
  text-decoration: none !important;
}
a.lk-fav-rail-card__hit:focus-visible,
a.lk-fav-row__hit:focus-visible,
a.lk-fav-page-card__hit:focus-visible {
  outline: 2px solid #7ba245;
  outline-offset: 2px;
}

/* ---------- Startseite: weißes Band, Karten mit Logo-Luft ---------- */
.lk-home-fav[hidden] { display: none !important; }
.lk-home-fav {
  background: #fff;
  color: #2f1f12;
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}
.lk-home-fav::before,
.lk-home-fav::after {
  display: none;
}
.lk-home-fav .lk-container { position: relative; z-index: 1; }
.lk-home-fav__panel {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}
.lk-home-fav__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.lk-home-fav__copy { min-width: 0; }
.lk-home-fav__eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #ea8a37;
  text-transform: uppercase;
}
.lk-home-fav__title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #1b4332;
}
.lk-home-fav__title i { color: #ea8a37; }
.lk-home-fav__all {
  font-size: 0.88rem;
  font-weight: 800;
  color: #1b4332;
  text-decoration: none;
  white-space: nowrap;
}
.lk-home-fav__all:hover {
  color: #ea8a37;
  text-decoration: none;
}
.lk-home-fav__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0;
  padding: 8px 4px 12px;
}
.lk-home-fav__scroll::-webkit-scrollbar { display: none; }
.lk-home-fav__track {
  display: flex;
  gap: 18px;
  padding: 0;
  width: max-content;
}
.lk-home-fav .lk-fav-rail-card {
  position: relative;
  flex: 0 0 auto;
  width: 15.5rem;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #efe2d2;
  box-shadow: 0 8px 24px rgba(47, 31, 18, 0.08);
  overflow: hidden;
}
.lk-home-fav .lk-fav-rail-card__hit {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  min-height: 0;
}
.lk-home-fav .lk-fav-rail-card__hit:hover {
  text-decoration: none !important;
  color: inherit !important;
  background: transparent !important;
}
.lk-home-fav .lk-fav-rail-card__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 11.75rem;
  padding: 1.35rem 1.2rem 0.4rem;
  box-sizing: border-box;
  background: #fff;
}
.lk-home-fav .lk-fav-rail-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.lk-home-fav .lk-fav-rail-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 16px 16px;
}
.lk-home-fav .lk-fav-rail-card__title {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #2f1f12;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lk-home-fav .lk-fav-rail-card__meta {
  font-size: 0.78rem;
  font-weight: 600;
  color: #6f6258;
}
.lk-home-fav .lk-fav-heart {
  border-color: #f3c9a0;
  color: #ea8a37;
  background: #fff;
}
.lk-locate--resume {
  margin-top: 4px;
  display: flex;
}
.lk-locate--resume[hidden] { display: none !important; }

/* ---------- /favoriten ---------- */
body.mm-page-favorites .lk-fav-page {
  background: transparent;
}
.lk-fav-page__hero {
  background: #fff7ef;
  padding: 28px 0 36px;
  border-bottom: 1px solid #efe2d2;
}
.lk-fav-page__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #6f6258;
  text-decoration: none;
  margin-bottom: 18px;
}
.lk-fav-page__back:hover {
  color: #2f1f12;
  text-decoration: none;
}
.lk-fav-page__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #ea8a37;
}
.lk-fav-page__title {
  margin: 0 0 10px;
  font-size: clamp(1.85rem, 4vw, 2.45rem) !important;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: #2f1f12;
}
.lk-fav-page__lead {
  margin: 0 0 16px;
  max-width: 36rem;
  color: #6f6258;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.5;
}
.lk-fav-page__status {
  display: none;
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: #f1e5d6;
  color: #2f1f12;
  font-size: 0.8rem;
  font-weight: 800;
  width: fit-content;
}
.lk-fav-page__status:not(:empty) { display: inline-flex; }
.lk-fav-page__main {
  background: #ffffff;
  padding: 36px 0 72px;
  min-height: 40vh;
}
.lk-fav-page__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
}
.lk-fav-page-card {
  position: relative;
  border-radius: 22px;
  background: #fff;
  border: 0;
  box-shadow: 0 10px 28px rgba(47, 31, 18, 0.08);
  overflow: hidden;
}
.lk-fav-page-card__hit {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.lk-fav-page-card__hit:hover {
  text-decoration: none !important;
  color: inherit !important;
  background: transparent !important;
}
.lk-fav-page-card__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  padding: 1.5rem 1.35rem 0.6rem;
  box-sizing: border-box;
  background: #fff;
}
.lk-fav-page-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.lk-fav-page-card__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.lk-fav-page-card__title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #2f1f12;
}
.lk-fav-page-card__meta {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: #6f6258;
}
.lk-fav-page-card__cta {
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #5c8f3a;
}
.lk-fav-page__empty {
  margin: 8px 0;
  padding: 40px 24px;
  text-align: center;
  background: #fff7ef;
  border: 1px dashed #eadccb;
  border-radius: 22px;
  color: #6f6258;
  font-weight: 600;
}

body.mm-page-favorites .lk-footer {
  border-top: 0;
  background: #1b4332;
}

@media (max-width: 639.98px) {
  .lk-home-fav {
    padding: 40px 0 32px;
  }
  .lk-home-fav__panel {
    padding: 0;
  }
  .lk-home-fav__title { font-size: 1.25rem; }
  .lk-home-fav .lk-fav-rail-card { width: 14rem; }
  .lk-home-fav .lk-fav-rail-card__visual { height: 10.5rem; }
  .lk-fav-page__hero { padding: 20px 0 28px; }
  .lk-fav-page__main { padding: 24px 0 56px; }
  .lk-fav-page-card__visual { height: 168px; }
}

body.mm-page-metzg #mm-metzg-rail-favorites-wrap .mm-metzg-rail-card:hover {
  transform: none !important;
}
