/* ================================================
   BEN VISION MEDIA — style.css
   Font: Montserrat (lokal, ohne Google-Server)
   Colors: #0a0a0a bg | #fff text | #1a1a1a borders
   ================================================ */

/* ---- SCHRIFT (lokal gehostet) ---- */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url('../fonts/montserrat-latin-200-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/montserrat-latin-300-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/montserrat-latin-400-normal.woff2') format('woff2');
}

/* ---- FARBEN ---- */
:root {
  --bg: #0a0a0a;
  --text: #ffffff;
  --text-soft: #b5b5b5;   /* Fliesstext */
  --text-muted: #8c8c8c;  /* Labels, Hinweise (gut lesbar auf Schwarz) */
  --line: #1a1a1a;
  --line-strong: #333333;
  --header-h: 76px;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-padding-top: var(--header-h);
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-weight: 200;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

figure {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 2000;
  background: #fff;
  color: #0a0a0a;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 400;
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 3px;
}

/* ---- TYPOGRAPHY ---- */
h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 200;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1rem;
  font-weight: 300;
}

p {
  font-size: 0.95rem;
  color: #aaa;
  line-height: 1.8;
  max-width: 60ch;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ---- CONTAINER ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- ANIMATION CLASSES ---- */
.js .fade-up {
  opacity: 0;
  transform: translateY(30px);
}

.fade-in {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .js .fade-up {
    opacity: 1;
    transform: none;
  }
}

/* ===================================================
   NAVIGATION
   =================================================== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 2rem;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.6), rgba(10, 10, 10, 0));
  transition: background 0.4s ease, height 0.3s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  --header-h: 64px;
  height: 64px;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 1002;
}

.bvm-signet {
  width: 38px;
  height: 38px;
  border: 1px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 200;
  letter-spacing: 0.1em;
  flex-shrink: 0;
}

.bvm-signet-sm {
  width: 28px;
  height: 28px;
  font-size: 0.6rem;
}

.nav-wordmark {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

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

.nav-links a {
  position: relative;
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.4rem 0;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.btn-nav {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 0.6rem 1.4rem;
  transition: all 0.3s ease;
}

.btn-nav:hover,
.btn-nav.active {
  background: #fff;
  color: #0a0a0a;
  border-color: #fff;
}

.nav-mobile-meta {
  display: none;
}

/* Hamburger (nur Handy/Tablet) */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 1002;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
}

.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1px;
  background: currentColor;
  transition: transform 0.3s ease, top 0.3s ease;
}

.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 26px; }

.nav-open .nav-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* ===================================================
   BUTTONS
   =================================================== */
.btn-ghost {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 0.9rem 1.6rem;
  color: #fff;
  transition: all 0.3s ease;
}

.btn-ghost:hover {
  background: #fff;
  color: #0a0a0a;
  border-color: #fff;
}

.btn-ghost-solid {
  background: #fff;
  color: #0a0a0a;
  border-color: #fff;
}

.btn-ghost-solid:hover {
  background: transparent;
  color: #fff;
}

/* ===================================================
   HERO
   =================================================== */
.section-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0a0a0a;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-bg.is-ready,
.no-js .hero-bg {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.3) 0%,
    rgba(10,10,10,0.5) 60%,
    rgba(10,10,10,0.9) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding-top: 6rem;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.5rem;
  max-width: none;
}

.hero-title {
  line-height: 0.95;
}

.hero-line1,
.hero-line2 {
  display: block;
  line-height: 0.95;
}

.hero-sub {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.6);
  margin-top: 2rem;
  max-width: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll span {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.4));
  margin: 0 auto;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(0.8); }
}

/* ===================================================
   ÜBER UNS
   =================================================== */
.section-ueber {
  padding: 8rem 0;
}

.ueber-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.ueber-text h2 {
  margin-top: 1rem;
}

.ueber-text p {
  margin-bottom: 3rem;
}

/* Fotos nebeneinander — zwei gleiche Spalten */
.ueber-fotos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.foto-media {
  position: relative;
  overflow: hidden;
  background: #111;
}

