/* ============================================================
   Simpladent Voice — Homepage (s1 — light grey + brand-grün)
   Palette und Logo aus index.html / styles.css übernommen.
   ============================================================ */

:root {
  --bg-1: #f4f5f7;
  --bg-2: #ebedf0;
  --paper: #ffffff;
  --ink: #1f232b;
  --ink-2: #44516b;
  --ink-3: #7d879a;
  --ink-4: #c8ccd4;
  --line: rgba(26,39,64,0.08);
  --line-2: rgba(26,39,64,0.05);
  --accent-red: #a32035;
  /* Brand-Grün — für Backgrounds, Borders, Dots; NICHT für Text */
  --gold-1: #AFCA0B;
  --gold-2: #8aa008;
  --gold-3: #EDF2D0;
  --gold-soft: rgba(175,202,11,0.10);
  --gold-line: rgba(175,202,11,0.40);
  --shadow-2: 0 1px 3px rgba(20,24,32,0.04), 0 8px 24px rgba(20,24,32,0.05);
  --shadow-3: 0 1px 3px rgba(20,24,32,0.05), 0 12px 40px rgba(20,24,32,0.07);
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 800px at 20% -20%, #fff 0%, transparent 60%),
    radial-gradient(900px 600px at 100% 0%, var(--gold-soft) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2));
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--gold-3); color: var(--ink); }

button { font-family: inherit; }

/* ============================================================
   Brand — original Logo (rot + weiße Wortmarke), kein Pill nötig
   ============================================================ */
.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.brand img {
  height: 28px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(26,39,64,0.10));
}
.brand-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 8px;
  transition: opacity 0.15s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

/* Schmales "Assistent"-Label neben dem Logo. Halb-transparent, leicht
   versetzt — soll das Logo nicht überstrahlen. */
.brand-tag {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 6px 12px;
  border-left: 1px solid var(--line);
  line-height: 1;
}
@media (max-width: 640px) {
  .brand-tag { font-size: 13px; padding: 4px 10px; letter-spacing: 0.14em; }
}
.brand-btn:hover { opacity: 0.85; }
.brand-btn:active { transform: scale(0.97); }
.brand-btn:focus-visible {
  outline: 2px solid var(--gold-line);
  outline-offset: 4px;
}

/* Mute-Toggle in der Topbar — nutzt das gleiche Layout wie der Burger,
   nur das Icon wechselt zwischen "ton an" und "ton aus" (durchgestrichen). */
.mute-btn { margin-right: 8px; }
.mute-btn[aria-pressed="true"] { color: var(--accent-red); }

/* ============================================================
   Top bar
   ============================================================ */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 56px;
}
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--ink); }
.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 12px;
  color: var(--ink-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--sans);
}
.lang .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold-1); }
.menu-btn {
  display: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-2);
  cursor: pointer;
  display: grid;
  place-items: center;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  max-width: 1280px;
  margin: 24px auto 0;
  padding: 0 56px 64px;
  text-align: center;
}
.eyebrow {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 500;
}
.eyebrow .div {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold-1);
  vertical-align: middle;
  margin: 0 14px;
}
.title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 56px;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 6px 0 0;
}
.title em { font-style: italic; color: var(--accent-red); }
.sub {
  color: var(--ink-2);
  font-size: 16px;
  max-width: 560px;
  margin: 14px auto 0;
  line-height: 1.55;
}

/* ============================================================
   Voice orb
   ============================================================ */
.orb-wrap {
  display: grid;
  place-items: center;
  position: relative;
  width: 360px; height: 360px;
  margin: 38px auto 0;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
}
.halo {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.halo-1 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(175,202,11,0.18), transparent 60%);
  animation: pulse-slow 4.2s ease-in-out infinite;
}
.halo-2 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(175,202,11,0.10), transparent 65%);
  animation: pulse-slow 4.2s ease-in-out infinite 1s;
}
.halo-ring {
  width: 240px; height: 240px;
  border: 1px solid var(--gold-line);
  animation: pulse-ring 3.6s ease-out infinite;
}
.halo-ring-2 {
  width: 240px; height: 240px;
  border: 1px solid rgba(175,202,11,0.28);
  animation: pulse-ring 3.6s ease-out 1.8s infinite;
}
@keyframes pulse-slow {
  0%, 100% { transform: scale(0.96); opacity: 0.85; }
  50%      { transform: scale(1.06); opacity: 1; }
}
@keyframes pulse-ring {
  0%   { transform: scale(0.85); opacity: 0; }
  20%  { opacity: 0.9; }
  100% { transform: scale(1.45); opacity: 0; }
}
.orb {
  position: relative;
  width: 188px; height: 188px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffffff, #f6faea 55%, #e7efbf 100%);
  box-shadow:
    inset 0 -16px 36px rgba(138,160,8,0.18),
    inset 0 8px 22px rgba(255,255,255,0.95),
    0 18px 60px rgba(138,160,8,0.20),
    0 4px 14px rgba(20,20,20,0.06);
  display: grid;
  place-items: center;
  z-index: 2;
  animation: orb-breathe 3.2s ease-in-out infinite;
  border: 1px solid rgba(175,202,11,0.30);
}
@keyframes orb-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.02); }
}
.orb-inner {
  width: 76%; height: 76%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 30%, rgba(255,255,255,0.95), rgba(255,255,255,0) 55%),
    conic-gradient(from 220deg, var(--gold-3), #fff 30%, var(--gold-3) 60%, #fff 90%, var(--gold-3));
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 22px rgba(175,202,11,0.18), inset 0 -8px 24px rgba(138,160,8,0.18);
}
.mic { color: var(--ink); width: 46px; height: 46px; }

.orb-wrap.listening .orb {
  box-shadow:
    inset 0 -16px 36px rgba(163,32,53,0.22),
    inset 0 8px 22px rgba(255,255,255,0.92),
    0 18px 60px rgba(163,32,53,0.28),
    0 4px 14px rgba(20,20,20,0.08);
}
.orb-wrap.listening .orb-inner {
  background:
    radial-gradient(circle at 36% 30%, rgba(255,255,255,0.95), rgba(255,255,255,0) 55%),
    conic-gradient(from 220deg, #f4d3cf, #fff 30%, #f4d3cf 60%, #fff 90%, #f4d3cf);
}

/* ============================================================
   Live transcription panel
   ============================================================ */
.transcribe {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-3);
  text-align: center;
  position: relative;
  width: 100%;
  max-width: 740px;
  margin: 6px auto 0;
  padding: 26px 36px;
}
.transcribe::before {
  content: "";
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: 44px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-1), transparent);
}
.transcribe-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 10px;
}
.transcribe-label .live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-red);
  animation: live-blink 1.6s ease-in-out infinite;
}
@keyframes live-blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(163,32,53,0.45); }
  50%      { opacity: 0.5; box-shadow: 0 0 0 6px rgba(163,32,53,0); }
}
.transcribe-text {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.005em;
  font-size: 26px;
  min-height: 1.4em;
}
.transcribe-text .pending { color: var(--ink-3); }
.transcribe-text .cursor {
  display: inline-block;
  width: 2px;
  height: 24px;
  background: var(--gold-2);
  vertical-align: text-bottom;
  margin-left: 4px;
  animation: cursor-blink 1s steps(2) infinite;
}
@keyframes cursor-blink {
  50% { opacity: 0; }
}

