/* ==========================================================================
   Julja Wastschuk – Hair & Make-Up Master Studio
   Statische Reproduktion des ursprünglichen Bricks-Frontends.

   Gliederung
   1. Schriften
   2. Design-Tokens
   3. Reset und Grundlagen
   4. Typografie
   5. Layout (Sektionen, Container, Raster)
   6. Header, Navigation, Offcanvas
   7. Buttons und Links
   8. Marquee
   9. Slider
   10. Galerien
   11. Formular
   12. Footer
   13. Lightbox
   14. Back-to-Top
   15. Scroll-Einblendungen
   ========================================================================== */

/* ==========================================================================
   1. Schriften – lokal, WOFF2, keine externen Anfragen
   ========================================================================== */

/* Instrument Sans – Variable Font, deckt 400–700 ab */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: block;
  src: url('../fonts/sans-latin-InstrumentSans.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: block;
  src: url('../fonts/sans-latin-ext-InstrumentSans.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: italic;
  font-weight: 400 700;
  font-display: block;
  src: url('../fonts/sans-latin-InstrumentSans-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: italic;
  font-weight: 400 700;
  font-display: block;
  src: url('../fonts/sans-latin-ext-InstrumentSans-italic.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Instrument Serif – nur 400, normal und kursiv */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('../fonts/serif-latin-InstrumentSerif.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('../fonts/serif-latin-ext-InstrumentSerif.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: block;
  src: url('../fonts/serif-latin-InstrumentSerif-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: block;
  src: url('../fonts/serif-latin-ext-InstrumentSerif-italic.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   2. Design-Tokens
   Die clamp()-Formeln entsprechen exakt denen des Originals (fluid zwischen
   360 px und 1600 px Viewport). Basis: 1rem = 10px.
   ========================================================================== */

:root {
  /* Farben */
  --primary: #353535;
  --primary-hover: #3d3d3d;
  --primary-semi-dark: #595959;
  --primary-semi-light: #a6a6a6;
  --primary-ultra-light: #f2f2f2;
  --neutral: #e3e2de;
  --neutral-light: #dcdbd6;
  --neutral-hover: #fff;
  --white-trans-60: rgba(255, 255, 255, 0.6);
  --black-trans-80: rgba(0, 0, 0, 0.8);

  /* Schrift */
  --font-heading: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-text: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --letterspacing: -0.5px;
  --line-height: calc(16px + 2ex);

  /* Schriftgrößen */
  --h1: clamp(4.4928rem, calc(4.4809677342vw + 2.8796516157rem), 9.0006535406rem);
  --h2: clamp(3.744rem, calc(2.9902367793vw + 2.6675147594rem), 6.7521782rem);
  --h3: clamp(3.12rem, calc(1.9337972167vw + 2.423833002rem), 5.0654rem);
  --h4: clamp(2.6rem, calc(1.1928429423vw + 2.1705765408rem), 3.8rem);
  --h5: clamp(1.3rem, calc(1.5414638948vw + 0.7450729979rem), 2.8507126782rem);
  --text-xs: clamp(1.2rem, calc(0.0378916323vw + 1.1863590124rem), 1.2381189821rem);
  --text-s: clamp(1.3rem, calc(0.3483226671vw + 1.1746038398rem), 1.6504126032rem);
  --text-m: clamp(1.8rem, calc(0.3976143141vw + 1.6568588469rem), 2.2rem);
  --text-l: clamp(2.16rem, calc(0.7679920477vw + 1.8835228628rem), 2.9326rem);
  --text-xl: clamp(2.592rem, calc(1.3093vw + 2.120652rem), 3.9091558rem);
  --text-xxl: clamp(3.1104rem, calc(2.0879768205vw + 2.3587283446rem), 5.2109046814rem);

  /* Abstände */
  --gutter: clamp(2rem, calc(4.3737574553vw + 0.4254473161rem), 6.4rem);
  --section-space: clamp(4.8rem, calc(7.1570576541vw + 2.2234592445rem), 12rem);
  --space-xs: clamp(1.3506752532rem, calc(0.4245551934vw + 1.1978353836rem), 1.7777777778rem);
  --space-s: clamp(1.8004501125rem, calc(0.8610502526vw + 1.4904720216rem), 2.6666666667rem);
  --space-m: clamp(2.4rem, calc(1.5904572565vw + 1.8274353877rem), 4rem);
  --space-l: clamp(3.1992rem, calc(2.7840954274vw + 2.1969256461rem), 6rem);
  --space-xl: clamp(4.2645336rem, calc(4.7072230616vw + 2.5699332978rem), 9rem);
  --content-gap: clamp(2.4rem, calc(1.5904572565vw + 1.8274353877rem), 4rem);

  /* Layout */
  --content-width: 136.6rem;
  --width-m: calc(var(--content-width) * 0.4);

  /* Bewegung */
  --slide-up-y: 40px;
  --slide-up-transition: 600ms opacity cubic-bezier(0.5, 0, 0, 1),
    600ms transform cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-duration: 0.4s;
  --transition-timing: ease-in-out;
}

/* ==========================================================================
   3. Reset und Grundlagen
   ========================================================================== */

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

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

body {
  margin: 0;
  min-height: 100dvh;
  background-image: url('../img/background-scaled.jpg');
  background-repeat: repeat;
  color: var(--primary);
  font-family: var(--font-text);
  font-size: var(--text-m);
  font-weight: 400;
  line-height: var(--line-height);
  letter-spacing: var(--letterspacing);
  text-wrap: pretty;
  overflow-wrap: break-word;
}

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

img {
  height: auto;
}

figure {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
}

button {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

.bg--dark :focus-visible,
.footer :focus-visible {
  outline-color: var(--neutral);
}

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

/* Skip-Links */
.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 9999;
  padding: 1.65rem 3.3rem;
  background-color: var(--primary);
  border: 2px solid var(--primary);
  color: var(--primary-ultra-light);
  text-align: center;
  text-decoration: none;
  transform: translateY(-200%);
}

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

/* ==========================================================================
   4. Typografie
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 2rem;
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: var(--line-height);
  hyphens: auto;
}

h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
h4 { font-size: var(--h4); }
h5 { font-size: var(--h5); }

p {
  margin: 0;
}

/* `calc(16px + 2ex)` wird als absoluter Wert vererbt. Überall dort, wo die
   Schriftgröße wechselt, muss die Zeilenhöhe deshalb neu berechnet werden. */
.text--s,
.legal,
.footer__legal,
.footer__nav a,
.footer__copyright,
.portfolio-heading__sub,
.offcanvas__nav a,
.form__control,
.contact-meta,
.button {
  line-height: var(--line-height);
}

p + p {
  margin-top: 3.3rem;
}

strong {
  font-weight: 700;
}

/* Breitenbegrenzung für Fließtext, entspricht --width-m des Originals */
.text--measure {
  max-width: calc(var(--content-width) * 0.4);
}

.text--s { font-size: var(--text-s); }

/* Rechtstexte und 404-Seite */
.legal {
  max-width: 90ch;
}

.legal h2,
.legal h3,
.legal h4 {
  margin-top: 1.2em;
}

.legal p,
.legal ul,
.legal ol {
  margin-top: 1.5em;
}

.legal ul,
.legal ol {
  padding-left: 1.5em;
}

.legal li {
  list-style: inherit;
}

.legal a {
  overflow-wrap: anywhere;
}

.error-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-s);
  padding-left: 0;
}

.error-links li {
  list-style: none;
}

/* Leerraum vor dem Footer, wie im Original */
.section-spacer {
  height: calc(var(--section-space) * 2);
}

/* ==========================================================================
   5. Layout
   ========================================================================== */

.section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
  padding: var(--section-space) var(--gutter);
  max-width: 100%;
}

.section--light {
  background-color: var(--neutral);
}

.section--dark {
  background-color: var(--primary);
  color: var(--neutral);
}

/* Sektionen, deren Inhalt rechts aus dem Raster laufen darf (Slider) */
.section--bleed-right {
  padding-right: 0;
}

/* Sektion ohne seitliche Polsterung (Marquee) */
.section--flush {
  padding-inline: 0;
  gap: 0;
}

.container {
  width: var(--content-width);
  max-width: 100%;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-xl);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}

@media (max-width: 767px) {
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- Startseite: Studio Opening ------------------------------------------ */

.intro__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}

.intro__buttons {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.intro__actions {
  margin: 0;
}

.intro__media {
  margin-top: calc(-1 * var(--space-l));
}

.intro__media img {
  width: 100%;
  object-fit: cover;
}

/* --- Startseite: Über mich ------------------------------------------------ */

.cv {
  list-style: none;
}

.cv li {
  display: flex;
  align-items: center;
  gap: var(--space-m);
}

.cv svg {
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.about__image {
  margin-top: var(--space-m);
  width: 100%;
}

.partner h4 {
  margin-top: var(--space-xl);
}

.partner__link {
  display: inline-block;
  width: 30%;
}

.partner--mobile {
  display: none;
}

@media (max-width: 991px) {
  .partner__link { width: 50%; }
}

@media (max-width: 767px) {
  .partner--desktop { display: none; }
  .partner--mobile { display: block; }
  .partner__link { width: 30%; }
}

@media (max-width: 479px) {
  .partner__link { width: 40%; }
}

/* --- Startseite: Kontakt -------------------------------------------------- */

.contact__intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}

.contact__form-heading {
  display: none;
  margin-bottom: var(--space-xl);
}

.contact-meta--hours {
  margin-top: var(--space-xl);
}

.contact-meta__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.contact-meta__row > :first-child {
  margin-right: var(--space-m);
}

.contact-meta__contact {
  margin-top: var(--space-s);
}

/* Telefon und E-Mail sind anwählbar, sehen aber aus wie im Original */
.contact-meta__contact a {
  text-decoration: none;
}

.contact-meta__contact a:hover,
.contact-meta__contact a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .contact__form-col { order: 1; }
  .contact__form-heading { display: block; }
  .contact-meta__maps { display: none; }
}

/* ==========================================================================
   6. Header, Navigation, Offcanvas
   ========================================================================== */

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--section-space) var(--gutter);
}

.site-header__logo {
  display: block;
  width: 40vh;
  max-width: 100%;
}

.site-header__logo img {
  width: 100%;
  height: auto;
}

/* Burger-Trigger */
.nav-toggle {
  position: fixed;
  top: 50vh;
  right: 5vw;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 44px;
  padding: 0;
  background-color: var(--neutral);
}

.nav-toggle__box {
  position: relative;
  display: block;
  width: 30px;
  height: 18px;
}

.nav-toggle__line,
.nav-toggle__line::before,
.nav-toggle__line::after {
  position: absolute;
  width: 30px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--primary);
  transition: transform 0.15s ease, opacity 0.15s ease, background-color 0.15s ease;
}

