/* Dialog "Der erste Schritt zu deiner neuen Website" (gemeinsam/erster-schritt.js), shared by the start page (both layouts)
   and /webdesign/. Uses the surface tokens of the page (data-surface="creme"); radii from the brand: 999px for everything
   clickable, 28px only for the phone sheet (same as the phone stack cards), flat on the desktop. Fields copy /kontakt/. */
.schritt {
  --pad: clamp(20px, 4vw, 40px);
  --gap-s: 8px;
  --gap-m: 16px;
  --gap-l: 32px;
  width: min(640px, calc(100vw - 64px));
  max-width: none;
  max-height: calc(100dvh - 64px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--bg);
  color: var(--fg);
  overflow: auto;
  overscroll-behavior: contain;
  font-size: 1.0625rem;
  line-height: 1.5;
}
.schritt input, .schritt select { font-family: inherit; }
.schritt::backdrop { background: rgb(9 16 91 / 0.62); }
html.schritt-offen { overflow: hidden; }
.schritt__inner { position: relative; padding: var(--pad); padding-bottom: calc(var(--pad) + env(safe-area-inset-bottom, 0px)); }
.schritt__close {
  position: absolute; top: 12px; right: 12px;
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 0; border-radius: 999px; background: transparent; color: var(--fg); cursor: pointer;
}
.schritt__close svg { width: 24px; height: 24px; }
.schritt__paket { margin: 0 56px var(--gap-s) 0; font-size: 0.9375rem; color: var(--muted); }
.schritt__paket strong { color: var(--fg); font-weight: 700; }
.schritt__title {
  margin: 0 56px var(--gap-l) 0;
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); line-height: 1.08; font-weight: 300; letter-spacing: -0.02em;
  text-wrap: balance;
}
.schritt__wege { display: grid; }
.schritt__wege[hidden], .schritt__danke[hidden], .schritt__form[hidden], .schritt__knopf[hidden] { display: none; }
.schritt__weg { display: grid; gap: var(--gap-m); justify-items: start; padding: 24px 0 28px; border-top: 1px solid var(--line); }
.schritt__weg:last-child { padding-bottom: 0; }
.schritt__weg-title { margin: 0; font-size: 1.5rem; line-height: 1.15; font-weight: 600; letter-spacing: -0.015em; }
.schritt__text { margin: 0; max-width: 46ch; color: var(--fg); text-wrap: pretty; }