/* ─── Konversations-Log: scrollbarer Chat statt Single-Line ─── */
.transcribe-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
  scroll-behavior: smooth;
  text-align: left;
}
.transcribe-log::-webkit-scrollbar { width: 6px; }
.transcribe-log::-webkit-scrollbar-track { background: transparent; }
.transcribe-log::-webkit-scrollbar-thumb {
  background: var(--ink-4);
  border-radius: 6px;
}
.transcribe-empty {
  color: var(--ink-3);
  font-style: italic;
  font-size: 15px;
  text-align: center;
  padding: 20px 0;
}
.msg { display: flex; max-width: 100%; }
.msg-user { justify-content: flex-end; }
.msg-bot  { justify-content: flex-start; }
.msg-bubble {
  max-width: 86%;
  padding: 9px 14px;
  border-radius: 14px;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.45;
  word-wrap: break-word;
  white-space: pre-wrap;
}
.msg-user .msg-bubble {
  background: var(--gold-soft);
  color: var(--ink);
  border: 1px solid var(--gold-line);
  border-bottom-right-radius: 4px;
}
.msg-bot .msg-bubble {
  background: var(--bg-2);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
.msg.streaming .msg-bubble::after {
  content: "▋";
  display: inline-block;
  margin-left: 2px;
  color: var(--gold-2);
  animation: cursor-blink 1s steps(2) infinite;
}
.transcribe-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line-2);
  font-size: 12px;
  color: var(--ink-3);
  font-style: italic;
  letter-spacing: 0.04em;
}
.transcribe-status[hidden] { display: none; }

/* ============================================================
   Work section (calendar + patient card)
   ============================================================ */
.work {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 56px 80px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-2);
}
.card-eyebrow {
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 6px;
}
.card-title {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* Calendar card — kompakt */
.cal-card { padding: 20px 22px; }
.card-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-2);
  gap: 12px;
}
.card-head .card-title { font-size: 22px; }
.card-meta {
  font-size: 12px;
  color: var(--ink-3);
  text-align: right;
}
.card-meta strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
  font-size: 13px;
  margin-top: 2px;
}

.month-name {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  font-size: 18px;
}
.month-name span {
  color: var(--ink-3);
  margin-left: 8px;
  font-style: italic;
}
.monthnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.monthnav .navs { display: flex; gap: 6px; }
.nav-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-2);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}
.nav-btn:hover { border-color: var(--gold-line); color: var(--ink); }
.nav-btn svg { width: 12px; height: 12px; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 14px;
}
.cal-wd {
  text-align: center;
  font-size: 9px;
  color: var(--ink-3);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 4px 0;
}
.cal-day {
  aspect-ratio: 1;
  max-height: 38px;
  border: none;
  background: transparent;
  border-radius: 50%;
  color: var(--ink-2);
  font-weight: 400;
  cursor: pointer;
  display: grid;
  place-items: center;
  position: relative;
  transition: all 0.15s ease;
  font-family: var(--sans);
  font-size: 13px;
}
.cal-day:hover { background: var(--bg-2); color: var(--ink); }
.cal-day.muted { color: var(--ink-4); }
.cal-day.muted:hover { background: transparent; cursor: default; }
.cal-day.has-slot::after {
  content: "";
  position: absolute;
  bottom: 4px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold-1);
}
.cal-day.today { color: var(--ink); font-weight: 500; }
.cal-day.today::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px dashed var(--gold-line);
}
.cal-day.selected {
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
}
.cal-day.selected::after { background: var(--paper); }
.cal-day.ai-suggest {
  background: var(--gold-soft);
  color: var(--ink);
  font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--gold-line);
}
.cal-day.ai-suggest::after { background: var(--gold-2); }

/* Slots */
.slots-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line-2);
  gap: 12px;
  flex-wrap: wrap;
}
.slots-head-left {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
}
.slots-head-left .when {
  color: var(--ink-3);
  font-style: italic;
  margin-left: 10px;
  font-size: 13px;
}
.slots-count {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}
.slots-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.slot {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
  letter-spacing: 0.02em;
  padding: 8px 0;
  font-size: 12px;
}
.slot:hover { border-color: var(--gold-line); color: var(--ink); }
.slot.taken {
  color: var(--ink-4);
  text-decoration: line-through;
  cursor: not-allowed;
  background: var(--bg-2);
}
.slot.ai-suggest {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  box-shadow: 0 4px 12px rgba(20,20,20,0.16);
  position: relative;
}
.slot.ai-suggest::before {
  content: "✦";
  position: absolute;
  top: -6px; right: -4px;
  background: var(--gold-1);
  color: var(--ink);
  width: 16px; height: 16px;
  border-radius: 50%;
  font-size: 9px;
  display: grid;
  place-items: center;
  border: 2px solid var(--paper);
}

/* AI strip */
.ai-strip {
  background: linear-gradient(90deg, rgba(175,202,11,0.08), transparent);
  border-left: 2px solid var(--gold-1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  line-height: 1.45;
  margin-top: 14px;
  padding: 10px 14px;
  font-size: 12px;
}
.ai-badge {
  color: var(--ink-3);
  text-transform: uppercase;
  font-weight: 600;
  flex-shrink: 0;
  letter-spacing: 0.24em;
  font-size: 9px;
}
.ai-strip strong { color: var(--ink); font-weight: 500; }

/* ============================================================
   Patient card
   ============================================================ */
.patient {
  padding: 28px 28px 24px;
  position: sticky;
  top: 24px;
}
.patient .head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 4px;
  gap: 12px;
}
.patient .card-title { font-size: 24px; }
.lock-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2e8a5b;
  background: rgba(46,138,91,0.08);
  border-radius: 999px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 10px;
  padding: 5px 10px;
}
.lock-state .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #2e8a5b;
  box-shadow: 0 0 0 3px rgba(46,138,91,0.18);
}
.lock-state.pending {
  color: var(--ink-3);
  background: var(--bg-2);
}
.lock-state.pending .dot {
  background: var(--ink-3);
  box-shadow: 0 0 0 3px rgba(138,138,138,0.18);
}
.divider {
  height: 1px;
  margin: 18px -28px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.field {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-bottom: 1px solid var(--line-2);
  padding: 12px 0;
}
.field:last-of-type { border-bottom: none; }
.field-icon {
  color: var(--ink-3);
  flex-shrink: 0;
  margin-top: 2px;
}
.field-icon svg { display: block; }
.field-body { flex: 1; min-width: 0; }
.field-label {
  display: block;
  font-size: 9px;
  color: var(--ink-3);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}
.field-value-input {
  border: none;
  background: transparent;
  outline: none;
  font: inherit;
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
  padding: 0;
}
.field-value-input::placeholder {
  color: var(--ink-4);
  font-style: italic;
  letter-spacing: 0;
}
.field-value-input:focus { color: var(--ink); }
.field-verified {
  display: none;
  margin-left: 8px;
  color: #2e8a5b;
  font-size: 11px;
  vertical-align: middle;
  font-weight: 600;
}
.field.filled .field-verified { display: inline-block; }
.field.filled .field-icon { color: var(--ink-2); }

/* Confirm row */
.confirm {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.btn {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  position: relative;
  padding: 14px 18px;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.btn.primary {
  background: linear-gradient(180deg, #1f1f1f, #0e0e0e);
  border-color: #1f1f1f;
  box-shadow: 0 8px 22px rgba(20,20,20,0.20), inset 0 1px 0 rgba(255,255,255,0.08);
  flex: 1;
}
.btn.primary::before {
  content: "";
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-1), transparent);
}
.btn.primary:disabled {
  cursor: not-allowed;
  opacity: 0.4;
  box-shadow: none;
}
.btn.ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--line);
  width: 50px;
  padding: 14px 0;
  display: grid;
  place-items: center;
}
.btn.ghost:hover { color: var(--ink); border-color: var(--ink-3); }

