/* Kamm In - dark design (homepage first, other pages follow) */

@font-face {
  font-family: Manrope;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0e0c10;
  --bg-2: #131016;
  --card: #1a161d;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5eff4;
  --muted: #bdb1bc;
  --lila: #90127d;
  --lila-bright: #b51a9e;
  --lila-text: #e07ad0;
  --max: 1200px;
  --gutter: 16px;
  --header-h: 72px;
  --radius: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  min-height: 100vh;
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--lila-text);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(28px, 3.4vw, 42px);
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--lila);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
}

.skip-link:focus {
  top: 0;
}

/* Phone labels: number on devices with a mouse, call label on touch devices */
.tel-pc {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .tel-touch {
    display: none;
  }

  .tel-pc {
    display: inline;
  }
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 12, 16, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.logo-wrap img {
  width: auto;
  height: 48px;
}

.nav {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  flex-direction: column;
  padding: 8px var(--gutter) 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.nav.is-open {
  display: flex;
}

.nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.nav .nav-cta {
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--text);
  border: 1.5px solid var(--lila-bright);
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.nav .nav-cta:hover {
  background: rgba(181, 26, 158, 0.3);
}

.menu-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 0 12px;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  cursor: pointer;
}

.menu-btn-line {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-btn.is-open .menu-btn-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-btn.is-open .menu-btn-line:nth-child(2) {
  opacity: 0;
}

.menu-btn.is-open .menu-btn-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 22px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, var(--lila-bright), var(--lila));
  box-shadow: 0 8px 28px rgba(144, 18, 125, 0.35);
}

/* Hover: fade in a lighter layer instead of switching the gradient abruptly */
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #d63dbd, #b01a98);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  box-shadow: 0 10px 36px rgba(181, 26, 158, 0.55);
}

.btn-outline {
  border: 1.5px solid var(--lila-bright);
}

.btn-outline:hover {
  background: rgba(181, 26, 158, 0.3);
}

.btn-call {
  min-height: 64px;
  padding: 10px 20px;
  gap: 16px;
}

.btn-call-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  text-align: left;
}

.btn-call-text small {
  font-size: 13.5px;
  font-weight: 600;
}

.btn-call-text strong {
  font-size: 18px;
  font-weight: 800;
}

.btn-call .icon-arrow {
  margin-left: 12px;
  transition: transform 0.3s ease;
}

.btn-call:hover .icon-arrow {
  transform: translateX(5px);
}

/* Section basics */
.section {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--lila-text);
}

.kicker-bar::before,
.bar {
  content: "";
  display: block;
  width: 26px;
  height: 3px;
  background: var(--lila-bright);
  border-radius: 2px;
}

.bar {
  margin-bottom: 20px;
}

.section-lead {
  max-width: 62ch;
  margin-top: 12px;
  color: var(--muted);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 72% top;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent);
  mask-image: linear-gradient(to bottom, #000 62%, transparent);
}

.hero-inner {
  position: relative;
  margin-top: -48px;
  padding-bottom: 56px;
}

.hero-meta {
  margin-bottom: 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
}

.hero h1 {
  font-size: clamp(34px, 3.7vw, 52px);
  line-height: 1.1;
}

.hero-lead {
  max-width: 46ch;
  margin: 18px 0 30px;
  font-size: 17.5px;
  color: #ded4dd;
}

/* Google rating (numbers are a manual snapshot, update from the Google profile) */
.rating {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  min-height: 44px;
  margin-top: 18px;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
}

.rating strong {
  color: var(--text);
}

.rating:hover span:last-child {
  text-decoration: underline;
}

.stars {
  display: inline-flex;
  gap: 2px;
}

.stars svg {
  width: 18px;
  height: 18px;
  fill: #f5b301;
}

.hero .rating {
  display: flex;
  width: fit-content;
}

/* News box (only shown when switched on in _partials/aktuelles.php) */
.notice {
  margin-bottom: 48px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--lila-bright);
  border-radius: var(--radius);
}

.notice-eyebrow {
  font-size: 14px;
  font-weight: 700;
  color: var(--lila-text);
}

.notice h2 {
  margin: 6px 0 10px;
  font-size: 24px;
}

.notice p {
  color: var(--muted);
}

.notice p + p {
  margin-top: 10px;
}

/* Kamm In Moment */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 32px;
  list-style: none;
}

