/* ============================================================
   Maria Photostudio — Fotografie & Videografie
   ============================================================ */

/* ============================================================
   Design-Tokens
   Keine rohen Hex-Werte, Größen oder Zeiten in Komponenten –
   alles kommt aus dieser Skala (semantische Farben, 4-pt-Abstände,
   modulare Typo-Skala, feste Motion- und z-index-Stufen).
   ============================================================ */

:root {
  /* --- Farben: warme Creme-/Terrakotta-Palette (Vorlage: Model-Aushang)
         Alle Text/Hintergrund-Paare erfüllen mindestens WCAG AA (4.5:1) --- */
  --bg: #fcf6f0;            /* Creme, Seitenhintergrund        */
  --bg-soft: #f4e5dc;       /* Blush, abgesetzte Sektion       */
  --surface: #ffffff;       /* Karten, Polaroid-Weiß           */
  --line: #ecdbd0;          /* dezente Trennlinie              */
  --line-strong: #d8b9ab;   /* Rahmen interaktiver Elemente    */
  --text: #45352f;          /* warmes Dunkelbraun, 10.9:1      */
  --text-dim: #645047;      /*  7.0:1 auf --bg                 */
  --accent: #9c5049;        /* Terrakotta-Rosé, 5.4:1          */
  --accent-hover: #83403a;
  --accent-soft: rgba(156, 80, 73, 0.08);
  --on-accent: #fffaf6;     /*  5.7:1 auf --accent             */
  --sage: #6e7f5c;          /* Grün der Vorlage, nur dekorativ */
  --danger: #a3342b;        /*  6.4:1 auf --bg                 */

  /* --- Typo-Skala (Basis 16 px, Faktor ~1.2) --- */
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script: "Caveat", "Segoe Script", cursive;
  --fs-label: 0.75rem;      /* 12 px – nur Versal-Labels       */
  --fs-sm: 0.875rem;        /* 14 px – Meta, Fußzeile          */
  --fs-base: 1rem;          /* 16 px – Fließtext (Minimum!)    */
  --fs-lg: 1.125rem;        /* 18 px – Lead                    */
  --lh-tight: 1.15;
  --lh-body: 1.6;

  /* --- Abstände: 4-pt-Raster --- */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-12: 3rem;
  --sp-16: 4rem;

  /* --- Radien --- */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-full: 999px;

  /* --- Elevation (eine Skala für alle erhabenen Flächen) --- */
  --elev-1: 0 1px 2px rgba(94, 58, 47, 0.08), 0 2px 6px rgba(94, 58, 47, 0.05);
  --elev-2: 0 6px 18px rgba(94, 58, 47, 0.10), 0 12px 32px rgba(94, 58, 47, 0.07);
  --elev-3: 0 20px 50px rgba(94, 58, 47, 0.18);

  /* --- Motion: 150–300 ms für Mikro-Interaktionen --- */
  --dur-fast: 150ms;
  --dur: 220ms;
  --dur-slow: 320ms;
  --dur-reveal: 400ms;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);   /* beidseitig, für Layout */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); /* Eintritt              */

  /* --- Ebenen --- */
  --z-nav: 100;
  --z-menu: 200;
  --z-lightbox: 500;
  --z-loader: 1000;
  --z-skip: 1100;

  /* --- Layout --- */
  --nav-h: 4.6rem;
  --container: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

/* Anker nicht unter der fixierten Kopfzeile parken */
:target,
section[id] { scroll-margin-top: calc(var(--nav-h) + var(--sp-4)); }

/* 300-ms-Tap-Delay vermeiden, ohne Zoom zu verbieten */
a, button, summary, .chip, .card { touch-action: manipulation; }

/* Zahlen springen beim Animieren/Umbrechen nicht */
.about__facts strong,
.process__num,
.service__num { font-variant-numeric: tabular-nums; }

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

a { color: inherit; text-decoration: none; }

/* Fließtext-Links sichtbar machen (Usability + interne Verlinkung) */
main p a,
.faq__answer a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

