/* quik Sites: Tarife für Webdesigner (public/js/tarife.js). Verwaltung, System, Segment „Tarife“; Seite „Marke“, Reiter
   „Tarif & Verlauf“; Zeile im Dialog „Veröffentlichen“. Farben nur aus den Variablen in app.css. */

/* Betrag rechts in einer Zeile: Zahl mit festen Ziffernbreiten, darunter ein Wort */
.tf-amt { flex: none; display: grid; justify-items: end; gap: 1px; min-width: 92px; text-align: right; line-height: 1.25; }
.tf-amt b { font-size: var(--fs-base); font-weight: 650; color: var(--fg); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tf-amt small { font-size: var(--fs-xs); color: var(--ink-faint); white-space: nowrap; }
.tf-n { flex: none; min-width: 72px; text-align: right; }
.li.is-off > .grow, .li.is-off > .tf-amt { opacity: .55; }
.tf-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 4px; padding: 14px 0 2px; border-top: 1px solid var(--line-soft); font-size: var(--fs-sm); color: var(--ink-soft); }
.tf-total b { font-size: var(--fs-lg); font-weight: 650; color: var(--fg); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tf-sec .tf-total { padding-right: 54px; }
.tf-fine { display: flex; align-items: flex-start; gap: 6px; margin: 0; line-height: 1.45; }
.tf-fine > .ic { flex: none; margin-top: 2px; }
.tf-sec .tf-fine { margin-bottom: 8px; }
.tf-view > .todo-chips { margin: 0; }
.tf-view .note { margin-bottom: 10px; align-items: center; }
.tf-view .note > .ic { margin-top: 0; }
.tf-kpi .bi-kzs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tf-kpi .bi-kz-t small { white-space: normal; }
.tf-next { flex: none; }

/* Seite „Marke“: Karte „Tarif“ */
.tf-card .card-h h2 > .bdg { margin-left: 8px; }
.tf-card .card-h h2 > .bdg + .bdg { margin-left: 4px; }
.tf-kzs { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 4px; }
.tf-card > .note { margin-top: 14px; align-items: center; }
.tf-card > .note > .ic { margin-top: 0; }
.tf-card > .note > span { min-width: 0; }
.tf-card > .note > span .link-btn { display: inline; color: var(--ink); }
.tf-card > .note > .link-btn { flex: none; color: var(--ink); white-space: nowrap; }
.tf-month > .grow > b, .tf-month > .grow > div { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tf-card > .tf-fine { margin-top: 16px; }
.tf-more { margin: 16px 0 0; }
.tf-more + .tf-more { margin-top: 0; }
.tf-more > .more-b > .list { margin: 0 -10px; }
.tf-post { padding-top: 9px; padding-bottom: 9px; }
.tf-post > .grow, .tf-month > .grow { min-width: 0; }
.tf-post .adm-ic, .tf-month .adm-ic { width: 30px; height: 30px; border-radius: 9px; }
.tf-posts > .tf-post:hover { background: transparent; }
button.tf-month { cursor: pointer; font: inherit; color: inherit; background: transparent; border-left: 0; border-right: 0; border-top: 0; }
button.tf-month:hover { background: var(--hover); }
button.tf-month:focus-visible { outline: 2px solid var(--fg); outline-offset: -2px; }
button.tf-month > .ic:last-child { flex: none; color: var(--ink-faint); }
.tf-month > .bdg { flex: none; }

/* Tarifvergleich */
.tf-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.tf-plan { display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); min-width: 0; }
.tf-plan.on { border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.tf-plan-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; }
.tf-plan-h { align-items: flex-start; }
.tf-plan-t { display: grid; gap: 2px; min-width: 0; }
.tf-plan-t b { font-size: var(--fs-lg); font-weight: 650; color: var(--fg); }
.tf-plan-t small { font-size: var(--fs-xs); color: var(--ink-faint); }
.tf-plan-h > .bdg { flex: none; }
.tf-price { display: grid; gap: 2px; }
.tf-price b { font-size: 28px; line-height: 1.1; font-weight: 680; letter-spacing: -.02em; color: var(--fg); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tf-price small { font-size: var(--fs-xs); color: var(--ink-faint); }
.tf-feat { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: var(--fs-sm); color: var(--ink); }
.tf-feat li { display: flex; align-items: flex-start; gap: 8px; line-height: 1.35; }
.tf-feat li > .ic { flex: none; margin-top: 2px; color: var(--green-ink); }
.tf-feat li.off { color: var(--ink-faint); }
.tf-feat li.off > .ic { color: var(--ink-faint); }
.tf-plan-n { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: var(--fs-sm); color: var(--ink-soft); }
.tf-plan-n b { font-weight: 650; color: var(--fg); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tf-plan-go { width: 100%; }

/* Dialoge: Tarif zuordnen, Tarif anlegen */
.tf-form .fld-row > .fld { margin-bottom: 14px; }
.tf-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tf-form .fld > label { justify-content: flex-start; gap: 4px; min-height: 22px; white-space: nowrap; }
.tf-form .fld > label .bi-info { margin: -4px 0; }
.tf-form > .note { margin-bottom: 16px; }
.tf-form .seg { width: 100%; }
.tf-form .seg > button { flex: 1; }
.tf-form textarea.input { resize: vertical; min-height: 64px; }
.tf-sonder { margin-top: 0; }
.tf-sonder .tf-3 > .fld { margin-bottom: 6px; }
.tf-sonder .more-b { padding-bottom: 12px; }
.tf-tgs { margin: 2px 0 6px; border-top: 1px solid var(--line-soft); }
.tf-tg { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.tf-form > .tf-tg { border-bottom: 0; }
.tf-tg[hidden] { display: none; }
.tf-quote { display: block; margin-top: 2px; color: var(--ink); }

/* Dialog „Veröffentlichen“: was die Website im Tarif kostet (ruhig; über den enthaltenen Websites als Hinweis) */
.tf-live { display: flex; align-items: flex-start; gap: 8px; font-size: var(--fs-sm); line-height: 1.45; color: var(--ink-soft); }
.tf-live > .ic { flex: none; margin-top: 2px; color: var(--ink-faint); }
.tf-live.note { color: var(--ink); }
.tf-live[hidden] { display: none; }

@media (max-width: 900px) {
  .tf-kpi .bi-kzs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tf-kzs { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tf-3 { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .tf-form .fld-row { flex-direction: column; gap: 0; }
  .tf-form .fld-row > .fld { flex: none; }
  .tf-sonder .tf-3 { gap: 6px; }
  .tf-amt { min-width: 0; }
  .tf-n { display: none; }
  .tf-brand .adm-meta > span:nth-child(n + 3), .tf-zeile .adm-meta > span:nth-child(n + 3), .tf-tarif .adm-meta > span:nth-child(n + 2) { display: none; }
  .tf-next { padding-left: 10px; padding-right: 10px; }
  .tf-card > .note { align-items: flex-start; }
  .tf-card > .card-h, .tf-sec > .card-h { flex-wrap: wrap; row-gap: 10px; }
  .tf-sec > .card-h > .adm-h-r { flex: 1 1 100%; flex-wrap: wrap; }
  .tf-sec > .card-h > .adm-h-r > .qsel { flex: 1 1 150px; min-width: 0; }
  .tf-zeile .tf-next, .tf-amt small, .tf-month > .adm-ic { display: none; }
  .tf-brand .adm-meta > span, .tf-zeile .adm-meta > span { flex: none; }
  .tf-brand > .grow > b, .tf-zeile > .grow > b { flex-wrap: wrap; row-gap: 4px; }
  .tf-month { gap: 8px; }
}
