/* ============================================================
   JTA Media – jta-media.de
   Dunkles, bildgeführtes Portfolio-Design. Ein Akzent, eine Fläche.
   ============================================================ */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0e0f11;
  --bg-elevated: #15161a;
  --bg-soft: #1b1d22;
  --text: #f0efec;
  --text-muted: #a3a29c;
  --hairline: rgba(255, 255, 255, 0.09);
  --accent: #d96b45;
  --accent-strong: #e07a52;
  --radius: 14px;
  --nav-h: 68px;
  --pad-x: clamp(1.25rem, 4vw, 3rem);
  --max-w: 1360px;
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-weight: 350;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

::selection { background: var(--accent); color: #fff; }

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

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 40;
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.site-nav .wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  font-weight: 600;
}
.wordmark span { font-weight: 300; color: var(--text-muted); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links > li { position: relative; }

.nav-links a {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.2s ease;
  padding-block: 0.4rem;
}
.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] { color: var(--text); }

.nav-cta {
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.45rem 1.1rem !important;
  color: var(--text) !important;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav-cta:hover, .nav-cta:focus-visible {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

/* Dropdown Leistungen */
.has-sub > button {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  padding-block: 0.4rem;
}
.has-sub > button:hover, .has-sub > button:focus-visible,
.has-sub > button[aria-expanded="true"] { color: var(--text); }
.has-sub > button::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.sub-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 50%;
  translate: -50% 0;
  min-width: 230px;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 0.5rem;
  list-style: none;
  display: none;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.sub-menu.open { display: block; }
.sub-menu a {
  display: block;
  padding: 0.55rem 0.9rem;
  border-radius: 9px;
  font-size: 0.92rem;
}
.sub-menu a:hover, .sub-menu a:focus-visible {
  background: var(--bg-soft);
  color: var(--text);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 40px; height: 40px;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 8px;
  width: 24px; height: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle span { top: 19px; }
.nav-toggle span::before { top: -7px; left: 0; }
.nav-toggle span::after { top: 7px; left: 0; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--hairline);
    padding: 0.75rem var(--pad-x) 1.25rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a, .has-sub > button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.8rem 0;
    font-size: 1.05rem;
  }
  .has-sub > button { display: flex; justify-content: space-between; }
  .sub-menu {
    position: static;
    translate: none;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0 0 1rem;
  }
  .nav-cta {
    margin-top: 0.75rem;
    text-align: center !important;
    border-color: var(--accent);
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.98rem;
  font-weight: 500;
  border-radius: 999px;
  padding: 0.8rem 1.7rem;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus-visible { background: var(--accent-strong); }

.btn-ghost {
  border: 1px solid var(--hairline);
  color: var(--text);
}
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--text-muted); }

.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

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

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

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 2rem) var(--pad-x) 3rem;
  max-width: 46rem;
  margin-left: max(0px, calc((100vw - var(--max-w)) / 2));
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.3rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 550;
  text-wrap: balance;
}
.hero-copy h1 em {
  font-style: italic;
  color: var(--accent);
  line-height: 1.1;
  padding-bottom: 0.05em;
}

.hero-copy p {
  margin-top: 1.4rem;
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 34ch;
}

.hero-actions {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-media {
  position: relative;
  min-height: 60dvh;
}
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, transparent 22%);
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding-top: calc(var(--nav-h) + 3rem); margin-left: 0; }
  .hero-media { min-height: 48dvh; }
  .hero-media::after {
    background: linear-gradient(180deg, var(--bg) 0%, transparent 25%);
  }
}

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

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

.section-head { max-width: 60rem; margin-bottom: clamp(2.2rem, 5vw, 3.8rem); }
.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 550;
  letter-spacing: -0.015em;
  line-height: 1.12;
  text-wrap: balance;
}
.section-head p {
  margin-top: 0.9rem;
  color: var(--text-muted);
  max-width: 58ch;
}

/* ---------- Leistungs-Grid (Startseite) ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.service-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.service-card:nth-child(1) { grid-column: span 4; min-height: 420px; }
.service-card:nth-child(2) { grid-column: span 2; min-height: 420px; }
.service-card:nth-child(3) { grid-column: span 2; }
.service-card:nth-child(4) { grid-column: span 2; }
.service-card:nth-child(5) { grid-column: span 2; }

.service-card img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover img { transform: scale(1.045); }

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 40%, rgba(8, 9, 10, 0.85) 100%);
}

.service-card-label {
  padding: 1.4rem 1.5rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.service-card-label h3 { font-size: 1.25rem; font-weight: 500; }
.service-card-label .go {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.service-card:hover .go { background: var(--accent); border-color: var(--accent); }

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card, .service-card:nth-child(n) { grid-column: span 2; min-height: 260px; }
  .service-card:nth-child(3), .service-card:nth-child(4) { grid-column: span 1; min-height: 220px; }
}

/* ---------- Arbeiten-Strip (horizontales Scrollen) ---------- */

.work-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-inline: var(--pad-x);
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-soft) transparent;
}
.work-strip figure {
  flex: 0 0 auto;
  scroll-snap-align: start;
  height: clamp(300px, 46vh, 460px);
  border-radius: var(--radius);
  overflow: hidden;
}
.work-strip img {
  height: 100%;
  width: auto;
  object-fit: cover;
}

