/* ==========================================================================
   Frisierstüberl Waal – style.css
   Vanilla CSS, no frameworks. Design: "Oblique Split" (relaunch 2026).
   Structure:
     1. Fonts (self-hosted, GDPR compliant – no external requests)
     2. Design tokens (custom properties)
     3. Base / reset
     4. Layout helpers
     5. Site header & navigation
     6. Hero, subpage header & notice box
     7. Category cards (home)
     8. Reusable content components (split, services, prices, prose, buttons)
     9. Site footer
    10. Utilities
   ========================================================================== */

/* 1. Fonts --------------------------------------------------------------- */
@font-face {
  font-family: "Roboto Condensed";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/roboto-condensed/roboto-condensed-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/roboto-condensed/roboto-condensed-latin-700-normal.woff2") format("woff2");
}

/* 2. Design tokens ------------------------------------------------------- */
:root {
  /* Salon brand colours (taken from the original site + logo) */
  --color-brand-dark: #5f1516;
  --color-brand-rose: #cc8777;
  --color-brand-red: #a52526;
  --color-white: #ffffff;
  --color-text: #333333;
  --color-brand-rose-light: color-mix(in srgb, var(--color-brand-rose) 60%, #fff); /* headings on dark */
  --color-brand-deep: color-mix(in srgb, var(--color-brand-dark) 65%, #000);
  --glow: 0 0 1.5rem rgb(204 135 119 / 0.45);
  --color-brand-soft: color-mix(in srgb, var(--color-brand-dark) 92%, #fff);

  --font-body: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;

  --container: 70rem;
  --gutter: 1rem;
  --radius: 0.5rem;
  --slant: clamp(1.25rem, 4.5vw, 4rem); /* height of the oblique edges */
  --shadow: 0 0.75rem 1.5rem rgb(0 0 0 / 0.3);

  --bp-nav: 75rem; /* 1200px – documented only; media queries use this value */
}

/* 3. Base / reset -------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-white);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  color: var(--color-brand-dark);
  font-weight: 700;
  line-height: 1.2;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--color-brand-dark);
}

a:hover {
  color: var(--color-brand-red);
}

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.icon {
  flex: none;
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scissors {
  stroke: none;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* 4. Layout helpers ------------------------------------------------------ */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

main {
  overflow-x: clip;
}

.section {
  padding-block: 2.5rem;
}

/* 5. Site header & navigation ------------------------------------------- */
.site-header {
  position: relative;
  z-index: 2;
  padding-block: 0.5rem calc(var(--slant) + 0.25rem);
  background: var(--color-brand-rose);
  color: var(--color-brand-dark);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%);
}

/* One row on desktop: logo | navigation | phone. Wraps on mobile. */
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.site-logo {
  display: block;
  flex: none;
  width: clamp(11rem, 36vw, 15rem);
}

.site-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.header-contact {
  order: 3;
  margin: 0 0 0 auto;
  text-align: center;
  line-height: 1.15;
}

.header-contact__label {
  display: block;
  font-size: clamp(1rem, 3.375vw, 1.62rem);
  font-weight: 700;
}

.header-contact__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-white);
  font-size: clamp(1.35rem, 4.5vw, 2.16rem);
  font-weight: 700;
  text-decoration: none;
  text-shadow: 0 1px 3px rgb(95 21 22 / 0.55); /* keeps white readable on rose */
  white-space: nowrap;
}

.header-contact__phone:hover {
  color: var(--color-brand-dark);
  text-decoration: underline;
  text-shadow: none;
}

/* Mobile menu button – only shown when JS is available */
.nav-toggle {
  order: 4;
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 2px solid var(--color-brand-dark);
  border-radius: var(--radius);
  background: transparent;
  color: var(--color-brand-dark);
  cursor: pointer;
}

.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  background: var(--color-brand-dark);
  color: var(--color-brand-rose);
}

.nav-toggle .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.js .nav-toggle {
  display: inline-flex;
}