/* Cancel-Variante des ghost-Buttons — rote Schrift, breit (Text-Label
   statt Icon), nur sichtbar wenn ein Termin existiert. */
.btn.ghost.danger {
  width: auto;
  padding: 14px 18px;
  color: var(--accent-red);
  border-color: rgba(163, 32, 53, 0.30);
  font-weight: 500;
}
.btn.ghost.danger:hover {
  color: var(--accent-red);
  border-color: var(--accent-red);
  background: rgba(163, 32, 53, 0.05);
}

/* ============================================================
   Footer
   ============================================================ */
.foot {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 56px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-3);
  font-size: 11px;
  letter-spacing: 0.08em;
  flex-wrap: wrap;
  gap: 12px;
}
.foot .left { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { color: var(--ink); }
.gold-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold-1);
}

/* ============================================================
   Inline composer (text input fallback under transcribe)
   ============================================================ */
.composer {
  display: flex;
  gap: 10px;
  max-width: 740px;
  margin: 14px auto 0;
}
.composer-input {
  flex: 1;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 12px 22px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  box-shadow: var(--shadow-2);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.composer-input:focus {
  border-color: var(--gold-line);
  box-shadow: var(--shadow-2), 0 0 0 4px var(--gold-soft);
}
.composer-send {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.18s ease;
}
.composer-send:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.composer-send svg { display: block; }

.toast-wrap {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  pointer-events: none;
}
.toast {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 14px;
  box-shadow: var(--shadow-3);
  margin-top: 8px;
  pointer-events: auto;
  animation: toast-in 0.25s ease both;
  max-width: 480px;
}
.toast.error {
  background: #fff5f4;
  border-color: rgba(163,32,53,0.30);
  color: #8e2a23;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Tablet layout
   ============================================================ */
@media (max-width: 1024px) {
  .top { padding: 18px 32px; }
  .nav { gap: 22px; }
  .nav a { font-size: 12px; }
  .nav a.hide-tablet { display: none; }

  .hero { padding: 0 32px 28px; margin-top: 12px; }
  .title { font-size: 48px; }
  .sub { font-size: 15px; }

  .orb-wrap { width: 300px; height: 300px; margin-top: 22px; }
  .halo-1 { width: 300px; height: 300px; }
  .halo-2 { width: 230px; height: 230px; }
  .halo-ring, .halo-ring-2 { width: 200px; height: 200px; }
  .orb { width: 160px; height: 160px; }
  .mic { width: 40px; height: 40px; }

  .transcribe { max-width: 640px; padding: 22px 30px; }
  .transcribe-text { font-size: 22px; }
  .transcribe-text .cursor { height: 22px; }

  .work {
    padding: 36px 32px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card-head .card-title { font-size: 24px; }
  .nav-btn { width: 32px; height: 32px; }
  .nav-btn svg { width: 13px; height: 13px; }

  .cal-grid { gap: 3px; }
  .cal-day { font-size: 13px; }

  .slots-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }

  .patient { position: static; padding: 26px 28px; }
  .patient .card-title { font-size: 22px; }
  .patient.has-grid .field-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 28px;
  }

  .foot { padding: 8px 32px 32px; }
}

/* ============================================================
   Mobile layout
   ============================================================ */
@media (max-width: 640px) {
  .top { padding: 14px 18px 4px; }
  .nav { display: none; }
  .menu-btn { display: grid; }

  .hero { padding: 18px 22px 0; }
  .title { font-size: 32px; }
  .sub { font-size: 13px; max-width: 320px; }
  .eyebrow { font-size: 9px; }
  .eyebrow .div { width: 18px; margin: 0 10px; }

  .orb-wrap { width: 220px; height: 220px; margin-top: 18px; }
  .halo-1 { width: 220px; height: 220px; }
  .halo-2 { width: 170px; height: 170px; }
  .halo-ring, .halo-ring-2 { width: 150px; height: 150px; }
  .orb { width: 124px; height: 124px; }
  .mic { width: 32px; height: 32px; }

  .transcribe { margin: 14px 18px 0; padding: 18px 18px 20px; max-width: none; }
  .transcribe-text { font-size: 18px; }
  .transcribe-text .cursor { height: 18px; }

  .composer { padding: 0 18px; max-width: none; }

  .work {
    padding: 22px 18px;
    gap: 14px;
  }

  .cal-card { padding: 22px 20px 20px; }
  .card-head { margin-bottom: 16px; padding-bottom: 14px; flex-wrap: wrap; }
  .card-head .card-title { font-size: 22px; }
  .card-meta { text-align: left; font-size: 11px; }
  .month-name { font-size: 18px; }
  .month-name span { font-size: 13px; }

  .nav-btn { width: 28px; height: 28px; }
  .nav-btn svg { width: 12px; height: 12px; }

  .cal-grid { gap: 2px; }
  .cal-wd { padding: 6px 0; }
  .cal-day { font-size: 13px; }

  .slots-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .slot { padding: 9px 0; font-size: 12px; }

  .ai-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 12px;
  }

  .patient { padding: 22px 20px; position: static; }
  .patient.has-grid .field-list { display: block; }
  .patient .card-title { font-size: 20px; }
  .field { padding: 10px 0; }
  .field-value-input { font-size: 14px; }

  .btn { padding: 14px; font-size: 12px; letter-spacing: 0.06em; }
  .btn.ghost { width: 48px; padding: 14px 0; }

  .foot {
    padding: 6px 18px 22px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .foot .left { gap: 10px; }
}

/* ============================================================
   SENIOR-OPTIMIERUNG (s2)
   – große Schrift, hoher Kontrast, große Tap-Targets,
   – weniger Schmuck (kein Italic, weniger Letter-Spacing).
   Überschreibt gezielt die obigen Defaults; nichts wurde gelöscht,
   damit Vergleich zu /s1 möglich bleibt.
   ============================================================ */

html, body { font-size: 18px; line-height: 1.55; }

/* Topbar */
.top { padding: 24px 48px; }
.nav { gap: 22px; }
.nav a { font-size: 16px; font-weight: 500; color: var(--ink); }
.lang { padding: 12px 18px; font-size: 14px; }
.lang .dot { width: 7px; height: 7px; }
.brand img { height: 36px; }

/* Hero */
.hero { padding: 0 48px 56px; }
.eyebrow { font-size: 14px; color: var(--ink-2); letter-spacing: 0.18em; font-weight: 600; }
.eyebrow .div { width: 32px; margin: 0 16px; }
.title { font-size: 56px; line-height: 1.1; font-weight: 400; }
/* Klares Roman statt Italic für bessere Lesbarkeit */
.title em { font-style: normal; font-weight: 700; color: var(--accent-red); }
.sub { font-size: 20px; color: var(--ink); max-width: 620px; line-height: 1.5; margin-top: 18px; }

/* Orb — bleibt groß, bessere Affordance */
.orb-wrap { width: 360px; height: 360px; margin-top: 42px; }
.halo-1 { width: 360px; height: 360px; }
.halo-2 { width: 280px; height: 280px; }
.halo-ring, .halo-ring-2 { width: 240px; height: 240px; }
.orb { width: 200px; height: 200px; }
.mic { width: 56px; height: 56px; }

/* Live-Transkription */
.transcribe { padding: 28px 36px; max-width: 760px; }
.transcribe-label { font-size: 13px; letter-spacing: 0.20em; color: var(--ink-2); }
.transcribe-text { font-size: 28px; line-height: 1.4; }
.transcribe-text .cursor { height: 28px; }

/* Composer (Texteingabe) */
.composer { gap: 12px; max-width: 760px; }
.composer-input {
  padding: 18px 26px;
  font-size: 19px;
  border-radius: 999px;
  height: 60px;
}
.composer-send {
  width: 60px; height: 60px;
}
.composer-send svg { width: 22px; height: 22px; }

/* Card Eyebrow / Titles — höhere Kontraste */
.card-eyebrow {
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: 0.20em;
  margin-bottom: 8px;
}

/* Calendar — kompakt aber lesbar */
.cal-card { padding: 28px 30px; }
.card-head {
  margin-bottom: 18px;
  padding-bottom: 16px;
}
.card-head .card-title { font-size: 28px; }
.card-meta { font-size: 15px; color: var(--ink-2); }
.card-meta strong { font-size: 17px; }

.month-name { font-size: 24px; }
.month-name span { font-size: 18px; }
.monthnav { margin-bottom: 12px; }
.monthnav .navs { gap: 10px; }
.nav-btn { width: 48px; height: 48px; }
.nav-btn svg { width: 18px; height: 18px; }

.cal-grid { gap: 4px; margin-bottom: 18px; }
.cal-wd {
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: 0.10em;
  padding: 10px 0;
  font-weight: 600;
}
.cal-day {
  font-size: 18px;
  max-height: 56px;
  font-weight: 500;
  color: var(--ink);
}
.cal-day.muted { color: var(--ink-4); font-weight: 400; }
.cal-day.has-slot::after { width: 6px; height: 6px; bottom: 6px; }

/* Slot-Pillen — groß, lesbar */
.slots-head { padding-top: 16px; margin-bottom: 14px; }
.slots-head-left { font-size: 22px; }
.slots-head-left .when { font-size: 16px; margin-left: 12px; }
.slots-count { font-size: 14px; color: var(--ink-2); }
.slots-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
.slot {
  padding: 16px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.slot.taken { color: var(--ink-4); }
.slot.ai-suggest::before { width: 22px; height: 22px; font-size: 12px; top: -8px; right: -6px; }

/* AI-Strip — klare Sprache */
.ai-strip {
  padding: 14px 20px;
  font-size: 16px;
  margin-top: 18px;
  gap: 14px;
  line-height: 1.55;
  color: var(--ink);
}
.ai-badge { font-size: 12px; color: var(--ink-2); letter-spacing: 0.16em; }

/* Patient-Karte — große, deutliche Felder */
.patient { padding: 28px 30px 26px; }
.patient .card-title { font-size: 28px; }
.lock-state {
  font-size: 13px;
  letter-spacing: 0.10em;
  padding: 8px 14px;
}
.lock-state .dot { width: 7px; height: 7px; }
.field { padding: 16px 0; gap: 16px; }
.field-icon svg { width: 24px; height: 24px; }
.field-label {
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: 0.12em;
  margin-bottom: 6px;
  font-weight: 700;
}
.field-value-input {
  font-size: 21px;
  font-weight: 500;
  padding: 4px 0;
  min-height: 36px;
}
.field-value-input::placeholder { font-style: normal; font-size: 18px; }

/* Buttons — XXL, einfach erkennbar */
.confirm { gap: 12px; margin-top: 24px; }
.btn {
  padding: 20px 24px;
  font-size: 17px;
  letter-spacing: 0.06em;
  border-radius: 999px;
}
.btn.primary { box-shadow: 0 8px 22px rgba(20,20,20,0.20), inset 0 1px 0 rgba(255,255,255,0.10); }
.btn.ghost { width: 64px; padding: 20px 0; }
.btn.ghost svg { width: 20px; height: 20px; }

/* Footer */
.foot { font-size: 13px; letter-spacing: 0.06em; padding: 20px 48px 36px; }

/* ─── Tablet (≤1024 px) ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .top { padding: 22px 28px; }
  .nav { gap: 18px; }
  .nav a { font-size: 15px; }
  .hero { padding: 0 28px 36px; }
  .title { font-size: 44px; }
  .sub { font-size: 18px; }

  .orb-wrap { width: 300px; height: 300px; }
  .halo-1 { width: 300px; height: 300px; }
  .halo-2 { width: 230px; height: 230px; }
  .halo-ring, .halo-ring-2 { width: 200px; height: 200px; }
  .orb { width: 168px; height: 168px; }
  .mic { width: 48px; height: 48px; }

  .transcribe-text { font-size: 24px; }
  .transcribe-text .cursor { height: 24px; }

  .work { padding: 32px 28px; }
  .cal-card { padding: 24px 26px; }
  .card-head .card-title { font-size: 24px; }
  .month-name { font-size: 22px; }

  .slots-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .slot { font-size: 17px; padding: 14px 0; }

  .patient { padding: 24px 26px; }
  .patient .card-title { font-size: 24px; }
  .field-value-input { font-size: 19px; }
}

/* ─── Mobile (≤640 px) ──────────────────────────────────────── */
@media (max-width: 640px) {
  html, body { font-size: 17px; }
  .top { padding: 16px 18px 6px; }
  .brand img { height: 30px; }

  .hero { padding: 18px 18px 0; }
  .title { font-size: 32px; }
  .sub { font-size: 16px; }
  .eyebrow { font-size: 12px; }

  .orb-wrap { width: 240px; height: 240px; margin-top: 24px; }
  .halo-1 { width: 240px; height: 240px; }
  .halo-2 { width: 180px; height: 180px; }
  .halo-ring, .halo-ring-2 { width: 160px; height: 160px; }
  .orb { width: 138px; height: 138px; }
  .mic { width: 38px; height: 38px; }

  .transcribe { margin: 16px 16px 0; padding: 20px 20px 22px; }
  .transcribe-text { font-size: 20px; }
  .transcribe-text .cursor { height: 20px; }

  .composer { padding: 0 16px; }
  .composer-input { font-size: 17px; height: 56px; padding: 16px 22px; }
  .composer-send { width: 56px; height: 56px; }

  .work { padding: 22px 16px; gap: 16px; }
  .cal-card { padding: 22px 20px; }
  .card-head .card-title { font-size: 22px; }
  .card-head { flex-wrap: wrap; }
  .card-meta { text-align: left; font-size: 14px; }
  .month-name { font-size: 20px; }

  .nav-btn { width: 44px; height: 44px; }
  .nav-btn svg { width: 16px; height: 16px; }
  .cal-day { font-size: 17px; max-height: 50px; }

  .slots-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .slot { font-size: 16px; padding: 14px 0; }
  .slots-head-left { font-size: 19px; }

  .ai-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 15px;
  }

  .patient { padding: 22px 20px; }
  .patient .card-title { font-size: 22px; }
  .field { padding: 14px 0; }
  .field-value-input { font-size: 19px; }

  .btn { padding: 18px; font-size: 16px; }
  .btn.ghost { width: 60px; padding: 18px 0; }

  .foot { padding: 6px 18px 22px; font-size: 12px; }
}

/* ============================================================
   STACKED ELEVATION (1→3→6→12→24→48 doubling)
   – alle Boxen verwenden elevation-2 (Card / Surface)
   ============================================================ */
:root {
  --shadow-color: rgba(20, 24, 32, 0.10);
  --elev-0: 0 0 0 1px var(--shadow-color);
  --elev-1:
    0 0 0 1px var(--shadow-color),
    0 1px 1px -0.5px var(--shadow-color);
  --elev-2:
    0 0 0 1px var(--shadow-color),
    0 1px 1px -0.5px var(--shadow-color),
    0 3px 3px -1.5px var(--shadow-color);
  --elev-3:
    0 0 0 1px var(--shadow-color),
    0 1px 1px -0.5px var(--shadow-color),
    0 3px 3px -1.5px var(--shadow-color),
    0 6px 6px -3px var(--shadow-color);
  --elev-4:
    0 0 0 1px var(--shadow-color),
    0 1px 1px -0.5px var(--shadow-color),
    0 3px 3px -1.5px var(--shadow-color),
    0 6px 6px -3px var(--shadow-color),
    0 12px 12px -6px var(--shadow-color);
  --elev-5:
    0 0 0 1px var(--shadow-color),
    0 1px 1px -0.5px var(--shadow-color),
    0 3px 3px -1.5px var(--shadow-color),
    0 6px 6px -3px var(--shadow-color),
    0 12px 12px -6px var(--shadow-color),
    0 24px 24px -12px var(--shadow-color);
  --elev-6:
    0 0 0 1px var(--shadow-color),
    0 1px 1px -0.5px var(--shadow-color),
    0 3px 3px -1.5px var(--shadow-color),
    0 6px 6px -3px var(--shadow-color),
    0 12px 12px -6px var(--shadow-color),
    0 24px 24px -12px var(--shadow-color),
    0 48px 48px -24px var(--shadow-color);
}

/* Alle Boxen: ein einheitlicher Elevation-2 Schatten */
.card,
.cal-card,
.patient,
.transcribe,
.composer-input { box-shadow: var(--elev-2); border: none; }

.composer-input:focus { box-shadow: var(--elev-2), 0 0 0 4px var(--gold-soft); }

/* Toasts dürfen etwas mehr abheben (Modal-Charakter) */
.toast { box-shadow: var(--elev-3); }

/* ============================================================
   KALENDER: Mo–Fr (5 Spalten, kein Sa/So)
   ============================================================ */
.cal-grid { grid-template-columns: repeat(5, 1fr); }

/* ============================================================
   LAYOUT — pro Viewport feinjustiert
   ============================================================ */

/* Desktop ≥ 1280 px: zwei Spalten, sticky Patient-Card */
.work { grid-template-columns: 1fr 400px; gap: 32px; max-width: 1320px; padding: 0 48px 72px; }
.patient { position: sticky; top: 24px; }

/* Tablet quer / kleines Desktop (1025–1279 px): zwei Spalten enger */
@media (max-width: 1279px) and (min-width: 1025px) {
  .work { grid-template-columns: 1fr 360px; gap: 24px; padding: 0 36px 56px; }
}

/* Tablet (641–1024 px): eine Spalte, breite Karten */
@media (max-width: 1024px) and (min-width: 641px) {
  .work { grid-template-columns: 1fr; gap: 22px; padding: 28px 32px; max-width: 760px; margin: 0 auto; }
  .patient { position: static; }
  .patient.has-grid .field-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;
  }
  .slots-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .cal-day { font-size: 17px; max-height: 52px; }
  .cal-card { padding: 26px 28px; }
  .patient { padding: 26px 28px; }
}