main p a:hover,
.faq__answer a:hover { color: var(--text); }

:where(a, button, summary, input, textarea):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Sprunglink für Tastatur- und Screenreader-Nutzung */
.skip-link {
  position: fixed;
  left: 0;
  top: 0;
  z-index: var(--z-skip);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  padding: var(--sp-3) var(--sp-6);
  border-radius: 0 0 var(--r-sm) 0;
  transform: translateY(-200%);
  transition: transform var(--dur) var(--ease-out);
}

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

.container {
  width: min(var(--container), 92vw);
  margin-inline: auto;
}

.section { padding: clamp(5rem, 10vw, 8.5rem) 0; }

/* ---------- Preloader: Bild-Flash-Sequenz ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: var(--z-loader);
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: opacity var(--dur-slow) var(--ease-out), visibility var(--dur-slow);
}

.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }

.loader__stack {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  transition: transform 500ms var(--ease-out), border-radius 500ms var(--ease-out);
}

.loader.is-shrinking .loader__stack {
  transform: scale(0.32);
  border-radius: 12px;
}

.loader__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.loader__img.is-visible { opacity: 1; }

/* Hinweis zum Überspringen – Animation darf nie eine Sackgasse sein */
.loader__skip {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  min-height: 44px;
  padding: 0 var(--sp-6);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: background var(--dur), color var(--dur);
}

.loader__skip:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

.loader__fade {
  position: absolute;
  inset: 0;
  background: var(--bg);
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out);
}

.loader.is-shrinking .loader__fade { opacity: 0.35; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  transition: background var(--dur-slow), border-color var(--dur-slow);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(252, 246, 240, 0.86);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
}

.nav__logo {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
}

.nav__logo span { color: var(--accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  font-size: var(--fs-sm);
  font-weight: 500;
}

/* Touch-Ziel 44 px, auch wenn der Text nur 20 px hoch ist */
.nav__links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--sp-1);
  color: var(--text-dim);
  transition: color var(--dur);
}

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

/* Aktueller Abschnitt wird in der Navigation markiert.
   Der CTA bekommt keinen Marker – er ist eine Schaltfläche, kein Reiter. */
.nav__links a.is-current { color: var(--text); }

.nav__links a.is-current:not(.nav__cta)::after {
  content: "";
  position: absolute;
  bottom: 0.7rem;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 2px;
  border-radius: var(--r-full);
  background: var(--accent);
}

.nav__links a { position: relative; }

.nav__cta {
  color: var(--on-accent) !important;
  background: var(--accent);
  padding-inline: var(--sp-6);
  border-radius: var(--r-full);
  transition: background var(--dur), transform var(--dur-fast);
}

.nav__cta:hover { background: var(--accent-hover); }
.nav__cta:active { transform: scale(0.97); }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.nav__burger span {
  width: 26px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-h) + var(--sp-12));
  padding-bottom: var(--sp-16);
  position: relative;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

/* ---------- Polaroid ---------- */
.photo {
  background: var(--surface);
  padding: 12px 12px 0;
  border-radius: 6px;
  box-shadow: var(--elev-2);
  transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow);
}

.photo img {
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.photo figcaption {
  font-family: var(--font-script);
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--text-dim);
  text-align: center;
  padding: var(--sp-2) 0 var(--sp-3);
}

.hero__media .photo--lg figcaption {
  text-align: right;
  padding-right: var(--sp-3);
}

.hero__media {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 440px;
}

.hero__media .photo--lg { transform: rotate(2deg); }

.hero__media .photo--sm {
  position: absolute;
  left: -10%;
  bottom: -12%;
  width: 44%;
  padding-bottom: 12px;
  transform: rotate(-5deg);
}

.hero__media:hover .photo--lg { transform: rotate(1deg) translateY(-4px); }
.hero__media:hover .photo--sm { transform: rotate(-4deg) translateY(-4px); }

.hero__kicker,
.section__kicker {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: var(--fs-label);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--sp-4);
}