/* Buttons: pills like every clickable element of the brand; Koralle only for the main action (booking). */
.schritt__knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 999px;
  font-family: inherit; font-size: 1rem; font-weight: 600; letter-spacing: 0.005em; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color 150ms cubic-bezier(0.2, 0, 0, 1), color 150ms cubic-bezier(0.2, 0, 0, 1);
}
.schritt__knopf svg { width: 20px; height: 20px; flex: none; }
.schritt__knopf--haupt { background: var(--koralle, #fb794a); color: var(--nacht, #09105b); }
.schritt__knopf--leise { background: transparent; color: var(--fg); border-color: var(--fg); }
.schritt__knopf--senden { background: var(--nacht, #09105b); color: var(--creme, #faf4dd); justify-self: stretch; }
.schritt__knopf:focus-visible, .schritt__close:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.schritt__knopf[aria-busy="true"] { opacity: 0.6; cursor: progress; }

/* Hover only where a pointer hovers: on touch screens it would stick after a tap. */
@media (hover: hover) {
  .schritt__close:hover { background: color-mix(in oklab, var(--fg) 8%, var(--bg)); }
  .schritt__knopf--haupt:hover { background: var(--nacht, #09105b); color: var(--creme, #faf4dd); }
  .schritt__knopf--leise:hover { background: var(--fg); color: var(--bg); }
  .schritt__knopf--senden:hover { background: var(--blau, #2238b8); }
}

/* Call-back form: underlined fields as on /kontakt/. */
.schritt__form { display: grid; gap: 22px; width: 100%; margin-top: 4px; }
.schritt__field { display: grid; gap: 6px; }
.schritt__label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg); padding: 0; }
.schritt__label--klein { margin-top: 6px; text-transform: none; letter-spacing: 0; font-size: 0.9375rem; font-weight: 400; color: var(--muted); }
.schritt__input {
  width: 100%; min-height: 52px; padding: 8px 0 10px;
  border: 0; border-bottom: 1px solid var(--fg); border-radius: 0;
  background: transparent; color: var(--fg);
  font-family: inherit; font-size: 1.25rem; font-weight: 300; letter-spacing: -0.01em;
  box-shadow: inset 0 0 0 0 var(--accent);
}
.schritt__input::placeholder { color: var(--muted); opacity: 0.8; }
.schritt__input:focus { outline: none; box-shadow: inset 0 -3px 0 0 var(--accent); }
select.schritt__input {
  appearance: none; -webkit-appearance: none; padding-right: 32px; cursor: pointer;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2309105b' stroke-width='1.75'/%3E%3C/svg%3E") no-repeat right 4px center / 20px 20px;
}
.schritt__hint { margin: 0; font-size: 0.9375rem; color: var(--muted); }
.schritt__fehler { margin: 0; font-size: 0.9375rem; font-weight: 600; color: #780022; }
.schritt__fehler[hidden] { display: none; }
.is-invalid .schritt__input { border-bottom-color: #780022; box-shadow: inset 0 -3px 0 0 #780022; }

.schritt__zeiten { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.schritt__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.schritt__chip { position: relative; display: inline-flex; }
.schritt__chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.schritt__chip span {
  display: inline-grid; place-items: center; min-width: 52px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--fg); border-radius: 999px; font-size: 0.9375rem; font-weight: 500;
}
.schritt__chip input:checked + span { background: var(--nacht, #09105b); border-color: var(--nacht, #09105b); color: var(--creme, #faf4dd); }
.schritt__chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.schritt__zeiten.is-invalid .schritt__chip span { border-color: #780022; }

.schritt__consent-label { display: grid; grid-template-columns: 44px 1fr; gap: 4px; align-items: center; min-height: 44px; font-size: 0.9375rem; color: var(--muted); cursor: pointer; text-wrap: pretty; }
.schritt__consent-label a { color: var(--fg); text-underline-offset: 3px; }
/* The input itself is 44 x 44 px (the tap target); the visible 24 px box is drawn inside it. */
.schritt__box {
  appearance: none; -webkit-appearance: none; position: relative; width: 44px; height: 44px; margin: 0 0 0 -10px;
  border: 0; border-radius: 0; background: transparent; cursor: pointer;
}
.schritt__box::before { content: ""; position: absolute; left: 10px; top: 10px; width: 24px; height: 24px; border: 1px solid var(--fg); }
.schritt__box::after { content: ""; position: absolute; left: 16px; top: 16px; width: 12px; height: 12px; background: var(--fg); transform: scale(0); transition: transform 100ms cubic-bezier(0.3, 0, 0.8, 0.15); }
.schritt__box:checked::after { transform: scale(1); transition: transform 150ms cubic-bezier(0.05, 0.7, 0.1, 1); }
.schritt__box:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.schritt__consent.is-invalid .schritt__box::before { border-color: #780022; border-width: 2px; }
.schritt__honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.schritt__status { margin: 0; min-height: 0; font-size: 0.9375rem; font-weight: 600; color: #780022; }
.schritt__status:empty { display: none; }

.schritt__danke { display: grid; gap: var(--gap-m); justify-items: start; padding-top: 24px; border-top: 1px solid var(--line); outline: none; }
.schritt__vorschau { margin: 0; padding: 8px 12px; background: var(--gelb, #ffe344); color: var(--nacht, #09105b); font-size: 0.9375rem; }
.schritt__vorschau[hidden] { display: none; }

/* Phone: a sheet from the bottom edge, full width, in thumb reach. */
@media (max-width: 767px) {
  .schritt {
    width: 100%; max-height: calc(100dvh - 16px - env(safe-area-inset-top, 0px));
    margin: auto 0 0; border-radius: var(--r-card, var(--card, 28px)) var(--r-card, var(--card, 28px)) 0 0;
  }
  .schritt__inner { padding: 24px max(20px, env(safe-area-inset-left, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)); }
  .schritt__close { top: 10px; right: 10px; }
  .schritt__title { margin-bottom: 24px; font-size: 1.75rem; }
  .schritt__weg { padding: 20px 0 24px; }
  .schritt__weg-title { font-size: 1.375rem; }
  .schritt__knopf--haupt, .schritt__knopf--leise { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .schritt__knopf, .schritt__box::after { transition: none; }
}
