/* Lavendel Spa & Massage – Stylesheet
   Farben und Schriften kommen als CSS-Variablen aus inc/designs.php */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 14px; }
h1, h2, h3, .h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  text-transform: var(--head-case);
  letter-spacing: var(--head-spacing);
  line-height: 1.14;
}
h1 { font-size: clamp(34px, 4.6vw, 54px); }
h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 16px; }
h3, .h3 { font-size: 21px; line-height: 1.25; margin-bottom: 10px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--tint { background: var(--surface); }
.muted { color: var(--muted); }
.narrow { max-width: 680px; }
.small-print { font-size: 14px; color: var(--muted); margin-top: 26px; }
.text-link { color: var(--accent-text); font-weight: 700; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 64px; align-items: start; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--on-primary);
  font: 700 15px/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: opacity .15s;
}
.button:hover { opacity: .9; }
.button--outline { background: transparent; color: inherit; border-color: currentColor; }
.button--light { background: var(--on-primary); color: var(--primary); border-color: var(--on-primary); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Designvorschau */
.demo-bar { position: sticky; top: 0; z-index: 40; background: #1d1b20; color: #eeeaf2; font: 13.5px/1.3 Arial, sans-serif; }
.demo-bar .container { display: flex; align-items: center; gap: 14px; padding-top: 8px; padding-bottom: 8px; max-width: none; }
.demo-bar__title { white-space: nowrap; }
.demo-bar__title span { color: #b9b3c0; margin-left: 6px; }
.demo-bar__designs { display: flex; gap: 6px; overflow-x: auto; flex: 1; padding: 2px; scrollbar-width: thin; }
.demo-bar__designs a {
  display: flex; align-items: center; gap: 6px; flex: none;
  padding: 6px 9px; border: 1px solid #4a4550; border-radius: 7px;
  color: #eeeaf2; text-decoration: none; font-weight: 600;
}
.demo-bar__designs a.is-active { background: #eeeaf2; color: #1d1b20; }
.demo-bar .swatch { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 2px solid; }
.demo-bar .swatch i { width: 6px; height: 6px; border-radius: 50%; }

/* Kopfbereich */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.has-demo .site-header { top: var(--demo-height, 50px); }
.site-header .container { display: flex; align-items: center; gap: 28px; min-height: 86px; }
.logo { flex: none; }
.logo img { height: 70px; width: auto; }
.is-dark .logo, .nav-filled .logo { background: #f7f2f8; padding: 5px 10px; border-radius: min(var(--radius-lg), 10px); }
.main-nav { display: flex; gap: 26px; margin-left: auto; font-size: 15.5px; }
.main-nav a { color: var(--muted); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.nav-toggle { display: none; margin-left: auto; width: 48px; height: 44px; padding: 12px 11px; border: 1px solid var(--line); border-radius: var(--radius-input); background: none; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; margin: 0 0 6px; background: var(--text); }
.nav-toggle span:last-child { margin: 0; }

.nav-filled .site-header { background: var(--primary); border-bottom-color: transparent; }
.nav-filled .main-nav a { color: var(--on-primary); opacity: .85; }
.nav-filled .main-nav a:hover, .nav-filled .main-nav a[aria-current="page"] { opacity: 1; color: var(--on-primary); }
.nav-filled .header-button { background: var(--on-primary); color: var(--primary); border-color: var(--on-primary); }
.nav-filled .nav-toggle span { background: var(--on-primary); }

.nav-centered .site-header .container { flex-direction: column; gap: 8px; padding-top: 14px; padding-bottom: 12px; }
.nav-centered .main-nav { margin: 0; }
.nav-centered .header-button { display: none; }

/* Startbild – Grundform */
.hero__text p { color: var(--muted); font-size: 18.5px; max-width: 34em; margin-top: 18px; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* zentriert */
.layout-center .hero { padding-top: 72px; }
.layout-center .hero__inner { text-align: center; }
.layout-center .hero__text { max-width: 820px; margin: 0 auto; }
.layout-center .hero__text p { margin-left: auto; margin-right: auto; }
.layout-center .actions { justify-content: center; }
.layout-center .hero__media { height: clamp(260px, 34vw, 420px); margin-top: 52px; border-radius: var(--radius-lg); overflow: hidden; }

/* Text links, Bild rechts – und gespiegelt */
.layout-split .hero__inner, .layout-rev .hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.layout-split .hero__media, .layout-rev .hero__media { height: clamp(320px, 38vw, 480px); border-radius: var(--radius-lg); overflow: hidden; }
.layout-rev .hero__inner { grid-template-columns: 1fr 1.05fr; }
.layout-rev .hero__media { order: -1; }

/* Vollbild */
.layout-full .hero { position: relative; color: #fff; }
.layout-full .hero__media { position: absolute; inset: 0; }
.layout-full .hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 8, 8, .86), rgba(8, 8, 8, .55) 55%, rgba(8, 8, 8, .12)); }
.layout-full .hero__inner { min-height: min(82vh, 680px); display: flex; align-items: flex-end; padding-top: 110px; padding-bottom: 80px; }
.layout-full .hero__text { position: relative; z-index: 1; max-width: 760px; }
.layout-full .hero__text p { color: rgba(255, 255, 255, .88); }
.layout-full .hero .button--outline { color: #fff; }

/* Bild mit überlappender Textbox */
.layout-overlap .hero { padding-top: 28px; }
.layout-overlap .hero__inner { display: flex; flex-direction: column; }
.layout-overlap .hero__media { order: -1; height: clamp(320px, 44vw, 520px); border-radius: var(--radius-lg); overflow: hidden; }
.layout-overlap .hero__text { position: relative; width: min(640px, 100%); margin: -180px 0 0 48px; padding: 44px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: 0 24px 60px rgba(0, 0, 0, .16); }

/* farbiger Block */
.layout-banner .hero { background: var(--primary); color: var(--on-primary); }
.layout-banner .hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.layout-banner .hero__text p { color: var(--on-primary); opacity: .86; }
.layout-banner .hero .button { background: var(--on-primary); color: var(--primary); border-color: var(--on-primary); }
.layout-banner .hero .button--outline { background: transparent; color: var(--on-primary); }
.layout-banner .hero__media { height: clamp(300px, 34vw, 420px); border-radius: var(--radius-lg); overflow: hidden; }

/* grosser Titel, Bild darunter */
.layout-stack .hero__inner { padding-top: 64px; }
.layout-stack .hero__text { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px 56px; align-items: end; }
.layout-stack .hero h1 { grid-column: 1 / -1; font-size: clamp(40px, 6.6vw, 80px); max-width: 13em; }
.layout-stack .hero__text p { margin: 0; }
.layout-stack .actions { margin: 0; justify-content: flex-end; }
.layout-stack .hero__media { height: clamp(280px, 36vw, 440px); margin-top: 48px; border-radius: var(--radius-lg); overflow: hidden; }

.info-strip { border-bottom: 1px solid var(--line); }
.info-strip .container { display: flex; flex-wrap: wrap; gap: 10px 56px; padding-top: 22px; padding-bottom: 22px; font-size: 15.5px; }
.info-strip strong { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
.info-strip a { text-decoration: none; }

.page-head { padding: 64px 0 48px; background: var(--surface); border-bottom: 1px solid var(--line); }
.page-head p { color: var(--muted); max-width: 680px; margin-top: 14px; font-size: 18px; }
.layout-banner .page-head { background: var(--primary); color: var(--on-primary); border: 0; }
.layout-banner .page-head p, .layout-banner .page-head .breadcrumb { color: var(--on-primary); opacity: .86; }
.breadcrumb { font-size: 14.5px; color: var(--muted); margin-bottom: 12px; }

/* Karten */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.service { display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius-lg); overflow: hidden; }
.service img { width: calc(100% + 52px); max-width: none; height: 180px; margin: -26px -26px 20px; object-fit: cover; }
.service h3 a { text-decoration: none; }
.service h3 a:hover { color: var(--accent-text); }
.service p { color: var(--muted); font-size: 15.5px; }
.service__price { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 600; }

.cards-f .service, .cards-f .form-card { background: var(--surface); }
.cards-f .section--tint .service, .cards-f .section--tint .form-card { background: var(--bg); }
.cards-l .service, .cards-l .form-card { border: 1px solid var(--line); }
.cards-s .service, .cards-s .form-card { background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 12px 32px rgba(0, 0, 0, .09); }
.cards-s .section--tint .service, .cards-s .section--tint .form-card { background: var(--bg); }

.service-list { display: grid; gap: 28px; }
.service-row { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: center; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.service-row:not(:has(img)) { grid-template-columns: 1fr; }
.service-row img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius-lg); }
.service-row h2 { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 8px; }
.service-row__prices { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.service-row__prices span { white-space: nowrap; }

.detail { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.detail__text { max-width: 640px; }
.detail__text .h3 { margin-top: 32px; }
.detail__image { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); position: sticky; top: 160px; }
.link-grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.link-grid a { display: flex; justify-content: space-between; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; font-weight: 600; background: var(--bg); }
.link-grid span { color: var(--muted); font-weight: 400; white-space: nowrap; }

/* Preise */
.price-layout, .split-block { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.split-block { grid-template-columns: 1fr 1fr; align-items: center; }
.table-wrap { overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.price-table th, .price-table td { padding: 14px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.price-table th { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.price-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-table a { text-decoration: none; font-weight: 600; }
.combo { padding: 30px; border-radius: var(--radius-lg); background: var(--primary); color: var(--on-primary); }
.combo ul { list-style: none; margin: 8px 0 22px; padding: 0; }
.combo li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .22); }
.combo b { white-space: nowrap; }
.combo > a:not(.button) { color: var(--on-primary); font-weight: 700; }

/* Formulare */
.booking { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.steps { margin: 0 0 22px; padding-left: 22px; }
.steps li { margin-bottom: 8px; }
.form-card { padding: 30px; border-radius: var(--radius-lg); }
.form-card--done { text-align: left; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; font-weight: 700; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid .optional { font-weight: 400; color: var(--muted); }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-input);
  background: var(--bg); color: var(--text); font: 16px var(--font-body);
}
.form-grid .check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 14.5px; color: var(--muted); }
.form-grid .check input { width: 20px; min-height: 20px; margin-top: 3px; flex: none; }
.form-grid .hp { position: absolute; left: -9999px; }
.form-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.price-hint { font-weight: 700; }
.form-errors { margin-bottom: 18px; padding: 14px 16px; border-radius: var(--radius-input); background: rgba(192, 57, 43, .12); color: var(--text); }
.form-errors p { margin: 0 0 4px; }

/* Gutscheine */
.vouchers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 32px; }
.voucher { aspect-ratio: 1.6; display: flex; flex-direction: column; justify-content: space-between; padding: 20px 22px; border-radius: var(--radius-lg); background: var(--primary); color: var(--on-primary); text-decoration: none; }
.voucher img { height: 44px; width: auto; align-self: flex-end; padding: 3px 6px; border-radius: 6px; background: #fff; }
.voucher b { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 32px; line-height: 1; }
.voucher small { font-size: 14px; opacity: .9; }
.voucher--free { background: transparent; color: var(--text); border: 1.5px dashed var(--accent); }
.is-dark .voucher:not(.voucher--free) { background: var(--surface); color: var(--primary); border: 1px solid var(--accent); }

/* Galerie */
.gallery { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; margin-top: 28px; padding-bottom: 10px; }
.gallery figure { flex: 0 0 min(400px, 82%); margin: 0; scroll-snap-align: start; }
.gallery img { width: 100%; height: 440px; object-fit: cover; border-radius: var(--radius-lg); }
.gallery figcaption { margin-top: 8px; font-size: 14.5px; color: var(--muted); }
.gallery-buttons { display: flex; gap: 10px; margin-top: 14px; }
.gallery-buttons button { width: 48px; height: 48px; border: 1px solid var(--line); border-radius: var(--radius-input); background: var(--bg); color: var(--text); font-size: 20px; cursor: pointer; }

.about { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; }
.about__logo { width: 100%; }
.is-dark .about__logo { background: #f7f2f8; padding: 18px; }

.faq { max-width: 820px; margin-top: 12px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 18px 40px 18px 0; font-weight: 700; font-size: 17.5px; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 26px; font-weight: 400; color: var(--accent-text); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact dl { display: grid; grid-template-columns: 150px 1fr; gap: 12px 20px; margin: 20px 0 8px; }
.contact dt { color: var(--muted); }
.contact dd { margin: 0; font-weight: 600; }
.map { position: relative; min-height: 340px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__bg { fill: var(--surface); }
.map__road { stroke: var(--line); }
.map__pin { fill: var(--primary); }
.map__dot { fill: var(--bg); }
.map .button { position: absolute; left: 20px; bottom: 20px; }

.legal { max-width: 780px; }
.legal h2 { font-size: 22px; margin: 32px 0 10px; }
.legal h2:first-child { margin-top: 0; }

.site-footer { padding: 52px 0 40px; background: var(--primary); color: var(--on-primary); font-size: 15px; }
.is-dark .site-footer { background: #0a0a0a; color: var(--muted); border-top: 1px solid var(--line); }
.site-footer .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.site-footer p { margin: 0 0 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__name { font-weight: 700; }
.mobile-bar { display: none; }

@media (max-width: 1040px) {
  .services, .vouchers { grid-template-columns: repeat(2, 1fr); }
  .main-nav { gap: 18px; font-size: 15px; }
}

@media (max-width: 880px) {
  .main-nav, .header-button { display: none; }
  .nav-toggle { display: block; }
  .main-nav.is-open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    padding: 10px 24px 18px; background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav-filled .main-nav.is-open { background: var(--primary); }
  .main-nav.is-open a { padding: 12px 0; }
  .nav-centered .site-header .container { flex-direction: row; }
  .nav-centered .main-nav.is-open { margin: 0; }
  .two-col, .price-layout, .split-block, .booking, .contact, .about, .detail { grid-template-columns: 1fr; gap: 32px; }
  .layout-split .hero__inner, .layout-rev .hero__inner, .layout-banner .hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .layout-rev .hero__media { order: 0; }
  .layout-stack .hero__text { grid-template-columns: 1fr; }
  .layout-stack .actions { justify-content: flex-start; }
  .about__logo { max-width: 260px; }
  .detail__image { position: static; max-height: 420px; }
  .service-row { grid-template-columns: 1fr; gap: 16px; }
  .site-footer { padding-bottom: 96px; }
  .site-footer .container { grid-template-columns: 1fr; }
  .mobile-bar {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
    background: var(--bg); border-top: 1px solid var(--line);
  }
  .mobile-bar a { display: grid; place-items: center; min-height: 58px; font-weight: 700; font-size: 15px; text-decoration: none; }
  .mobile-bar a:last-child { background: var(--primary); color: var(--on-primary); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 60px 0; }
  .services, .vouchers, .form-grid { grid-template-columns: 1fr; }
  .logo img { height: 56px; }
  .site-header .container { min-height: 72px; }
  .layout-overlap .hero__text { margin: -60px 0 0; padding: 24px; }
  .layout-center .hero { padding-top: 44px; }
  .layout-full .hero__inner { min-height: 560px; padding-bottom: 48px; }
  .contact dl { grid-template-columns: 1fr; gap: 2px; }
  .contact dd { margin-bottom: 10px; }
  .gallery img { height: 360px; }
  .form-card { padding: 20px; }
  .demo-bar__title span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
