/* MTS Merkzettel – Knopf, Hinweis, Merkzettel-Seite. MTS-Blau #3299be, Rot #dc3545 */

/* ---- Knopf ---- */
.mts-mz-knopf { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 10px 16px;
  border: 1px solid #d5dae1; border-radius: 10px; background: #fff; color: #1f2937; font: 600 14px/1.2 'Open Sans', sans-serif; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease-out; }
.mts-mz-knopf:hover { border-color: #dc3545; color: #dc3545; }
.mts-mz-knopf:active { transform: scale(.96); }
.mts-mz-knopf:focus-visible { outline: 2px solid #3299be; outline-offset: 2px; }
.mts-mz-knopf .mts-mz-herz { flex: none; width: 18px; height: 18px; transition: fill .15s ease, color .15s ease, transform .35s cubic-bezier(.2, .9, .3, 1); }
.mts-mz-knopf.is-gemerkt, .mts-mz-knopf[aria-pressed="true"] { border-color: #f5c2c7; background: #fdecee; color: #b02a37; }
.mts-mz-knopf.is-gemerkt .mts-mz-herz, .mts-mz-knopf[aria-pressed="true"] .mts-mz-herz { color: #dc3545; fill: #dc3545; }
.mts-mz-knopf[data-mts-mz-laedt] { pointer-events: none; }
.mts-mz-knopf[data-mts-mz-laedt] .mts-mz-herz { transform: scale(1.25); }
.mts-mz-symbol { width: 42px; height: 42px; padding: 0; border-radius: 50%; }

/* ---- Hinweis unten in der Mitte ---- */
#mts-mz-hinweis { position: fixed; left: 50%; bottom: 24px; z-index: 999999; max-width: min(92vw, 460px); padding: 12px 18px; border-radius: 12px;
  background: #1f2937; color: #fff; font: 600 14px/1.4 'Open Sans', sans-serif; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .2s ease, transform .25s ease; }
#mts-mz-hinweis.is-da { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
#mts-mz-hinweis.is-fehler { background: #b02a37; }
#mts-mz-hinweis a { color: #fff; text-decoration: underline; white-space: nowrap; }

/* ---- Merkzettel-Seite ---- */
.mts-mz-liste { display: grid; gap: 12px; width: 100%; font-family: 'Open Sans', sans-serif; }
.mts-mz-karte { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px;
  border: 1px solid #e5e7eb; border-radius: 14px; background: #fff; }
.mts-mz-bild { display: block; width: 132px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #eef2f6; }
.mts-mz-bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mts-mz-inhalt { min-width: 0; }
.mts-mz-titel { margin: 0 0 4px; font-size: 16px; line-height: 1.3; font-weight: 700; color: #1f2937; }
.mts-mz-titel a { color: inherit; text-decoration: none; }
.mts-mz-titel a:hover { color: #3299be; }
.mts-mz-fakten { margin: 0 0 4px; font-size: 14px; line-height: 1.4; color: #374151; }
.mts-mz-zeit { margin: 0; font-size: 12px; color: #6b7280; }
.mts-mz-aktionen { display: flex; align-items: center; gap: 12px; }
.mts-mz-link { color: #3299be; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.mts-mz-link:hover { text-decoration: underline; }
.mts-mz-karte.is-weg .mts-mz-bild, .mts-mz-karte.is-weg .mts-mz-titel { opacity: .55; }
.mts-mz-leer { margin: 0; padding: 22px; border: 1px dashed #d5dae1; border-radius: 14px; text-align: center; font-size: 15px; color: #4b5563; }
.mts-mz-leer[hidden] { display: none; }

@media (max-width: 600px) {
  .mts-mz-karte { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; }
  .mts-mz-bild { width: 88px; }
  .mts-mz-aktionen { grid-column: 1 / -1; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .mts-mz-knopf, .mts-mz-knopf .mts-mz-herz, #mts-mz-hinweis { transition: none; }
}
