:root {
  --single-column-width: 980px;
  --body-font: Arial, sans-serif;
  --heading-font: Georgia, serif;
  --body-size: 1rem;
  --page-title-size: clamp(1.875rem, 4vw, 2.4375rem);
  --section-title-size: clamp(1.6875rem, 3vw, 1.9375rem);
  --card-title-size: clamp(1.5rem, 2.6vw, 1.6875rem);
  --subheading-size: 1.25rem;
  --note-size: 0.875rem;
  --text-color: #38362f;
  --muted-text-color: #625a4c;
  --accent-text-color: #786632;
  --price-size: clamp(1.4375rem, 2.5vw, 1.5625rem);
}

#beratung > .card,
.page > .widecard,
.page > .about,
.page > .faq,
#kopfhaut > .grid,
.legal-page,
#laser > :is(.laser-overview, .laser-consultation, .tabs, .pricetable),
#preise-pakete > .widecard {
  max-width: var(--single-column-width);
  margin-inline: auto;
}

#kopfhaut > .grid {
  grid-template-columns: minmax(0, 1fr);
}

body {
  font-family: var(--body-font);
  font-size: var(--body-size);
  color: var(--text-color);
}

main :is(h1, h2, h3, h4, h5),
main .needling-price-table caption,
main .faq summary,
.sitefooter h2 {
  font-family: var(--heading-font);
  font-weight: 400;
  line-height: 1.22;
  color: var(--text-color);
}

main h1,
main .herotext h1,
main .legal-page h1,
#laser .laser-intro-copy h1 {
  font-size: var(--page-title-size);
  overflow-wrap: anywhere;
}

main h2,
main .widecard h2,
.sitefooter h2,
main .legal-copy h2,
#laser :is(.laser-details, .laser-consultation, .laser-packages) h2,
#fusspflege :is(.foot-care-overview, .foot-care-pricing) h2 {
  font-size: var(--section-title-size);
}

main h3,
main .choice h3,
main .legal-copy h3 {
  font-size: var(--card-title-size);
}

main :is(h4, h5),
main .needling-price-table caption,
main :is(.needling-results, .needling-course) h4,
main .faq summary {
  font-size: var(--subheading-size);
}

main :is(p, li, address),
main :is(.sectionintro, .cardbody, .widecard, .about, .choice, .callout, .herotext, .faq details) p,
main .legal-copy,
main .price-label,
main .skinprocess li p,
#microneedling :is(.needling-course > p:not(.small), .ampoule-note),
#laser :is(.laser-intro-copy > p:last-child, .laser-details p) {
  font-size: var(--body-size);
  line-height: 1.65;
  color: var(--text-color);
}

main .callout :is(h2, h3, p) {
  color: #fff;
}

@media (min-width: 701px) {
  #hautanalyse > .widecard {
    display: block;
    padding: 0;
    border-width: 4px;
    box-shadow: 2px 3px 0 #edece3;
  }

  #hautanalyse .camera-analysis-photo {
    aspect-ratio: 8 / 5;
    object-fit: cover;
    border-radius: 0;
  }

  #hautanalyse .laserbody {
    display: flex;
    flex-direction: column;
    padding: 28px 29px 30px;
  }

  #hautanalyse .laserbody > .button {
    margin-top: 20px;
  }
}

#kennenlernbehandlung .kennenlernen-neu-patch {
  display: none;
}

@media (min-width: 701px) {
  #kennenlernbehandlung .sectionintro > .kennenlernen-neu {
    display: none;
  }

  #kennenlernbehandlung > .widecard {
    position: relative;
  }

  #kennenlernbehandlung .kennenlernen-neu-patch {
    position: absolute;
    z-index: 1;
    inset-block-start: 16px;
    inset-inline-start: 16px;
    display: grid;
    width: 152px;
    height: 108px;
    margin: 0;
    border: 1px solid #f5ebcf;
    background: #786632;
    color: #fff;
    font-size: 34px;
    box-shadow: 0 3px 12px #38362f55;
  }
}