.chips a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.chips a:hover {
  background: rgba(181, 26, 158, 0.3);
  border-color: var(--lila-bright);
}

.moment-grid {
  display: grid;
  gap: 18px;
}

.moment-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.moment-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.moment-card .img-top {
  object-position: center 15%;
}

.moment-body {
  padding: 20px 22px 24px;
}

.moment-body h3 {
  font-size: 21px;
}

.moment-body .price-kicker + h3 {
  margin: 2px 0 10px;
}

.moment-sub {
  margin: 2px 0 12px;
  font-weight: 600;
  color: var(--lila-text);
}

.moment-body p:last-child {
  font-size: 15.5px;
  color: var(--muted);
}

/* Split sections: photo fading into the dark side */
.split {
  position: relative;
  overflow: hidden;
  padding: 0 0 56px;
  border-top: 1px solid var(--line);
}

.split-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
}

.split-img-gl {
  object-position: 30% center;
}

.split-copy {
  position: relative;
  margin-top: -24px;
}

.split-copy p:not(.kicker) {
  margin-top: 14px;
  color: #ddd2dc;
}

.split-copy h2 {
  max-width: 16ch;
}

.split-copy .btn {
  margin-top: 28px;
}

/* Great Lengths partner box (iframe from greatlengthspartner.com) */
.iframe-card {
  margin-top: 28px;
  padding: 10px;
  max-width: 560px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.iframe-frame {
  overflow: hidden;
  background: rgba(144, 18, 125, 0.16);
  border-radius: 6px;
}

.iframe-frame iframe {
  display: block;
  width: 100%;
  height: 185px;
  border: 0;
  transition: opacity 0.6s ease;
}

/* Hidden until the partner page has loaded (set by main.js), so no white box shows up */
.iframe-frame iframe.is-waiting {
  opacity: 0;
}

/* Testimonials */
.quote-grid {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.quote {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.quote-mark {
  height: 34px;
  font-size: 54px;
  font-weight: 800;
  line-height: 1;
  color: var(--lila-text);
}

.quote p {
  flex: 1;
  margin: 8px 0 18px;
  font-size: 15.5px;
  color: #ddd2dc;
}

.quote strong {
  font-size: 15px;
}

.quote-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 28px;
}

.quote-more .rating {
  margin-top: 0;
}

/* Gallery */
.gallery-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 32px;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--lila-text);
  text-decoration: none;
}

.instagram-link:hover {
  text-decoration: underline;
}

.instagram-link .icon {
  width: 18px;
  height: 18px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 28px;
}

/* Exactly one row of three, also on phones */
.gallery-grid.gallery-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-item {
  margin: 0;
}

.gallery-open {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: zoom-in;
}

.gallery-open img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-open:hover img {
  transform: scale(1.03);
}

/* Lightbox: photo grows out of its tile (view transition), swipeable track, backdrop from the photo, booking bar */
html.gallery-lock {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-columns: minmax(0, 1fr);
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox > * {
  min-width: 0;
}

.gallery-lightbox.is-fading {
  animation: fade-in 0.35s ease both;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #0b090d;
  opacity: var(--gallery-dim, 1);
}

.gallery-lightbox-backdrop img {
  position: absolute;
  inset: -10%;
  width: 120%;
  max-width: none;
  height: 120%;
  object-fit: cover;
  filter: blur(70px) saturate(1.3) brightness(0.5);
  opacity: 0;
  transition: opacity 0.8s ease;
}

.gallery-lightbox-backdrop img.is-on {
  opacity: 0.9;
}

.gallery-lightbox-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(8, 6, 10, 0.15) 30%, rgba(8, 6, 10, 0.8) 100%);
}

.gallery-lightbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.gallery-lightbox-count {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.gallery-lightbox-count strong {
  color: var(--text);
}

.gallery-lightbox-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  color: #fff;
  background: rgba(14, 12, 16, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background-color 0.35s ease, border-color 0.35s ease, opacity 0.3s ease;
}

.gallery-lightbox-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery-lightbox-btn:disabled {
  opacity: 0.25;
  cursor: default;
}

.gallery-lightbox-btn:focus-visible,
.gallery-lightbox-thumb:focus-visible {
  outline: 2px solid var(--lila-text);
  outline-offset: 3px;
}

.gallery-lightbox-stage {
  position: relative;
  min-height: 0;
}

.gallery-lightbox-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior: contain;
  scrollbar-width: none;
  touch-action: pan-x pinch-zoom;
}

