/*
 * Booking pages meeting.chapuis.ai, brand Werkplan (03_references/brand/brand-guidelines.md).
 * Header, footer, type scale and buttons mirror the website (chapuis-advisory-website, termin.html),
 * so the booking feels like one more page of chapuis.ai. One brass spot per view: the booking button
 * in the details step. Selected day and time are ink, never brass. No blue, no gradients.
 */
@font-face {
  font-family: "Titelschrift";
  src: url("/schriften/IBMPlexSans_wdth_wght.woff2") format("woff2");
  font-weight: 100 700;
  font-display: swap;
}
@font-face {
  font-family: "Textschrift";
  src: url("/schriften/SourceSerif4_opsz_wght.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --grund: #f0ede5;
  --flaeche: #e4dfd4;
  --linie: #cac2b1;
  --tinte: #22252a;
  --leise: #59554d;
  --messing: #b8913a;
  --schrift-titel: "Titelschrift", "IBM Plex Sans", Arial, sans-serif;
  --schrift-text: "Textschrift", "Source Serif 4", Georgia, serif;
  --rand: clamp(1rem, 5vw, 6rem);
  --breite: 72rem;
  --bewegung: 120ms cubic-bezier(0.2, 0, 0, 1);
  --sanft: 420ms cubic-bezier(0.16, 1, 0.3, 1);
  --gr-klein: 15px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--grund); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--grund);
  color: var(--tinte);
  font-family: var(--schrift-text);
  font-size: 18px;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ol, ul, figure, fieldset, legend { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ol, ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--schrift-text); font-weight: 400; color: var(--tinte); text-wrap: balance; }
p { text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

a { color: var(--tinte); text-decoration: underline; text-decoration-color: var(--leise); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--messing); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--tinte); outline-offset: 3px; }

.nur-vorleser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.leise { color: var(--leise); }
.etikett { font-family: var(--schrift-titel); font-size: var(--gr-klein); color: var(--leise); }
.nw { white-space: nowrap; }

.sprunglink { position: absolute; left: var(--rand); top: -10rem; z-index: 20; background: var(--tinte); color: var(--grund); padding: 0.75rem 1rem; font-family: var(--schrift-titel); text-decoration: none; }
.sprunglink:focus { top: 0.75rem; }

.behaelter { width: 100%; max-width: calc(var(--breite) + 2 * var(--rand)); margin-inline: auto; padding-inline: var(--rand); }

/* ---------- header and footer: same measures as the website (stil-seite.css) ---------- */

.kopfleiste { border-bottom: 1px solid var(--linie); background: var(--grund); }
.kopfleiste-innen { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.375rem; }
.marke-link { display: block; text-decoration: none; padding-block: 0.5rem; }
.marke-link img { width: clamp(11.5rem, 15vw, 12.5rem); height: auto; }
/* language switch as on the EBF site (customer variant, Michel 9.11.2026): DE | EN, current one bold */
.sprachwahl { display: inline-flex; align-items: center; font-family: var(--schrift-titel); font-size: 15px; letter-spacing: 0.08em; }
.sprachwahl-andere, .sprachwahl-aktiv { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; min-width: 2.4rem; padding-inline: 0.45rem; text-decoration: none; }
.sprachwahl-andere { color: var(--leise); }
.sprachwahl-andere:hover { color: var(--tinte); text-decoration: underline; text-decoration-color: var(--messing); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.sprachwahl-aktiv { color: var(--tinte); font-weight: 600; }
.sprachwahl-strich { flex: none; width: 1px; height: 0.9em; background: var(--linie); }

.fuss { margin-top: auto; border-top: 1px solid var(--linie); }
.fuss-innen p { text-wrap: balance; }
.fuss-innen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 2rem; padding-block: 1.75rem 2.25rem; font-family: var(--schrift-titel); font-size: var(--gr-klein); color: var(--leise); }
.fuss ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.fuss a { color: var(--leise); }