#kennenlernbehandlung .kennenlernen-discount {
  margin-block-start: 1.65em;
}

main :is(.eyebrow, .small, .procedure-audience, .legal-notice, .notice, .variants, .result-note),
main :is(.cardbody, .cardbottom, .needling-course, .laserbody, .foot-care-pricing) > .small,
main .cardbody > .procedure-audience,
main .needling-price-table tbody small,
main .needling-results > p.result-note {
  font-size: var(--note-size);
  line-height: 1.5;
  color: var(--muted-text-color);
}

main :is(.fee, .course-note, .surcharge-note),
main .cardbody > .fee,
main .cardbottom > :is(.fee, .course-note),
main .foot-care-pricing > .fee,
main .sectionintro > .laser-price-note {
  font-size: var(--body-size);
  font-weight: 400;
  line-height: 1.65;
  color: var(--muted-text-color);
}

.sectionintro-audience-separator {
  display: none;
}

@media (min-width: 701px) {
  main .sectionintro.sectionintro--inline-audience > p {
    display: inline;
  }

  .sectionintro-audience-separator {
    display: inline;
  }
}

main .page :is(.subtitle, .meso-program-subtitle),
main #extras .sectionintro > .extras-intro,
main #laser .laser-intro-subtitle,
main .page .sectionintro--inline-audience > .procedure-audience {
  font-family: var(--body-font);
  font-size: var(--body-size);
  font-weight: 400;
  line-height: 1.65;
  color: var(--muted-text-color);
}

:is(em, i, cite, dfn, address) {
  font-style: normal;
}

main :is(.button, .textlink, .tabs button, table, .legal-nav, .legal-toc a),
.sitefooter :is(p, a) {
  font-family: var(--body-font);
  font-size: var(--note-size);
}

main :is(.button, .textlink, .legal-nav, .legal-copy a),
main .legal-toc :is(summary, a),
main .tabs button:not([aria-selected="true"]),
main table thead th,
.menu nav a:is(:hover, [aria-current="page"]) {
  color: var(--accent-text-color);
}

main .legal-toc summary {
  font-size: var(--body-size);
}

.sitefooter,
.sitefooter .small {
  color: var(--text-color);
}

main .price,
#kopfhaut .scalp-price-zone figcaption strong {
  font-family: var(--heading-font);
  font-size: var(--price-size);
  font-weight: 400;
  line-height: 1.25;
  font-variant-numeric: lining-nums tabular-nums;
  text-align: right;
  color: var(--text-color);
}

main .price-row,
#kopfhaut .scalp-price-zone figcaption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.5rem;
  text-align: left;
}

main .price-label {
  font: var(--body-size)/1.45 var(--body-font);
  text-align: left;
  overflow-wrap: anywhere;
}

main .price-row > .price,
#kopfhaut .scalp-price-zone figcaption strong {
  margin: 0;
  white-space: nowrap;
}

main .price-row + .fee {
  margin-top: 0.25rem;
}

main .pricetable :is(td, thead th:not(:first-child)) {
  text-align: right;
}

main .pricetable th {
  overflow-wrap: anywhere;
}

main .pricetable tr > :first-child {
  text-align: left;
}

@media (max-width: 440px) {
  .laser-package-details :is(th, td) {
    padding-inline: 0.375rem;
  }

  #kopfhaut .scalp-price-zone figcaption {
    gap: 0.25rem;
  }

  #kopfhaut .scalp-price-zone figcaption span {
    overflow-wrap: anywhere;
  }

  #kopfhaut .scalp-price-zone figcaption strong {
    font-size: 1.125rem;
  }
}

#start .choices .choicebody {
  flex: 1 0 auto;
}

#start .choices .choicebody > b {
  margin-top: auto;
}

#kontakt .grid > .card > .cardbody {
  flex: 1 0 auto;
}

#kontakt .cardbody > .button:last-child {
  margin-top: auto;
}

#kontakt .cardbody > :has(+ .button:last-child) {
  margin-bottom: 20px;
}

