/* ============================================================
   sprechstunde.css – Videosprechstunde für Patienten (11/2026)
   Optik wie das Konto (css/konto.css): heller Grund, weiße
   Karten mit 20px Radius, Waldgrün als Akzent.
   ============================================================ */

/* Elemente mit eigenem display-Wert bleiben mit [hidden] trotzdem weg */
[hidden] { display: none !important; }

body.vs-page {
  min-height: 100vh;
  background: #F2F4EE;
  font-family: 'Inter', sans-serif;
  color: var(--ink-900, #0f2f27);
  -webkit-text-size-adjust: 100%;
}

/* ── Kopfzeile ─────────────────────────────────────────────── */
.vs-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 244, 238, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(20, 59, 50, 0.1);
}

.vs-header-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.vs-logo { display: inline-flex; line-height: 0; }
.vs-logo img { height: 20px; width: auto; display: block; }

.vs-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-700, #566b64);
  padding: 6px 12px;
  border: 1px solid rgba(20, 59, 50, 0.15);
  border-radius: 999px;
  transition: border-color 0.15s, color 0.15s;
}
.vs-back:hover { border-color: var(--green-800, #0c3f35); color: var(--green-800, #0c3f35); }

/* ── Inhalt ────────────────────────────────────────────────── */
.vs-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.25rem 2.5rem;
}

.vs-hero { margin-bottom: 1.25rem; }

.vs-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-800, #0c3f35);
}

.vs-title {
  margin: 0;
  font-size: clamp(1.5rem, 4.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink-900, #0f2f27);
}

.vs-doctor {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.9rem;
  padding: 0.4rem 0.9rem 0.4rem 0.4rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(20, 59, 50, 0.09);
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--ink-700, #566b64);
}

.vs-doctor-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--forest-800, #0c3f35);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vs-doctor strong { color: var(--ink-900, #0f2f27); font-weight: 700; }

.vs-lead {
  margin: 0.9rem 0 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-700, #566b64);
  max-width: 560px;
}

/* ── Karten ────────────────────────────────────────────────── */
.vs-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(20, 59, 50, 0.09);
  border-radius: 20px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 2px 12px rgba(12, 63, 53, 0.05);
  margin-top: 1rem;
}

.vs-card-title {
  margin: 0 0 1.1rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-700, #0c3f35);
}

.vs-card p { margin: 0; }