.nav-toggle__line {
  top: 8px;
  left: 0;
}

.nav-toggle__line::before,
.nav-toggle__line::after {
  content: '';
  left: 0;
}

.nav-toggle__line::before { top: -8px; }
.nav-toggle__line::after  { top: 8px; }

/* Zustand „geöffnet": obere und untere Linie fahren in die Mitte (Minus) */
.nav-toggle[aria-expanded='true'] .nav-toggle__line::before,
.nav-toggle[aria-expanded='true'] .nav-toggle__line::after {
  top: 0;
  opacity: 0;
}

/* Offcanvas */
.offcanvas {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
}

.offcanvas[data-open='true'] {
  visibility: visible;
}

.offcanvas__backdrop {
  position: absolute;
  inset: 0;
  background-color: var(--black-trans-80);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.offcanvas[data-open='true'] .offcanvas__backdrop {
  opacity: 1;
}

.offcanvas__panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: var(--width-m);
  max-width: 100%;
  height: 100%;
  padding: 30px 60px;
  overflow-y: auto;
  background-color: var(--neutral);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.offcanvas[data-open='true'] .offcanvas__panel {
  transform: translateX(0);
}

.offcanvas__nav ul {
  list-style: none;
}

.offcanvas__nav a {
  display: inline-block;
  font-size: var(--h5);
  font-weight: 700;
  text-decoration: none;
  transition: color var(--transition-duration) var(--transition-timing);
}

.offcanvas__nav a:hover {
  color: var(--primary-semi-dark);
  text-decoration: underline;
}

.offcanvas__nav a[aria-current='page'] {
  text-decoration: underline;
}

.offcanvas__divider {
  margin: var(--space-m) 0;
  border: 0;
  border-top: 1px solid currentColor;
}

@media (max-width: 991px) {
  .offcanvas__nav a {
    font-size: var(--h4);
  }
}

@media (max-width: 600px) {
  .offcanvas__panel {
    width: 100%;
    padding: 30px var(--gutter);
  }
}

/* ==========================================================================
   7. Buttons und Links
   ========================================================================== */

/* Textlink mit von links einlaufender Unterstreichung */
.link-underline {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  overflow: hidden;
  padding: 0.2em 0;
  color: var(--primary);
  text-align: left;
  text-decoration: none;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0.1em;
  background-color: currentColor;
  transform: translate3d(-100%, 0, 0);
  transition: opacity 300ms, transform 300ms;
}

.link-underline:hover::after,
.link-underline:focus-visible::after {
  transform: translate3d(0, 0, 0);
}

.link-underline svg {
  display: inline;
  height: 1em;
  padding-left: 8px;
  vertical-align: middle;
  fill: currentColor;
}

/* Ausgefüllter Button */
.button {
  display: inline-block;
  padding: 0.75em 1.5em;
  min-width: 14rem;
  background-color: var(--primary);
  border: 2px solid var(--primary);
  color: var(--primary-ultra-light);
  font-family: var(--font-text);
  font-size: var(--text-m);
  font-weight: 400;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--transition-duration) var(--transition-timing),
    border-color var(--transition-duration) var(--transition-timing);
}