#laser .laser-package-intro {
  padding-bottom: 0;
}

#laser .laser-package-intro h2 {
  text-align: center;
}

.laser-packages {
  margin-top: 2rem;
}

.laser-package-details summary {
  text-align: center;
  cursor: pointer;
  text-decoration: underline;
  padding: 0.625rem 1rem 1.5rem;
}

#preise-pakete .laser-packages > .pricetable,
.laser-package-details .pricetable {
  max-width: none;
  background: #fff;
}

.laser-package-details .pricetable p {
  margin: 0;
  padding: 0.75rem 1rem;
}

.sitefooter > h2,
.sitefooter > h2 + p {
  margin-block-end: 10px;
}

.floating-actions {
  --action-size: 35px;
  position: fixed;
  inset-inline-end: max(15px, env(safe-area-inset-right));
  inset-block-end: max(20px, env(safe-area-inset-bottom));
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}

.floating-action {
  display: flex;
  align-items: center;
  height: var(--action-size);
  color: #fff;
  background: #786632;
  border: 0;
  border-radius: 5px;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.25;
}

.floating-action-icon {
  display: grid;
  place-items: center;
  width: var(--action-size);
  height: var(--action-size);
  flex: none;
}

.floating-action-label {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 250ms ease, opacity 200ms ease, padding-inline-end 250ms ease;
}

.floating-action:focus-visible {
  outline: 2px solid #786632;
  outline-offset: 3px;
}

.floating-action:focus-visible .floating-action-label {
  max-width: calc(100vw - 100px);
  padding-inline-end: 10px;
  opacity: 1;
}

@media (hover: hover) {
  .floating-action:hover .floating-action-label {
    max-width: calc(100vw - 100px);
    padding-inline-end: 10px;
    opacity: 1;
  }
}