/* Mobile (≤640 px): eine Spalte, schlanke Cal-Zellen, gestapelt */
@media (max-width: 640px) {
  .work {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 14px;
  }
  .patient.has-grid .field-list { display: block; }

  /* 5-Spalten-Kalender bleibt — Tageszellen müssen dafür kleiner sein */
  .cal-grid { gap: 3px; }
  .cal-day {
    font-size: 16px;
    max-height: 46px;
    min-height: 38px;
  }
  .cal-day.has-slot::after { width: 5px; height: 5px; bottom: 4px; }

  .cal-card { padding: 18px 16px; }
  .patient { padding: 20px 16px; }
  .card-head { padding-bottom: 12px; margin-bottom: 12px; }

  .slots-head { padding-top: 12px; margin-bottom: 10px; gap: 8px; }
  .slots-head-left { font-size: 18px; }
  .slots-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .slot { padding: 14px 0; font-size: 16px; }

  /* Hero kompakt */
  .hero { padding: 8px 14px 0; }
  .title { font-size: 28px; line-height: 1.15; }
  .sub { font-size: 16px; line-height: 1.45; }

  /* Orb mittig, ausreichend groß für Tap */
  .orb-wrap { width: 220px; height: 220px; margin-top: 18px; }
  .halo-1 { width: 220px; height: 220px; }
  .halo-2 { width: 170px; height: 170px; }
  .halo-ring, .halo-ring-2 { width: 150px; height: 150px; }
  .orb { width: 130px; height: 130px; }
  .mic { width: 36px; height: 36px; }

  /* Composer komplett breit unter Transkription */
  .composer { padding: 0 14px; gap: 8px; }
  .composer-input { height: 56px; font-size: 17px; padding: 16px 20px; }
  .composer-send { width: 56px; height: 56px; }

  /* Confirm-Button XXL, Edit-Ghost daneben */
  .confirm { gap: 10px; margin-top: 18px; }
  .btn { padding: 18px; font-size: 16px; min-height: 56px; }
  .btn.ghost { width: 56px; padding: 0; }

  /* Footer einzeilig oder gestapelt */
  .foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 16px 24px;
    font-size: 12px;
  }
  .foot .left { gap: 10px; flex-wrap: wrap; }

  /* Topbar — Logo + Menü, Nav versteckt */
  .top { padding: 14px 14px 4px; }
  .brand img { height: 28px; }
}

