/* /termin on phones. termin.html loads this file with media="(max-width: 768px)",
   so nothing here reaches the desktop layout. Tokens and footer: css/mobile-shared.css.
   The page is the booking flow: a short hero, then the Planity service list.
   Nothing here animates, delays or hides the widget. */

.termin-main.container { padding-left: var(--m-gutter); padding-right: var(--m-gutter); }

/* ---------- Default hero: short, so the first category shows on screen one ---------- */
body.termin-page:not([data-booking-offer]):not([data-booking-intent]) .termin-hero {
  padding: 12px 0 0;
  border-bottom: 0;
}
body.termin-page:not([data-booking-offer]):not([data-booking-intent]) .termin-hero-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0 0 20px;
}
body.termin-page:not([data-booking-offer]):not([data-booking-intent]) .termin-hero-image {
  order: -1;
  width: 100%;
  max-width: none;
  /* Follows the screen height: small phones keep the list on the first screen. */
  height: clamp(96px, calc(100svh - 670px), 176px);
  margin: 0;
  border-radius: var(--m-radius);
  overflow: hidden;
}
/* Zoomed to face, hands and magazine (same crop idea as the homepage approach photo). */
body.termin-page:not([data-booking-offer]):not([data-booking-intent]) .termin-hero-image img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  object-fit: cover;
  object-position: 50% 0;
  transform: scale(2.3);
  transform-origin: 44% 9%;
}
/* Short screens: text-led hero, the list comes first. */
@media (max-height: 700px) {
  body.termin-page:not([data-booking-offer]):not([data-booking-intent]) .termin-hero-image { display: none; }
  body.termin-page:not([data-booking-offer]):not([data-booking-intent]) .termin-hero { padding-top: 20px; }
}
body.termin-page .termin-default-eyebrow,
body.termin-page .termin-hero .termin-eyebrow {
  margin: 0 0 10px;
  color: var(--m-brown);
  font: 600 12px/1.4 var(--font-text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 1;
}
body.termin-page:not([data-booking-offer]):not([data-booking-intent]) .termin-hero h1 {
  margin: 0;
  font: 600 clamp(32px, 9.2vw, 42px)/1.04 var(--font-display);
  letter-spacing: -0.04em;
  text-align: left;
  text-transform: uppercase;
}
body.termin-page:not([data-booking-offer]):not([data-booking-intent]) .termin-hero-copy {
  max-width: none;
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.45;
}
/* The service list directly below is the action; the phone number sits in the help block. */
body.termin-page:not([data-booking-offer]):not([data-booking-intent]) .termin-hero-actions { display: none; }

.termin-m-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 4px;
  color: var(--color-ink);
  font: 600 14px/1.3 var(--font-text);
  letter-spacing: 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.termin-m-rating-star { font-size: 15px; }
.termin-m-rating:focus-visible { outline: 2px solid var(--focus-color, currentColor); outline-offset: 2px; border-radius: 4px; }

/* ---------- Offer hero (haircut 35 €): same rhythm, own content ---------- */
body.termin-page[data-booking-offer] .termin-hero { padding-top: 20px; }
body.termin-page[data-booking-offer] .termin-m-rating { margin-top: 10px; }
body.termin-page .termin-hero-actions .bracket-cta,
body.termin-page .termin-prices-layout .bracket-cta { min-height: 52px; }

/* ---------- Booking: title, reassurance, widget ---------- */
body.termin-page .termin-booking { scroll-margin-top: 70px; }
body.termin-page .termin-booking .termin-booking-title {
  margin: 0;
  font: 600 24px/1.1 var(--font-display);
  letter-spacing: -0.035em;
  text-align: left;
  text-transform: uppercase;
}
body.termin-page:not([data-booking-offer]):not([data-booking-intent]) .termin-booking {
  padding-top: 20px;
  border-top: 1px solid var(--m-rule);
}
.termin-m-assure {
  display: block;
  margin: 8px 0 0;
  color: var(--m-brown);
  font: 500 15px/1.4 var(--font-text);
}
body.termin-page .termin-booking .termin-loading { margin-top: 16px; }
body.termin-page .termin-booking .termin-widget { margin-top: 16px; }

/* Booking / Gutscheine / Mein Konto toolbar: close to the title, thumb-sized. */
@media (max-width: 767px) {
  #planitywl > :nth-child(2) > :first-child:has(> .planity-widget-nav) { margin-top: 0; }
  #planitywl > :nth-child(2) > :first-child:has(> .planity-widget-nav) + div { margin-top: 2px; }
  #planitywl .planity-widget-nav > button,
  #planitywl > :nth-child(2) > :first-child:has(> .planity-widget-nav) > button { min-height: 44px; padding-inline: 4px; white-space: nowrap; }
}

/* Category cards: the approved milk card, with phone-sized type and targets. */
#planitywl [class*="service_set-module_businessServices-"] { padding: 18px 16px 18px 18px !important; }
#planitywl [class*="service_set-module_businessServices-"] > [class*="service_set-module_title-"] {
  min-height: 48px;
  column-gap: 14px;
  row-gap: 6px;
  font-size: 18px !important;
}
#planitywl [class*="service_set-module_businessServices-"] > [class*="service_set-module_title-"]::after {
  align-self: end;
  color: var(--m-brown);
  font-size: 11px;
}
#planitywl [class*="service_set-module_chevron-"] { width: 44px; height: 44px; }
#planitywl [class*="service_set-module_chevron-"]::before,
#planitywl [class*="service_set-module_chevron-"]::after { width: 14px; margin-left: -7px; }
#planitywl [class*="service_set-module_businessServices-"] > [class*="service_set-module_description-"] {
  margin: 6px 58px 0 0 !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}