@media (max-width: 700px) {
  .floating-actions {
    --action-size: 44px;
    inset-inline-end: max(8px, env(safe-area-inset-right));
    inset-block-end: max(12px, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-action-label {
    transition: none;
  }
}

html.treatment-fold-anchoring {
  overflow-anchor: none;
}

.treatment-fold-ruler.grid {
  position: absolute;
  inset: 0 auto auto 0;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: max-content;
  block-size: 0;
  overflow: hidden;
  visibility: hidden;
}

.treatment-fold-clip {
  display: contents;
}

.treatment-fold-actions {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  margin-top: auto;
  padding: 10px 18px 14px;
  overflow-anchor: none;
}

.treatment-fold-booking {
  display: grid;
  grid-template-rows: 1fr;
  inline-size: 100%;
}

.treatment-fold-booking-inner {
  min-block-size: 0;
  overflow: hidden;
}

main .treatment-fold-booking-inner > .button {
  margin: 0 auto 4px;
  padding: 7px 16px;
  font-size: var(--note-size);
}

.grid:not(.treatment-fold-measuring) .treatment-foldable:not(.treatment-fold-open) .treatment-fold-booking {
  grid-template-rows: 0fr;
  opacity: 0;
}

.treatment-fold-toggle {
  display: none;
  min-block-size: 40px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  color: var(--accent-text-color);
  font: 600 var(--note-size)/1.4 var(--body-font);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.treatment-fold-toggle:focus-visible {
  outline: 2px solid #786632;
  outline-offset: 3px;
}

.treatment-foldable > :is(.cardphoto, .method-photos) {
  flex-shrink: 0;
}

.grid > .card.treatment-foldable {
  height: var(--fold-card-height);
  overflow-anchor: none;
}

.treatment-foldable > .treatment-fold-clip,
.treatment-fold-measuring .treatment-fold-clip {
  position: relative;
  display: block;
  flex: none;
}

.treatment-foldable > .treatment-fold-clip {
  height: var(--fold-content-height);
  overflow: hidden;
}

.treatment-fold-excerpt {
  position: absolute;
  margin: 0;
  overflow-wrap: normal;
  word-break: normal;
  pointer-events: none;
}

.treatment-fold-excerpt-source,
.treatment-fold-measuring .treatment-fold-excerpt {
  visibility: hidden;
}

.treatment-foldable .treatment-fold-toggle,
.treatment-fold-measuring .treatment-fold-toggle {
  display: block;
}

.treatment-fold-measuring.grid > .card {
  align-self: start;
  height: auto;
}

.treatment-fold-measuring .treatment-fold-clip {
  height: auto;
  overflow: visible;
}

@media (prefers-reduced-motion: no-preference) {
  .grid:not(.treatment-fold-static, .treatment-fold-measuring) > .card.treatment-foldable,
  .grid:not(.treatment-fold-static, .treatment-fold-measuring) .treatment-foldable > .treatment-fold-clip {
    transition: height 400ms cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .grid:not(.treatment-fold-static, .treatment-fold-measuring) .treatment-foldable .treatment-fold-booking {
    transition: grid-template-rows 400ms cubic-bezier(0.2, 0.7, 0.2, 1), opacity 240ms ease;
  }
}

.studio-video-dialog {
  width: min(900px, calc(100% - 2rem), calc((100dvh - 6.5rem) * 16 / 9));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 1px solid #dfdcc4;
  border-radius: 16px;
  background: #f1efe9;
  color: #38362f;
  box-shadow: 0 14px 50px #19171355;
}

.studio-video-dialog::backdrop {
  background: #191713bf;
}

.studio-video-dialog-header {
  display: flex;
  justify-content: flex-end;
  padding: 8px 12px;
}

.studio-video-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #c9bc8f;
  border-radius: 8px;
  background: #fffefa;
  color: #38362f;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.studio-video-player {
  aspect-ratio: 16 / 9;
  background: #000;
}

.studio-video-status {
  margin: 0;
  padding: 10px 18px;
}

.mobile-menu-panel {
  display: contents;
}

.mobile-menu-footer,
.mobile-menu-more {
  display: none;
}

@media (max-width: 700px), (hover: none) and (pointer: coarse) {
  html.mobile-menu-open {
    overflow: hidden;
    overscroll-behavior: none;
    scrollbar-gutter: stable;
  }

  header:has(.menu[open]) {
    z-index: 30;
  }

  .mobile-menu-panel {
    position: absolute;
    top: 35px;
    right: 0;
    display: flex;
    flex-direction: column;
    width: min(280px, calc(100vw - 60px));
    max-height: calc(100vh - 85px);
    max-height: var(--mobile-menu-height, calc(100dvh - 85px));
    background: #fff;
    box-shadow: 0 4px 20px #0002;
  }

  .menu .mobile-menu-panel nav {
    position: static;
    width: auto;
    min-height: 0;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    box-shadow: none;
  }

  .mobile-menu-footer {
    display: flex;
    flex: none;
    justify-content: flex-end;
    border-top: 1px solid #ded7bd;
    background: #f2efe8;
  }

  .mobile-menu-more:not([hidden]) {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 44px;
    padding: 6px 12px;
    border: 0;
    background: transparent;
    color: var(--accent-text-color);
    font: 600 var(--note-size)/1.4 var(--body-font);
    cursor: pointer;
  }

  .mobile-menu-close {
    display: grid;
    flex: none;
    place-items: center;
    width: 48px;
    min-height: 44px;
    border: 0;
    border-inline-start: 1px solid #ded7bd;
    padding: 0;
    background: #786632;
    color: #fff;
    font: 400 28px/1 var(--body-font);
    cursor: pointer;
  }

  .mobile-menu-close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
  }

  .mobile-menu-more:focus-visible {
    outline: 2px solid var(--accent-text-color);
    outline-offset: -3px;
  }

  .mobile-menu-chevron {
    width: 7px;
    height: 7px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: translateY(-2px) rotate(45deg);
  }

  .mobile-menu-more[data-at-end] .mobile-menu-chevron {
    transform: translateY(2px) rotate(225deg);
  }
}
