/* ============================================================
   SEFODO – Hans-Martin Hörtling, Portraitfotografie
   Monochromes Editorial-Design, dunkles Theme (bewusst fixiert)
   ============================================================ */

:root {
  --bg: #0f0f0f;
  --bg-raised: #151515;
  --line: #262626;
  --text: #eaeaea;
  --text-soft: #b5b5b5;
  --muted: #8a8a8a;
  --white: #f6f6f4;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Satoshi", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* Sämtliche Fotografie strikt schwarzweiß */
.bw { filter: grayscale(1); }

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

::selection { background: var(--white); color: var(--bg); }

.wrap {
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 4rem);
}

/* ---------- Typografie ---------- */

h1, h2, h3 {
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--white);
}

.display {
  font-size: clamp(2.75rem, 7vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 600;
}

.h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.lead {
  color: var(--text-soft);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  max-width: 34em;
}

p { color: var(--text-soft); max-width: 65ch; }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--white);
  background: var(--white);
  color: var(--bg);
  padding: 0.95rem 2.1rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.15s var(--ease);
}

.btn:hover { background: transparent; color: var(--white); }
.btn:active { transform: scale(0.98); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--white); }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.25rem;
  transition: border-color 0.3s var(--ease);
}
.textlink:hover { border-color: var(--white); }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 72px;
  display: flex;
  align-items: center;
  background: rgba(15, 15, 15, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--white);
}
.brand span { color: var(--muted); font-weight: 400; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-soft);
  transition: color 0.25s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); }

.nav-cta {
  border: 1px solid var(--line);
  padding: 0.5rem 1.2rem;
  color: var(--white) !important;
  transition: border-color 0.25s var(--ease);
}
.nav-cta:hover { border-color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 1rem clamp(1.25rem, 4vw, 4rem) 2rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.9rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-cta { border: none; padding-inline: 0; }
}

/* ---------- Hero (Startseite) ---------- */

.hero {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  align-items: stretch;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 0 4rem clamp(1.25rem, 5vw, 5rem);
  margin-right: -16%;
}

.hero-copy .display {
  font-size: clamp(3rem, 8.5vw, 7.5rem);
}

.hero-copy .lead { margin: 1.75rem 0 2.75rem; max-width: 26em; }

.hero-media {
  position: relative;
  min-height: 60vh;
}

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Scrim, damit die überlappende Headline lesbar bleibt */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(15, 15, 15, 0.55) 22%, rgba(15, 15, 15, 0) 55%);
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 7rem clamp(1.25rem, 4vw, 4rem) 3rem; margin-right: 0; }
  .hero-media { min-height: 70vh; }
  .hero-media::after { background: linear-gradient(180deg, var(--bg) 0%, rgba(15, 15, 15, 0) 30%); }
}

/* ---------- Bildband (Marquee) ---------- */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
}

.marquee-track {
  display: flex;
  gap: clamp(0.75rem, 1.5vw, 1.5rem);
  width: max-content;
  padding-block: clamp(0.75rem, 1.5vw, 1.5rem);
}

.marquee img {
  height: clamp(200px, 26vw, 320px);
  width: auto;
}

@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 55s linear infinite; }
  @keyframes marquee {
    to { transform: translateX(-50%); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
}

/* Unterseiten-Kopf */
.page-head {
  padding: clamp(9rem, 16vh, 12rem) 0 clamp(3rem, 6vw, 5rem);
}
.page-head .lead { margin-top: 1.5rem; }

/* ---------- Sektionen ---------- */

.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section-tight { padding-block: clamp(3rem, 6vw, 5rem); }

.hairline { border: 0; border-top: 1px solid var(--line); }

/* Werkauswahl: gestaffeltes Editorial-Grid */
.workgrid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1.5rem);
}

.workgrid a { position: relative; overflow: hidden; display: block; }

.workgrid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.workgrid a:hover img { transform: scale(1.04); }

.wg-a1 { grid-column: 1 / span 8; aspect-ratio: 16 / 10; }
.wg-a2 { grid-column: 9 / span 4; aspect-ratio: 3 / 4; margin-top: clamp(3rem, 8vw, 7rem); }
.wg-a3 { grid-column: 1 / span 4; aspect-ratio: 3 / 4; }
.wg-a4 { grid-column: 5 / span 8; aspect-ratio: 16 / 9; margin-top: clamp(2rem, 5vw, 4rem); }

@media (max-width: 700px) {
  .wg-a1, .wg-a2, .wg-a3, .wg-a4 {
    grid-column: span 12;
    aspect-ratio: 4 / 5;
    margin-top: 0;
  }
}

/* ---------- Leistungen mit Bildvorschau ---------- */