.button:hover,
.button:focus-visible {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  text-decoration: underline;
}

/* Button mit Icon rechts (Instagram im Offcanvas) */
.button--icon {
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  gap: var(--space-s);
  width: 100%;
}

.button--icon svg {
  width: 2.5rem;
  height: 2.5rem;
  fill: currentColor;
}

/* Überschrift als Link mit Pfeil (Sektionen Brautstyling / Shootings) */
.section-link {
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  align-self: flex-start;
  flex-grow: 0;
  flex-shrink: 0;
  column-gap: var(--space-s);
  text-decoration: none;
}

.section-link h2 {
  display: flex;
  white-space: nowrap;
}

.section-link svg {
  width: 1.5em;
  height: 1.5em;
  fill: var(--primary);
  flex-shrink: 0;
}

/* ==========================================================================
   8. Marquee
   ========================================================================== */

.marquee {
  position: relative;
  display: flex;
  width: 100%;
  padding: 10px;
  overflow: hidden;
  white-space: nowrap;
}

.marquee__track {
  display: inline-block;
  white-space: nowrap;
  font-size: var(--text-xxl);
  font-weight: 700;
  will-change: transform;
  backface-visibility: hidden;
  animation: marquee 50s linear infinite;
}

.marquee__track span {
  padding-right: 2ch;
  padding-bottom: 4px;
}

