/* Terminbuchung – Maxhaust-Look (Tokens aus MaxhaustTheme scss/mx/_style.scss), selbst gehostete Schriften */

@font-face { font-family: 'Antonio'; src: url('fonts/antonio-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Antonio'; src: url('fonts/antonio-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face {
  font-family: 'Inter'; src: url('fonts/Inter-Variable-Roman-Latin.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0a0c10; --ink-2: #11141a; --paper: #f5f7fa; --paper-2: #ebeef4; --surface: #ffffff;
  --text: #14181f; --muted: #59626f; --line: #dde2ea; --line-strong: #c3cad6;
  --blue: #2e5bff; --blue-bright: #4d8dff; --blue-soft: #edf2ff; --cta: #005291; --cta-deep: #003e6e;
  --red: #c20017; --ok: #1f8a4c;
  --r-s: 12px; --r-m: 18px; --r-l: 26px;
  --f-display: 'Antonio', 'Arial Narrow', sans-serif;
  --f-text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --shadow-card: 0 10px 30px -16px rgba(16, 24, 40, .18);
  --shadow-soft: 0 18px 50px -22px rgba(16, 24, 40, .28);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--f-text); font-size: 1rem; line-height: 1.6; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: var(--cta); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.sprite { display: none; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--blue); color: #fff; padding: .7rem 1.2rem; border-radius: var(--r-s); text-decoration: none; font-weight: 600; transition: top .2s; }
.skip:focus { top: 1rem; }

/* Kopf + Hero */
.top { background: var(--ink); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; }
.brand img { height: 22px; width: auto; display: block; }
.top-phone { display: inline-flex; align-items: center; gap: 8px; color: #cfd5de; text-decoration: none; font-size: .95rem; font-weight: 500; }
.top-phone:hover { color: #fff; }

.hero { color: #f3f5f8; padding: clamp(34px, 6vw, 64px) 0 clamp(36px, 6vw, 60px);
  background: radial-gradient(900px 380px at 88% -8%, rgba(46, 91, 255, .38), transparent 62%), radial-gradient(700px 300px at -10% 120%, rgba(0, 82, 145, .35), transparent 60%), var(--ink); }
.kicker { display: inline-flex; align-items: center; gap: .7rem; margin: 0; font-size: .8rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: #a5adba; }
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--blue-bright); }
.hero-title { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: clamp(2.7rem, 9vw, 5.4rem); line-height: .98; letter-spacing: .015em; margin: .28em 0 .22em; }
.hero-lead { max-width: 62ch; margin: 0; color: #c3cad5; font-size: 1.06rem; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r-m); background: rgba(255, 255, 255, .04); font-size: .97rem; line-height: 1.4; }
.facts .ic { width: 24px; height: 24px; color: var(--blue-bright); margin-top: 1px; }
.facts small { color: #a5adba; font-size: .85rem; }
.info { margin-top: 18px; }
.info summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; color: #dfe5ee; font-weight: 600; padding: 6px 0; }
.info summary::-webkit-details-marker { display: none; }
.info summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.info[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.info-body { margin-top: 8px; max-width: 75ch; color: #c3cad5; font-size: .97rem; }
.info-body p { margin: 0 0 .8em; }
.info-body ul { margin: 0 0 .8em; padding-left: 1.2em; }

/* Buchung */
.book { padding: clamp(24px, 4vw, 40px) 0 64px; outline: none; }
.book-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.flow { display: grid; gap: 20px; min-width: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-card); padding: clamp(18px, 3vw, 30px); }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.step-no { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; flex: none; }
.step-head h2, .success h2 { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-size: clamp(1.45rem, 3vw, 1.8rem); line-height: 1.1; margin: 0; }

.date-pick { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.cal-title { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: 1.3rem; margin: 0; text-align: center; }
.cal-nav { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--text); display: grid; place-items: center; cursor: pointer; }
.cal-nav:hover:not(:disabled) { border-color: var(--text); }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-week, .cal-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-week span { text-align: center; font-size: .72rem; font-weight: 600; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; padding: 4px 0; }
.day { aspect-ratio: 1 / 1; min-height: 40px; border-radius: var(--r-s); border: 1.5px solid transparent; background: transparent; font: inherit; font-size: .98rem; font-weight: 500; color: #a2aab6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 0; cursor: default; }
.day.is-free { background: var(--paper); border-color: var(--line); color: var(--text); font-weight: 650; cursor: pointer; }
.day.is-free::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.day.is-free:hover { border-color: var(--blue); }
.day.is-today { text-decoration: underline; text-underline-offset: 3px; }
.day[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.day[aria-pressed="true"]::after { background: #fff; }
.day.is-blank { visibility: hidden; }
.cal-legend { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); margin: 12px 0 0; }
.cal-legend .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

.slots-title { font-size: 1.02rem; font-weight: 650; margin: 8px 0 12px; }
.slots { display: grid; gap: 10px; }
.slot { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; color: var(--text); font: inherit; font-size: 1.08rem; font-weight: 650; text-align: left; cursor: pointer; }
.slot small { font-size: .84rem; font-weight: 500; color: var(--muted); }
.slot:hover { border-color: var(--blue); }
.slot[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.slot[aria-pressed="true"] small { color: var(--blue); font-weight: 650; }
.slots-empty { color: var(--muted); font-size: .95rem; margin: 0; }
.link-btn { background: none; border: 0; padding: 0; margin-top: 14px; color: var(--cta); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.notice { padding: 12px 14px; border-radius: var(--r-s); background: #fff4f5; border: 1px solid #f1c2c8; color: #8f0012; margin: 0 0 16px; font-size: .95rem; }
.notice.is-info { background: var(--blue-soft); border-color: #c9d6ff; color: #1b2f8a; }

/* Formular */
fieldset { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
legend { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .07em; font-size: 1.08rem; color: var(--ink); margin: 0 0 12px; padding: 0; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.field { min-width: 0; }
.field + .field, .row2 + .field, .field + .row2 { margin-top: 14px; }
.row2 > .field + .field { margin-top: 0; } /* im Grid regelt gap den Abstand */
.field > label, .field > .label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.req { color: var(--red); }
.opt { color: var(--muted); font-weight: 500; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { width: 100%; height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--r-s); background: #fff; color: var(--text); font: inherit; font-size: 1rem; }
select { padding-right: 34px; appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, #59626f 50%), linear-gradient(135deg, #59626f 50%, transparent 50%); background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #9aa3af; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(46, 91, 255, .18); }
[aria-invalid="true"] { border-color: var(--red); }
.err { color: var(--red); font-size: .84rem; margin: 6px 0 0; }
.err:empty { display: none; }
.pair { display: flex; gap: 10px; }
.pair > select, .pair > input { flex: 1 1 0; min-width: 0; }
.seg { display: inline-flex; flex: none; border: 1.5px solid var(--line); border-radius: var(--r-s); overflow: hidden; }
.seg label { margin: 0; display: block; position: relative; }
.seg input, .pill input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.seg span { display: grid; place-items: center; height: 45px; padding: 0 15px; font-weight: 650; cursor: pointer; color: var(--muted); }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span, .pill input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: -3px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { position: relative; }
.pill span { display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: .95rem; cursor: pointer; user-select: none; }
.pill span:hover { border-color: var(--text); }
.pill .ic { width: 16px; height: 16px; stroke-width: 2.6; display: none; }
.pill input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill input:checked + span .ic { display: inline-block; }
.check, .field > label.check { display: flex; gap: 12px; align-items: flex-start; margin: 0; font-size: .95rem; font-weight: 400; line-height: 1.5; cursor: pointer; }
.check input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--cta); }
.consent { margin: 4px 0 18px; padding: 14px 16px; border-radius: var(--r-s); background: var(--paper); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.chosen { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin: 0 0 22px; padding: 12px 14px; border-radius: 14px; background: var(--blue-soft); color: #13245f; font-weight: 650; }
.chosen .ic { color: var(--blue); }
.chosen .link-btn { margin: 0 0 0 auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: .85rem 1.6rem; border-radius: 999px; border: 1.5px solid transparent; font: inherit; font-weight: 650; font-size: 1.05rem; line-height: 1.25; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s; }
.btn-cta { background: var(--cta); color: #fff; }
.btn-cta:hover { background: var(--cta-deep); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #9d0013; }
.btn[disabled] { opacity: .7; cursor: progress; }
#submit { width: 100%; min-height: 56px; font-size: 1.1rem; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fine { font-size: .85rem; color: var(--muted); margin: 12px 0 0; }

/* Erfolg */
.success { text-align: center; outline: none; }
.success-icon { width: 68px; height: 68px; border-radius: 50%; background: #e5f4eb; color: var(--ok); display: grid; place-items: center; margin: 4px auto 14px; }
.success-icon .ic { width: 36px; height: 36px; stroke-width: 2.4; }
.success-when { font-size: 1.22rem; font-weight: 700; margin: 10px 0 6px; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 20px 0 6px; }

/* Zusammenfassung */
.summary { position: sticky; top: 20px; }
.summary-kicker { margin: 0; font-size: .76rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.summary-when { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; font-size: 1.45rem; line-height: 1.15; margin: .3em 0 .9em; }
.summary-list { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.summary-list li { display: flex; gap: 10px; font-size: .93rem; line-height: 1.45; color: #3a414c; }
.summary-list .ic { color: var(--blue); margin-top: 1px; }
.summary-help { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: .9rem; }

/* Fuß */
.foot { background: var(--ink); color: #a5adba; font-size: .86rem; padding: 26px 0; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot p { margin: 0; }
.foot a { color: #dfe5ee; }
.test-bar { background: #ffd23f; color: #1b1400; text-align: center; font-weight: 700; font-size: .85rem; padding: 6px 16px; }

/* Einfache Seiten (Storno, Hinweise) */
body.plain { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--paper); }
.plain-box { width: 100%; max-width: 560px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-soft); padding: clamp(20px, 5vw, 34px); }
.plain-box img { height: auto; max-width: 170px; display: block; margin-bottom: 18px; }
.plain-box h1 { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; font-size: 2rem; line-height: 1.1; margin: 0 0 12px; }
.plain-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 16px 0; }
.plain-card .summary-when { margin-bottom: .3em; }
.plain-card p:last-child { margin-bottom: 0; }

@media (max-width: 959px) {
  .book-grid { grid-template-columns: minmax(0, 1fr); }
  .summary { display: none; }
}
@media (max-width: 760px) {
  .date-pick { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .row2 { grid-template-columns: minmax(0, 1fr); }
  .top-phone span { font-size: .9rem; }
  .card { border-radius: var(--r-m); }
  .chosen .link-btn { margin-left: 0; }
}
@media (max-width: 380px) {
  .cal-week, .cal-days { gap: 4px; }
  .day { font-size: .9rem; border-radius: 10px; }
  .top-phone span { display: none; }
}
