/* MOT.Photography
   Farben: Nachtviolett als Bühne, Sonnenbrillengelb als Signal, Magnolie als leiser Zweitton. */
/* Schriften liegen lokal, es wird nichts von Google geladen. Beide stehen unter der SIL Open Font License. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("assets/fonts/figtree.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --night: #17112e;
  --plum: #241a45;
  --plum-line: #3a2d66;
  --paper: #f6f1e9;
  --muted: #b9b0d2;
  --yellow: #ffd541;
  --magnolia: #f4bfd0;

  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --section: clamp(5rem, 11vw, 9.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
h1, h2, h3 {
  font-family: var(--display);
  font-stretch: 78%;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(2.4rem, 6vw, 4.75rem); }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: -999px; top: 0.5rem;
  background: var(--yellow); color: var(--night); padding: 0.6rem 1rem; z-index: 20;
}
.skip:focus { left: 0.5rem; }

/* Buttons und Links */
.btn {
  display: inline-block;
  background: var(--yellow);
  color: var(--night);
  font: 600 1.0625rem/1 var(--body);
  padding: 1.05rem 1.6rem;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.btn:hover { background: #ffe37a; }
.btn:active { transform: translateY(1px); }
.btn-small { font-size: 0.9375rem; padding: 0.75rem 1.15rem; }
.textlink {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}
.textlink:hover { color: var(--yellow); }

/* Kopfzeile */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 2rem;
  padding: 0.9rem var(--gutter);
  background: color-mix(in srgb, var(--night) 88%, transparent);
  backdrop-filter: blur(12px);
}
.wordmark {
  font-family: var(--display);
  font-stretch: 78%;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  margin-right: auto;
}
.wordmark span { color: var(--yellow); }
/* Damit sich messen lässt, ob alle Links in eine Zeile passen (siehe script.js) */
.site-header > * { flex-shrink: 0; white-space: nowrap; }
.cta-short { display: none; }

/* Navigation, schmale Ansicht (Standard, auch ohne Skript): Knopf "Menü" öffnet die Liste als Popover */
.menu-button {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font: 600 0.9375rem/1 var(--body); color: var(--paper);
  background: transparent; border: 1px solid var(--plum-line); border-radius: 999px;
  padding: 0.7rem 1rem; cursor: pointer;
  anchor-name: --menu-button;
}
.menu-button:hover { border-color: var(--muted); }
.site-menu {
  list-style: none;
  position: fixed;
  inset: auto;
  inset-block-start: 4.5rem;
  inset-block-start: anchor(--menu-button bottom);
  inset-inline-end: var(--gutter);
  inline-size: min(80dvw, 20rem);
  max-inline-size: calc(100dvw - 2rem);
  block-size: fit-content;
  max-block-size: calc(100dvh - 6rem);
  margin: 0; margin-block-start: 0.5rem;
  padding: 0.5rem;
  overflow: auto;
  background: var(--plum);
  border: 1px solid var(--plum-line);
  border-radius: 0.75rem;
  box-shadow: 0 1.5rem 3rem rgba(8, 5, 20, 0.55);
}
.site-menu a {
  display: block; padding: 0.9rem 1rem; border-radius: 0.5rem;
  color: var(--paper); text-decoration: none; font-size: 1.0625rem; font-weight: 500;
}
.site-menu a:hover { background: var(--plum-line); }

/* Navigation, breite Ansicht: dieselbe Liste steht als Zeile in der Kopfzeile */
.site-header.is-wide .menu-button { display: none; }
.site-header.is-wide .site-menu {
  position: static;
  display: flex; align-items: center; gap: 1.75rem;
  inline-size: auto; max-inline-size: none;
  block-size: auto; max-block-size: none;
  overflow: visible;
  margin: 0; padding: 0; border: 0;
  background: transparent; box-shadow: none;
}
.site-header.is-wide .site-menu a { padding: 0; font-size: 0.9375rem; color: var(--muted); }
.site-header.is-wide .site-menu a:hover { background: transparent; color: var(--paper); }
.site-header.is-measuring * { transition: none !important; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) var(--section);
  overflow: hidden;
}
.hero h1 { font-size: clamp(3.1rem, 8.6vw, 8.25rem); line-height: 0.9; }
.lede { max-width: 34rem; margin-top: 2rem; font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.75rem; margin-top: 2.5rem; }