.foto-hover-main,
.foto-hover-alt {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%) contrast(1.1);
  display: block;
  transition: opacity 0.4s ease;
}

.foto-hover-alt {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
}

.foto-wrap:hover .foto-hover-main { opacity: 0; }
.foto-wrap:hover .foto-hover-alt  { opacity: 1; }

.foto-caption {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 1rem;
  padding-left: 0.9rem;
  border-left: 1px solid rgba(255, 255, 255, 0.5);
}

.foto-name {
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.4;
}

.foto-titel {
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  line-height: 1.5;
}

/* ===================================================
   SERVICES
   =================================================== */
.section-services {
  padding: 8rem 0;
  border-top: 1px solid #111;
}

.section-services h2 {
  margin-bottom: 4rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  background: var(--bg);
  padding: 3rem;
  transition: background 0.3s ease;
}

.service-card:hover {
  background: #111;
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.service-card h3 {
  color: #fff;
  margin-bottom: 1rem;
}

.service-card p {
  font-size: 0.9rem;
  line-height: 1.9;
}

/* ===================================================
   PORTFOLIO
   =================================================== */
.section-portfolio {
  padding: 8rem 0;
  border-top: 1px solid #111;
}

.portfolio-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
  margin-top: 2rem;
}

.portfolio-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
  max-width: none;
}

.filter-btn {
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--text-muted);
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.55rem 1.3rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  border-color: #fff;
  color: #fff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  grid-auto-flow: dense;
  gap: 1px;
  background: #111;
}

/* Video-Modus: 2x2 gleichmässiges Raster */
.portfolio-grid.video-mode {
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 320px;
}

.portfolio-grid.video-mode .p-item {
  grid-column: span 1 !important;
  grid-row: span 1 !important;
}

.p-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #111;
}

.p-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: grayscale(30%);
}

.p-item:hover > img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.p-item.p-tall {
  grid-row: span 2;
}

.p-item.p-wide {
  grid-column: span 2;
}

.p-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  pointer-events: none;
}

.p-item:hover .p-overlay,
.p-item:focus-visible .p-overlay {
  opacity: 1;
}

/* Handy/Tablet ohne Maus: Projektnamen immer zeigen */
@media (hover: none) {
  .p-overlay {
    opacity: 1;
  }
}

.p-cat {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.4rem;
  display: block;
}

.p-overlay h4 {
  color: #fff;
}

.p-item.hidden {
  display: none;
}

/* Play-Button für Videoprojekte */
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  z-index: 3;
  transition: all 0.3s ease;
  pointer-events: none;
}

