/* Terminbuchung (ersetzt Calendly) – im g5a-Design, Farben wie der Software-Katalog. */
.tf {
  --tf-bg: #f7fbfd;
  --tf-card: #ffffff;
  --tf-ink: #0b1220;
  --tf-muted: #4b5a68;
  --tf-line: #e2ecf1;
  --tf-soft: #f2f9fc;
  --tf-primary: #0ea5c9;
  --tf-primary-hover: #0c93b4;
  --tf-primary-ink: #063947;
  --tf-accent: #00e5ff;
  --tf-ok: #127a4a;
  --tf-ok-bg: #e6f7ee;
  --tf-err: #b3261e;
  font-family: Inter, system-ui, sans-serif;
  color: var(--tf-ink);
  background: var(--tf-bg);
  padding-bottom: 64px;
}
.tf *, .tf *::before, .tf *::after { box-sizing: border-box; }
.tf__wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Hero */
.tf__hero {
  padding: 112px 0 28px;
  background:
    radial-gradient(1100px 380px at 78% -12%, rgba(0, 229, 255, .16), transparent 60%),
    linear-gradient(180deg, #eef7fb 0%, #f7fbfd 100%);
  border-bottom: 1px solid var(--tf-line);
}
.tf__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--tf-primary-ink); background: rgba(14, 165, 201, .12);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}
.tf__title { font-size: clamp(1.8rem, 3.2vw, 2.7rem); font-weight: 800; line-height: 1.1; margin: 0 0 12px; }
.tf__lead { font-size: 1.05rem; color: var(--tf-muted); max-width: 660px; }
.tf__facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding: 0; list-style: none; }
.tf__facts li {
  font-size: .9rem; font-weight: 600; color: var(--tf-primary-ink);
  background: var(--tf-card); border: 1px solid var(--tf-line); border-radius: 999px; padding: 6px 14px;
}

/* Layout: Buchung + Seitenleiste */
.tf__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; margin-top: 32px; align-items: start; }
@media (max-width: 900px) { .tf__grid { grid-template-columns: minmax(0, 1fr); } }

.tf__card {
  background: var(--tf-card); border: 1px solid var(--tf-line); border-radius: 16px;
  padding: 28px; box-shadow: 0 14px 32px rgba(6, 57, 71, .06);
}
@media (max-width: 560px) { .tf__card { padding: 20px 16px; } }