/* Sehr schmales Mobile (≤360 px): noch enger */
@media (max-width: 360px) {
  .cal-day { font-size: 15px; max-height: 40px; min-height: 34px; }
  .slots-grid { grid-template-columns: repeat(2, 1fr); }
  .title { font-size: 24px; }
}

/* ============================================================
   KALENDER-FEINSCHLIFF — perfekte Ausrichtung
   ============================================================ */
.cal-card { padding: 28px 32px; }

/* Grid: 5 quadratische Zellen, mittig zentriert pro Spalte */
.cal-grid {
  grid-template-columns: repeat(5, 1fr);
  justify-items: center;
  align-items: center;
  gap: 6px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 22px;
}

/* Wochentag-Header — gleiche Spaltenbreite wie die Cells */
.cal-wd {
  width: 100%;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ink-2);
  font-weight: 700;
  padding: 4px 0 10px;
}

/* Tageszelle — perfekt quadratisch, max 60 px breit, mittig */
.cal-day {
  width: 100%;
  max-width: 60px;
  aspect-ratio: 1;
  max-height: none;          /* override frühere Caps */
  min-height: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.cal-day:hover:not(.muted):not(:disabled) {
  background: var(--bg-2);
  color: var(--ink);
}
.cal-day.muted {
  color: var(--ink-4);
  font-weight: 400;
  cursor: default;
  background: transparent;
}
.cal-day.muted:hover { background: transparent; }

/* "Slot verfügbar"-Punkt: zuverlässig zentriert unter der Zahl */
.cal-day.has-slot::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 18%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-1);
}