/* ---------- buttons ---------- */

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.75rem 1.6rem; border: 2px solid transparent; border-radius: 4px;
  background: var(--messing); color: var(--tinte); text-decoration: none; cursor: pointer;
  font-family: var(--schrift-titel); font-weight: 600; font-size: 16px; line-height: 1.2;
  transition: background-color var(--bewegung), color var(--bewegung), border-color var(--bewegung);
}
.knopf:hover, .knopf:active { background: var(--tinte); color: var(--grund); }
.knopf[aria-busy="true"] { cursor: wait; }
.knopf[aria-busy="true"]::after {
  content: ""; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; animation: drehen 700ms linear infinite;
}

.verweis {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 40px;
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--schrift-titel); font-size: var(--gr-klein); color: var(--tinte);
  text-decoration: underline; text-decoration-color: var(--leise); text-underline-offset: 0.2em;
}
.verweis:hover { text-decoration-color: var(--messing); text-decoration-thickness: 2px; }
.verweis svg { width: 14px; height: 14px; }

/* ---------- booking page: who and what left, the sheet right ---------- */

.buchung {
  display: grid;
  gap: clamp(2.25rem, 4.5vw, 5rem);
  padding-block: clamp(2rem, 5.5vw, 4.75rem) clamp(3rem, 7vw, 5.5rem);
  align-items: start;
}
@media (min-width: 62em) { .buchung { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr); } }
.buchung > *, .wahl > * { min-width: 0; }

.angaben { display: flex; flex-direction: column; }
@media (min-width: 62em) { .angaben { position: sticky; top: 2rem; padding-top: 0.25rem; } }

.person { display: flex; align-items: center; gap: 1rem; }
.person img { width: 64px; height: 73px; object-fit: cover; border-radius: 4px; background: var(--flaeche); }
.person figcaption { display: flex; flex-direction: column; gap: 0.1rem; font-family: var(--schrift-titel); font-size: var(--gr-klein); line-height: 1.4; color: var(--leise); }
.person strong { font-weight: 500; font-size: 16px; color: var(--tinte); }

.angaben h1 { margin-top: clamp(1.75rem, 3vw, 2.5rem); font-size: clamp(2.3rem, 4vw, 3.4rem); line-height: 1.06; letter-spacing: -0.015em; }
.lead { margin-top: 1.1rem; max-width: 27em; font-size: 19px; line-height: 1.55; color: var(--leise); }

/* key facts as hairline rows, like the career table on the website */
.fakten { margin: clamp(1.75rem, 3vw, 2.25rem) 0 0; border-top: 1px solid var(--linie); }
.fakten div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding-block: 0.8rem; border-bottom: 1px solid var(--linie); }
.fakten dt { font-family: var(--schrift-titel); font-size: var(--gr-klein); color: var(--leise); padding-top: 0.15rem; }
.fakten dd { margin: 0; font-size: 17px; line-height: 1.45; }

.kontakt { margin-top: 1.5rem; font-family: var(--schrift-titel); font-size: var(--gr-klein); color: var(--leise); }
.kontakt a { color: var(--tinte); }

.blatt {
  border: 1px solid var(--linie);
  border-radius: 8px;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  min-height: 31rem;
}
.blatt h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.2; }
.blatt-titel { margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem); }
.blatt-fuss { margin-top: 1.75rem; padding-top: 1.1rem; border-top: 1px solid var(--linie); font-family: var(--schrift-titel); font-size: 14px; color: var(--leise); }
.blatt-fuss label { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.blatt-fuss select { max-width: min(23rem, 100%); padding: 0.35rem 0.5rem; border: 1px solid var(--leise); border-radius: 4px; background: var(--grund); font-family: var(--schrift-titel); font-size: 14px; }

/* 404 */
.leer { padding-block: clamp(3rem, 8vw, 6.5rem); }
.leer h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); line-height: 1.06; letter-spacing: -0.015em; }
.leer .lead { margin-top: 1.25rem; }