.site-nav {
  order: 5;
  flex: 1 0 100%; /* mobile: full row below logo/phone */
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.3rem 1rem;
  border-radius: 0.25rem;
  color: var(--color-brand-dark);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  background: var(--color-brand-dark);
  color: var(--color-brand-rose);
}

/* Mobile: collapsed menu when JS is active */
.js .site-nav {
  display: none;
}

.js .site-nav.is-open {
  display: block;
}

@media (min-width: 75rem) {
  .js .nav-toggle {
    display: none;
  }

  .js .site-nav,
  .js .site-nav.is-open {
    display: block;
  }

  .site-nav {
    order: 2;
    flex: 1 1 auto;
  }

  .site-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 0.25rem;
  }

  .site-nav a {
    min-height: 0;
    padding: 0.3rem 0.8rem;
    font-size: 1.2rem;
  }
}

/* 6. Hero, subpage header & notice box ----------------------------------- */
.hero,
.page-header {
  position: relative;
  z-index: 1;
  margin-top: calc(var(--slant) * -1);
  background:
    radial-gradient(ellipse 60% 70% at 50% 35%, rgb(204 135 119 / 0.28), transparent 70%),
    radial-gradient(ellipse 40% 50% at 90% 100%, rgb(165 37 38 / 0.35), transparent 70%),
    var(--color-brand-dark);
  color: var(--color-brand-rose);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%);
}

.hero {
  padding: calc(var(--slant) + 1.5rem) var(--gutter) calc(var(--slant) + 6.5rem);
}

/* Compact header for subpages: <h1> + subtitle */
.page-header {
  padding: calc(var(--slant) + 1rem) var(--gutter) calc(var(--slant) + 1.25rem);
  text-align: center;
}

.page-header:not(:has(.page-header__quote)) {
  display: flex;
  align-items: center;
  min-height: calc(2 * var(--slant) + 2.25rem + 1.35 * clamp(2rem, 6vw, 3rem));
}

.page-header:has(.page-header__subtitle) {
  padding-block: calc(var(--slant) + 0.35rem) calc(var(--slant) + 0.5rem);
}

.page-header h1 {
  margin-bottom: 0.15em;
  color: var(--color-brand-rose-light);
  font-size: clamp(2rem, 6vw, 3rem);
  text-shadow: 0 0 1rem rgb(204 135 119 / 0.5);
}

.page-header:has(.page-header__subtitle) h1 {
  margin-bottom: 0.05em;
  line-height: 1.05;
}

.page-header__subtitle {
  margin: 0;
  color: var(--color-white);
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  line-height: 1.2;
}

.page-header__quote {
  max-width: 42rem;
  margin: 0.75rem auto 0;
  color: var(--color-white);
}

.page-header__quote p {
  margin: 0 0 0.5rem;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-style: italic;
  line-height: 1.35;
}

.page-header__author {
  color: var(--color-brand-rose-light);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.notice {
  position: relative;
  max-width: 46rem;
  margin-inline: auto;
  padding: 2rem 1.25rem 2.25rem;
  border: 2px solid var(--color-brand-rose);
  border-radius: var(--radius);
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--color-brand-dark) 90%, #fff),
    var(--color-brand-deep)
  );
  box-shadow:
    inset 0 0 0 0.4rem var(--color-brand-dark),
    inset 0 0 0 calc(0.4rem + 1px) rgb(204 135 119 / 0.55),
    0 0 2.5rem rgb(204 135 119 / 0.3),
    0 1rem 2rem rgb(0 0 0 / 0.35);
  color: var(--color-brand-rose);
  text-align: center;
}

/* Glossy highlight across the upper half of the box */
.notice::after {
  content: "";
  position: absolute;
  inset: 0 0 50% 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.09), rgb(255 255 255 / 0));
  pointer-events: none;
}

.notice__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--color-brand-rose-light);
  font-size: clamp(1.25rem, 3.5vw, 1.6rem);
  letter-spacing: 0.18em;
  text-shadow: 0 0 0.75rem rgb(204 135 119 / 0.55);
  text-transform: uppercase;
}