/* Heutiges Datum */
.cal-day.today {
  font-weight: 700;
  color: var(--accent-red);
}
.cal-day.today::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1.5px dashed var(--gold-line);
  pointer-events: none;
}

/* AI-Vorschlag */
.cal-day.ai-suggest {
  background: var(--gold-soft);
  color: var(--ink);
  font-weight: 600;
  box-shadow: inset 0 0 0 1.5px var(--gold-line);
}
.cal-day.ai-suggest::after { background: var(--gold-2); }

/* Aktiv ausgewählt */
.cal-day.selected {
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  box-shadow: var(--elev-2);
}
.cal-day.selected::after { background: var(--paper); }
.cal-day.selected.today::before { border-color: rgba(255,255,255,0.5); }

/* Slot-Bereich */
.slots-head {
  padding-top: 18px;
  margin-bottom: 14px;
  align-items: baseline;
}
.slots-head-left { font-size: 21px; font-weight: 500; }
.slots-head-left .when {
  font-size: 14px;
  font-style: italic;
  color: var(--ink-2);
  margin-left: 12px;
}
.slots-count {
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: 0.04em;
}
.slots-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  align-items: stretch;
}
.slot {
  height: 56px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: var(--elev-2);
}
.slot:hover { box-shadow: var(--elev-2); }