.hero__kicker::before,
.section__kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  flex: none;
  border-radius: var(--r-full);
  background: var(--accent);
}

.hero__title {
  /* Die Textspalte ist im zweispaltigen Hero schmaler – die Größe muss
     dazu passen, sonst bricht die Überschrift auf vier Zeilen um. */
  font-size: clamp(2.1rem, 3.7vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-6);
  max-width: 20ch;
}

.hero__title .line {
  display: block;
  overflow: hidden;
}

.hero__title .line span {
  display: block;
  transform: translateY(110%);
  transition: transform var(--dur-reveal) var(--ease-out);
}

body.is-ready .hero__title .line span { transform: translateY(0); }
body.is-ready .hero__title .line:nth-child(2) span { transition-delay: 80ms; }

.hero__sub {
  max-width: 60ch;
  color: var(--text-dim);
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-8);
}

/* Weicher Farbschleier im Hero – Creme, Blush und das Grün der Vorlage */
.hero__wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(48rem 32rem at 88% 12%, rgba(156, 80, 73, 0.14), transparent 65%),
    radial-gradient(38rem 28rem at 6% 78%, rgba(110, 127, 92, 0.12), transparent 62%),
    radial-gradient(52rem 34rem at 50% 0%, var(--bg-soft), transparent 70%);
}

.hero__sub strong { color: var(--text); font-weight: 700; }

.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-6);
  margin-top: var(--sp-8);
  font-size: var(--fs-sm);
  color: var(--text-dim);
}

.hero__trust li { display: flex; align-items: center; gap: var(--sp-2); }

.icon-check {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: var(--sp-3) var(--sp-8);
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: var(--fs-base);
  transition: background var(--dur), color var(--dur), border-color var(--dur),
              transform var(--dur-fast), box-shadow var(--dur);
}

.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--elev-1); }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: var(--elev-2); }

.btn--ghost { border: 1px solid var(--line-strong); color: var(--text); background: var(--surface); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* Druckfeedback: sichtbare Reaktion innerhalb von 100 ms */
.btn:active { transform: scale(0.97); }

.hero__marquee {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 0.8rem 0;
}

.hero__marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: var(--fs-sm);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Sektionen ---------- */
.section__head { margin-bottom: 3rem; }

.section__title {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: var(--lh-tight);
  margin-bottom: var(--sp-4);
  max-width: 24ch;
  text-wrap: balance;
}

.section__lead {
  color: var(--text-dim);
  max-width: 68ch;   /* 60–75 Zeichen pro Zeile */
  font-size: var(--fs-lg);
}

/* ---------- USP ---------- */
.usp__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

.usp__card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-8) var(--sp-6);
  background: var(--surface);
  box-shadow: var(--elev-1);
  transition: border-color var(--dur), transform var(--dur), box-shadow var(--dur);
}

.usp__card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--elev-2);
}

.usp__card h3 {
  font-size: var(--fs-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}

.usp__card p { color: var(--text-dim); font-size: var(--fs-base); max-width: 62ch; }

/* ---------- Portfolio ---------- */
.work__filter { display: flex; gap: 0.6rem; margin-bottom: 2.5rem; flex-wrap: wrap; }

.chip {
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-dim);
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  padding: 0 var(--sp-6);
  cursor: pointer;
  transition: color var(--dur), border-color var(--dur), background var(--dur),
              transform var(--dur-fast);
}

.chip:hover { color: var(--text); border-color: var(--text-dim); }
.chip:active { transform: scale(0.97); }

.chip.is-active {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
}

.work__grid {
  position: relative;   /* Bezug für die Flip-Animation beim Filtern */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.6rem;
}

.card {
  position: relative;
  display: block;
  border-radius: 6px;
  background: var(--surface);
  padding: 12px 12px 0;
  box-shadow: var(--elev-1);
  color: var(--text);
  transition: box-shadow var(--dur-slow), transform var(--dur-slow) var(--ease-out);
}

.card:hover { box-shadow: var(--elev-2); transform: translateY(-4px); }
.card:active { transform: translateY(-1px) scale(0.995); }