.notice__title::before,
.notice__title::after {
  content: "";
  flex: 1;
  max-width: 5rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.notice__lead {
  margin-bottom: 1rem;
  color: var(--color-white);
  font-size: clamp(1.5rem, 5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
}

.notice p:last-child {
  margin-bottom: 0;
}

.notice a {
  color: var(--color-white);
}

.notice a:hover {
  color: var(--color-brand-rose);
}

/* 7. Category cards (home) ----------------------------------------------- */
.categories {
  position: relative;
  z-index: 3;
  margin-top: calc(-1 * (var(--slant) + 3rem));
  padding-bottom: 3rem;
}

.cards-wrap {
  position: relative;
}

.cards {
  --skew: -4deg;
  display: grid;
  gap: 2.5rem;
  margin: 0;
  padding: 0 0 1rem;
  list-style: none;
}

/* Mobile: stacked, zig-zag, slightly overlapping */
.cards li {
  position: relative;
  width: 86%;
}

.cards li:nth-child(1) {
  z-index: 1;
}

.cards li:nth-child(2) {
  z-index: 2;
  margin: -0.5rem 0 0 auto;
}

.cards li:nth-child(3) {
  z-index: 3;
  margin-top: -0.5rem;
}

.card-link {
  position: relative;
  display: block;
  overflow: hidden;
  border: 3px solid var(--color-brand-rose);
  border-radius: var(--radius);
  background: var(--color-brand-dark);
  box-shadow: var(--glow), var(--shadow);
  color: var(--color-brand-rose-light);
  text-decoration: none;
  transform: skewY(var(--skew));
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.card-link img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.card-link__label {
  display: block;
  padding: 0.4rem 1rem 0.5rem;
  background: var(--color-brand-dark);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 0 0.75rem rgb(204 135 119 / 0.5);
}

.card-link:hover,
.card-link:focus-visible {
  color: var(--color-white);
  transform: skewY(var(--skew)) translateY(-0.4rem) scale(1.02);
  box-shadow: 0 0 2.25rem rgb(204 135 119 / 0.7), 0 1.25rem 2rem rgb(0 0 0 / 0.4);
}

/* Decorative scissors – desktop only */
.cards__scissors {
  display: none;
}

@media (min-width: 48rem) {
  .cards {
    --skew: -6deg;
    grid-template-columns: repeat(13, 1fr);
    gap: 0;
    padding-bottom: 3rem;
  }

  .cards li {
    grid-row: 1;
    width: auto;
  }

  .cards li:nth-child(1) {
    grid-column: 1 / span 5;
    margin: 1.5rem 0 0;
  }

  .cards li:nth-child(2) {
    grid-column: 5 / span 5;
    margin: 5rem 0 0;
  }

  .cards li:nth-child(3) {
    grid-column: 9 / span 5;
    margin: 8.5rem 0 0;
  }

  .cards__scissors {
    position: absolute;
    z-index: 4;
    display: block;
    height: auto;
    aspect-ratio: 12 / 5;
    color: var(--color-brand-rose);
    filter: drop-shadow(0 0 0.5rem rgb(204 135 119 / 0.6));
    pointer-events: none;
  }

  .cards__scissors--top {
    top: 0;
    right: 3%;
    width: clamp(9rem, 16vw, 13rem);
    transform: rotate(50deg);
  }

  .cards__scissors--bottom {
    bottom: 0.5rem;
    left: 4%;
    width: clamp(8rem, 14vw, 11.5rem);
    transform: rotate(-38deg);
  }
}

/* 8. Reusable content components ----------------------------------------- */

/* 8a. Two-column block: image + text */
.split {
  display: grid;
  align-items: center;
  gap: 1.5rem 2.5rem;
  padding-block: 1.5rem;
}

.split__media img {
  display: block;
  width: 100%;
  height: auto;
  border: 3px solid var(--color-brand-rose);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.split__body h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
}

@media (min-width: 48rem) {
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split--reverse .split__media {
    order: 2;
  }
}

/* 8b. Service cards */
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service {
  padding: 1.25rem;
  border: 2px solid var(--color-brand-rose);
  border-radius: var(--radius);
  background: var(--color-white);
}

.service h2,
.service h3 {
  margin-bottom: 0.35em;
  font-size: 1.35rem;
}

.service p {
  margin: 0;
}

.service img {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: calc(var(--radius) - 2px);
}

.service--center {
  text-align: center;
}

.service--center h2,
.service--center h3 {
  margin-bottom: 0;
}

@keyframes slide-in-up {
  from {
    opacity: 0;
    transform: translateY(1.75rem) skewY(var(--skew, 0deg));
  }

  to {
    opacity: 1;
    transform: translateY(0) skewY(var(--skew, 0deg));
  }
}

.service-list--stagger {
  --skew: -3deg;
  padding-block: 0.75rem;
}

@media (min-width: 48rem) {
  .service-list--stagger {
    --skew: -4.5deg;
  }
}

.service-list--stagger > li {
  transform: skewY(var(--skew));
  animation: slide-in-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.service-list--stagger > li:nth-child(1) {
  animation-delay: 0.1s;
}

.service-list--stagger > li:nth-child(2) {
  animation-delay: 0.35s;
}

.service-list--stagger > li:nth-child(3) {
  animation-delay: 0.6s;
}

/* 8c. Price list – wraps on small screens, never scrolls horizontally */
.price-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-list > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.15rem 1rem;
  align-items: baseline;
  padding: 0.75rem 0;
  border-bottom: 1px dotted var(--color-brand-rose);
}

.price-list__name {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.price-list__price {
  color: var(--color-brand-dark);
  font-weight: 700;
  white-space: nowrap;
}

.price-list__note {
  grid-column: 1 / -1;
  font-size: 1rem;
  opacity: 0.85;
}

/* 8d. Readable text container for legal pages (Impressum / Datenschutz) */
.prose {
  max-width: 75ch;
  margin-inline: auto;
  padding: 2rem var(--gutter) 3rem;
  overflow-wrap: break-word;
}

.prose h2 {
  margin-top: 1.75em;
  font-size: 1.6rem;
}

.prose h3 {
  margin-top: 1.5em;
  font-size: 1.3rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
}

.prose li {
  margin-bottom: 0.35em;
}

/* 8e. Button */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border: 2px solid var(--color-brand-dark);
  border-radius: var(--radius);
  background: var(--color-brand-dark);
  color: var(--color-brand-rose);
  font-weight: 700;
  text-decoration: none;
}

.btn:hover,
.btn:focus-visible {
  background: var(--color-brand-rose);
  color: var(--color-brand-dark);
}

/* 8f. Framed media figure */
.media-frame {
  margin: 0;
}

.media-frame img {
  display: block;
  width: 100%;
  height: auto;
  border: 3px solid var(--color-brand-rose);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.media-frame--spaced {
  margin-top: 2rem;
}

/* 8g. Section headings, oblique showcase cards & image gallery */
.section-title {
  margin-bottom: 1.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  text-align: center;
}

.oblique-grid {
  --skew: -3deg;
  display: grid;
  align-items: center;
  gap: 2.25rem;
  margin: 0;
  padding: 1.25rem 0;
  list-style: none;
}

@media (min-width: 48rem) {
  .oblique-grid {
    --skew: -4.5deg;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.25rem 2.5rem;
  }

  .oblique-grid--three {
    grid-template-columns: repeat(3, 1fr);
  }
}

.oblique-card {
  display: block;
  overflow: hidden;
  border: 3px solid var(--color-brand-rose);
  border-radius: var(--radius);
  background: var(--color-brand-dark);
  box-shadow: var(--glow), var(--shadow);
  transform: skewY(var(--skew));
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.oblique-card img {
  display: block;
  width: 100%;
  height: auto;
}

.oblique-card--wide img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.oblique-card--portrait img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.oblique-card--labeled {
  color: var(--color-brand-rose-light);
  text-decoration: none;
}

.oblique-card--labeled img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.oblique-card__label {
  display: block;
  padding: 0.45rem 1rem 0.55rem;
  background: var(--color-brand-dark);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 0 0.75rem rgb(204 135 119 / 0.5);
}

.oblique-card--labeled:hover,
.oblique-card--labeled:focus-visible {
  color: var(--color-white);
}

.oblique-single {
  --skew: -2.5deg;
  padding-block: 1.25rem;
}

.oblique-single--spaced {
  margin-top: 1.25rem;
}

@media (min-width: 48rem) {
  .oblique-single {
    --skew: -3.5deg;
  }
}

.oblique-card:hover,
.oblique-card:focus-visible {
  transform: skewY(var(--skew)) translateY(-0.35rem) scale(1.015);
  box-shadow: 0 0 2.25rem rgb(204 135 119 / 0.7), 0 1.25rem 2rem rgb(0 0 0 / 0.4);
}

/* 8h. Peek carousel (Salon) */
.carousel {
  --skew: -2.5deg;
  position: relative;
  padding-block: 1.25rem 0.5rem;
}

.carousel__viewport {
  position: relative;
  overflow: hidden;
  padding-block: 1.5rem;
}

.carousel__stage {
  position: relative;
  width: min(82%, 44rem);
  margin-inline: auto;
  aspect-ratio: 16 / 9;
}

.carousel__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  transition:
    transform 0.55s ease,
    opacity 0.55s ease,
    filter 0.55s ease;
}

.carousel__slide a {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 3px solid var(--color-brand-rose);
  border-radius: var(--radius);
  background: var(--color-brand-dark);
  box-shadow: var(--glow), var(--shadow);
}

.carousel__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel__slide[data-pos="center"] {
  z-index: 3;
  opacity: 1;
  transform: translateX(0) scale(1) skewY(var(--skew));
}

.carousel__slide[data-pos="prev"] {
  z-index: 1;
  opacity: 0.55;
  filter: brightness(0.75);
  transform: translateX(-26%) scale(0.84) skewY(var(--skew));
  cursor: pointer;
}

.carousel__slide[data-pos="next"] {
  z-index: 1;
  opacity: 0.55;
  filter: brightness(0.75);
  transform: translateX(26%) scale(0.84) skewY(var(--skew));
  cursor: pointer;
}

.carousel__slide[data-pos="prev"]:hover,
.carousel__slide[data-pos="next"]:hover {
  opacity: 0.8;
  filter: brightness(0.9);
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.75rem;
}

.carousel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 2px solid var(--color-brand-dark);
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-brand-dark);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.carousel__btn:hover,
.carousel__btn:focus-visible {
  background: var(--color-brand-dark);
  color: var(--color-brand-rose-light);
}

.carousel__dots {
  display: flex;
  gap: 0.5rem;
}

.carousel__dot {
  width: 0.85rem;
  height: 0.85rem;
  padding: 0;
  border: 2px solid var(--color-brand-dark);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.carousel__dot[aria-current="true"] {
  background: var(--color-brand-dark);
}

@media (min-width: 48rem) {
  .carousel {
    --skew: -3.5deg;
  }

  .carousel__slide[data-pos="prev"] {
    transform: translateX(-30%) scale(0.84) skewY(var(--skew));
  }

  .carousel__slide[data-pos="next"] {
    transform: translateX(30%) scale(0.84) skewY(var(--skew));
  }
}

/* 8i. Lightbox popup */
a[data-lightbox] {
  display: block;
  cursor: zoom-in;
}

.lightbox {
  max-width: min(94vw, 72rem);
  max-height: 90vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgb(0 0 0 / 0.82);
  cursor: pointer;
}

.lightbox__frame {
  position: relative;
}

.lightbox__img {
  display: block;
  max-width: min(92vw, 70rem);
  max-height: 85vh;
  width: auto;
  height: auto;
  border: 3px solid var(--color-brand-rose);
  border-radius: var(--radius);
  background: var(--color-brand-dark);
  box-shadow: var(--glow), var(--shadow);
}

.lightbox__close {
  position: absolute;
  top: -0.9rem;
  right: -0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 2px solid var(--color-brand-rose);
  border-radius: 50%;
  background: var(--color-brand-dark);
  color: var(--color-white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
  background: var(--color-brand-rose);
  color: var(--color-brand-dark);
}

/* 8j. Interactive media gallery (Medien) */
.media-viewer {
  --skew: -2.5deg;
  max-width: 56rem;
  margin-inline: auto;
}

.media-viewer__stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding-block: 1rem;
}

.media-viewer__main img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-viewer__counter {
  margin: 0.75rem 0 1.25rem;
  color: var(--color-brand-dark);
  font-weight: 700;
  text-align: center;
}

.media-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 5.25rem), 1fr));
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.media-thumb {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 2px solid rgb(204 135 119 / 0.55);
  border-radius: calc(var(--radius) - 2px);
  background: var(--color-brand-dark);
  opacity: 0.6;
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.media-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-thumb:hover,
.media-thumb:focus-visible {
  opacity: 0.92;
  transform: translateY(-2px);
}

.media-thumb[aria-current="true"] {
  opacity: 1;
  border-color: var(--color-brand-dark);
  box-shadow: 0 0 0 3px var(--color-brand-rose), var(--glow);
  transform: translateY(-3px) scale(1.04);
}

@media (min-width: 48rem) {
  .media-viewer {
    --skew: -3.5deg;
  }

  .media-viewer__stage {
    gap: 1.5rem;
  }
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery--wide {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}

.gallery__item {
  display: block;
  overflow: hidden;
  border: 3px solid var(--color-brand-rose);
  border-radius: var(--radius);
  background: var(--color-brand-dark);
  box-shadow: var(--shadow);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.gallery__item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery--wide .gallery__item img {
  aspect-ratio: 16 / 9;
}

.gallery__item:hover,
.gallery__item:focus-visible {
  transform: translateY(-0.25rem);
  box-shadow: var(--glow), var(--shadow);
}

/* 9. Site footer --------------------------------------------------------- */

/* Oblique divider (inline SVG, anti-aliased). Like the design: the red area
   starts with a slanted edge (bottom-left to top-right); both gold lines run
   inside the red. Stroke widths stay constant in px. */
.footer-divider {
  --divider-h: clamp(3rem, 8vw, 6rem);
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: var(--divider-h);
  overflow: visible;
}

.footer-divider__fill {
  fill: var(--color-brand-dark);
}

.footer-divider__line {
  stroke: var(--color-brand-rose);
  stroke-width: 2px;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 3px rgb(204 135 119 / 0.6));
}

.footer-divider__line--thick {
  stroke-width: 3.5px;
}

.site-footer {
  position: relative;
  margin-top: -1px;
  /* leave room for the lower line, which dips below the divider on the left */
  padding: calc(clamp(3rem, 8vw, 6rem) * 0.3 + 1.25rem) 0 1.5rem;
  background: var(--color-brand-dark);
  color: var(--color-white);
  font-size: 1.05rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 2rem;
}

.site-footer h2 {
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--color-brand-rose);
  color: var(--color-brand-rose-light);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer a {
  color: var(--color-white);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--color-brand-rose);
}

.site-footer address {
  font-style: normal;
}

.site-footer address p {
  margin-bottom: 0.15em;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin-bottom: 0;
}

.footer-links a,
.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.25rem;
}

.footer-contact {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

/* Opening hours: definition list in a 2-column grid, wraps on mobile */
.hours {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  margin: 0;
}

.hours dt {
  font-weight: 700;
}

.hours dd {
  margin: 0;
}

.footer-copy {
  margin: 2rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgb(204 135 119 / 0.4);
  color: var(--color-brand-rose);
  font-size: 0.95rem;
  text-align: center;
}

/* 10. Utilities ---------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  white-space: nowrap;
  clip-path: inset(50%);
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0.5rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--color-brand-dark);
  color: var(--color-white);
  transform: translateY(-120%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

  .card-link,
  .gallery__item,
  .oblique-card,
  .carousel__slide,
  .media-thumb {
    transition: none;
  }

  .service-list--stagger > li {
    animation: none;
  }
}