.marquee--reverse .marquee__track {
  font-size: var(--text-xl);
  animation: marquee 60s linear infinite reverse;
}

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-100%, 0, 0); }
}

/* ==========================================================================
   9. Slider
   ========================================================================== */

.slider {
  position: relative;
  width: 100%;
  /* Entspricht dem Abstand, den das Original über den Container-Gap erzeugt */
  padding-top: var(--space-m);
}

.slider__track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 40px;
}

.slider__track::-webkit-scrollbar {
  display: none;
}

.slider__item {
  flex: 0 0 calc(100% / var(--items, 8));
  scroll-snap-align: start;
}

/* Die Slot-Breite folgt dem Hochformat 333 × 500. Die Bilder behalten wie im
   Original ihr eigenes Seitenverhältnis und dürfen seitlich überstehen. */
.slider__item a {
  position: relative;
  display: block;
  aspect-ratio: 333 / 500;
}

.slider__item picture {
  position: absolute;
  inset: 0;
  display: block;
}

.slider__item img {
  width: auto;
  max-width: none;
  height: 100%;
  cursor: zoom-in;
  transition: opacity 0.1s;
}

.slider__item img:hover {
  opacity: 0.8;
}

/* Bedienelemente liegen wie im Original unterhalb des Sliders und
   zaehlen nicht zur Hoehe des Sliders. */