/* duration: segmented control */
.dauer { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-bottom: 1.75rem; }
.dauer legend { float: left; font-family: var(--schrift-titel); font-size: var(--gr-klein); color: var(--leise); margin-right: 0.25rem; }
.segmente { display: inline-flex; padding: 3px; border-radius: 8px; background: var(--flaeche); }
.segmente button {
  min-width: 4.5rem; min-height: 40px; padding: 0 0.9rem; border: 0; border-radius: 6px; background: transparent; cursor: pointer;
  font-family: var(--schrift-titel); font-size: 15px; color: var(--leise);
  transition: background-color var(--bewegung), color var(--bewegung);
}
.segmente button:hover { color: var(--tinte); }
.segmente button[aria-pressed="true"] { background: var(--grund); color: var(--tinte); font-weight: 500; box-shadow: inset 0 0 0 2px var(--tinte); }

/* calendar and times side by side */
.wahl { display: grid; gap: 2rem; }
@media (min-width: 48em) { .wahl { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2.5rem; } }

.monat-kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.monat-kopf h3 { font-family: var(--schrift-titel); font-size: 16px; font-weight: 500; text-transform: none; }
.monat-navi { display: flex; gap: 0.25rem; }
.monat-navi button {
  width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--linie); border-radius: 4px;
  background: var(--grund); color: var(--tinte); cursor: pointer; transition: border-color var(--bewegung), background-color var(--bewegung);
}
.monat-navi button:hover:not([disabled]) { border-color: var(--tinte); }
.monat-navi button[disabled] { cursor: default; color: var(--leise); border-color: var(--linie); }
.monat-navi svg { width: 16px; height: 16px; }