/* Lock-Hinweis statt Slots, wenn Pflichtdaten fehlen */
.slot-lock {
  grid-column: 1 / -1;
  padding: 18px 22px;
  background: var(--gold-soft);
  border: 1px dashed var(--gold-line);
  border-radius: 14px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.slot-lock strong { font-weight: 700; }

/* Tablet — kleinere Cell-Cap */
@media (max-width: 1024px) and (min-width: 641px) {
  .cal-grid { max-width: 420px; gap: 5px; }
  .cal-day { max-width: 56px; font-size: 17px; }
  .slot { height: 54px; font-size: 17px; }
}

/* Mobile — Zellen schlanker, aber weiterhin quadratisch */
@media (max-width: 640px) {
  .cal-card { padding: 22px 18px; }
  .cal-grid { max-width: none; gap: 4px; margin-bottom: 14px; }
  .cal-wd { font-size: 11px; padding: 4px 0 8px; letter-spacing: 0.14em; }
  .cal-day { max-width: 48px; font-size: 17px; }
  .cal-day.has-slot::after { width: 4px; height: 4px; bottom: 18%; }
  .slots-head-left { font-size: 18px; }
  .slots-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .slot { height: 52px; font-size: 16px; }
  .slot-lock { padding: 14px 16px; font-size: 14px; }
}

@media (max-width: 360px) {
  .cal-day { max-width: 40px; font-size: 15px; }
  .slots-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   FINAL LAYOUT — alle Boxen gleiche Breite, gestapelt,
   Kontaktdaten oben, Kalender unten. Kalender-Cells fix-breite
   damit Wochentage und Datums-Zellen pixelgenau ausgerichtet sind.
   ============================================================ */

/* Hero (Titel ist entfernt) — etwas weniger Abstand oben */
.hero { padding-top: 8px; }
.hero .sub { margin-top: 6px; }

/* Alle Hauptboxen teilen sich dieselbe maximale Breite */
:root { --content-max: 760px; }

.transcribe,
.composer,
.work {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* Work-Section: gestapelt, gleicher Abstand zwischen den Karten */
.work {
  display: flex;
  flex-direction: column;
  grid-template-columns: none; /* override früheres 1fr 400px */
  gap: 22px;
  padding: 28px 24px 60px;
}

/* Patient- und Cal-Card füllen die Breite jeweils komplett */
.patient,
.cal-card {
  width: 100%;
  position: static;
  padding: 28px 32px;
  box-sizing: border-box;
}

/* Patient-Felder: nicht mehr im 2-Spalten-Grid (war Tablet-Mode) */
.patient.has-grid .field-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ────────── Kalender — fix-breite Zellen für perfekte Ausrichtung ──── */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(5, 56px);
  grid-auto-rows: 56px;
  gap: 8px;
  justify-content: center;
  align-items: center;
  max-width: none;            /* override "max-width:440px" */
  margin: 0 auto 22px;
}

/* Wochentag-Header: gleiche 56px Spalte → text-align center → pixelgenau */
.cal-wd {
  width: 56px;
  height: auto;
  padding: 0 0 6px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-2);
  font-weight: 700;
}

/* Tageszelle: ebenfalls 56×56, kreisförmig, mittig */
.cal-day {
  width: 56px;
  height: 56px;
  max-width: none;              /* alte Caps neutralisieren */
  max-height: none;
  min-height: 0;
  aspect-ratio: auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
}
.cal-day.has-slot::after {
  width: 5px; height: 5px;
  bottom: 9px;                  /* fix-position relativ zur 56px-Zelle */
}

/* Slot-Bestätigen-Block bleibt unten in der Cal-Card */
.cal-card .confirm { margin-top: 18px; }

/* ────────── Tablet ────────── */
@media (max-width: 1024px) {
  .work { padding: 22px 22px 56px; gap: 18px; }
  .patient, .cal-card { padding: 24px 24px; }
  .cal-grid {
    grid-template-columns: repeat(5, 52px);
    grid-auto-rows: 52px;
    gap: 7px;
  }
  .cal-wd { width: 52px; font-size: 12px; }
  .cal-day { width: 52px; height: 52px; font-size: 17px; }
  .cal-day.has-slot::after { bottom: 8px; }
}

/* ────────── Mobile ────────── */
@media (max-width: 640px) {
  .transcribe, .composer, .work { padding-left: 16px; padding-right: 16px; }
  .work { padding-top: 16px; padding-bottom: 36px; gap: 14px; }
  .patient, .cal-card { padding: 20px 18px; }
  .cal-grid {
    grid-template-columns: repeat(5, 44px);
    grid-auto-rows: 44px;
    gap: 6px;
  }
  .cal-wd { width: 44px; font-size: 11px; padding-bottom: 4px; }
  .cal-day { width: 44px; height: 44px; font-size: 15px; }
  .cal-day.has-slot::after { width: 4px; height: 4px; bottom: 6px; }
  .slots-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ────────── Sehr schmal ≤ 360 px ────────── */
@media (max-width: 360px) {
  .cal-grid {
    grid-template-columns: repeat(5, 40px);
    grid-auto-rows: 40px;
    gap: 4px;
  }
  .cal-wd { width: 40px; font-size: 10px; }
  .cal-day { width: 40px; height: 40px; font-size: 14px; }
}

/* ============================================================
   GLEICHE BOX-BREITE — Mobile, Tablet, PC
   Strategie:
   – Eine globale Variable --gutter steuert den Abstand zur Viewport-Kante.
   – .transcribe, .composer, .work nutzen alle dieselbe max-width und
     dieselbe Width-Formel: calc(100% - 2*gutter), zentriert via margin auto.
   – .hero hat kein L/R-Padding (der Inset wird in den Boxen selbst gemacht).
   – Cards (.patient, .cal-card) füllen .work zu 100% (work hat 0 L/R Padding),
     damit ihre Außen-Kanten exakt mit der Transkription übereinstimmen.
   ============================================================ */

:root { --gutter: 0px; }

@media (max-width: 800px) { :root { --gutter: 16px; } }
@media (max-width: 360px) { :root { --gutter: 12px; } }

/* Hero rein für vertikale Struktur — keine seitlichen Insets */
.hero { padding-left: 0; padding-right: 0; }

/* Drei Außen-Boxen — identische Breite an jedem Viewport */
.transcribe,
.composer,
.work {
  max-width: var(--content-max);
  width: calc(100% - 2 * var(--gutter));
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* Box-spezifisches vertikales Padding — KEIN L/R-Padding mehr auf den drei
   Außen-Boxen, sonst stimmt die Außen-Ausrichtung nicht überein. */
.transcribe { padding: 28px 36px; }
.composer   { padding: 0; }
.work       { padding: 28px 0 60px; }

/* Tablet — etwas weniger Innenraum bei Transkription, sonst unverändert */
@media (max-width: 1024px) {
  .transcribe { padding: 24px 28px; }
  .work       { padding: 24px 0 56px; }
}

/* Mobile — kompaktere Innenpadding-Werte; Außenmaße kommen von --gutter */
@media (max-width: 640px) {
  .transcribe { margin-top: 14px; padding: 20px 20px 22px; }
  .composer   { margin-top: 12px; padding: 0; }
  .work       { padding: 16px 0 36px; }
}

@media (max-width: 360px) {
  .transcribe { padding: 16px 14px 18px; }
}

/* ============================================================
   SCHRIFTARTEN — überall Sans-Serif, keine Kursive
   --serif wird auf --sans umgemappt → alle var(--serif)-Verwendungen
   im File werden automatisch Sans. Zusätzlich italics deaktiviert.
   ============================================================ */
:root { --serif: var(--sans); }

.title em,
.month-name span,
.slots-head-left .when,
.transcribe-text,
.field-value-input,
.field-value-input::placeholder {
  font-style: normal;
}

/* Slot-Header in Sans, gut lesbar */
.slots-head-left {
  font-family: var(--sans);
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}
@media (max-width: 640px) {
  .slots-head-left { font-size: 19px; }
}

/* Card-Title und Month-Name ebenfalls Sans (waren Cormorant) */
.card-title,
.month-name { font-family: var(--sans); font-weight: 600; letter-spacing: -0.005em; }

/* Transkription-Textgröße bleibt; Schrift wird Sans */
.transcribe-text { font-family: var(--sans); font-weight: 500; }

/* ============================================================
   KALENDER nutzt die Card-Breite voll aus
   – flüssige 1fr-Spalten statt fixer 56px
   – Zellen quadratisch, mittig in ihrer Spalte, mit max-width-Cap
   – Wochentag-Header sitzt 100% breit über der Spalte → exakte Ausrichtung
   ============================================================ */

.cal-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: auto;
  justify-content: stretch;
  gap: 14px;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 22px;
}

.cal-wd {
  width: 100%;
  height: auto;
  padding: 4px 0 10px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--ink-2);
  font-weight: 700;
}

.cal-day {
  width: 100%;
  height: auto;
  max-width: 88px;
  aspect-ratio: 1 / 1;
  justify-self: center;
  align-self: center;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
}

.cal-day.has-slot::after {
  bottom: 16%;
}

/* Tablet — Cells nicht zu groß werden lassen */
@media (max-width: 1024px) {
  .cal-grid { gap: 12px; }
  .cal-day { max-width: 76px; font-size: 18px; }
}

/* Mobile — Zellen volle Spaltenbreite, kompakte Größe */
@media (max-width: 640px) {
  .cal-grid { gap: 8px; margin-bottom: 16px; }
  .cal-day { max-width: 60px; font-size: 17px; }
  .cal-wd { font-size: 11px; padding: 4px 0 6px; }
}

@media (max-width: 360px) {
  .cal-grid { gap: 4px; }
  .cal-day { max-width: 48px; font-size: 15px; }
}

/* ============================================================
   KALENDER-TYPOGRAFIE — Datums (cal-day) und Uhrzeit (slot)
   stilistisch identisch: gleiche Schriftgröße, Gewicht und Tracking.
   Nur die Container-Form (Kreis vs. Pille) unterscheidet sie.
   ============================================================ */
.cal-day,
.slot {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

@media (max-width: 1024px) {
  .cal-day,
  .slot { font-size: 17px; }
}

@media (max-width: 640px) {
  .cal-day,
  .slot { font-size: 16px; }
}

@media (max-width: 360px) {
  .cal-day,
  .slot { font-size: 14px; }
}

/* "Heute" und "ausgewählt" dürfen ein bisschen kräftiger wirken — gleicher Größe */
.cal-day.today,
.cal-day.selected,
.slot.ai-suggest,
.slot.selected { font-weight: 600; }

/* ============================================================
   SENIOR-SCHRIFTGRÖSSEN — Kalender und Uhrzeitenauswahl
   Datum, Uhrzeit, Wochentage, Tagesüberschrift, AI-Strip
   deutlich größer; Zellen wachsen entsprechend mit.
   ============================================================ */

.cal-day,
.slot {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.cal-day { max-width: 96px; }

.cal-wd {
  font-size: 15px;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--ink-2);
  padding: 4px 0 12px;
}

.month-name { font-size: 28px; }
.month-name span { font-size: 20px; }

.slots-head-left { font-size: 24px; }
.slots-head-left .when { font-size: 17px; }
.slots-count { font-size: 15px; }

.slot {
  height: 64px;
  padding: 0;
}

.ai-strip { font-size: 17px; line-height: 1.5; }

@media (max-width: 1024px) {
  .cal-day,
  .slot { font-size: 20px; }
  .cal-day { max-width: 84px; }
  .cal-wd { font-size: 14px; }
  .month-name { font-size: 26px; }
  .month-name span { font-size: 19px; }
  .slots-head-left { font-size: 22px; }
  .slot { height: 60px; }
}

@media (max-width: 640px) {
  .cal-day,
  .slot { font-size: 18px; }
  .cal-day { max-width: 64px; }
  .cal-wd { font-size: 13px; padding: 4px 0 8px; }
  .month-name { font-size: 22px; }
  .month-name span { font-size: 17px; }
  .slots-head-left { font-size: 20px; }
  .slots-head-left .when { font-size: 15px; }
  .slots-count { font-size: 14px; }
  .slot { height: 58px; }
  .ai-strip { font-size: 16px; }
}

@media (max-width: 360px) {
  .cal-day,
  .slot { font-size: 16px; }
  .cal-day { max-width: 52px; }
  .cal-wd { font-size: 12px; }
}

/* ============================================================
   TOPBAR-MENÜ — Burger-Button immer sichtbar + Dropdown
   ============================================================ */

.top-right {
  position: relative;
  display: flex;
  align-items: center;
}

.menu-btn {
  display: grid !important;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--elev-2);
  transition: background 0.15s ease, transform 0.15s ease;
}
.menu-btn:hover { background: var(--bg-2); }
.menu-btn:active { transform: scale(0.96); }

.menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 260px;
  background: var(--paper);
  border-radius: 16px;
  box-shadow: var(--elev-4);
  padding: 8px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: menu-fade 0.15s ease;
}
.menu-dropdown[hidden] { display: none; }
@keyframes menu-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: none;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.15s ease;
  width: 100%;
}
.menu-item:hover { background: var(--bg-2); }
.menu-item:focus-visible {
  outline: 2px solid var(--gold-line);
  outline-offset: 2px;
}
.menu-item svg {
  flex-shrink: 0;
  color: var(--ink-2);
}