.slider__button {
  position: absolute;
  top: 105%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border-radius: 100%;
  color: var(--primary);
  transform: translateY(-25px);
  transition: opacity 0.2s ease;
}

.slider__button--prev { left: 0; }
.slider__button--next { left: 70px; }

.slider__button svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.slider__button:disabled {
  opacity: 0.5;
  cursor: default;
}

.slider__pagination {
  position: absolute;
  top: 103%;
  left: 0;
  display: flex;
  justify-content: center;
  width: 100%;
  padding-right: var(--gutter);
  list-style: none;
}

.slider__pagination button {
  width: 3vw;
  height: 0.4rem;
  padding: 0;
  background-color: rgba(0, 0, 0, 0.33);
  transition: background-color 0.2s ease;
}

.slider__pagination button[aria-current='true'] {
  background-color: #000;
}

@media (max-width: 991px) {
  .slider { --items: 6; }
}

@media (max-width: 767px) {
  .slider { --items: 4; }
  .slider--shooting { --items: 3; }
  .slider__pagination { display: none; }
  .slider--wedding .slider__button { font-size: 3vh; }
}

@media (max-width: 479px) {
  .slider { --items: 3; }
  .slider--wedding .slider__button { display: none; }
}

/* ==========================================================================
   10. Galerien
   ========================================================================== */

.gallery {
  width: 100%;
  line-height: 0;
  list-style: none;
}

/* Masonry über CSS-Columns – Bilder behalten ihr Seitenverhältnis */
.gallery--masonry {
  column-count: 6;
  column-gap: 20px;
}

/* 20 px Abstand plus die 12 px, die im Original durch die Zeilenbox des
   inline-block-Elements entstehen – zusammen 32 px. */
.gallery--masonry > li {
  margin-bottom: 32px;
  break-inside: avoid;
}

/* Raster mit fester Zeilenhöhe – Bilder werden beschnitten */
.gallery--grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.gallery--grid > li {
  height: 300px;
}

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

.gallery img {
  width: 100%;
  cursor: zoom-in;
  transition: opacity 0.1s;
}

.gallery img:hover {
  opacity: 0.8;
}

@media (max-width: 991px) {
  .gallery--masonry { column-count: 5; }
  .gallery--grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 767px) {
  .gallery--masonry { column-count: 3; }
  .gallery--grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 479px) {
  .gallery--masonry { column-count: 2; }
  .gallery--grid { grid-template-columns: repeat(2, 1fr); }
}

/* Kopfbereich der Portfolio-Seiten */
.portfolio-heading {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  width: var(--content-width);
  max-width: 100%;
}

.portfolio-heading__back {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.portfolio-heading__back:hover span,
.portfolio-heading__back:focus-visible span {
  text-decoration: underline;
}

.portfolio-heading__back svg {
  width: 1.5em;
  height: 1.5em;
  margin-right: 12px;
  fill: var(--primary);
}

.portfolio-heading__sub {
  margin: 0 0 2rem;
  font-family: var(--font-heading);
  font-size: var(--text-l);
}

/* ==========================================================================
   11. Formular
   ========================================================================== */

.form {
  width: 100%;
}

.form__row {
  display: flex;
  gap: 20px;
}

.form__row > * {
  flex: 1;
}

/* Ab Tablet stehen Vor- und Nachname untereinander */
@media (max-width: 767px) {
  .form__row {
    display: block;
  }
}

.form__group {
  margin-bottom: 33px;
}

.form__label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1.8rem;
  line-height: 1;
  padding-top: 1.1rem;
}

.form__control {
  width: 100%;
  padding: 9px 18px;
  background-color: transparent;
  border: 0;
  border-bottom: 1px solid var(--primary);
  color: var(--primary);
  font-family: var(--font-text);
  font-size: 1.8rem;
  line-height: var(--line-height);
  letter-spacing: var(--letterspacing);
}