.vs-muted { font-size: 0.88rem; line-height: 1.55; color: var(--ink-700, #566b64); }
.vs-muted a { color: var(--green-800, #0c3f35); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ── Hinweise / Meldungen ──────────────────────────────────── */
.vs-flash {
  margin: 1rem 0 0;
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
}
.vs-flash.ok  { background: #ECFDF3; border: 1px solid rgba(22, 163, 74, 0.25); color: #166534; }
.vs-flash.err { background: #FEF2F2; border: 1px solid rgba(220, 38, 38, 0.25); color: #991B1B; }

.vs-notice {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.vs-notice-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(12, 63, 53, 0.08);
  color: var(--green-800, #0c3f35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vs-notice h2 {
  margin: 0 0 0.3rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--ink-900, #0f2f27);
}

/* ── Buttons ───────────────────────────────────────────────── */
.vs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0 1.25rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.vs-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.vs-btn--primary { background: var(--forest-800, #0c3f35); color: #fff; box-shadow: 0 10px 22px rgba(12, 63, 53, 0.18); }
.vs-btn--primary:hover:not(:disabled) { background: var(--forest-700, #14513f); transform: translateY(-1px); }

.vs-btn--join { background: var(--lime-400, #d1f843); color: var(--forest-900, #062219); box-shadow: 0 10px 24px rgba(160, 200, 30, 0.35); min-height: 50px; padding: 0 1.6rem; font-size: 0.98rem; }
.vs-btn--join:hover:not(:disabled) { background: var(--lime-300, #e0fb7a); transform: translateY(-1px); }

.vs-btn--ghost { background: transparent; color: var(--ink-700, #566b64); border-color: rgba(20, 59, 50, 0.18); }
.vs-btn--ghost:hover:not(:disabled) { border-color: var(--green-800, #0c3f35); color: var(--green-800, #0c3f35); }

.vs-btn--danger { background: transparent; color: #B91C1C; border-color: rgba(185, 28, 28, 0.28); }
.vs-btn--danger:hover:not(:disabled) { background: #FEF2F2; border-color: #B91C1C; }

/* ── Eigene Termine ────────────────────────────────────────── */
.vs-appts { display: flex; flex-direction: column; gap: 0.75rem; }

.vs-appt {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(20, 59, 50, 0.09);
  border-radius: 16px;
  background: #fff;
}

.vs-appt.is-live {
  border-color: rgba(12, 63, 53, 0.35);
  box-shadow: 0 0 0 4px rgba(209, 248, 67, 0.35);
}

.vs-appt.is-past { background: transparent; }
.vs-appt.is-past .vs-appt-date { background: rgba(20, 59, 50, 0.06); color: var(--ink-700, #566b64); }

.vs-appt-date {
  width: 56px;
  padding: 0.45rem 0;
  border-radius: 12px;
  background: var(--forest-800, #0c3f35);
  color: #fff;
  text-align: center;
  line-height: 1.1;
}
.vs-appt-date span { display: block; }
.vs-appt-wd  { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; }
.vs-appt-d   { font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.vs-appt-mon { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.8; }

.vs-appt-when {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--ink-900, #0f2f27);
  font-variant-numeric: tabular-nums;
}

.vs-appt-sub {
  margin-top: 0.3rem !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  font-size: 0.82rem;
  color: var(--ink-700, #566b64);
}

.vs-appt-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
}

.vs-appt-actions .vs-btn { min-height: 40px; font-size: 0.85rem; }
.vs-appt-actions .vs-btn--join { min-height: 46px; font-size: 0.95rem; }

.vs-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.vs-badge--booked    { background: rgba(12, 63, 53, 0.1);   color: var(--green-800, #0c3f35); }
.vs-badge--live      { background: var(--lime-400, #d1f843); color: var(--forest-900, #062219); }
.vs-badge--done      { background: rgba(22, 163, 74, 0.1);  color: #15803D; }
.vs-badge--off       { background: rgba(107, 114, 128, 0.12); color: #4B5563; }
.vs-badge--warn      { background: rgba(217, 119, 6, 0.1);  color: #B45309; }

.vs-appt-hint { font-size: 0.8rem; color: var(--ink-700, #566b64); }

.vs-subhead {
  margin: 1.25rem 0 0.6rem !important;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-700, #566b64);
}

/* ── Einwilligung ──────────────────────────────────────────── */
.vs-consent {
  border: 1.5px solid rgba(12, 63, 53, 0.22);
  background: #fff;
}

.vs-consent-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-800, #0c3f35);
  margin-bottom: 0.4rem !important;
}

.vs-consent-title {
  margin: 0 0 0.75rem;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--ink-900, #0f2f27);
}

.vs-consent-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-900, #0f2f27);
  white-space: pre-line;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: #F7F8F4;
  border: 1px solid rgba(20, 59, 50, 0.07);
}

.vs-consent-meta {
  margin-top: 0.75rem !important;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ink-700, #566b64);
}

.vs-consent-actions { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }

/* ── Freie Termine ─────────────────────────────────────────── */
.vs-rules {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--ink-700, #566b64);
  margin-bottom: 1.1rem !important;
}

.vs-day + .vs-day { margin-top: 1.1rem; }

.vs-day-title {
  margin: 0 0 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ink-900, #0f2f27);
}

.vs-day-tag {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(12, 63, 53, 0.08);
  color: var(--green-800, #0c3f35);
}

.vs-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 0.5rem;
}

.vs-chip {
  min-height: 44px;
  border-radius: 12px;
  border: 1.5px solid rgba(12, 63, 53, 0.18);
  background: #fff;
  color: var(--green-800, #0c3f35);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  -webkit-tap-highlight-color: transparent;
}
.vs-chip:hover:not(:disabled), .vs-chip:focus-visible { background: var(--forest-800, #0c3f35); border-color: var(--forest-800, #0c3f35); color: #fff; outline: none; }
.vs-chip:disabled { cursor: not-allowed; opacity: 0.45; }

.vs-more { margin-top: 1.1rem; width: 100%; }

.vs-slots-locked .vs-chip:disabled { opacity: 0.5; }

/* ── Ladezustand ───────────────────────────────────────────── */
.vs-skel {
  height: 16px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(20,59,50,0.06), rgba(20,59,50,0.12), rgba(20,59,50,0.06));
  background-size: 200% 100%;
  animation: vsShimmer 1.2s ease-in-out infinite;
}
.vs-skel + .vs-skel { margin-top: 0.6rem; width: 70%; }
@keyframes vsShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.vs-footnote {
  margin: 1.5rem 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ink-700, #566b64);
  text-align: center;
}

/* ── Checkliste vor dem Beitritt ───────────────────────────── */
.vs-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(3, 21, 15, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.vs-sheet {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 22px;
  padding: 1.6rem 1.5rem 1.4rem;
  box-shadow: 0 30px 70px rgba(3, 21, 15, 0.25);
  animation: vsUp 0.2s ease;
}

@keyframes vsUp { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }

.vs-sheet h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink-900, #0f2f27);
}

.vs-sheet-sub { margin: 0 0 1rem; font-size: 0.86rem; color: var(--ink-700, #566b64); }

.vs-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }

.vs-checklist li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-700, #566b64);
}

.vs-checklist li strong { display: block; color: var(--ink-900, #0f2f27); font-weight: 700; }

.vs-check-ico {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(12, 63, 53, 0.08);
  color: var(--green-800, #0c3f35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vs-sheet-err {
  margin: 1rem 0 0;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: #FEF2F2;
  color: #991B1B;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.45;
}

.vs-sheet-actions {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
}

/* ── Gespräch ──────────────────────────────────────────────── */
.vs-call {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  background: #0B1411;
}

.vs-call-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem 0.55rem 1rem;
  background: var(--forest-900, #062219);
  color: #fff;
}

.vs-call-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  font-size: 0.88rem;
  font-weight: 700;
}

.vs-call-title span:last-child {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: 0.8;
  font-weight: 600;
}

.vs-live-dot {
  flex-shrink: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--lime-400, #d1f843);
  box-shadow: 0 0 0 4px rgba(209, 248, 67, 0.2);
}

.vs-call-leave {
  flex-shrink: 0;
  min-height: 36px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.vs-call-leave:hover { background: #B91C1C; border-color: #B91C1C; }

.vs-call-stage { flex: 1; min-height: 0; }
.vs-call-stage iframe { display: block; border: 0; }

html.vs-in-call, html.vs-in-call body { overflow: hidden; }

/* ── Schmale Bildschirme ───────────────────────────────────── */
@media (max-width: 600px) {
  .vs-header-inner { height: 56px; padding: 0 1rem; }
  .vs-main { padding: 1.4rem 1rem 2rem; }
  .vs-card { padding: 1.2rem 1.1rem; border-radius: 18px; }
  .vs-appt { grid-template-columns: auto minmax(0, 1fr); gap: 0.85rem; padding: 0.9rem; }
  .vs-appt-actions { grid-column: 1 / -1; }
  .vs-appt-actions .vs-btn { width: 100%; }
  .vs-chips { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
  .vs-consent-actions .vs-btn { width: 100%; }
  .vs-sheet-backdrop { align-items: flex-end; padding: 0; }
  .vs-sheet { max-width: none; border-radius: 22px 22px 0 0; padding-bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px)); }
  .vs-sheet-actions .vs-btn { flex: 1; }
  #vsCallDoc { display: none; }
}