.p-item:hover .play-btn {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

/* Vimeo Embed innerhalb des p-item */
.video-embed {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 10;
  background: #000;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===================================================
   PORTFOLIO AKKORDEON (Foto-Projekte)
   =================================================== */
.portfolio-accordion {
  background: #0f0f0f;
  border: 1px solid var(--line);
  margin-top: 1px;
  overflow: hidden;
  animation: accordionOpen 0.4s ease;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

@keyframes accordionOpen {
  from { max-height: 0; opacity: 0; }
  to   { max-height: 2000px; opacity: 1; }
}

.accordion-inner {
  padding: 2rem;
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.accordion-header span {
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.accordion-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s ease;
}

.accordion-close:hover {
  color: #fff;
}

.accordion-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem;
}

.accordion-images img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.3s ease;
  filter: grayscale(20%);
  background: #151515;
}

.accordion-images img:hover {
  opacity: 0.8;
  filter: grayscale(0%);
}

/* ===================================================
   KUNDEN — Logo Grid 3×3
   =================================================== */
.section-kunden {
  padding: 8rem 0;
  border-top: 1px solid #111;
}

.kunden-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  margin-top: 3rem;
  margin-bottom: 4rem;
}

.kunden-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.kunden-logo-item:nth-child(3n) {
  border-right: none;
}

.kunden-logo-item:nth-child(7),
.kunden-logo-item:nth-child(8),
.kunden-logo-item:nth-child(9) {
  border-bottom: none;
}

.kunden-logo-item img {
  max-width: 160px;
  max-height: 70px;
  object-fit: contain;
  filter: grayscale(100%);
  mix-blend-mode: screen;
  opacity: 0.75;
  transition: opacity 0.3s ease;
}

.kunden-logo-item img.logo-lg {
  max-width: 260px;
  max-height: 120px;
}

.kunden-logo-item img.logo-xl {
  max-width: 320px;
  max-height: 140px;
}

.kunden-logo-item img.logo-lg,
.kunden-logo-item img.logo-xl {
  display: block;
  margin: 0 auto;
  width: 100%;
}

.kunden-logo-item:hover img {
  opacity: 1;
}

/* ---- TESTIMONIAL ---- */
.testimonial {
  border-left: 1px solid #444;
  padding: 2rem 2.5rem;
  margin-top: 2rem;
}

.testimonial p {
  font-size: 1.05rem;
  font-weight: 200;
  color: rgba(255,255,255,0.8);
  font-style: italic;
  line-height: 1.9;
  max-width: 70ch;
  margin-bottom: 1rem;
}

.testimonial cite {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-style: normal;
}

/* ===================================================
   PROZESS
   =================================================== */
.section-prozess {
  padding: 8rem 0;
  border-top: 1px solid #111;
}

.prozess-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.prozess-step {
  padding: 2rem 0;
  border-top: 1px solid var(--line-strong);
}

.prozess-num {
  display: block;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.prozess-step h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.prozess-step p {
  font-size: 0.875rem;
}

/* ===================================================
   KONTAKT
   =================================================== */
.section-kontakt {
  padding: 8rem 0;
  border-top: 1px solid #111;
}

.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  margin-top: 3rem;
  align-items: start;
}

.kontakt-info p {
  margin-bottom: 2.5rem;
  font-size: 1rem;
  line-height: 1.9;
}

.kontakt-list {
  list-style: none;
  margin-bottom: 2.5rem;
  border-top: 1px solid var(--line);
}

.kontakt-list li {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.kontakt-label {
  flex: 0 0 6.5rem;
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.kontakt-list a {
  font-size: 1rem;
  font-weight: 300;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  transition: border-color 0.3s ease;
  word-break: break-word;
}

.kontakt-list a:hover {
  border-bottom-color: #fff;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 0.8rem 1.5rem;
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  transition: all 0.3s ease;
}

.btn-whatsapp:hover {
  background: #25D366;
  border-color: #25D366;
  color: #fff;
}

/* Formular */
.kontakt-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-field {
  border-bottom: 1px solid var(--line-strong);
  padding: 0.85rem 0;
  transition: border-color 0.3s ease;
}

.form-field:focus-within {
  border-bottom-color: rgba(255,255,255,0.7);
}

.form-field input,
.form-field textarea,
.form-field select {
  background: none;
  border: none;
  outline: none;
  width: 100%;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  resize: none;
}

.form-field select {
  color: var(--text-muted);
}

.form-field select:valid {
  color: #fff;
}

.form-field select option {
  background: #111;
  color: #fff;
}

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

.form-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
  max-width: none;
}

.form-note a {
  color: var(--text-soft);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.form-note a:hover {
  color: #fff;
}

.btn-submit {
  background: none;
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.btn-submit:hover {
  background: #fff;
  color: #0a0a0a;
  border-color: #fff;
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: wait;
}

.form-status {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: #fff;
  max-width: none;
}

.form-status.is-error {
  color: #ff9b8f;
}

.form-status a {
  border-bottom: 1px solid currentColor;
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 2rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: #c4c4c4;
  padding: 0.35rem 0;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
}

/* ===================================================
   RECHTLICHE SEITEN (Impressum, Datenschutz, 404)
   =================================================== */
.legal-header {
  border-bottom: 1px solid var(--line);
}

.legal-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 76px;
}

.legal-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 5rem 2rem 6rem;
}

.legal-wrap h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 200;
  margin-bottom: 1rem;
}

.legal-stand {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.legal-wrap h2 {
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2.75rem;
  margin-bottom: 0.75rem;
}

.legal-wrap p,
.legal-wrap li {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.8;
  max-width: none;
}

.legal-wrap p + p {
  margin-top: 0.9rem;
}

.legal-wrap ul {
  padding-left: 1.2rem;
  margin-top: 0.6rem;
}

.legal-wrap a {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  word-break: break-word;
}

.legal-wrap a:hover {
  border-bottom-color: #fff;
}

.back-link {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
  transition: color 0.3s ease;
}

.back-link:hover {
  color: #fff;
}

.page-404 {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-404 .btn-ghost {
  align-self: flex-start;
  margin-top: 2rem;
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1100px) {
  .nav-links { gap: 1.5rem; }
  .nav-main { gap: 1.75rem; }
}

@media (max-width: 1024px) {
  .prozess-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Handy-/Tablet-Menü */
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  #navbar { padding: 0 1.25rem; }

  .nav-toggle { display: block; }

  .nav-main {
    position: fixed;
    inset: 0;
    z-index: 1001;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2.5rem;
    padding: 6rem 2rem 3rem;
    background: #0a0a0a;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }

  .nav-open .nav-main {
    opacity: 1;
    visibility: visible;
  }

  /* backdrop-filter würde das Vollbild-Menü auf die Kopfzeile beschränken */
  .nav-open #navbar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #0a0a0a;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
  }

  .nav-links a {
    font-size: 1.9rem;
    font-weight: 200;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #fff;
  }

  .btn-nav {
    font-size: 0.85rem;
    padding: 0.9rem 2rem;
  }

  .nav-mobile-meta {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1rem;
  }

  .nav-mobile-meta a {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-soft);
  }
}

@media (max-width: 768px) {
  h1 { font-size: clamp(2.5rem, 12vw, 4rem); }
  h2 { font-size: clamp(1.8rem, 6vw, 2.5rem); }

  .nav-wordmark { font-size: 0.7rem; }

  .ueber-grid { grid-template-columns: 1fr; }
  .ueber-fotos { margin-top: 1rem; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 2.25rem 1.75rem; }

  .portfolio-hint { margin-left: 0; flex-basis: 100%; }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }
  .p-item.p-wide { grid-column: span 2; }

  .kunden-logos { grid-template-columns: repeat(2, 1fr); }
  .kunden-logo-item:nth-child(3n) { border-right: 1px solid var(--line); }
  .kunden-logo-item:nth-child(2n) { border-right: none; }
  .kunden-logo-item:nth-child(7),
  .kunden-logo-item:nth-child(8),
  .kunden-logo-item:nth-child(9) { border-bottom: 1px solid var(--line); }
  .kunden-logo-item:nth-child(9),
  .kunden-logo-item:nth-child(10) { border-bottom: none; }

  .prozess-grid { grid-template-columns: repeat(2, 1fr); }
  .kontakt-grid { grid-template-columns: 1fr; gap: 3rem; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .hero-content { padding: 0 1.25rem; padding-top: 5rem; }

  .section-ueber,
  .section-services,
  .section-portfolio,
  .section-kunden,
  .section-prozess,
  .section-kontakt { padding: 5rem 0; }

  .ueber-fotos { gap: 0.75rem; }
  .foto-name { font-size: 0.9rem; }
  .foto-titel { font-size: 0.7rem; letter-spacing: 0.1em; }

  .portfolio-grid { grid-template-columns: 1fr; }
  .p-item.p-tall,
  .p-item.p-wide { grid-column: span 1; grid-row: span 1; }
  .portfolio-grid.video-mode { grid-template-columns: 1fr; grid-auto-rows: 220px; }

  .kunden-logos { grid-template-columns: 1fr; }
  .kunden-logo-item { border-right: none !important; }

  .prozess-grid { grid-template-columns: 1fr; }

  .kontakt-list li { flex-direction: column; gap: 0.2rem; }
  .kontakt-label { flex-basis: auto; }

  .accordion-inner { padding: 1.25rem; }
  .accordion-images {
    grid-template-columns: repeat(2, 1fr);
  }

  .legal-wrap { padding: 3.5rem 1.25rem 5rem; }
}