@media (max-width: 640px) {
  .menu-dropdown { min-width: 220px; }
  .menu-item { font-size: 15px; padding: 12px 14px; }
}

/* ============================================================
   Consent-Hinweis im Hero — kein Haken, automatische Zustimmung
   ============================================================ */
.hero-consent {
  max-width: var(--content-max);
  width: calc(100% - 2 * var(--gutter));
  margin: 14px auto 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-3);
}
.hero-consent a {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hero-consent a:hover { color: var(--ink); }

@media (max-width: 640px) {
  .hero-consent { font-size: 12px; margin-top: 12px; }
}

/* Bestätigter Termin — Strip und Button visuell als „erledigt" markieren */
.ai-strip.confirmed {
  background: var(--gold-3);
  border-left-color: var(--gold-2);
}
.ai-strip.confirmed .ai-badge { color: var(--gold-2); }
.btn.primary.booked {
  background: var(--gold-3);
  color: var(--ink);
  border-color: transparent;
  box-shadow: var(--elev-2);
  opacity: 1;
}
.btn.primary.booked::before { background: transparent; }

/* Eigener bereits gebuchter Termin im Slot-Grid — sichtbar als „Ihr Termin",
   nicht erneut klickbar, hebt sich klar von freien Slots ab. */
.slot.mine {
  background: var(--gold-3);
  color: var(--ink);
  border-color: var(--gold-line);
  box-shadow: var(--elev-2), inset 0 0 0 2px var(--gold-2);
  font-weight: 700;
  cursor: default;
  position: relative;
}
.slot.mine::after {
  content: "Ihr Termin";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-2);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.slot.mine:hover { background: var(--gold-3); border-color: var(--gold-line); }
.slots-grid { padding-top: 12px; }  /* Platz für die "Ihr Termin"-Pille oben */

/* Eigener gebuchter Tag — Kreis mit dünnem Goldrand, hebt sich von freien
   Tagen ab; bleibt klickbar (führt zur Slot-Ansicht des eigenen Termins). */
.cal-day.booked {
  box-shadow: inset 0 0 0 2px var(--gold-2);
}
.cal-day.booked.selected {
  box-shadow: inset 0 0 0 2px var(--gold-2), var(--elev-2);
}
.cal-day.booked::after { background: var(--gold-2) !important; }

/* ============================================================
   ORB-STAGE — Mikrofon prominent oben mittig, viel Atemraum.
   Edler Auftritt: ruhiges Whitespace-Polster, subtile Gold-Aura.
   ============================================================ */
.orb-stage {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 32px 24px 24px;
  position: relative;
}
.orb-stage::after {
  /* dezenter Goldhauch unter dem Orb, der sanft in den Inhalt überleitet */
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  width: 72%; max-width: 720px; height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
  opacity: 0.55;
}
.orb-stage .orb-wrap { margin: 0; }

/* ============================================================
   CONTENT-GRID — 1 / 2 / 3 Spalten je nach Viewport.
   ============================================================ */
.content-grid {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px 72px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}

/* Chat-Pane: Container für Transcribe + Composer + Consent. Hat keine
   eigene Card-Optik; die .transcribe-Box innen behält ihren Rahmen. */
.chat-pane {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chat-pane .transcribe { margin: 0; max-width: none; }
.chat-pane .composer   { margin: 0; max-width: none; }
.chat-pane .hero-consent { margin: 0; max-width: none; text-align: center; }

/* Mittel-Breite: zwei Spalten. Chat links breit, rechts Kontakt + Kalender
   vertikal gestapelt — die Karten ordnen sich automatisch via grid-row. */
@media (min-width: 900px) {
  .content-grid {
    max-width: 1200px;
    grid-template-columns: minmax(0, 1.25fr) 380px;
    gap: 28px;
    padding: 32px 32px 80px;
  }
  .content-grid > .chat-pane { grid-column: 1; grid-row: 1 / span 2; }
  .content-grid > .patient   { grid-column: 2; grid-row: 1; }
  .content-grid > .cal-card  { grid-column: 2; grid-row: 2; }
  .chat-pane .transcribe-log { max-height: 52vh; }
}

/* Wide: drei Spalten — Chat | Kontakt | Kalender. */
@media (min-width: 1500px) {
  .content-grid {
    max-width: 1600px;
    grid-template-columns: minmax(0, 1fr) 380px 480px;
    gap: 32px;
    padding: 36px 48px 84px;
  }
  .content-grid > .chat-pane { grid-column: 1; grid-row: 1; }
  .content-grid > .patient   { grid-column: 2; grid-row: 1; }
  .content-grid > .cal-card  { grid-column: 3; grid-row: 1; }
}
