@font-face { font-family: "Josefin Sans"; src: url(fonts/josefin-sans.woff2) format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url(fonts/cormorant-garamond.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url(fonts/cormorant-garamond-italic.woff2) format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }

:root {
  --text: #4c4c4c;
  --dark: #0a0000;
  --blue: #6ec1e4;
  --mark: #f2f2f2;
  --line: #eed5e9;
  --side: 260px;
  --width: 950px;
  --sans: "Josefin Sans", Helvetica, Arial, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font: 400 20px/1.35 var(--serif); }
img { max-width: 100%; height: auto; display: block; }
a { color: #303030; }
figure { margin: 0; }
ul { padding-left: 1.2em; }
p { margin: 0 0 1em; }
strong, b { font-weight: 700; }

/* Left vertical menu */
.site-header { position: fixed; inset: 0 auto 0 0; width: var(--side); padding: 150px 30px; text-align: right; z-index: 20; display: flex; flex-direction: column; }
.logo { display: block; margin-bottom: 77px; }
.logo img { width: 200px; margin-left: auto; }
.site-header ul { list-style: none; margin: 0; padding: 0; }
.site-header a { text-decoration: none; color: var(--dark); }
nav.main > ul > li { position: relative; }
nav.main > ul > li > a { display: block; line-height: 45px; font: 500 18px/45px var(--sans); letter-spacing: 1px; text-transform: uppercase; }
nav.main > ul > li > a span { position: relative; }
nav.main > ul > li.active > a span::after, nav.main > ul > li > a:hover span::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: #000; }
nav.main > ul > li.has-sub > a::after { content: "+"; display: inline-block; width: 20px; margin-right: -20px; text-align: center; font-weight: 300; color: #999; }
nav.main li ul { display: none; position: absolute; left: 100%; top: 0; margin-left: 50px; min-width: 200px; padding: 5px 0; background: #fff; text-align: right; box-shadow: 0 6px 24px rgb(0 0 0 / .06); }
nav.main li ul::before { content: ""; position: absolute; right: 100%; top: 0; bottom: 0; width: 50px; }
nav.main li:hover > ul, nav.main li:focus-within > ul { display: block; }
nav.main li ul a { display: block; padding: 0 15px; font: 400 18px/45px var(--sans); color: #686868; white-space: nowrap; }
nav.main li ul a:hover, nav.main li ul a[aria-current] { color: var(--dark); }

.menu { display: none; }

/* Content to the right of the menu */
main, .site-footer { margin-left: var(--side); }
main section { max-width: var(--width); margin: 0 auto; padding: 139px 10px 0; }
main section:last-child { padding-bottom: 120px; }

/* Page title with image */
main section.page-title { max-width: none; height: 555px; padding: 0 20px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
main section.page-title figure { position: absolute; inset: 0; }
main section.page-title img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
/* like the original theme: the title photo at a fixed 1920px width, centred, anchored at the top */
@media (min-width: 1001px) { main section.page-title img { position: absolute; left: 50%; top: 0; width: 1920px; max-width: none; height: auto; transform: translateX(-50%); object-fit: initial; } }
/* start-page photos used as title images are taller: centre them so faces stay in view */
main section.page-title img.center { object-position: 50% 45%; }
@media (min-width: 1001px) { main section.page-title img.center { top: 50%; transform: translate(-50%, -50%); } }
main section.page-title h1 { position: relative; margin: 0; text-align: center; font: 700 53px/65px var(--sans); letter-spacing: 1.5px; text-transform: uppercase; color: #000; }
main section.page-title h1 span { position: relative; z-index: 0; }
main section.page-title h1 span::before { content: ""; position: absolute; z-index: -1; left: 0; bottom: -3px; width: calc(100% + 56px); height: 82%; background: #fff; }

/* Home slider: four pictures fading into each other, no JavaScript */
.page-home main section.slider { max-width: none; padding: 0; height: 100vh; position: relative; overflow: hidden; }
.slider figure { position: absolute; inset: 0; opacity: 0; animation: fade 24s infinite; }
.slider figure:nth-child(1) { animation-delay: -1s; }
.slider figure:nth-child(2) { animation-delay: 5s; }
.slider figure:nth-child(3) { animation-delay: 11s; }
.slider figure:nth-child(4) { animation-delay: 17s; }
.slider img { width: 100%; height: 100%; object-fit: cover; }
@keyframes fade { 0% { opacity: 0; } 4% { opacity: 1; } 25% { opacity: 1; } 30% { opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .slider figure { animation: none; }
  .slider figure:first-child { opacity: 1; }
}

/* Headings with the grey marker line */
h1, h2, h3, h4, h5, h6 { font-weight: 400; margin: 0 0 .5em; }
h2, h3, h6 { text-align: center; }
h2 span, h3 span, h6 span { display: inline; padding: 0 13px; color: var(--blue); font-family: var(--sans); text-transform: uppercase; background: linear-gradient(var(--mark), var(--mark)) 100% 100% / 100% 65% no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
h2, h3 { font: 500 30px/35px var(--sans); letter-spacing: 7.5px; }
h6 { font: 700 14px/20px var(--sans); letter-spacing: 2.5px; margin: 10px 0 40px; }
/* as on the original pages: plain headings on contact and legal pages, black on vouchers */
.page-kontakt h3, .page-impressum h3, .page-datenschutzerklaerung h3 { text-align: left; }
.page-kontakt h3 span, .page-impressum h3 span, .page-datenschutzerklaerung h3 span { padding: 0; color: #000; background: none; }
.page-gutscheine h3 span { color: #000; }
.page-kurse h3 span { font-weight: 800; }
h4 { font: italic 400 24px/1.35 var(--serif); text-align: center; }
h5 { font: 700 16px/1.4 var(--sans); letter-spacing: 2px; text-transform: uppercase; color: var(--dark); }

/* Price lists */
.prices { margin: 40px 0 10px; }
.price { display: flex; align-items: baseline; gap: 8px; font: 700 20px/30px var(--sans); letter-spacing: 5px; text-transform: uppercase; color: #000; }
.price span { flex: 1; display: flex; align-items: baseline; gap: 8px; }
.price span::after { content: ""; flex: 1; border-bottom: 1px solid var(--line); position: relative; top: -6px; }
.price span:only-child::after { display: none; }
.price b { font-weight: 700; white-space: nowrap; }
.price + .price { margin-top: 12px; }
.price.plain { font: 400 20px/27px var(--serif); letter-spacing: 0; text-transform: none; color: var(--text); }
.price.plain b { font-weight: 400; }
.price.plain + .price.plain, .price.plain + .desc + .price.plain { margin-top: 43px; }
.lead { font: 800 20px/27px var(--sans); color: #000; }
.desc { margin: 0 0 10px; }

/* Columns */
.cols { display: flex; gap: 20px; }
.col { flex: var(--f, 1) 1 0; min-width: 0; }
.col figure { margin-bottom: 20px; }
.col figure img { width: auto; margin: 0 auto; }
main section h3:not(:first-child) { margin-top: 110px; }
.pair { display: flex; gap: 20px; margin: 20px 0 30px; }
.pair figure { flex: 1; }
.pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.gallery { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.gallery img { width: 216px; }

/* Leistungen overview: three columns of services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px 30px; margin-top: 50px; text-align: center; }
/* as on the original page: the photo is grey and takes on its colour when you point at it */
.service-img { display: block; overflow: hidden; max-width: 370px; margin: 0 auto 22px; }
.service-img img { width: 100%; aspect-ratio: 370 / 450; object-fit: cover; filter: grayscale(1); transition: filter .5s ease, transform .6s ease; }
.service-img:hover img, .service-img:focus-visible img, .service:hover .service-img img { filter: none; transform: scale(1.03); }
.service h5 { margin-bottom: .4em; }
.service h5 a { color: inherit; text-decoration: none; }
.service p { margin: 0 auto 1em; max-width: 30ch; }
.service .more { font: 500 14px/1 var(--sans); letter-spacing: 2px; text-transform: uppercase; color: var(--dark); text-decoration: none; border-bottom: 1px solid var(--dark); padding-bottom: 3px; }
.service .more:hover { color: var(--blue); border-color: var(--blue); }
@media (max-width: 1000px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .services { grid-template-columns: 1fr; } }

.btn { display: inline-block; padding: 10px 26px; border: 1px solid var(--dark); color: var(--dark); text-decoration: none; font: 500 15px/1.4 var(--sans); letter-spacing: 2px; text-transform: uppercase; }
.btn:hover { background: var(--dark); color: #fff; }

/* Footer bar */
.site-footer { background: #e6e5e3; text-align: center; font-size: 18px; line-height: 30px; padding: 11px 16px; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: #000; }

/* Tablet and phone: menu moves to the top */
@media (max-width: 1000px) {
  .site-header { position: relative; inset: auto; width: auto; height: 90px; padding: 0 16px; flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }
  .logo { margin: 0; }
  .logo img { width: 130px; }
  nav.main { display: none; }
  .menu { display: block; }
  .menu summary { cursor: pointer; list-style: none; font: 500 15px var(--sans); letter-spacing: 2px; text-transform: uppercase; padding: 10px 0; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary::after { content: " ☰"; }
  .menu[open] summary::after { content: " ✕"; }
  .menu nav { position: absolute; left: 0; right: 0; top: 90px; background: #fff; padding: 8px 16px 24px; box-shadow: 0 12px 24px rgb(0 0 0 / .08); }
  .menu nav a { display: block; padding: 8px 0; font: 500 15px var(--sans); letter-spacing: 1.5px; text-transform: uppercase; }
  .menu nav li ul { padding-left: 16px; }
  .menu nav li ul a { font-size: 13px; color: #686868; padding: 5px 0; }
  .menu nav a[aria-current] { text-decoration: underline; }
  main, .site-footer { margin-left: 0; }
  main section { padding: 70px 16px 0; }
  main section.page-title { height: 300px; }
  main section.page-title h1 { font-size: clamp(24px, 7vw, 34px); line-height: 1.3; hyphens: auto; overflow-wrap: anywhere; }
  .page-home main section.slider { height: calc(100svh - 142px); min-height: 360px; }
  h2, h3 { font-size: 24px; letter-spacing: 5px; }
  .price { font-size: 16px; letter-spacing: 2px; }
  .gallery img { width: calc(50vw - 21px); }
}
@media (max-width: 700px) {
  .cols, .pair { flex-direction: column; }
}