/* The open category is obvious: ink frame, the others stay quiet. */
#planitywl [class*="service_set-module_businessServices-"]:not([class*="service_set-module_isCollapsed-"]) {
  border-color: var(--color-ink);
  box-shadow: inset 0 0 0 1px var(--color-ink);
}
#planitywl [class*="service_set-module_businessServices-"] > [class*="service_set-module_card-"] {
  margin: 16px -16px -18px -18px !important;
  /* Planity drops the bottom padding of the last row on phones; keep it off the frame. */
  padding: 0 16px 18px 18px !important;
}

/* Service rows: name and price carry the row, the details toggle is thumb-sized. */
#planitywl li [class*="service-module_name-"] { font: 600 16px/1.3 var(--font-text) !important; letter-spacing: -0.01em; }
#planitywl li [class*="service-module_details-"] { font-size: 14px !important; line-height: 1.45 !important; }
#planitywl li [class*="service-module_toggle-"] { min-height: 40px; font-size: 14px !important; }
#planitywl li [class*="service-module_info-"] [class*="service-module_price-"],
#planitywl li [class*="service-module_info-"] [class*="service-module_price-"] span { font-size: 17px !important; font-weight: 600 !important; }
#planitywl li [class*="service-module_info-"] [class*="service-module_duration-"] { font-size: 15px !important; }
#planitywl li .planity_bookappointment-button-choose { min-height: 48px; padding-inline: 16px; font-size: 14px; font-weight: 600; }

/* ---------- Happy Hours: right under the slot picker, never above the list ---------- */
.termin-m-happy {
  display: block;
  margin: 28px 0 0;
  padding: 22px 20px;
  border-radius: var(--m-radius);
  background: var(--color-accent);
  color: var(--color-ink);
}
/* The ad offers are not combinable with other offers. */
body.termin-page[data-booking-offer] .termin-m-happy { display: none; }
.termin-m-happy-label { margin: 0 0 10px; font: 600 12px/1.4 var(--font-text); letter-spacing: 0.04em; text-transform: uppercase; }
.termin-m-happy-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0; }
.termin-m-happy-title strong { font: 600 44px/1 var(--font-display); letter-spacing: -0.04em; white-space: nowrap; }
.termin-m-happy-title span { font: 600 18px/1.2 var(--font-display); letter-spacing: -0.02em; text-transform: uppercase; }
.termin-m-happy-when { margin: 12px 0 0; font: 400 15px/1.45 var(--font-text); }
body.termin-page .termin-m-happy + .termin-support { margin-top: 12px; }

/* ---------- Help block: reassurance facts and the phone, one dark accent ---------- */
body.termin-page .termin-support {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  margin: 40px 0 var(--m-section);
  padding: 36px 20px 24px;
  border: 0;
  border-radius: 28px;
  background: var(--color-ink);
  color: var(--color-cream);
}
body.termin-page .termin-support h2 {
  margin: 0;
  color: var(--color-cream);
  font: 600 clamp(32px, 9.2vw, 42px)/1.04 var(--font-display);
  letter-spacing: -0.04em;
  text-align: left;
  text-transform: uppercase;
}
body.termin-page .termin-support > div:first-child p {
  max-width: none;
  margin: 14px 0 0;
  color: var(--color-cream);
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.8;
}
.termin-m-facts {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid rgba(246, 244, 238, 0.2);
}
.termin-m-facts li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 48px;
  padding: 14px 0;
  border-top: 1px solid rgba(246, 244, 238, 0.2);
}
.termin-m-facts strong {
  color: var(--color-accent);
  font: 600 12px/1.4 var(--font-text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.termin-m-facts span { font: 400 16px/1.4 var(--font-text); color: var(--color-cream); }
.termin-m-facts a {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 44px;
  color: var(--color-cream);
  font: 600 24px/1.2 var(--font-display);
  letter-spacing: -0.02em;
}
.termin-m-facts a:focus-visible { outline: 2px solid var(--color-cream); outline-offset: 2px; border-radius: 4px; }

body.termin-page .termin-support .termin-contact-actions { flex-direction: column; gap: 10px; }
body.termin-page .termin-support .termin-contact-actions a.bracket-cta,
body.termin-page .termin-support .termin-contact-actions a.bracket-cta:is(:hover, :focus-visible) {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  border-color: rgba(246, 244, 238, 0.6);
  background: transparent;
  color: var(--color-cream);
  transform: none;
}
body.termin-page .termin-support .termin-contact-actions a.bracket-cta.termin-contact-primary,
body.termin-page .termin-support .termin-contact-actions a.bracket-cta.termin-contact-primary:is(:hover, :focus-visible) {
  border-color: var(--color-cream);
  background: var(--color-cream);
  color: var(--color-ink);
}
body.termin-page .termin-support .termin-contact-actions a.bracket-cta:focus-visible {
  outline: 2px solid var(--color-cream);
  outline-offset: 3px;
}