.gallery-lightbox-track::-webkit-scrollbar {
  display: none;
}

.gallery-lightbox-track:focus {
  outline: none;
}

.gallery-lightbox-slide {
  display: flex;
  flex: 0 0 100%;
  align-items: center;
  justify-content: center;
  min-width: 0;
  margin: 0;
  padding: 0 16px;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.gallery-lightbox-slide img {
  width: auto;
  max-width: min(100%, 1100px);
  height: auto;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85);
}

.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 56px;
  height: 56px;
  transform: translateY(-50%);
}

.gallery-lightbox-prev {
  left: 20px;
}

.gallery-lightbox-next {
  right: 20px;
}

@media (hover: none), (max-width: 639px) {
  .gallery-lightbox-nav {
    width: 48px;
    height: 48px;
  }

  .gallery-lightbox-prev {
    left: 10px;
  }

  .gallery-lightbox-next {
    right: 10px;
  }
}

.gallery-lightbox-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
}

.gallery-lightbox-thumbs {
  display: none;
  gap: 8px;
  max-width: 100%;
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.gallery-lightbox-thumb {
  flex: none;
  width: 48px;
  height: 64px;
  padding: 0;
  overflow: hidden;
  background: var(--card);
  border: 1.5px solid transparent;
  border-radius: 6px;
  opacity: 0.45;
  cursor: pointer;
  transition: opacity 0.35s ease, border-color 0.35s ease;
}

.gallery-lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-lightbox-thumb[aria-current="true"] {
  border-color: var(--lila-bright);
  opacity: 1;
}

@media (hover: hover) {
  .gallery-lightbox-btn:not(:disabled):hover {
    background: rgba(181, 26, 158, 0.55);
    border-color: var(--lila-bright);
  }

  .gallery-lightbox-thumb:hover {
    opacity: 0.85;
  }
}

.gallery-lightbox-cta {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 420px;
}

.gallery-lightbox-cta .btn {
  flex: 1;
  white-space: nowrap;
}

/* While swiping, the outgoing photo shrinks and dims, the incoming one grows in */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .gallery-lightbox-slide img {
      animation: gallery-slide linear both;
      animation-timeline: view(inline);
    }
  }
}

@keyframes gallery-slide {
  0% { opacity: 0.2; scale: 0.86; }
  50% { opacity: 1; scale: 1; }
  100% { opacity: 0.2; scale: 0.86; }
}

::view-transition-group(gallery-photo) {
  overflow: clip;
  border-radius: 10px;
  animation-duration: 0.55s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

::view-transition-old(gallery-photo),
::view-transition-new(gallery-photo) {
  height: 100%;
  object-fit: cover;
  animation-duration: 0.55s;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.45s;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 36px;
}

.contact-items {
  display: grid;
  gap: 22px;
  margin: 30px 0 32px;
}

.contact-item {
  display: flex;
  gap: 14px;
  font-size: 15.5px;
  line-height: 1.5;
  text-decoration: none;
  border-radius: 8px;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: none;
  color: var(--lila-text);
  border: 1.5px solid var(--lila-bright);
  border-radius: 8px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-item strong,
.contact-item .contact-value,
.contact-item .contact-text,
.contact-item .note {
  display: block;
}

.contact-item strong {
  font-size: 14px;
  color: var(--muted);
}

.contact-value {
  font-weight: 700;
}

.contact-item .note {
  font-size: 14.5px;
  color: var(--muted);
}

/* Hover: box fills with lila, each icon moves once */
.contact-item:hover .contact-icon,
.contact-item:focus-visible .contact-icon {
  background: var(--lila-bright);
  color: #fff;
}

.contact-item:hover .contact-value,
.contact-item:hover .contact-text {
  text-decoration: underline;
}

.contact-item:hover .icon-ring {
  animation: icon-ring 0.7s ease;
}

.contact-item:hover .icon-hop {
  animation: icon-hop 0.6s ease;
}

.clock-hand {
  transform-box: view-box;
  transform-origin: 12px 12px;
}

.contact-item:hover .clock-hand {
  animation: clock-turn 0.9s ease-in-out;
}

@keyframes icon-ring {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(-14deg); }
  30% { transform: rotate(12deg); }
  45% { transform: rotate(-9deg); }
  60% { transform: rotate(6deg); }
  75% { transform: rotate(-3deg); }
}

@keyframes icon-hop {
  0%, 70%, 100% { transform: translateY(0); }
  35% { transform: translateY(-5px); }
  85% { transform: translateY(-2px); }
}

@keyframes clock-turn {
  to { transform: rotate(360deg); }
}

.map-card {
  align-self: start;
}

.map-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.map-link img {
  width: 100%;
  aspect-ratio: 10 / 7;
  object-fit: cover;
}

.map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  transform: translate(-14px, -100%);
  font-size: 14px;
  font-weight: 800;
  color: #1c1220;
  white-space: nowrap;
}

