/* ============================================================
   telefonansagen.ai — Rechnungszahlung: Sektion + Modal
   Stand 07.08.2026 — Blaupause des ansagen.ai-Flows
   ALLES gescoped auf .tai-rz* — keine nackten Element-
   Selektoren (siehe feedback_no_global_css_without_test).
   Wird nur auf /preise geladen (Gate in index.php).
   ============================================================ */

/* ---------- Trigger-Button (sitzt in der #rechnung-Karte des Artikels) ---------- */
/* !important + Element-Prefix: die Absatz-Regeln des Artikel-Scopes (teils
   selbst !important) schluckten die Raender — der Button klebte am Text. */
p.tai-rz-btnrow { margin: 1.7rem 0 1.3rem !important; padding: 0 !important; }

/* color mit !important: die globale Link-Farbe des Templates (mint) kommt mit
   hoeherer Spezifitaet aus style.css und faerbte den Button-Text tuerkis. */
.tai-rz-open,
.tai-rz-open:visited,
.tai-mk-open,
.tai-mk-open:visited {
  display: inline-block;
  border-radius: 999px;
  padding: .8rem 1.9rem;
  background: linear-gradient(180deg, #ff2e63 0%, #ff0046 100%);
  color: #fff !important;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(255, 0, 70, .22);
  transition: transform .15s ease, box-shadow .15s ease;
}
.tai-rz-open:hover,
.tai-rz-open:focus-visible,
.tai-mk-open:hover,
.tai-mk-open:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(255, 0, 70, .28);
  color: #fff !important;
}

/* ---------- Modal ---------- */
.tai-rz {
  position: fixed; inset: 0; z-index: 99998;
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem;
  background: linear-gradient(180deg, rgba(0, 19, 87, .3), rgba(0, 19, 87, .42));
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .25s ease;
}
.tai-rz.is-open { opacity: 1; }
.tai-rz-card {
  max-width: 30rem; width: 100%;
  max-height: calc(100vh - 2.5rem); overflow: auto;
  background: linear-gradient(180deg, #ffffff 0%, #f4fbfa 100%);
  border: 1px solid rgba(39, 212, 189, .28);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0, 19, 87, .3);
  padding: 2.1rem 2.2rem 1.9rem;
  text-align: left;
  transform: translateY(10px); transition: transform .25s ease;
}
.tai-rz.is-open .tai-rz-card { transform: translateY(0); }
.tai-rz-h { margin: 0 0 .6rem; color: #001357; font-size: 1.35rem; font-weight: 300; line-height: 1.3; }
.tai-rz-h strong { font-weight: 600; }
.tai-rz-card p { padding: 0; }
.tai-rz-p { margin: 0 0 1.2rem; color: #33415c; font-size: .93rem; line-height: 1.65; }
.tai-rz-user {
  display: inline-block; margin: 0 0 1.1rem; padding: .3rem .8rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #f0fbf9 0%, #e4f7f4 100%);
  border: 1px solid rgba(39, 212, 189, .45);
  color: #001357; font-size: .8rem;
}
.tai-rz-label { display: block; margin: 0 0 .35rem; color: #001357; font-size: .85rem; font-weight: 500; }
.tai-rz-input, .tai-rz-textarea {
  width: 100%; box-sizing: border-box; margin: 0 0 1rem; padding: .65rem .85rem;
  border: 1px solid #c8d2dc; border-radius: 10px;
  background: #fff; color: #33415c;
  font-size: .95rem; font-family: inherit;
}
.tai-rz-input:focus, .tai-rz-textarea:focus {
  outline: none; border-color: #27d4bd;
  box-shadow: 0 0 0 3px rgba(39, 212, 189, .16);
}
.tai-rz-textarea { min-height: 5.5rem; resize: vertical; }
.tai-rz-row { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-top: .2rem; }
.tai-rz-cta {
  display: inline-block; border: 0; cursor: pointer;
  border-radius: 999px; padding: .8rem 1.9rem;
  background: linear-gradient(180deg, #ff2e63 0%, #ff0046 100%);
  color: #fff; font-size: .95rem; font-weight: 600;
  box-shadow: 0 10px 24px rgba(255, 0, 70, .22);
  transition: transform .15s ease, box-shadow .15s ease;
  text-decoration: none;
}
.tai-rz-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(255, 0, 70, .28); color: #fff; }
.tai-rz-cta[disabled] { opacity: .6; cursor: default; transform: none; }
.tai-rz-ghost {
  display: inline-block; cursor: pointer;
  border-radius: 999px; padding: .72rem 1.6rem;
  border: 1px solid rgba(0, 19, 87, .28);
  background: linear-gradient(180deg, #ffffff, #f2f6fa);
  color: #001357; font-size: .9rem; font-weight: 500;
  text-decoration: none;
  transition: border-color .15s ease;
}
.tai-rz-ghost:hover { border-color: rgba(0, 19, 87, .55); color: #001357; }
.tai-rz-cancel {
  display: block; margin: 1.1rem 0 0; border: 0; background: none; padding: 0;
  color: #7a8aa0; font-size: .82rem; cursor: pointer; text-decoration: underline;
}
.tai-rz-note { margin: 1.1rem 0 0; color: #7a8aa0; font-size: .76rem; line-height: 1.5; }
/* .tai-rz-card p { padding:0 } hat hoehere Spezifitaet und schluckte das
   Innenpolster der Boxen — deshalb hier mit Card-Prefix. */
.tai-rz-card p.tai-rz-err, .tai-rz-err {
  margin: 0 0 1rem; padding: .7rem .95rem;
  border-left: 3px solid #ff0046; border-radius: .35rem;
  background: rgba(255, 0, 70, .07);
  color: #b3163f; font-size: .85rem; line-height: 1.5;
}
.tai-rz-card p.tai-rz-ok, .tai-rz-ok {
  margin: 1.2rem 0 .8rem; padding: 1rem 1.2rem;
  border-left: 3px solid #27d4bd; border-radius: .35rem;
  background: rgba(39, 212, 189, .12);
  color: #0d7a6b; font-size: .9rem; line-height: 1.6;
}
@media (max-width: 600px) {
  .tai-rz-card { padding: 1.5rem 1.25rem 1.4rem; }
  .tai-rz-h { font-size: 1.2rem; }
}
