/* Farben & Schrift: an das Design von marcel-maximiert.net angelehnt (siehe design-system.css). */
:root {
  --mm-accent: #1a6b62;
  --mm-accent-hover: #14574f;
  --mm-accent-soft: #edf7f6;
  --mm-accent-text: #ffffff;
  --mm-bg: #ffffff;
  --mm-text: #111827;
  --mm-muted: #6b7280;
  --mm-border: #e5e7eb;
  --mm-bot-bg: #f3f4f6;
  --mm-error: #b42318;
  --mm-success: #0e3d38;
  --mm-radius: 12px;
  --mm-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* ---------- Kontaktformular ---------- */
.mm-form { display: grid; gap: 14px; max-width: none; font-family: var(--mm-font); color: var(--mm-text); }
.mm-field { display: grid; gap: 6px; }
.mm-field label { font-weight: 600; font-size: 0.95rem; }
.mm-field .mm-optional { font-weight: 400; color: var(--mm-muted); }
.mm-form input[type="text"],
.mm-form input[type="email"],
.mm-form input[type="tel"],
.mm-form textarea {
  width: 100%; box-sizing: border-box; padding: 12px 14px; font: inherit; font-size: 16px;
  color: var(--mm-text); background: var(--mm-bg);
  border: 1px solid var(--mm-border); border-radius: 8px;
}
.mm-form textarea { min-height: 120px; resize: vertical; }
.mm-form input:focus, .mm-form textarea:focus { outline: 2px solid var(--mm-accent); outline-offset: 1px; border-color: transparent; }
.mm-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; line-height: 1.4; }
.mm-check input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.mm-form button[type="submit"] {
  padding: 14px 20px; font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer;
  color: var(--mm-accent-text); background: var(--mm-accent); border: 0; border-radius: 8px;
}
.mm-form button[type="submit"]:hover:not(:disabled) { background: var(--mm-accent-hover); }
.mm-form button[type="submit"]:disabled { opacity: 0.6; cursor: wait; }
.mm-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mm-status { margin: 0; min-height: 1.2em; font-size: 0.9rem; }
.mm-status.mm-error { color: var(--mm-error); }
.mm-success { padding: 16px; border-radius: 8px; background: var(--mm-accent-soft); border: 1px solid #cfe8e4; color: var(--mm-success); font-weight: 600; }

/* ---------- Chat ---------- */
.mm-chat-launcher {
  position: fixed; right: 24px; bottom: 92px; z-index: 9000;
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  color: var(--mm-accent-text); background: var(--mm-accent);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.mm-chat-launcher.mm-open { transform: scale(0.9); }
.mm-chat-panel {
  position: fixed; right: 24px; bottom: 156px; z-index: 9000;
  width: 380px; max-width: calc(100vw - 32px); height: 540px; max-height: calc(100vh - 180px);
  display: flex; flex-direction: column; overflow: hidden;
  font-family: var(--mm-font); color: var(--mm-text); background: var(--mm-bg);
  border-radius: var(--mm-radius); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.mm-chat-panel[hidden] { display: none; }
.mm-chat-head {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 14px 16px; color: var(--mm-accent-text); background: var(--mm-accent);
}
.mm-chat-head div { display: grid; gap: 2px; }
.mm-chat-head span { font-size: 0.8rem; opacity: 0.85; }
.mm-chat-close { background: none; border: 0; color: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.mm-chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.mm-msg { max-width: 85%; padding: 10px 13px; border-radius: 14px; line-height: 1.45; font-size: 0.95rem; white-space: pre-wrap; word-wrap: break-word; }
.mm-msg-bot { align-self: flex-start; background: var(--mm-bot-bg); border-bottom-left-radius: 4px; }
.mm-msg-user { align-self: flex-end; color: var(--mm-accent-text); background: var(--mm-accent); border-bottom-right-radius: 4px; }
.mm-typing { color: var(--mm-muted); }
.mm-chat-book, .mm-chat-quick button {
  font: inherit; font-size: 0.85rem; cursor: pointer; border-radius: 999px; padding: 7px 12px;
  color: var(--mm-accent); background: var(--mm-bg); border: 1px solid var(--mm-accent);
}
.mm-chat-book { display: block; margin-top: 8px; font-weight: 600; }
.mm-chat-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.mm-chat-quick[hidden] { display: none; }
.mm-chat-quick .mm-chat-book-quick { color: var(--mm-accent-text); background: var(--mm-accent); }
.mm-chat-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--mm-border); }
.mm-chat-form input {
  flex: 1; min-width: 0; padding: 10px 12px; font: inherit; font-size: 16px;
  border: 1px solid var(--mm-border); border-radius: 8px;
}
.mm-chat-form button {
  padding: 0 14px; font: inherit; font-weight: 600; cursor: pointer;
  color: var(--mm-accent-text); background: var(--mm-accent); border: 0; border-radius: 8px;
}
.mm-chat-note { margin: 0; padding: 0 12px 10px; font-size: 0.72rem; color: var(--mm-muted); }
.mm-chat-note a { color: inherit; }

@media (max-width: 480px) {
  .mm-chat-panel { right: 0; bottom: 0; width: 100vw; max-width: 100vw; height: 100%; max-height: 100%; border-radius: 0; }
  .mm-chat-launcher.mm-open { display: none; }
}

/* Formular-Karte auf der Kontaktseite */
.mm-form-card { background: var(--mm-bg); border: 1px solid var(--mm-border); border-radius: var(--mm-radius); padding: 28px; margin-top: 28px; }
.mm-form-card h2 { margin: 0 0 6px; font-size: 1.35rem; }
.mm-form-card > p { margin: 0 0 20px; color: var(--mm-muted); font-size: .95rem; line-height: 1.55; }
.mm-check a { color: var(--mm-accent); }
@media (max-width: 480px) { .mm-form-card { padding: 20px 16px; } }

/* Handy: WhatsApp-Button der Seite sitzt bei 80 px (über der Sticky-Leiste), Chat-Button darüber */
@media (max-width: 768px) { .mm-chat-launcher { right: 20px; bottom: 144px; } .mm-chat-panel { bottom: 208px; } }
@media (max-width: 480px) { .mm-chat-panel { bottom: 0; } }