.map-pin svg {
  width: 28px;
  height: 38px;
}

.map-pin span {
  margin-bottom: 14px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 4px;
}

.map-pin b {
  color: var(--lila);
}

.map-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.map-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--lila-text);
  text-decoration: none;
}

.map-meta a:hover {
  text-decoration: underline;
}

/* Subpage hero: same build as the homepage hero, smaller */
.hero-page .hero-img {
  aspect-ratio: 16 / 9;
  object-position: center;
}

.hero-page .hero-lead {
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

/* Nail studio motto: quiet lead-in, large punchline on a soft lila glow */
.section.statement-section {
  position: relative;
  overflow: hidden;
  padding: 56px 0;
}

.statement-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 50% 60%, rgba(144, 18, 125, 0.26), transparent 72%);
  pointer-events: none;
}

.statement {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.statement-bar {
  width: 40px;
  margin: 0 auto 22px;
}

.statement p {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.statement-lead {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 600;
  color: var(--muted);
  text-wrap: balance;
}

.statement-punch {
  font-size: 25px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

/* Each half of the motto is its own line; phones break only between its two word groups */
.statement-line {
  display: block;
}

.statement-line > span {
  white-space: nowrap;
}

.statement-line + .statement-line {
  margin-top: 6px;
}

.statement-punch strong {
  color: var(--lila-text);
}

.price-nav .chips {
  margin: 0 0 28px;
}

/* Price list */
.price-grid {
  display: grid;
  gap: 18px;
}

.section-lead + .price-grid,
.section-lead + .moment-grid {
  margin-top: 32px;
}

.price-card {
  padding: 24px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.price-kicker {
  font-size: 14px;
  font-weight: 700;
  color: var(--lila-text);
}

.price-card h2,
.price-card > h3 {
  margin: 4px 0 14px;
  font-size: 26px;
}

/* One-line card without heading (e.g. Schmucknägel) */
.price-card-row .price-list li {
  padding: 0;
  border-top: 0;
}

.price-list {
  list-style: none;
}

.price-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  font-size: 15.5px;
  border-top: 1px solid var(--line);
}

.price-list span {
  color: #ddd2dc;
}

.price-list em {
  display: block;
  font-size: 13.5px;
  font-style: normal;
  color: var(--muted);
}

.price-list i {
  flex: 1;
  min-width: 16px;
  border-bottom: 1px dotted var(--line-strong);
  transform: translateY(-5px);
}

.price-list strong {
  font-weight: 800;
  white-space: nowrap;
}

.price-groups {
  display: grid;
  gap: 22px;
}

.price-group h3 {
  margin-bottom: 4px;
  font-size: 16px;
}

.price-cta {
  display: grid;
  gap: 28px;
}

.price-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.price-cta-actions .btn-outline {
  min-height: 64px;
}

/* Text-only page head (legal pages, 404): no photo, soft lila glow instead */
.hero-text::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 90% at 85% 0%, rgba(144, 18, 125, 0.24), transparent 70%);
  pointer-events: none;
}

.hero-text .hero-inner {
  margin-top: 0;
  padding-top: 56px;
}

.hero-text .hero-lead {
  margin-bottom: 0;
}

/* Long words like "Datenschutzerklärung" must not run off small phones */
.hero-text h1 {
  hyphens: auto;
  overflow-wrap: break-word;
}

.hero-404 .hero-inner {
  padding-top: 24px;
  padding-bottom: 72px;
}

/* 404 artwork: scissors snip twice, the blade tip snaps off, the screw pops out.
   Runs once; the base styles are the broken end state (also shown with reduced motion). */
.hero-404-grid {
  display: grid;
  gap: 8px;
}

.broken-scissors {
  justify-self: center;
  width: min(86%, 340px);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 18px 36px rgba(144, 18, 125, 0.35));
  animation: fade-in 0.6s ease-out both;
}