/* ---------- Über mich ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.about-media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.about-media img { width: 100%; height: 100%; object-fit: cover; }

.about-copy h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 550;
  letter-spacing: -0.015em;
  line-height: 1.12;
}
.about-copy p { margin-top: 1.1rem; color: var(--text-muted); max-width: 58ch; }
.about-copy strong { color: var(--text); font-weight: 500; }

.about-facts {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem 2rem;
  border-top: 1px solid var(--hairline);
  padding-top: 1.6rem;
}
.about-facts b {
  display: block;
  font-size: 1.4rem;
  font-weight: 550;
}
.about-facts span { color: var(--text-muted); font-size: 0.92rem; }

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about-media { max-width: 480px; }
}

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

.cta-band {
  border-block: 1px solid var(--hairline);
  background:
    radial-gradient(60% 120% at 85% 50%, color-mix(in srgb, var(--accent) 16%, transparent), transparent),
    var(--bg-elevated);
}
.cta-band .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.cta-band h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 550;
  letter-spacing: -0.015em;
}
.cta-band p { color: var(--text-muted); margin-top: 0.4rem; }

/* ---------- Unterseiten-Header ---------- */

.page-head {
  padding-top: calc(var(--nav-h) + clamp(3rem, 7vw, 5.5rem));
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}
.page-head h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.8rem);
  font-weight: 550;
  letter-spacing: -0.02em;
  line-height: 1.06;
  text-wrap: balance;
}
.page-head .lead {
  margin-top: 1.2rem;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 62ch;
}
.page-head .crumb {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  display: inline-flex;
  gap: 0.5rem;
}
.page-head .crumb a:hover { color: var(--text); }

/* ---------- Galerie (Masonry über CSS columns) ---------- */

.gallery {
  columns: 3 320px;
  gap: 1rem;
}
.gallery a {
  display: block;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  break-inside: avoid;
  position: relative;
}
.gallery img {
  width: 100%;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.gallery a:hover img { transform: scale(1.03); }
.gallery a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Lightbox ---------- */

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(94vw, 1500px);
  max-height: 92dvh;
}
.lightbox::backdrop { background: rgba(5, 5, 6, 0.92); }
.lightbox img {
  max-width: min(94vw, 1500px);
  max-height: 86dvh;
  width: auto;
  border-radius: 10px;
  margin-inline: auto;
}
.lightbox .lb-close {
  position: fixed;
  top: 1rem; right: 1.2rem;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
}
.lightbox .lb-close:hover { opacity: 1; }

/* ---------- Dienstleistungen (Index-Reihen) ---------- */

.service-rows { display: grid; gap: 1rem; }

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
  transition: border-color 0.25s ease;
}
.service-row:hover { border-color: rgba(255, 255, 255, 0.22); }
.service-row:nth-child(even) { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.service-row:nth-child(even) .service-row-media { order: 2; }

.service-row-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.service-row-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-row:hover .service-row-media img { transform: scale(1.04); }

.service-row-copy { padding: clamp(1.5rem, 3.5vw, 3rem); }
.service-row-copy h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 550; letter-spacing: -0.01em; }
.service-row-copy p { margin-top: 0.8rem; color: var(--text-muted); max-width: 48ch; }
.service-row-copy .more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.4rem;
  color: var(--accent-strong);
  font-weight: 500;
}
.service-row-copy .more:hover { gap: 0.8rem; }

@media (max-width: 820px) {
  .service-row, .service-row:nth-child(even) { grid-template-columns: 1fr; }
  .service-row:nth-child(even) .service-row-media { order: 0; }
}

/* Voll-Breite-Videoband (Dienstleistungsübersicht) */
.video-band {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.video-band img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%; height: 100%;
  object-fit: cover;
}
.video-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8,9,10,0.15) 30%, rgba(8,9,10,0.88) 100%);
}
.video-band .video-band-copy {
  padding: clamp(1.5rem, 3.5vw, 3rem);
  max-width: 40rem;
}
.video-band h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 550; letter-spacing: -0.01em; }
.video-band p { margin-top: 0.8rem; color: rgba(240, 239, 236, 0.82); max-width: 52ch; }
.video-band .more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.4rem;
  color: var(--accent-strong);
  font-weight: 500;
}
.video-band .more:hover { gap: 0.8rem; }

/* ---------- Video ---------- */

.video-frame {
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--hairline);
}
.video-frame video { width: 100%; height: auto; }

/* ---------- Kontakt ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.contact-list { list-style: none; display: grid; gap: 1.1rem; margin-top: 2rem; }
.contact-list li {
  display: grid;
  gap: 0.15rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}
.contact-list span { font-size: 0.85rem; color: var(--text-muted); letter-spacing: 0.04em; }
.contact-list a, .contact-list b { font-size: 1.12rem; font-weight: 500; }
.contact-list a:hover { color: var(--accent-strong); }

.contact-media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.contact-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }

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

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

.legal { max-width: 76ch; }
.legal h2 { font-size: 1.5rem; font-weight: 550; margin-top: 2.6rem; }
.legal h3 { font-size: 1.15rem; font-weight: 550; margin-top: 1.8rem; }
.legal h4 { font-size: 1rem; font-weight: 550; margin-top: 1.4rem; }
.legal p, .legal ul { margin-top: 0.8rem; color: var(--text-muted); }
.legal ul { padding-left: 1.2rem; }
.legal a { color: var(--accent-strong); word-break: break-word; }
.legal a:hover { text-decoration: underline; }

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

.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: 3rem 2rem;
  margin-top: clamp(3rem, 8vw, 6rem);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}
.footer-grid .fcol { display: grid; gap: 0.5rem; align-content: start; }
.footer-grid .fcol span { font-size: 0.85rem; color: var(--text-muted); letter-spacing: 0.05em; margin-bottom: 0.3rem; }
.footer-grid a { color: var(--text-muted); font-size: 0.95rem; }
.footer-grid a:hover { color: var(--text); }
.footer-note {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  color: var(--text-muted);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
}

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

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .service-card img, .gallery img, .service-row-media img { transition: none; }
}

/* ---------- Skip-Link ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