.hero-photos { position: relative; padding: 0 0 12% 18%; }
.hero-photos figure { margin: 0; position: relative; }
.hero-photos img { width: 100%; object-fit: cover; }
.photo-tall img { aspect-ratio: 2 / 3; border-radius: 14rem 14rem 0.5rem 0.5rem; }
.photo-small { position: absolute !important; left: 0; bottom: 0; width: 44%; }
.photo-small img { aspect-ratio: 4 / 5; border-radius: 0.5rem; border: 6px solid var(--night); }
.hero-photos figcaption {
  position: absolute; left: 0.75rem; bottom: 0.75rem;
  background: var(--night); color: var(--paper);
  font-size: 0.8125rem; font-weight: 600;
  padding: 0.5rem 0.9rem; line-height: 1.2; border-radius: 999px;
}
.photo-tall figcaption { left: auto; right: 0.75rem; }
.photo-small figcaption { left: 1rem; bottom: 1rem; }
.disc {
  position: absolute; top: -6%; right: -14%;
  width: 62%; aspect-ratio: 1; border-radius: 50%;
  background: var(--yellow);
}

@media (prefers-reduced-motion: no-preference) {
  .hero h1, .lede, .hero-actions, .photo-tall, .photo-small { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .lede { animation-delay: 0.12s; }
  .hero-actions { animation-delay: 0.2s; }
  .photo-tall { animation-delay: 0.15s; }
  .photo-small { animation-delay: 0.4s; }
  .disc { animation: disc 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(1.75rem); } }
@keyframes disc { from { transform: scale(0.4); opacity: 0; } }

/* Abschnittsköpfe */
.section-head { max-width: 52rem; margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.section-head p { margin-top: 1.5rem; max-width: 36rem; font-size: 1.15rem; color: var(--muted); }

/* Leistungen */
.services { padding: 0 var(--gutter) var(--section); }
.service {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 5rem);
  align-items: center;
}
.service + .service { margin-top: clamp(3.5rem, 8vw, 7rem); }
.service:nth-of-type(even) .service-img { order: 2; }
.service-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 0.5rem; }
.service-text h3 { font-size: clamp(2rem, 4vw, 3.25rem); }
.service-text p { margin-top: 1.25rem; max-width: 32rem; }
.service-text ul { list-style: none; padding: 0; margin: 1.5rem 0 1.75rem; max-width: 32rem; }
.service-text li {
  padding: 0.7rem 0 0.7rem 1.5rem;
  border-top: 1px solid var(--plum-line);
  color: var(--muted);
  position: relative;
}
.service-text li::before {
  content: ""; position: absolute; left: 0; top: 1.25em;
  width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--magnolia);
}
.price-note {
  margin-top: clamp(3.5rem, 8vw, 7rem);
  padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--plum);
  border-radius: 0.5rem;
  font-family: var(--display);
  font-stretch: 85%;
  font-weight: 600;
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  line-height: 1.3;
  max-width: 60rem;
}

/* Ablauf */
.process { padding: var(--section) var(--gutter); background: var(--magnolia); color: var(--night); }
.process ol {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem);
  counter-reset: step;
}
.process li { counter-increment: step; border-top: 3px solid var(--night); padding-top: 1.25rem; }
.process li::before {
  content: counter(step);
  display: block;
  font-family: var(--display); font-stretch: 78%; font-weight: 800;
  font-size: clamp(3rem, 6vw, 5rem); line-height: 1;
}
.process h3 { font-size: 1.5rem; line-height: 1.1; margin: 1rem 0 0.6rem; }
.process p { font-size: 1rem; }

/* Arbeiten */
.work { padding: var(--section) var(--gutter); }
.gallery { columns: 3; column-gap: 0.75rem; }
.gallery button {
  display: block; width: 100%; padding: 0; margin: 0 0 0.75rem; border: 0;
  background: var(--plum); border-radius: 0.375rem; overflow: hidden; cursor: zoom-in;
  break-inside: avoid;
}
.gallery img { width: 100%; transition: transform 0.4s ease; }
.gallery button:hover img { transform: scale(1.03); }
.work-more { margin-top: 2.5rem; max-width: 40rem; color: var(--muted); }
.work-more a { color: var(--paper); text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }

/* Über mich */
.about {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 6rem); align-items: center;
  padding: var(--section) var(--gutter);
  background: var(--plum);
}
/* Zwei Bilder wie im Einstieg: großes Portrait im Bogen, kleineres Bild überlappt unten rechts */
.about-img { position: relative; padding: 0 16% 12% 0; }
.about-img img { width: 100%; object-fit: cover; }
.about-main { aspect-ratio: 4 / 5; border-radius: 14rem 14rem 0.5rem 0.5rem; }
.about-img .about-second {
  position: absolute; right: 0; bottom: 0; width: 44%;
  aspect-ratio: 2 / 3; border-radius: 0.5rem; border: 6px solid var(--plum);
}
.about-text p { margin-top: 1.25rem; max-width: 36rem; }
.about-text h2 + p { margin-top: 2rem; }
.about dl { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; margin: 2.5rem 0 0; }
.about dt { font-size: 0.875rem; color: var(--muted); }
.about dd { margin: 0.2rem 0 0; font-family: var(--display); font-stretch: 85%; font-weight: 700; font-size: 1.5rem; line-height: 1.15; }