.broken-scissors :is(.scissors-half, .scissors-screw) {
  transform-box: view-box;
  transform-origin: 218px 180px;
}

.broken-scissors :is(.scissors-tip, .scissors-flash, .scissors-shard) {
  transform-box: view-box;
  transform-origin: 332px 180px;
}

.scissors-half-a {
  transform: rotate(-10deg);
  animation: snip-a 1.8s 0.4s ease-in-out both;
}

.scissors-half-b {
  transform: translate(4px, 10px) rotate(20deg);
  animation: snip-b 1.8s 0.4s ease-in-out both;
}

.scissors-tip {
  transform: translate(-40px, 165px) rotate(10deg);
  animation: tip-fall 1.1s 1.6s both;
}

.scissors-screw {
  transform: translate(50px, 150px) rotate(200deg);
  animation: screw-pop 1s 1.6s both;
}

.scissors-flash,
.scissors-shard,
.scissors-blade-whole {
  opacity: 0;
}

/* Intact blade on top until the snap, so the break line does not show early */
.scissors-blade-whole {
  animation: blade-intact 1.6s step-end both;
}

@keyframes blade-intact {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.scissors-flash {
  animation: snap-flash 0.7s 1.6s ease-out;
}

.scissors-shard {
  animation: shard-fly 0.9s 1.6s ease-out;
}

.scissors-shard-1 { --shard-to: translate(60px, -50px) rotate(160deg); }
.scissors-shard-2 { --shard-to: translate(70px, 40px) rotate(-120deg); }
.scissors-shard-3 { --shard-to: translate(-10px, -70px) rotate(200deg); }

@keyframes snip-a {
  0%, 44% { transform: rotate(-18deg); }
  22%, 66% { transform: rotate(0deg); }
  78% { transform: rotate(-14deg); }
}

@keyframes snip-b {
  0%, 44% { transform: rotate(18deg); }
  22%, 66% { transform: rotate(0deg); }
  80% { transform: translate(6px, 14px) rotate(26deg); }
}

@keyframes tip-fall {
  0% {
    transform: none;
    animation-timing-function: cubic-bezier(0.5, 0, 0.9, 0.4);
  }
  60% {
    transform: translate(-36px, 165px) rotate(24deg);
    animation-timing-function: ease-out;
  }
  76% {
    transform: translate(-38px, 152px) rotate(4deg);
    animation-timing-function: ease-in;
  }
}

@keyframes screw-pop {
  0% {
    transform: none;
    animation-timing-function: ease-out;
  }
  35% {
    transform: translate(26px, -50px) rotate(90deg);
    animation-timing-function: cubic-bezier(0.5, 0, 0.9, 0.5);
  }
}

@keyframes snap-flash {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(7);
  }
}

@keyframes shard-fly {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: var(--shard-to);
  }
}

/* Short 404 page: the head fills the screen so the footer sits at the bottom */
.page-404 .site-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-404 main {
  display: flex;
  flex: 1;
}

.page-404 .hero-404 {
  flex: 1;
}

/* Legal pages: cards like the price list, long text with a contents list on desktop */
.legal-stack {
  display: grid;
  gap: 18px;
}

.legal-card {
  padding: 24px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.legal-card h2 {
  margin-bottom: 16px;
  font-size: 24px;
}

.legal-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.35;
}

.legal-card :is(p, li) {
  color: #ddd2dc;
}

.legal-card strong {
  color: var(--text);
}

.legal-card p + p,
.legal-card ul + p {
  margin-top: 14px;
}

.legal-card a {
  color: var(--lila-text);
  text-underline-offset: 3px;
  transition: color 0.3s ease;
}

.legal-card a:hover {
  color: var(--text);
}

.legal-contact-lines a {
  text-decoration: none;
}

.email-safe {
  word-break: break-word;
}

.legal-two-column {
  display: grid;
  gap: 28px;
}

.legal-columns > div + div {
  margin-top: 24px;
}

.legal-text h2 {
  margin: 44px 0 14px;
  font-size: 21px;
}

.legal-text h2:first-child {
  margin-top: 0;
}

.legal-text ul {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  list-style: none;
}

.legal-text li {
  position: relative;
  padding-left: 20px;
}

.legal-text li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 2px;
  width: 6px;
  height: 6px;
  background: var(--lila-bright);
  border-radius: 50%;
}

.legal-toc {
  display: none;
}