.services {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.service-row {
  display: block;
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
  transition: padding-left 0.4s var(--ease);
}
.service-row:last-of-type { border-bottom: 1px solid var(--line); }
.service-row:hover { padding-left: 1rem; }

.service-row h3 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: color 0.3s var(--ease);
}
.service-row:hover h3 { color: var(--text-soft); }

.service-row p {
  margin-top: 0.6rem;
  font-size: 0.98rem;
  max-width: 44em;
}

.services-preview {
  position: sticky;
  top: 104px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.services-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.45s var(--ease);
}

@media (max-width: 860px) {
  .services { grid-template-columns: 1fr; }
  .services-preview { display: none; }
}

/* Statement */
.statement {
  font-size: clamp(1.75rem, 4.5vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--white);
  max-width: 22em;
}
.statement em { font-style: italic; color: var(--muted); }

/* Split-Layout (Bild + Text) */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.split.reverse { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }

.split-media { overflow: hidden; }
.split-media img { width: 100%; height: auto; }

@media (max-width: 860px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
}

/* Themenliste (About) */
.themes { display: grid; gap: 0; margin-top: 2rem; }
.theme {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(1rem, 4vw, 4rem);
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
@media (max-width: 700px) {
  .theme { grid-template-columns: 1fr; gap: 0.75rem; }
}

/* Ablauf (Buchung) */
.process {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem) clamp(2rem, 5vw, 5rem);
  margin-top: 3rem;
}
.process h3 { margin-bottom: 0.6rem; }
@media (max-width: 700px) { .process { grid-template-columns: 1fr; } }

/* ---------- Portfolio Masonry ---------- */

.masonry {
  columns: 3;
  column-gap: clamp(0.75rem, 1.5vw, 1.5rem);
}
.masonry figure {
  margin: 0 0 clamp(0.75rem, 1.5vw, 1.5rem);
  break-inside: avoid;
  overflow: hidden;
  cursor: zoom-in;
}
.masonry img {
  width: 100%;
  transition: transform 1.2s var(--ease), opacity 0.4s var(--ease);
}
.masonry figure:hover img { transform: scale(1.03); }

@media (max-width: 1000px) { .masonry { columns: 2; } }
@media (max-width: 600px) { .masonry { columns: 1; } }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 4rem);
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 90dvh;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.5rem;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid var(--line);
  color: var(--white);
  width: 48px;
  height: 48px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: border-color 0.25s var(--ease);
}
.lightbox-nav:hover { border-color: var(--white); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* ---------- Formulare ---------- */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: grid; gap: 0.5rem; }

.field label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
}

.field input,
.field select,
.field textarea {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  color: var(--white);
  padding: 0.9rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  width: 100%;
  border-radius: 0;
  transition: border-color 0.25s var(--ease);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--white);
}

.field textarea { min-height: 160px; resize: vertical; }

.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 1rem; }
.form-note a { color: var(--text-soft); border-bottom: 1px solid var(--line); }

/* Kontakt-Zeilen */
.contact-rows { display: grid; margin-top: 2.5rem; }
.contact-row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 1rem;
  padding-block: 1.4rem;
  border-top: 1px solid var(--line);
}
.contact-row:last-child { border-bottom: 1px solid var(--line); }
.contact-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  align-self: center;
}
.contact-value { font-size: 1.1rem; color: var(--white); }
.contact-value a:hover { color: var(--text-soft); }
@media (max-width: 700px) {
  .contact-row { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* ---------- CTA-Band ---------- */

.cta-band {
  text-align: center;
  padding-block: clamp(5rem, 12vw, 9rem);
  border-top: 1px solid var(--line);
}
.cta-band .h2 { margin-bottom: 2.25rem; }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 6vw, 5rem) 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
  gap: 2.5rem;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

.footer h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 1rem;
}

.footer ul { list-style: none; display: grid; gap: 0.5rem; }
.footer a { color: var(--text-soft); transition: color 0.25s var(--ease); }
.footer a:hover { color: var(--white); }

.footer-bottom {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Rechtstexte ---------- */

.legal { max-width: 760px; padding-bottom: clamp(4rem, 8vw, 7rem); }
.legal h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; }
.legal h3 { font-size: 1.1rem; margin: 2rem 0 0.75rem; color: var(--white); }
.legal p { margin-bottom: 1rem; }
.legal a { border-bottom: 1px solid var(--line); }

/* ---------- Scroll-Reveal ---------- */

@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  }
  html.js .reveal.in { opacity: 1; transform: none; }
  html.js .reveal:nth-child(2) { transition-delay: 0.08s; }
  html.js .reveal:nth-child(3) { transition-delay: 0.16s; }
}