/* Kontakt */
.contact {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding: var(--section) var(--gutter);
  background: var(--yellow); color: var(--night);
}
.contact-text p { margin-top: 1.5rem; max-width: 30rem; font-size: 1.15rem; }
.contact-direct { display: flex; flex-direction: column; gap: 0.5rem; font-weight: 600; }
.contact-direct a { text-underline-offset: 0.3em; text-decoration-thickness: 2px; width: fit-content; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; color: var(--night);
  background: #fff8dc;
  border: 2px solid var(--night);
  border-radius: 0.5rem;
  padding: 0.85rem 1rem;
}
.field textarea { resize: vertical; }
.field ::placeholder { color: #6b6384; }
.contact :focus-visible { outline-color: var(--night); }
.contact .btn { background: var(--night); color: var(--paper); }
.contact .btn:hover { background: var(--plum-line); }
.form-hint { margin-top: 0.9rem; font-size: 0.9rem; }
.form-note { margin: 0 0 1.25rem; font-size: 0.9rem; }
/* Fehlermeldung erscheint erst, nachdem das Feld benutzt oder das Absenden versucht wurde */
.error-msg { display: none; margin-top: 0.45rem; font-size: 0.9375rem; font-weight: 600; color: #8a1a10; }
.error-icon {
  display: inline-grid; place-items: center;
  width: 1.25em; height: 1.25em; margin-right: 0.25em;
  border-radius: 50%; background: #8a1a10; color: #fff8dc; font-size: 0.85em;
}
.field :is(input, textarea):user-invalid { border-color: #8a1a10; background: #ffe7e1; }
.field :is(input, textarea):user-invalid + .error-msg { display: block; }

/* Unsichtbar, aber für Screenreader vorhanden */
.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

/* Fuß */
.foot {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.75rem 2rem;
  padding: 2.5rem var(--gutter);
  color: var(--muted); font-size: 0.9375rem;
}
.foot .wordmark { color: var(--paper); margin-right: 0; }
.foot nav { margin-left: auto; display: flex; gap: 1.5rem; }

/* Lightbox */
.lightbox {
  border: 0; padding: 0; background: transparent;
  max-width: 94vw; max-height: 94vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(12, 8, 28, 0.92); }
.lightbox img { max-width: 94vw; max-height: 78vh; border-radius: 0.375rem; margin: 0 auto; }
.lightbox-count { margin-top: 0.75rem; text-align: center; color: var(--muted); font-size: 0.9375rem; }
.lightbox-controls { display: flex; justify-content: center; gap: 0.6rem; margin-top: 0.6rem; }
.lightbox-btn {
  font: 600 0.9375rem var(--body); color: var(--paper);
  background: var(--plum); border: 1px solid var(--plum-line); border-radius: 999px;
  padding: 0.7rem 1.2rem; cursor: pointer;
}
.lightbox-btn:hover { background: var(--plum-line); }

/* Textseiten (Impressum) */
.legal { padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) var(--section); max-width: 52rem; }
.legal h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.6rem; line-height: 1.1; margin: 2.5rem 0 0.75rem; }
.legal p { margin-top: 0.9rem; color: var(--muted); }
.legal address { font-style: normal; margin-top: 0.9rem; }
.legal ul { margin: 0.9rem 0 0; padding-left: 1.25rem; color: var(--muted); }
.legal li { margin-top: 0.35rem; }
.legal li::marker { color: var(--magnolia); }
.legal a { text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.form-hint a { text-underline-offset: 0.2em; }

/* Kleinere Bildschirme */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photos { max-width: 30rem; width: 100%; margin: 1rem auto 0; }
  .service, .about, .contact { grid-template-columns: 1fr; }
  .service:nth-of-type(even) .service-img { order: 0; }
  .process ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { columns: 2; }
  .about-img { max-width: 24rem; }
}
@media (max-width: 520px) {
  .wordmark { font-size: 1.1rem; }
  .top { gap: 0.5rem; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .menu-button { padding: 0.7rem 0.85rem; }
  .process ol { grid-template-columns: 1fr; }
  .gallery { column-gap: 0.5rem; }
  .gallery button { margin-bottom: 0.5rem; }
  .foot nav { margin-left: 0; width: 100%; }
}