.card.is-hidden { display: none; }

.card picture {
  position: relative;
  display: block;
  aspect-ratio: 9 / 6.5;
  overflow: hidden;
  border-radius: 2px;
  background: var(--bg-soft);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}

.card:hover img { transform: scale(1.04); }

.card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 250, 246, 0.88);
  backdrop-filter: blur(6px);
  color: var(--accent);
  transition: background var(--dur), transform var(--dur), color var(--dur);
}

.card__play svg { width: 22px; height: 22px; margin-left: 2px; }

.card:hover .card__play {
  background: var(--accent);
  color: var(--on-accent);
  transform: translate(-50%, -50%) scale(1.08);
}

.card__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--sp-3) var(--sp-1) var(--sp-4);
}

.card__meta h3 { font-size: var(--fs-base); font-weight: 700; line-height: 1.35; }

.card__meta p {
  font-family: var(--font-script);
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--accent);
}

.work__note {
  margin-top: var(--sp-8);
  color: var(--text-dim);
  font-size: var(--fs-base);
  max-width: 68ch;
}

/* ---------- Leistungen ---------- */
.services { background: var(--bg-soft); }

.services__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-4);
}

.service {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-8) var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--elev-1);
  transition: border-color var(--dur), transform var(--dur-slow) var(--ease-out),
              box-shadow var(--dur-slow);
}

.service:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: var(--elev-2);
}

.service__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: var(--r-full);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: var(--fs-sm);
}

.service h3 { font-size: var(--fs-lg); font-weight: 700; margin-bottom: var(--sp-2); }
.service p { color: var(--text-dim); font-size: var(--fs-base); max-width: 62ch; }

/* ---------- Ablauf ---------- */
.process__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem;
  counter-reset: step;
}

.process__step {
  position: relative;
  border-top: 2px solid var(--line);
  padding-top: var(--sp-6);
  transition: border-color var(--dur);
}

.process__step:hover { border-top-color: var(--accent); }

.process__num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-4);
}

.process__step h3 { font-size: var(--fs-lg); font-weight: 700; margin-bottom: var(--sp-2); }
.process__step p { color: var(--text-dim); font-size: var(--fs-base); }

/* ---------- Einzugsgebiet ---------- */
.areas { background: var(--bg-soft); }

.areas__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.areas__list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-dim);
  box-shadow: var(--elev-1);
}

.areas__note { margin-top: var(--sp-6); color: var(--text-dim); font-size: var(--fs-base); }

/* ---------- FAQ ---------- */
.faq__list {
  max-width: 52rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--elev-1);
  padding: 0 var(--sp-6);
}

.faq__item + .faq__item { border-top: 1px solid var(--line); }

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--sp-4) var(--sp-12) var(--sp-4) 0;
  min-height: 56px;
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: var(--fs-lg);
  position: relative;
  transition: color 0.25s;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__icon {
  position: absolute;
  right: var(--sp-1);
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  color: var(--accent);
  transition: transform var(--dur) var(--ease-out);
}

.faq__item[open] .faq__icon { transform: translateY(-50%) rotate(180deg); }

.faq__item summary:hover { color: var(--accent); }

.faq__answer {
  animation: faq-in var(--dur) var(--ease-out);
}

@keyframes faq-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.faq__answer { padding: 0 2.5rem 1.5rem 0; }

.faq__answer p { color: var(--text-dim); font-size: var(--fs-base); max-width: 68ch; }

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

