/* Teilen-Funktion im Maschinen-Reader (Social-Buttons + E-Mail-Dialog). */

.mm_teilen { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 24px 0 18px; }
.mm_teilen_label { font-size: 14px; color: #5a6478; font-weight: 600; }
.mm_teilen_btns { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

.mm_teilen_btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  border: none; border-radius: 50%; cursor: pointer;
  color: #fff; background: #8a90a2;
  transition: transform .12s ease, filter .12s ease, background .12s ease;
  text-decoration: none;
}
/* Icon-Farbe beim Hover bewusst mit .mm_teilen-Praefix (hoehere Spezifitaet):
   die globale Regel `html.mm-dark a:hover{color:var(--color-accent)}` gewinnt sonst
   gegen `.mm_teilen_btn:hover` und faerbt die Icons orange. */
.mm_teilen .mm_teilen_btn:hover { transform: translateY(-2px); filter: brightness(1.05); color: #fff; }
.mm_tb_wa { background: #25D366; }
.mm_tb_fb { background: #1877F2; }
.mm_tb_li { background: #0A66C2; }
.mm_tb_x  { background: #000; }
.mm_tb_mail { background: #2d3c62; }
.mm_tb_copy, .mm_tb_copytext { background: #eef0f5; color: #2d3c62; }
.mm_teilen .mm_tb_copy:hover,
.mm_teilen .mm_tb_copytext:hover { background: #e2e6ee; color: #2d3c62; }

/* Variante in der Händler-Karte der Reader-Sidebar: schmaler Platz, daher
   kompaktere Buttons + Trennlinie oben (statt der breiten Leiste im Inhalt). */
.mm_rd_dealer .mm_teilen {
  margin: 18px 0 0; padding-top: 16px;
  border-top: 1px solid var(--rd-border, #e6e9f0);
  gap: 10px;
}
.mm_rd_dealer .mm_teilen_btns { gap: 7px; }
.mm_rd_dealer .mm_teilen_btn { width: 36px; height: 36px; }
.mm_rd_dealer .mm_teilen_btn svg { width: 18px; height: 18px; }
/* Label an die Karten-Typografie angleichen (dunkles Grau war im Dark-Mode zu
   kontrastarm) – nutzt das Reader-Token für gedämpften Text. */
.mm_rd_dealer .mm_teilen_label { color: var(--rd-text-mut, #5a6478); }

.mm_teilen_feedback {
  font-size: 13px; color: #1a7f37; font-weight: 600;
  background: #eaf6ec; border: 1px solid #bfe3c6; border-radius: 14px; padding: 4px 12px;
}
.mm_teilen_feedback[hidden] { display: none; }

/* ------------------------------------------------------------------- Modal */
.mm_teilen_modal { position: fixed; inset: 0; z-index: 9999; }
.mm_teilen_modal[hidden] { display: none; }
.mm_teilen_overlay { position: absolute; inset: 0; background: rgba(20,26,40,.55); }
.mm_teilen_dialog {
  position: relative; z-index: 1;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 48px); overflow: auto;
  margin: 6vh auto 0; background: #fff; border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.mm_teilen_dhead {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid #eef0f5;
}
.mm_teilen_dtitle { font-size: 20px; font-weight: 700; color: #2d3c62; }
.mm_teilen_x { border: none; background: none; font-size: 26px; line-height: 1; color: #99a1b3; cursor: pointer; padding: 0 4px; }
.mm_teilen_x:hover { color: #2d3c62; }

.mm_teilen_form { padding: 18px 22px 24px; }
.mm_teilen_field { display: block; margin: 0 0 14px; }
.mm_teilen_field > span { display: block; font-size: 15px; color: #2d3c62; margin-bottom: 6px; }
.mm_teilen_field input,
.mm_teilen_field textarea {
  width: 100%; box-sizing: border-box;
  padding: 11px 14px; border: 1px solid #d7dbe6; border-radius: 8px;
  font-size: 15px; color: #2d3c62; font-family: inherit; background: #fff;
}
.mm_teilen_field input:focus,
.mm_teilen_field textarea:focus { outline: none; border-color: #e85d26; box-shadow: 0 0 0 3px rgba(232, 93, 38,.15); }
.mm_teilen_field textarea { resize: vertical; min-height: 90px; }

/* Honeypot – für Menschen unsichtbar. */
.mm_teilen_hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.mm_teilen_status { margin: 0 0 14px; padding: 10px 14px; border-radius: 8px; font-size: 14px; }
.mm_teilen_status[hidden] { display: none; }
.mm_teilen_status.is-ok { background: #eaf6ec; border: 1px solid #bfe3c6; color: #1a7f37; }
.mm_teilen_status.is-error { background: #fdecec; border: 1px solid #f3c2c2; color: #c0392b; }

.mm_teilen_submit {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 4px auto 0;
  border: none; cursor: pointer;
  background: #2e9e4f; color: #fff;
  font-size: 16px; font-weight: 700;
  padding: 12px 26px; border-radius: 8px;
  transition: background .15s ease;
}
.mm_teilen_submit:hover { background: #278343; }
.mm_teilen_submit:disabled { opacity: .6; cursor: default; }

/* Scrollsperre, solange der Dialog offen ist. */
.mm_teilen_open, .mm_teilen_open body { overflow: hidden; }

@media (max-width: 480px) {
  .mm_teilen_btn { width: 38px; height: 38px; }
  .mm_teilen_dialog { margin-top: 0; border-radius: 0; min-height: 100vh; width: 100vw; }
}