/* Motion (pages with body.motion): one-time entrances, soft but clear hovers, no loops */
.motion {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes rise-in {
  from {
    opacity: 0;
    translate: 0 26px;
  }
}

@keyframes hero-img-in {
  from {
    opacity: 0;
    transform: scale(1.07);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes reveal-safety {
  to {
    opacity: 1;
  }
}

@keyframes text-sweep {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: 0 0;
  }
}

/* Hero: photo settles in, text follows line by line */
.motion .hero-img {
  animation: hero-img-in 1.8s var(--ease-out) both;
}

.motion .hero-copy > * {
  animation: rise-in 0.9s var(--ease-out) both;
}

.motion .hero-copy > :nth-child(2) { animation-delay: 0.1s; }
.motion .hero-copy > :nth-child(3) { animation-delay: 0.2s; }
.motion .hero-copy > :nth-child(4) { animation-delay: 0.3s; }
.motion .hero-copy > :nth-child(5) { animation-delay: 0.4s; }

/* Scroll entrances: hidden until main.js marks them; safety fallback if the script never runs */
@media (scripting: enabled) {
  .motion [data-reveal]:not(.is-revealed) {
    opacity: 0;
    animation: reveal-safety 0s 4s forwards;
  }

  /* main.js is running: it reveals on scroll, so the timed fallback must not fire first */
  .reveal-ready .motion [data-reveal]:not(.is-revealed) {
    animation: none;
  }
}

.motion [data-reveal].is-revealed {
  animation: rise-in 0.9s var(--ease-out) both;
}

.motion h2[data-reveal].is-revealed { animation-delay: 0.08s; }
.motion .section-lead[data-reveal].is-revealed { animation-delay: 0.16s; }
.motion .price-cta-actions[data-reveal].is-revealed { animation-delay: 0.2s; }
.motion .chips[data-reveal].is-revealed { animation-delay: 0.24s; }

.motion :is(.moment-grid, .price-grid, .gallery-grid, .quote-grid, .contact-items) > [data-reveal].is-revealed:nth-child(2) { animation-delay: 0.1s; }
.motion :is(.moment-grid, .price-grid, .gallery-grid, .quote-grid, .contact-items) > [data-reveal].is-revealed:nth-child(3) { animation-delay: 0.2s; }
.motion :is(.moment-grid, .price-grid, .gallery-grid, .quote-grid, .contact-items) > [data-reveal].is-revealed:nth-child(4) { animation-delay: 0.3s; }
.motion :is(.moment-grid, .price-grid, .gallery-grid, .quote-grid, .contact-items) > [data-reveal].is-revealed:nth-child(5) { animation-delay: 0.4s; }
.motion :is(.moment-grid, .price-grid, .gallery-grid, .quote-grid, .contact-items) > [data-reveal].is-revealed:nth-child(6) { animation-delay: 0.5s; }

/* Motto: a light sweep runs once through the two key words */
.motion .statement strong {
  color: transparent;
  background: linear-gradient(100deg, var(--lila-text) 42%, #fff 50%, var(--lila-text) 58%) 100% 0 / 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
}

.motion .statement.is-revealed strong {
  animation: text-sweep 1.6s 0.6s ease-in-out both;
}

.motion .statement.is-revealed .statement-line:last-child strong {
  animation-delay: 1.1s;
}

/* Phones: the two halves rise in one after the other, then the sweep follows */
@media (max-width: 639px) {
  .motion .statement.is-revealed .statement-line {
    animation: rise-in 0.9s 0.25s var(--ease-out) both;
  }

  .motion .statement.is-revealed .statement-line:last-child {
    animation-delay: 0.6s;
  }

  .motion .statement.is-revealed strong {
    animation-delay: 1.1s;
  }

  .motion .statement.is-revealed .statement-line:last-child strong {
    animation-delay: 1.5s;
  }
}

/* Cards lift with a lila edge */
.motion :is(.moment-card, .price-card, .quote) {
  transition: transform 0.45s var(--ease-out), border-color 0.45s ease, box-shadow 0.45s ease;
}

/* Price rows: leader line and price turn lila */
.motion .price-list i {
  transition: border-color 0.35s ease;
}

.motion .price-list :is(span, strong) {
  transition: color 0.35s ease;
}

/* Gallery (only grids marked .gallery-fx): photos sit slightly dimmed, light up and zoom on hover */
.motion .gallery-fx .gallery-open {
  position: relative;
  transition: border-color 0.45s ease, box-shadow 0.45s ease;
}

.motion .gallery-fx .gallery-open img {
  transition: transform 0.8s var(--ease-out), filter 0.5s ease;
}

.motion .gallery-fx .gallery-open::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(144, 18, 125, 0.5), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.gallery-zoom {
  display: none;
}

.motion .gallery-zoom {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  color: #fff;
  background: rgba(14, 12, 16, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
  transition: opacity 0.4s ease, transform 0.5s var(--ease-out);
}

@media (hover: hover) {
  .motion :is(.moment-card, .price-card, .quote):hover {
    transform: translateY(-5px);
    border-color: rgba(181, 26, 158, 0.6);
    box-shadow: 0 24px 50px -24px rgba(181, 26, 158, 0.65);
  }

  .motion .price-list li:hover i {
    border-bottom-color: var(--lila-bright);
  }

  .motion .price-list li:hover span {
    color: var(--text);
  }

  .motion .price-list li:hover strong {
    color: var(--lila-text);
  }

  .motion .gallery-fx .gallery-open img {
    filter: brightness(0.8) saturate(0.9);
  }

  .motion .gallery-fx .gallery-open:hover {
    border-color: var(--lila-bright);
    box-shadow: 0 20px 46px -18px rgba(181, 26, 158, 0.6);
  }

  .motion .gallery-fx .gallery-open:hover img {
    transform: scale(1.07);
    filter: none;
  }

  .motion .gallery-fx .gallery-open:hover::after {
    opacity: 1;
  }

  .motion .gallery-fx .gallery-open:hover .gallery-zoom {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Footer */
.footer {
  padding: 40px 0 28px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  gap: 20px;
  justify-items: start;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  font-size: 14px;
  color: var(--muted);
}

.footer-logo img {
  width: auto;
  height: 44px;
}

.footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.footer a:hover {
  color: var(--text);
}

.footer-meta,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
  align-items: center;
}

/* Scroll-to-top button */
.scroll-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font: inherit;
  font-size: 20px;
  color: var(--text);
  background: rgba(14, 12, 16, 0.78);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, color 0.35s ease, border-color 0.35s ease;
  cursor: pointer;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

@media (hover: hover) and (pointer: fine) {
  .scroll-top:hover {
    color: var(--lila-text);
    border-color: var(--lila-text);
  }
}

/* Tablet */
@media (min-width: 640px) {
  .section.statement-section {
    padding: clamp(80px, 8vw, 110px) 0;
  }

  .statement-punch {
    font-size: clamp(28px, 4vw, 54px);
  }

  .statement-line + .statement-line {
    margin-top: 0;
  }

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

  .gallery-lightbox-thumbs {
    display: flex;
  }

  .gallery-lightbox-cta {
    width: auto;
  }

  .quote-grid,
  .moment-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-items {
    grid-template-columns: repeat(2, 1fr);
  }

  .price-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .price-card-wide,
  .price-card-small,
  .price-card-row {
    grid-column: 1 / -1;
  }
}

/* Desktop */
@media (min-width: 980px) {
  :root {
    --gutter: 32px;
    --header-h: 80px;
  }

  body {
    font-size: 17px;
  }

  .logo-wrap img {
    height: 54px;
  }

  .menu-btn {
    display: none;
  }

  .nav,
  .nav.is-open {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: 1;
    gap: 30px;
    padding: 0;
    background: none;
    border: 0;
  }

  .nav a {
    min-height: 44px;
    font-size: 15px;
    border: 0;
  }

  .nav .nav-cta {
    margin: 0 0 0 auto;
    padding: 0 20px;
  }

  .nav a:first-child {
    margin-left: auto;
  }

  .section {
    padding: 88px 0;
  }

  .hero {
    display: flex;
    align-items: center;
    min-height: 600px;
  }

  .hero-img {
    position: absolute;
    top: 0;
    right: 0;
    width: min(64%, 1000px);
    height: 100%;
    aspect-ratio: auto;
    object-position: 70% top;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 18%);
    mask-image: linear-gradient(to right, transparent, #000 18%);
  }

  .hero-inner {
    margin-top: 0;
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .hero-copy {
    max-width: 600px;
  }

  .hero-page {
    min-height: 440px;
  }

  .hero-page .hero-img {
    width: min(56%, 800px);
    aspect-ratio: auto;
    object-position: center;
    -webkit-mask-image: linear-gradient(to right, transparent, rgba(0, 0, 0, .3) 10%, rgba(0, 0, 0, .7) 20%, #000 32%);
    mask-image: linear-gradient(to right, transparent, rgba(0, 0, 0, .3) 10%, rgba(0, 0, 0, .7) 20%, #000 32%);
  }

  .hero-page .hero-copy {
    max-width: 520px;
  }

  .hero-text {
    min-height: 0;
  }

  .hero-text .hero-inner {
    padding-top: 80px;
    padding-bottom: 64px;
  }

  .hero-404 {
    min-height: 520px;
  }

  .hero-404 .hero-inner {
    padding-top: 64px;
    padding-bottom: 80px;
  }

  .hero-404-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 48px;
  }

  .broken-scissors {
    order: 2;
    justify-self: end;
    width: 100%;
    max-width: 560px;
  }

  .legal-card {
    padding: 34px 38px;
  }

  .legal-two-column {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  /* Short notices flow into two balanced columns */
  .legal-columns {
    columns: 2;
    column-gap: 64px;
    margin-bottom: -24px;
  }

  .legal-columns > div {
    break-inside: avoid;
    padding-bottom: 24px;
  }

  .legal-columns > div + div {
    margin-top: 0;
  }

  .legal-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 44px;
    align-items: start;
  }

  .legal-toc {
    display: block;
  }

  .legal-toc ol {
    list-style: none;
    border-left: 1px solid var(--line);
  }

  .legal-toc a {
    display: block;
    padding: 4px 0 4px 16px;
    margin-left: -1px;
    font-size: 13.5px;
    line-height: 1.35;
    color: var(--muted);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
  }

  .legal-toc a:hover {
    color: var(--text);
    border-left-color: var(--lila-bright);
  }

  /* Rows: Damen | Herren, Farbe across, then the three one-line cards */
  .price-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .price-card {
    grid-column: span 3;
    padding: 28px 30px;
  }

  .price-card-wide {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .price-card-small {
    grid-column: span 2;
    grid-row: 3;
  }

  .price-card-row {
    grid-column: 1 / -1;
  }

  .price-groups {
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
  }

  .price-cta {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 48px;
  }

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

  .split {
    display: flex;
    align-items: center;
    min-height: 520px;
    padding: 72px 0;
  }

  /* Photos stay inside the content column and fade out softly on all sides */
  .split-img {
    --fade-x: linear-gradient(to right, transparent, rgba(0, 0, 0, .2) 7%, rgba(0, 0, 0, .55) 16%, rgba(0, 0, 0, .85) 25%, #000 32%, #000 70%, rgba(0, 0, 0, .85) 77%, rgba(0, 0, 0, .55) 85%, rgba(0, 0, 0, .2) 93%, transparent);
    --fade-y: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .5) 6%, #000 15%, #000 85%, rgba(0, 0, 0, .5) 94%, transparent);
    position: absolute;
    top: 0;
    right: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
    width: calc((min(100%, var(--max)) - 2 * var(--gutter)) * .56);
    height: 100%;
    aspect-ratio: auto;
    -webkit-mask-image: var(--fade-x), var(--fade-y);
    mask-image: var(--fade-x), var(--fade-y);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }

  .split-copy {
    max-width: 50%;
    margin-top: 0;
    padding-right: 32px;
  }

  .split-reverse .split-img {
    right: auto;
    left: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
    width: calc((min(100%, var(--max)) - 2 * var(--gutter)) * .5);
  }

  .split-reverse .split-copy {
    max-width: 50%;
    margin-left: auto;
    padding: 0 0 0 40px;
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }

  .gallery-lightbox-top {
    padding: 16px 24px;
  }

  .gallery-lightbox-slide {
    padding: 0 104px;
  }

  .gallery-lightbox-bottom {
    flex-direction: row;
    justify-content: space-between;
    padding: 16px 32px 24px;
  }

  .contact-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: center;
  }

  .footer-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
  }
}

/* Contents list follows the text only where it fits on screen completely (no inner scrollbar) */
@media (min-width: 980px) and (min-height: 760px) {
  .legal-toc {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}

/* Wide screens: hero as on a 1440px screen, centered, photo fades on both edges */
@media (min-width: 1500px) {
  .hero-img {
    right: calc((100% - 1440px) / 2);
    width: 922px;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 18%, #000 80%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 18%, #000 80%, transparent);
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