/* ---------- Über mich ---------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.about__img {
  background: var(--surface);
  padding: 14px 14px 0;
  border-radius: 6px;
  box-shadow: var(--elev-2);
  transform: rotate(-1.5deg);
  transition: transform var(--dur-slow) var(--ease-out);
}

.about__img:hover { transform: rotate(0deg); }

.about__img img { border-radius: 2px; width: 100%; height: auto; }

.about__img::after {
  content: "Studio Sassenberg";
  display: block;
  font-family: var(--font-script);
  font-size: 1.35rem;
  color: var(--text-dim);
  text-align: center;
  padding: var(--sp-2) 0 var(--sp-3);
}

.about__text p { color: var(--text-dim); margin-bottom: var(--sp-4); max-width: 68ch; font-size: var(--fs-base); }

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

.about__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: var(--sp-6);
  margin-top: var(--sp-8);
  padding: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.about__facts strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: var(--lh-tight);
  color: var(--accent);
}

.about__facts span { font-size: var(--fs-sm); color: var(--text-dim); }

/* ---------- Kontakt ---------- */
.contact { background: var(--bg-soft); }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.contact__intro p { color: var(--text-dim); max-width: 60ch; font-size: var(--fs-base); }

.contact__details {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.contact__details li { display: grid; gap: 0.15rem; }

.contact__details span {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: var(--fs-label);
  color: var(--text-dim);
}

.contact__details a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: color var(--dur);
}

.contact__details a:hover { color: var(--accent); }

.contact__details address { font-style: normal; }

.contact__hint { font-size: var(--fs-sm); color: var(--text-dim); max-width: 60ch; }

.contact__form {
  display: grid;
  gap: var(--sp-4);
  align-content: start;
  padding: var(--sp-8);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--elev-2);
}

.contact__form label {
  display: grid;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-dim);
}

/* Beschriftung und Pflichtstern in einer Zeile – als eigene Grid-Zeilen
   landete der Stern sonst unter dem Text. */
.field__label {
  display: flex;
  align-items: baseline;
  gap: var(--sp-1);
}

.contact__form input,
.contact__form textarea {
  font: inherit;
  font-size: var(--fs-base);   /* 16 px verhindert Auto-Zoom auf iOS */
  color: var(--text);
  background: var(--bg);
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: var(--sp-3) var(--sp-4);
  min-height: 48px;
  transition: border-color var(--dur), box-shadow var(--dur);
  resize: vertical;
}

.contact__form input[aria-invalid="true"],
.contact__form textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.field__error {
  display: block;
  min-height: 1.1em;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--danger);
}

.field__error:not(:empty)::before { content: "! "; font-weight: 800; }

.field__hint {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--text-dim);
}

.form__note { font-size: var(--fs-sm); color: var(--text-dim); }

.req { color: var(--accent); }

.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact__form .btn { justify-self: start; border: 0; cursor: pointer; }

.contact__status { font-size: var(--fs-base); color: var(--accent); min-height: 1.4em; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: var(--sp-12) 0 var(--sp-6);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.footer__links,
.footer__social { display: flex; gap: var(--sp-2) var(--sp-6); font-size: var(--fs-sm); flex-wrap: wrap; }

.footer__links a,
.footer__social a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-dim);
  transition: color var(--dur);
}

.footer__links a:hover,
.footer__social a:hover { color: var(--text); }

.footer__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--text-dim);
}

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

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  background: rgba(252, 246, 240, 0.97);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  /* visibility ohne Dauer schalten, sonst ist der Schließen-Button beim Öffnen
     noch "hidden" und lässt sich nicht fokussieren */
  transition: opacity var(--dur-slow) var(--ease-out),
              visibility 0s linear var(--dur-slow);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--dur-slow) var(--ease-out), visibility 0s;
}

.lightbox__figure {
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  padding: 2rem;
  min-width: 0;
}

.lightbox__figure img {
  max-height: 78dvh;
  max-width: 100%;
  border-radius: var(--r-sm);
  box-shadow: var(--elev-3);
}

.lightbox__figure figcaption { color: var(--text-dim); font-size: var(--fs-base); }

.lightbox__close,
.lightbox__arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  color: var(--text);
  cursor: pointer;
  margin: var(--sp-2);
  transition: color var(--dur), background var(--dur), transform var(--dur-fast);
  z-index: 2;
}

.lightbox__close svg,
.lightbox__arrow svg { width: 22px; height: 22px; }

.lightbox__close:active,
.lightbox__arrow:active { transform: scale(0.94); }