.form__control:focus {
  outline: 0;
  border-bottom-width: 2px;
}

.form__control:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

textarea.form__control {
  height: 173px;
  resize: vertical;
}

/* Honigtopf gegen automatisierte Eintragungen */
.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__note {
  margin-top: var(--space-s);
  font-size: var(--text-s);
}

/* Kontaktdaten-Spalte */
.contact-social {
  display: flex;
  align-items: center;
  column-gap: 1em;
  margin-top: var(--space-s);
  list-style: none;
}

.contact-social a {
  display: flex;
  text-decoration: none;
}

.contact-social svg {
  width: 2.5em;
  height: 2.5em;
  fill: var(--primary);
  transition: fill var(--transition-duration) var(--transition-timing);
}

.contact-social a:hover svg {
  fill: var(--primary-semi-dark);
}

/* ==========================================================================
   12. Footer
   ========================================================================== */

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 var(--gutter);
  background-color: var(--primary);
  color: var(--neutral);
}

/* Der Trennstrich sitzt in einem 4vh hohen Block, wie im Original */
.footer__rule {
  display: flex;
  align-items: center;
  height: 4vh;
}

.footer__divider {
  width: 100%;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--neutral);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  row-gap: var(--space-xl);
  padding-top: var(--space-xl);
  margin-bottom: 4rem;
}

.footer__copyright {
  margin-top: var(--space-xs);
  font-size: var(--text-xs);
}

.footer__social {
  display: flex;
  align-items: center;
  column-gap: 1em;
  list-style: none;
}

.footer__social a {
  display: flex;
  text-decoration: none;
}

.footer__social svg {
  width: 2.5em;
  height: 2.5em;
  fill: var(--neutral);
  transition: fill var(--transition-duration) var(--transition-timing);
}

.footer__social a:hover svg {
  fill: var(--neutral-hover);
}

.footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
}

.footer__nav a {
  display: inline-block;
  padding: 0 8px;
  text-decoration: none;
  transition: color var(--transition-duration) var(--transition-timing);
}

.footer__nav a:hover {
  color: var(--neutral-hover);
  text-decoration: underline;
}

.footer__legal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  row-gap: 0.5em;
  font-size: var(--text-s);
  color: var(--white-trans-60);
  text-align: center;
}

.footer__legal a {
  color: var(--white-trans-60);
  text-decoration: none;
}

.footer__legal a:hover {
  color: var(--neutral-hover);
  text-decoration: underline;
}

@media (max-width: 767px) {
  .footer__legal {
    align-items: flex-start;
    text-align: left;
  }
}

/* ==========================================================================
   13. Lightbox
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.92);
}

.lightbox[data-open='true'] {
  display: flex;
}

.lightbox__figure {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 4vh 8vw;
}

.lightbox__image {
  max-width: 100%;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox__button {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  color: #fff;
}

.lightbox__button svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.lightbox__button:hover {
  opacity: 0.7;
}

.lightbox__close { top: 2rem; right: 2rem; }
.lightbox__prev  { top: 50%; left: 2rem; transform: translateY(-50%); }
.lightbox__next  { top: 50%; right: 2rem; transform: translateY(-50%); }

.lightbox__counter {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: var(--text-s);
}

/* ==========================================================================
   14. Back-to-Top
   ========================================================================== */

.to-top {
  position: fixed;
  right: 40px;
  bottom: 64px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  background-color: var(--neutral);
  color: var(--primary);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease,
    color 0.3s ease;
}

.to-top[data-visible='true'] {
  opacity: 1;
  visibility: visible;
}

.to-top:hover {
  background-color: var(--primary);
  color: var(--neutral);
}

.to-top svg {
  width: 2.4rem;
  height: 2.4rem;
  fill: currentColor;
}

/* ==========================================================================
   15. Scroll-Einblendungen
   Werte identisch zum Original.
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(var(--slide-up-y));
  transition: var(--slide-up-transition);
}

.reveal--fade {
  transform: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0);
}

.reveal--delay.is-visible {
  transition-delay: 500ms;
}

/* Ohne JavaScript bleibt der Inhalt sichtbar */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .marquee__track {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
