/* TCM Chan Seefeld – an www.tcm-chan.ch angelehnt: grosse Farbflächen wie auf der
   Startseite (links Oliv mit weisser/gelber Schrift, rechts Gelb mit schwarzer Schrift),
   Corbel, leichte grosse Titel, dünne Linien, eckige Knöpfe, 1240 px breit.
   Farben siehe docs/ci.md (kein Orange). Handy zuerst, ab 1000 px zweispaltig. */
:root {
  --olive: #696421;
  --olive-dark: #4f4b18;
  --olive-tint: #f3f2e6;
  --yellow: #e0c800;
  --surface: #e4e3df;
  --grey: #5f645f; /* abgedunkeltes #969c98, damit Text auf Weiss lesbar bleibt */
  --on-yellow-muted: #3b3a1c; /* Nebentext auf Gelb (genug Kontrast) */
  --rule: #3a3a2a;
  --text: #000;
  --error: #8c1d12;
  --gutter: 20px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  /* Corbel wie die Website (auf Windows vorhanden), sonst Systemschrift. */
  font: 17px/1.6 Corbel, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

a { color: var(--olive); }
a:hover { color: var(--olive-dark); }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Testbetrieb: schmaler dunkler Streifen ganz oben */
.demo {
  margin: 0; padding: 8px var(--gutter); text-align: center;
  background: #222; color: #fff; font-size: 14px; font-weight: 600;
}

/* Kopf: Logo links, Sprache rechts */
.top-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.logo { width: 220px; height: auto; margin-top: 4px; }
.lang { display: flex; gap: 14px; font-size: 18px; }
.lang a { color: var(--grey); text-decoration: none; padding: 2px 0; border-bottom: 2px solid transparent; }
.lang a:hover { color: var(--text); }
.lang a[aria-current] { color: var(--olive); border-bottom-color: var(--olive); }

/* Farbflächen */
.layout { max-width: 1240px; margin: 0 auto; }
.panel { padding: 28px var(--gutter) 32px; }
.olive { background: var(--olive); color: #fff; }
.olive a { color: #fff; }
.olive a:hover { color: var(--yellow); }
.yellow { background: var(--yellow); color: #000; }
.yellow a, .yellow .link { color: #000; }
.yellow a:hover, .yellow .link:hover { color: var(--olive-dark); }

/* Titelblock (oliv) */
.kicker { margin: 0 0 6px; font-size: 15px; }
h1 { font-size: 32px; line-height: 1.2; margin: 0 0 14px; font-weight: 400; }
.intro { margin: 0 0 12px; color: var(--yellow); font-size: 18px; }
/* Hinweis „nicht alles online, weitere Termine telefonisch“: gelber Kasten auf Oliv,
   weisser Kasten auf Gelb, Nummer gross und direkt anrufbar */
.callout { background: var(--yellow); color: #000; padding: 16px 20px 18px; margin-top: 18px; }
.callout p { margin: 0 0 4px; }
.callout-title { font-weight: 700; font-size: 19px; line-height: 1.35; }
.call {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 6px;
  color: #000; text-decoration: none; font-size: 26px; font-weight: 700; line-height: 1.2; white-space: nowrap;
}
.call svg { flex: none; }
.call:hover span { text-decoration: underline; }
.olive .callout a, .olive .callout a:hover { color: #000; }
.yellow .no-fit { background: #fff; margin-top: 22px; }
.yellow .no-fit .call { color: var(--olive); }

/* Buchung (gelb) */
.booking { min-width: 0; }
/* Trennlinie nur zwischen zwei sichtbaren Schritten (Frage über Datum/Zeit) */
#step-type:not([hidden]) + #step-slot { border-top: 1px solid var(--rule); padding-top: 18px; margin-top: 24px; }
h2 { font-size: 22px; line-height: 1.3; margin: 0 0 14px; display: flex; align-items: center; gap: 12px; font-weight: 600; }
.num {
  flex: none; display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--olive); color: #fff; font-size: 16px; font-weight: 400;
}

/* Frage Neu-/Bestandspatient: weisse Karten auf Gelb */
.choices { display: grid; gap: 10px; }
.choice {
  display: block; width: 100%; text-align: left;
  padding: 14px 18px; border: 2px solid #fff; border-radius: 0;
  background: #fff; color: inherit; font: inherit; cursor: pointer;
}
.choice:hover { border-color: var(--olive); }
.choice[aria-pressed="true"] { border-color: var(--olive); background: var(--olive); color: #fff; }
.choice[aria-pressed="true"] .choice-hint { color: #fff; }
.choice-label { display: block; font-weight: 600; }
.choice-hint { display: block; color: var(--grey); font-size: 15px; }

/* Plätze */
.day { padding: 12px 0 14px; border-bottom: 1px solid rgba(0, 0, 0, 0.25); }
.day:first-child { padding-top: 0; }
.day h3 { font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.time {
  padding: 9px 0; border: 1.5px solid var(--olive); border-radius: 0;
  background: #fff; color: var(--olive); font: inherit; font-weight: 600; cursor: pointer;
}
.time:hover, .time[aria-pressed="true"] { background: var(--olive); color: #fff; }

.link {
  background: none; border: 0; padding: 0; font: inherit; color: var(--olive);
  text-decoration: underline; cursor: pointer;
}
.more { margin-top: 12px; }

/* Angaben */
.chosen {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  background: #fff; border-left: 4px solid var(--olive);
  padding: 12px 16px; margin-bottom: 18px;
}
.chosen-label { font-size: 14px; color: var(--grey); }
.chosen .link { color: var(--olive); }

label { display: block; font-weight: 600; font-size: 16px; margin: 16px 0 4px; }
input, select {
  width: 100%; padding: 11px 12px; font: inherit; font-size: 17px;
  border: 1px solid #fff; border-radius: 0; background: #fff; color: inherit;
}
input:focus, select:focus, button:focus-visible { outline: 3px solid var(--olive); outline-offset: 1px; }
input[aria-invalid="true"] { border: 2px solid var(--error); }
.row { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .row { grid-template-columns: 1fr 1fr; } }

.contact-hint { margin: 22px 0 0; font-size: 15px; }
.hint { margin: 4px 0 0; font-size: 14px; color: var(--on-yellow-muted); }
.field-error, .error { color: var(--error); font-size: 15px; font-weight: 600; margin: 6px 0 0; }
.error { margin: 12px 0; }
.small { font-size: 15px; margin: 16px 0 0; }
.muted { color: var(--on-yellow-muted); }
.notice { background: #fff; padding: 12px 16px; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

#turnstile { margin: 18px 0 4px; }

/* Knopf wie auf der Website: oliv gefüllt, eckig */
.primary {
  display: block; width: 100%; margin-top: 14px; padding: 14px 28px;
  background: var(--olive); color: #fff; border: 0; border-radius: 0;
  font: inherit; font-size: 18px; cursor: pointer;
}
.primary:hover { background: var(--olive-dark); }
.primary:disabled { opacity: 0.6; cursor: wait; }

/* Fertig */
.done-title { display: block; font-size: 28px; font-weight: 400; }
.done-close { margin-top: 20px; font-weight: 600; }
.done-when { font-weight: 600; background: #fff; padding: 12px 16px; border-left: 4px solid var(--olive); }

/* Gut zu wissen (oliv) */
.info { font-size: 16px; }
.info h2 { display: block; font-size: 26px; font-weight: 400; margin: 0 0 4px; }
.info h3 { font-size: 19px; font-weight: 700; color: var(--yellow); margin: 22px 0 4px; }
.info p, .info ul { margin: 4px 0; }
.info ul { padding-left: 20px; }

/* Karte: Vorschaubild, auf Klick Google Maps */
.map { margin: 12px 0 8px; }
.map-load { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.map-load img, .map-frame { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }
.map-cta {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); white-space: nowrap;
  background: var(--olive); color: #fff; padding: 8px 14px; font-size: 15px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.map-load:hover .map-cta { background: var(--olive-dark); }
.map figcaption { font-size: 13px; margin-top: 6px; opacity: 0.85; }

footer { font-size: 15px; color: #222; }
.footer-inner { display: grid; gap: 12px; padding-top: 24px; padding-bottom: 40px; }

/* Desktop: zwei Farbspalten nebeneinander wie auf der Startseite der Website */
@media (min-width: 1000px) {
  :root { --gutter: 40px; }
  .top-inner { padding-top: 28px; padding-bottom: 28px; }
  .logo { width: 420px; }
  .layout {
    display: grid; padding: 0 var(--gutter);
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas: "intro booking" "info booking";
  }
  .panel { padding: 36px 40px 40px; }
  .intro-panel { grid-area: intro; padding-bottom: 8px; }
  .info { grid-area: info; padding-top: 28px; }
  .info h2 { border-top: 1px solid rgba(255, 255, 255, 0.5); padding-top: 24px; }
  .booking { grid-area: booking; }
  h1 { font-size: 40px; }
  .choices { grid-template-columns: 1fr 1fr; }
  .primary { width: auto; }
  /* gleiche Spalten wie die Farbflächen, damit die Texte darunter fluchten */
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 0; padding: 24px var(--gutter) 40px; }
  .footer-inner > div { padding: 0 40px; }
}

[hidden] { display: none !important; }