.lightbox__close { position: absolute; top: var(--sp-4); right: var(--sp-4); }

.lightbox__close:hover,
.lightbox__arrow:hover { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }

/* ---------- Übergabe an GSAP ----------
   Sobald js/animations.js läuft, setzt es die Klasse .gsap auf <html>.
   Ab da dürfen die CSS-Eintritte nicht mehr mitlaufen, sonst animieren
   zwei Systeme dieselbe Eigenschaft. */
.gsap .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

/* Der CSS-Startwert translateY(110%) würde von GSAP als zusätzliches y
   eingelesen und zum yPercent addiert – die Zeilen kämen nie zurück. */
.gsap .hero__title .line span {
  transform: none;
  transition: none;
}

.gsap .loader__stack,
.gsap .loader__fade,
.gsap .loader { transition: none; }

/* ---------- Scroll-Reveal (Fallback ohne GSAP) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-reveal) var(--ease-out),
              transform var(--dur-reveal) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive: systematische Breakpoints 1440 / 1024 / 768 / 480 ---------- */

/* ≤ 1024 px: Menü wandert in die Overlay-Navigation */
@media (max-width: 1024px) {
  /* Achtung: .nav bekommt beim Scrollen backdrop-filter und wird damit zum
     Bezugsrahmen für position:fixed. Deshalb hier feste Viewport-Maße statt
     inset:0 – sonst hängt das geschlossene Menü in der Seite. */
  .nav__links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100svh;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    font-size: 1.25rem;
    gap: var(--sp-2);
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform var(--dur-slow) var(--ease-out),
                visibility 0s linear var(--dur-slow);
  }

  .nav__links.is-open {
    transform: translateY(0);
    visibility: visible;
    transition: transform var(--dur-slow) var(--ease-out), visibility 0s;
  }

  /* Volle Zeilenbreite = großzügiges Touch-Ziel */
  .nav__links a {
    justify-content: center;
    min-height: 56px;
    width: min(320px, 80vw);
  }

  .nav__links a.is-current:not(.nav__cta)::after { bottom: 0.6rem; }

  .nav__burger { display: flex; z-index: 10; }

  .nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
}

/* ≤ 1024 px: Hero einspaltig, Bildstapel wandert unter den Text */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }

  .hero__media {
    justify-self: center;
    /* schmaler als der Container, damit der überstehende kleine Abzug
       nicht aus dem Bildschirm ragt */
    max-width: min(360px, 78vw);
    margin-block: var(--sp-12) var(--sp-8);
  }

  .hero__media .photo--sm { left: -8%; bottom: -10%; }

  .hero { min-height: 0; }
}

/* ≤ 768 px: einspaltiges Layout */
@media (max-width: 768px) {
  .about__grid,
  .contact__grid { grid-template-columns: 1fr; }

  .hero__marquee { display: none; }

  .hero { padding-block: 7rem var(--sp-12); min-height: 0; }

  .services__list,
  .usp__grid,
  .process__list { grid-template-columns: 1fr; }

  /* Lightbox: Bild bekommt die volle Breite, die Pfeile rücken darunter
     (Daumenzone) statt an die Ränder */
  .lightbox {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto;
    align-content: center;
  }

  .lightbox__figure {
    grid-column: 1 / -1;
    grid-row: 1;
    padding: var(--sp-12) var(--sp-2) var(--sp-4);
  }

  .lightbox__figure img { max-height: 62dvh; }

  .lightbox__arrow { grid-row: 2; margin-bottom: var(--sp-8); }
  .lightbox__arrow--prev { grid-column: 1; justify-self: end; }
  .lightbox__arrow--next { grid-column: 2; justify-self: start; }
}

/* ≤ 480 px: Feinjustierung sehr schmaler Displays */
@media (max-width: 480px) {
  .section { padding-block: var(--sp-16); }
  .about__facts { gap: var(--sp-6); }
  .work__filter { gap: var(--sp-2); }
}

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

  .loader { display: none; }

  .reveal,
  .hero__title .line span {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__marquee-track { animation: none; }
}