/* Fortschritt */
.tf__progress { display: flex; gap: 8px; margin: 0 0 24px; flex-wrap: wrap; }
.tf__progress .p {
  flex: 1 1 160px; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 12px; border: 1px solid var(--tf-line);
  color: var(--tf-muted); font-size: .92rem; font-weight: 600; min-width: 0;
}
.tf__progress .p .i {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tf-soft); color: var(--tf-primary-ink); font-size: .82rem; font-weight: 700;
}
.tf__progress .p .val { margin-left: auto; font-weight: 500; font-size: .85rem; color: var(--tf-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tf__progress .p.cur { border-color: var(--tf-primary); color: var(--tf-ink); box-shadow: 0 0 0 3px rgba(14, 165, 201, .12); }
.tf__progress .p.cur .i, .tf__progress .p.done .i { background: var(--tf-primary); color: #fff; }

.tf h2 { font-size: 1.45rem; font-weight: 800; line-height: 1.2; margin: 0 0 6px; }
.tf .sub { color: var(--tf-muted); margin: 0 0 18px; }
.tf .note { color: var(--tf-muted); font-size: .88rem; margin: 14px 0 0; }
.tf .note a, .tf .textlink { color: var(--tf-primary-ink); text-decoration: underline; }
.tf .muted { color: var(--tf-muted); font-weight: 400; }

/* Monatskalender */
.tf .cal { border: 1px solid var(--tf-line); border-radius: 14px; padding: 14px; max-width: 420px; }
.tf .cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.tf .cal-nav b { font-weight: 700; }
.tf .cal-nav button {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--tf-line);
  background: var(--tf-card); color: var(--tf-ink); font-size: 1.2rem; cursor: pointer;
}
.tf .cal-nav button:disabled { opacity: .35; cursor: default; }
.tf .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.tf .cal-wd { text-align: center; font-size: .75rem; font-weight: 600; color: var(--tf-muted); padding: 4px 0; }
.tf .cal-day { aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; font-size: .92rem; }
.tf .cal-day.off { color: var(--tf-muted); opacity: .45; }
.tf .cal-day.free {
  border: 1px solid transparent; background: rgba(14, 165, 201, .12); color: var(--tf-primary-ink);
  font-weight: 700; cursor: pointer;
}
.tf .cal-day.free:hover { border-color: var(--tf-primary); }
.tf .cal-day.sel { background: var(--tf-primary); color: #fff; }

/* Uhrzeiten */
.tf .slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; max-width: 560px; }
.tf .slot, .tf .kanal-opt {
  height: 44px; border-radius: 10px; border: 1px solid var(--tf-line); background: var(--tf-card);
  color: var(--tf-ink); font-weight: 600; cursor: pointer;
}
.tf .slot:hover, .tf .kanal-opt:hover { border-color: var(--tf-primary); }
.tf .slot[aria-pressed="true"], .tf .kanal-opt[aria-pressed="true"] {
  background: var(--tf-primary); border-color: var(--tf-primary); color: #fff;
}

/* Zusammenfassung, Kanal */
.tf .summary { border: 1px solid var(--tf-line); background: var(--tf-soft); border-radius: 12px; padding: 6px 16px; margin: 0 0 18px; }
.tf .summary > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; }
.tf .summary > div + div { border-top: 1px solid var(--tf-line); }
.tf .summary .k { color: var(--tf-muted); font-size: .9rem; }
.tf .summary .v { font-weight: 700; text-align: right; }
.tf .kanal-box { margin: 0 0 18px; }
.tf .kanal-box-title { display: block; font-weight: 700; margin-bottom: 10px; }
.tf .kanal-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tf .kanal-opt { padding: 0 18px; }

/* Formular */
.tf .form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tf .form .full, .tf .form .check { grid-column: 1 / -1; }
@media (max-width: 560px) { .tf .form { grid-template-columns: 1fr; } }
.tf .form label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 600; }
.tf .form input:not([type="checkbox"]), .tf .form textarea {
  width: 100%; height: 46px; padding: 0 14px; font-size: 1rem; font-weight: 400;
  border: 1px solid var(--tf-line); border-radius: 10px; background: var(--tf-card); color: var(--tf-ink);
}
.tf .form textarea { height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.tf .form input:focus, .tf .form textarea:focus { outline: none; border-color: var(--tf-primary); box-shadow: 0 0 0 4px rgba(14, 165, 201, .15); }
.tf .form .check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--tf-muted); }
.tf .form .check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--tf-primary); flex: none; }
.tf .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Buttons */
.tf .stage-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.tf .btn-tf {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  height: 48px; padding: 0 24px; border-radius: 11px; font-weight: 700; font-size: 1rem; cursor: pointer;
  border: 1px solid transparent; background: var(--tf-primary); color: #fff; text-decoration: none;
  box-shadow: 0 8px 24px rgba(14, 165, 201, .28);
}
.tf .btn-tf:hover { background: var(--tf-primary-hover); }
.tf .btn-tf:disabled { opacity: .55; cursor: default; }
.tf .btn-tf--ghost { background: var(--tf-card); color: var(--tf-primary-ink); border-color: var(--tf-line); box-shadow: none; }
.tf .btn-tf--ghost:hover { background: var(--tf-card); border-color: var(--tf-primary); }
.tf .btn-tf--danger { background: var(--tf-err); box-shadow: none; }
.tf .btn-tf--danger:hover { background: #962019; }
.tf .linkbtn { background: none; border: 0; color: var(--tf-muted); font-weight: 600; cursor: pointer; padding: 8px 0; }
.tf .linkbtn:hover { color: var(--tf-ink); }

/* Fertig */
.tf .done { text-align: center; padding: 18px 0; }
.tf .done .ok {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center;
  background: var(--tf-ok-bg); color: var(--tf-ok); font-size: 1.8rem; font-weight: 800;
}
.tf .done .lead { color: var(--tf-muted); margin: 0 auto 12px; max-width: 34em; }

/* Seitenleiste */
.tf__aside { display: flex; flex-direction: column; gap: 16px; }
.tf__aside-box { background: var(--tf-card); border: 1px solid var(--tf-line); border-radius: 16px; padding: 22px; }
.tf__aside-box h3 { font-size: 1.05rem; font-weight: 800; margin: 0 0 12px; }
.tf__aside-box ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.tf__aside-box li { position: relative; padding-left: 22px; color: var(--tf-muted); font-size: .94rem; }
.tf__aside-box li::before { content: "◆"; position: absolute; left: 0; top: 0; color: var(--tf-primary); font-size: .8rem; line-height: 1.7; }
.tf__aside-box--dark { background: linear-gradient(120deg, #063947 0%, #0c93b4 100%); border: 0; color: #fff; }
.tf__aside-box--dark p { color: rgba(255, 255, 255, .86); font-size: .94rem; margin: 0 0 6px; }
.tf__aside-box--dark a { color: #fff; font-weight: 700; }

/* FAQ */
.tf__faq { margin-top: 40px; max-width: 760px; }
.tf__faq h2 { margin-bottom: 14px; }
.tf__faq details { border: 1px solid var(--tf-line); background: var(--tf-card); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; }
.tf__faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; }
.tf__faq summary::after { content: "+"; float: right; color: var(--tf-primary); font-weight: 800; }
.tf__faq details[open] summary::after { content: "–"; }
.tf__faq details p { color: var(--tf-muted); padding: 0 0 16px; }

/* ---------- Dunkles Theme (Tag/Nacht-Umschalter: html[data-theme="dark"]) ---------- */
html[data-theme="dark"] .tf {
  --tf-bg: #071820;
  --tf-card: #0e2731;
  --tf-ink: #e6f7fb;
  --tf-muted: #9db2bb;
  --tf-line: rgba(255, 255, 255, .11);
  --tf-soft: rgba(255, 255, 255, .04);
  --tf-primary: #33cdee;
  --tf-primary-hover: #4fe0ff;
  --tf-primary-ink: #8cfff9;
  --tf-ok: #7fe0a6;
  --tf-ok-bg: rgba(18, 160, 90, .20);
  --tf-err: #e2564c;
}
html[data-theme="dark"] .tf__hero {
  background:
    radial-gradient(1100px 380px at 78% -12%, rgba(0, 229, 255, .12), transparent 60%),
    linear-gradient(180deg, #0a222b 0%, #071820 100%);
  border-bottom-color: rgba(255, 255, 255, .08);
}
html[data-theme="dark"] .tf .slot[aria-pressed="true"],
html[data-theme="dark"] .tf .kanal-opt[aria-pressed="true"],
html[data-theme="dark"] .tf .cal-day.sel,
html[data-theme="dark"] .tf .btn-tf:not(.btn-tf--ghost),
html[data-theme="dark"] .tf__progress .p.cur .i,
html[data-theme="dark"] .tf__progress .p.done .i { color: #002426; }
html[data-theme="dark"] .tf .cal-day.free { background: rgba(51, 205, 238, .14); }

/* Drucken (Bestätigung auf der Verwalten-Seite) */
.tf .print-only { display: none; }
@media print {
  .navigation-wrapper, .footer-wrapper, .no-print, #v-actions, #v-move, #v-cancel, #v-msg, .tf__aside, .tf__hero { display: none !important; }
  .tf .print-only { display: block !important; }
  .tf__card { box-shadow: none; border: 0; padding: 0; }
  .tf__grid { display: block; margin: 0; }
}

@media (max-width: 560px) {
  .tf__hero { padding-top: 84px; }
  .tf__progress .p { flex-basis: 120px; padding: 8px 10px; }
  .tf__progress .p .val { display: none; }
  .tf .cal { padding: 10px; }
  .tf .slots { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
}