.wochentage, .tage { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.wochentage { margin-bottom: 6px; }
.wochentage span { text-align: center; font-family: var(--schrift-titel); font-size: 13px; color: var(--leise); padding-block: 0.25rem; }
.tag {
  position: relative; aspect-ratio: 1; display: grid; place-items: center; border-radius: 6px;
  font-family: var(--schrift-titel); font-size: 15px; font-weight: 400; font-variant-numeric: tabular-nums; color: var(--leise);
}
button.tag {
  border: 0; cursor: pointer; background: var(--flaeche); color: var(--tinte); font-weight: 500;
  transition: background-color var(--bewegung), color var(--bewegung), box-shadow var(--bewegung);
}
button.tag:hover { box-shadow: inset 0 0 0 1.5px var(--tinte); }
button.tag[aria-pressed="true"] { background: var(--tinte); color: var(--grund); box-shadow: none; }
.tag.heute::after { content: ""; position: absolute; bottom: 18%; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.tage.laedt { opacity: 0.45; transition: opacity var(--bewegung); }

.zeiten h3 { font-family: var(--schrift-titel); font-size: 16px; font-weight: 500; margin-bottom: 1rem; min-height: 1.6em; }
/* Exactly seven rows visible, so no button is cut in half. */
.zeiten-liste { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; max-height: calc(7 * 46px + 6 * 8px + 4px); overflow-y: auto; padding: 2px; scrollbar-width: thin; }
@media (max-width: 47.99em) { .zeiten-liste { grid-template-columns: repeat(3, 1fr); max-height: none; } }
.zeit {
  min-height: 46px; border: 1px solid var(--leise); border-radius: 4px; background: var(--grund); cursor: pointer;
  font-family: var(--schrift-titel); font-size: 16px; font-variant-numeric: tabular-nums; color: var(--tinte);
  transition: background-color var(--bewegung), color var(--bewegung), border-color var(--bewegung);
}
.zeit:hover { background: var(--tinte); color: var(--grund); border-color: var(--tinte); }
.zeiten-leer { color: var(--leise); font-size: 16px; }

/* details step */
.zurueck { margin-bottom: 1.5rem; }
.zusammenfassung {
  display: grid; gap: 0.2rem; margin: 1.25rem 0 2rem; padding: 1.1rem 1.25rem; border-radius: 8px; background: var(--flaeche);
  font-family: var(--schrift-titel); font-size: 16px;
}
.zusammenfassung strong { font-weight: 500; font-size: 17px; }
.zusammenfassung span { color: var(--leise); }

.formular { display: grid; gap: 1.1rem; }
.formular .zwei { display: grid; gap: 1.1rem; }
@media (min-width: 40em) { .formular .zwei { grid-template-columns: 1fr 1fr; align-items: start; } }
.feld { display: grid; gap: 0.4rem; }
.feld label { font-family: var(--schrift-titel); font-size: 15px; color: var(--tinte); }
.feld label .leise { font-size: 14px; }
.feld input, .feld textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.85rem; border: 1px solid var(--leise); border-radius: 4px; background: var(--grund);
  font-family: var(--schrift-text); font-size: 17px; line-height: 1.4; transition: box-shadow var(--bewegung), border-color var(--bewegung);
}
.feld textarea { min-height: 6.5rem; resize: vertical; }
.feld input:focus, .feld textarea:focus { outline: none; border-color: var(--tinte); box-shadow: 0 0 0 1px var(--tinte); }
.feld input[aria-invalid="true"] { border: 2px solid var(--tinte); }
.feld .fehler { font-family: var(--schrift-titel); font-size: 14px; color: var(--tinte); }
.honig { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.absenden { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 0.5rem; }
.absenden p { font-size: 15px; color: var(--leise); max-width: 26em; }

.meldung { margin-top: 1.25rem; padding: 0.9rem 1.1rem; border: 2px solid var(--tinte); border-radius: 8px; font-size: 16px; }
.meldung:empty { display: none; }

/* done */
.fertig { display: grid; gap: 1rem; justify-items: start; padding-block: 1rem; }
.haken {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--flaeche);
}
.haken::before { content: ""; width: 20px; height: 11px; margin-top: -5px; border-left: 2.5px solid var(--tinte); border-bottom: 2.5px solid var(--tinte); transform: rotate(-45deg); }
.fertig h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); }
.fertig .zusammenfassung { margin: 0.5rem 0; justify-self: stretch; }
.fertig p { color: var(--leise); max-width: 32em; }

.warten { display: flex; align-items: center; gap: 0.75rem; color: var(--leise); font-family: var(--schrift-titel); font-size: 15px; }
.warten::before { content: ""; width: 18px; height: 18px; border: 2px solid var(--tinte); border-right-color: transparent; border-radius: 50%; animation: drehen 800ms linear infinite; }

@keyframes drehen { to { transform: rotate(360deg); } }
@keyframes einblenden { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .ansicht { animation: einblenden var(--sanft) both; }
  .angaben > * { animation: einblenden var(--sanft) both; }
  .angaben > *:nth-child(2) { animation-delay: 40ms; }
  .angaben > *:nth-child(3) { animation-delay: 80ms; }
  .angaben > *:nth-child(n + 4) { animation-delay: 120ms; }
}

@media (max-width: 47.99em) {
  body { font-size: 17px; }
  .kopfleiste-innen { min-height: 4rem; }
  .blatt { min-height: 0; border-radius: 8px; }
  .lead { font-size: 18px; }
  .fakten div { grid-template-columns: 5.5rem minmax(0, 1fr); }
}
.fertig .freude { color: var(--tinte); font-size: 19px; }
h2[tabindex="-1"]:focus { outline: none; }
/* line breaks checked at 320 to 1440 px (9.11.2026): balanced lines, no lone last word */
.lead, .absenden p, .fertig p { text-wrap: balance; }
.kontakt a { display: block; width: fit-content; margin-top: 0.15rem; }
.zusammenfassung span, .zusammenfassung strong { text-wrap: balance; }
.lead > span { display: block; text-wrap: balance; }
