/* =========================================================
   NEXAS Media — Imagefilm-Unterseite
   Erweitert alt3.css + beratung.css
   ========================================================= */

/* =========================================================
   HERO — Parallax + Canvas-Partikel
   ========================================================= */
.if-hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

.if-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Parallax-Layer: Basis-Position mit Oversize für Bewegungsspielraum */
.if-layer {
  position: absolute;
  inset: -8%;
  will-change: transform;
  transition: transform 0.12s linear;
  pointer-events: none;
}

.if-l-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 28% 45%, rgba(0,99,153,0.40) 0%, transparent 65%),
    radial-gradient(ellipse 50% 45% at 72% 58%, rgba(22,224,255,0.15) 0%, transparent 60%);
}

.if-l-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.10;
  filter: blur(4px) saturate(0.35);
}

.if-l-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 45% 38% at 72% 32%, rgba(255,92,197,0.14) 0%, transparent 65%);
}

/* Filmisches Vignette-Overlay */
.if-vignette {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: radial-gradient(ellipse 88% 78% at 50% 50%, transparent 42%, rgba(10,13,20,0.82) 100%);
  pointer-events: none;
}

/* Oberes Gradient für Header-Lesbarkeit */
.if-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 180px;
  background: linear-gradient(to bottom, rgba(10,13,20,0.70), transparent);
  z-index: 5;
  pointer-events: none;
}

/* Fade-to-black am unteren Rand — nahtloser Übergang zum Logo-Slider */
.if-hero-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: clamp(120px, 18vh, 220px);
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 6;
  pointer-events: none;
}

/* Content-Layer */
.if-layer-content {
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 8;
}

.if-hero-inner {
  text-align: center;
  max-width: 880px;
  padding-inline: var(--pad-x);
}

.if-hero-eye {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-m);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 28px;
  padding: 6px 16px;
  border: 1px solid rgba(22,224,255,0.28);
  border-radius: 100px;
  background: rgba(22,224,255,0.07);
}

.if-hero-h {
  font-family: var(--font-d);
  font-size: clamp(3rem, 8vw, 6.8rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 28px;
  font-variation-settings: 'opsz' 64;
}

.if-hero-h em {
  display: inline-block;
  color: var(--cyan);
  font-style: normal;
  padding-right: 0.1em;
}

.if-hero-lead {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--ink-mute);
  max-width: 560px;
  margin: 0 auto 44px;
  line-height: 1.65;
}

.if-hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll-Indikator / magnetisch */
.if-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  translate: -50% 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--ink-dim);
  font-family: var(--font-m);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(.22,.84,.16,1), color 0.2s;
  will-change: transform;
  text-decoration: none;
}

.if-scroll:hover { color: var(--cyan); }

.if-scroll-ring {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(22,224,255,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-dim);
  transition: border-color 0.2s, color 0.2s;
  animation: if-bounce 2.2s ease-in-out infinite;
}

.if-scroll:hover .if-scroll-ring {
  border-color: rgba(22,224,255,0.5);
  color: var(--cyan);
}

@keyframes if-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* =========================================================
   WHY — 3 Punkte was ein Imagefilm bewirkt
   ========================================================= */
.if-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.if-why-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 32px 28px;
  transition: border-color 0.25s, transform 0.3s var(--ease);
}

.if-why-card:hover {
  border-color: rgba(22,224,255,0.22);
  transform: translateY(-3px);
}

.if-why-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: rgba(22,224,255,0.07);
  border: 1px solid rgba(22,224,255,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  margin-bottom: 20px;
}

.if-why-card h3 {
  font-size: 1.08rem;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--ink);
}

.if-why-card p {
  color: var(--ink-mute);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 860px) {
  .if-why-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* =========================================================
   COLOR-GRADING SLIDER — Before/After Vergleich
   ========================================================= */

/* Volle Breite mit seitlichem Padding */
.if-grade-outer {
  width: 100%;
  padding-inline: clamp(16px, 3vw, 48px);
  box-sizing: border-box;
}

.if-grade-section { padding-bottom: clamp(60px, 8vw, 100px); }

.if-grade-wrap {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  /* echtes Seitenverhältnis der Bilder: 2400:952 ≈ 2.52:1 */
  aspect-ratio: 2400 / 952;
  width: 100%;
  box-shadow:
    0 0 0 1px rgba(22,224,255,0.14),
    0 0 80px rgba(22,224,255,0.10),
    0 32px 90px rgba(0,0,0,0.60);
  cursor: ew-resize;
}

.if-grade-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* Beide Bilder haben exakt gleiche Abmessungen — kein cover nötig */
  object-fit: fill;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}

.if-grade-before {
  z-index: 1;
}

.if-grade-after {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
  transition: clip-path 0s;
}

/* Trennlinie */
.if-grade-line {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255,255,255,0.85);
  z-index: 10;
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 12px rgba(22,224,255,0.4);
}

/* Zieh-Knob */
.if-grade-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 16px rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a0d14;
  z-index: 11;
  pointer-events: none;
}

/* Labels */
.if-grade-labels {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 20px 18px;
  z-index: 12;
  pointer-events: none;
}

.if-grade-lbl {
  font-family: var(--font-m);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 6px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
}

.if-grade-lbl-b { color: rgba(245,246,248,0.5); }
.if-grade-lbl-a { color: var(--cyan); }

/* Drag-Hint bei erstem Touch */
.if-grade-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(-48px);
  font-size: 11px;
  font-family: var(--font-m);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  pointer-events: none;
  z-index: 13;
  transition: opacity 0.4s;
}

.if-grade-wrap.is-dragged .if-grade-hint { opacity: 0; }

/* =========================================================
   REFERENZ-KARTEN — Imagefilm-Projekte
   ========================================================= */
.if-refs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.if-ref {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: block;
  background: var(--bg-2);
  text-decoration: none;
}

.if-ref img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease), opacity 0.35s;
  opacity: 0.68;
}

.if-ref:hover img {
  transform: scale(1.06);
  opacity: 0.9;
}

.if-ref-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,13,20,0.92) 0%,
    rgba(10,13,20,0.30) 50%,
    transparent 100%
  );
  z-index: 2;
  transition: background 0.35s;
}

.if-ref:hover .if-ref-overlay {
  background: linear-gradient(
    to top,
    rgba(10,13,20,0.95) 0%,
    rgba(10,13,20,0.45) 55%,
    transparent 100%
  );
}

.if-ref-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 20px;
  z-index: 3;
}

.if-ref-tag {
  font-family: var(--font-m);
  font-size: 10px;
  color: var(--cyan);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
}

.if-ref-client {
  font-size: 0.8rem;
  color: var(--ink-dim);
  display: block;
  margin-bottom: 4px;
}

.if-ref-title {
  font-family: var(--font-d);
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}

.if-ref-play {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(22,224,255,0.12);
  border: 1px solid rgba(22,224,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 4;
}

.if-ref:hover .if-ref-play { opacity: 1; }

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

@media (max-width: 520px) {
  .if-refs-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   LEISTUNGSUMFANG — Was enthalten ist (light)
   ========================================================= */
.if-leist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.if-leist-item {
  background: #ffffff;
  border: 1px solid rgba(10,13,20,0.08);
  border-radius: var(--r-md);
  padding: 30px 26px;
  box-shadow: 0 2px 12px rgba(10,13,20,0.05);
}

.if-leist-num {
  font-family: var(--font-m);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--nexas);
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.if-leist-item h3 {
  font-family: var(--font-d);
  font-size: 1.06rem;
  font-weight: 700;
  color: #0a0d14;
  margin: 0 0 10px;
}

.if-leist-item p {
  color: rgba(10,13,20,0.62);
  font-size: 0.93rem;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 600px) {
  .if-leist-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   PROZESS — 3 Schritte (light)
   ========================================================= */
.if-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.if-steps-line {
  position: absolute;
  top: 28px;
  left: calc(33.33% / 2);
  right: calc(33.33% / 2);
  height: 1px;
  background: linear-gradient(90deg, var(--cyan-2), var(--nexas));
  opacity: 0.20;
  pointer-events: none;
}

.if-step {
  text-align: center;
  padding: 0 24px;
}

.if-step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nexas), var(--cyan-2));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  font-family: var(--font-m);
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 4px 18px rgba(0,65,107,0.25);
}

.if-step h3 {
  font-family: var(--font-d);
  font-size: 1.05rem;
  font-weight: 700;
  color: #0a0d14;
  margin: 0 0 10px;
}

.if-step p {
  color: rgba(10,13,20,0.62);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0 0 16px;
}

.if-step a {
  font-size: 0.88rem;
  color: var(--nexas);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 680px) {
  .if-steps { grid-template-columns: 1fr; gap: 40px; }
  .if-steps-line { display: none; }
  .if-step { padding: 0; }
}

/* =========================================================
   STATS — Kleine Zahlen-Hervorhebung
   ========================================================= */
.if-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.if-stat {
  text-align: center;
}

.if-stat-n {
  display: block;
  font-family: var(--font-d);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 6px;
}

.if-stat-l {
  font-size: 0.85rem;
  color: var(--ink-dim);
}

/* =========================================================
   GRADE SECTION HEAD
   ========================================================= */
.if-grade-intro {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}

.if-grade-intro p {
  color: var(--ink-mute);
  font-size: 1rem;
  line-height: 1.7;
  margin: 12px 0 0;
}

/* =========================================================
   LEVITATION HERO OVERRIDES — imagefilm context
   ========================================================= */

/* Originalfarben — kein Abdunkeln */
.if-lv .lv-bg {
  filter: brightness(1.0) saturate(1.0);
}

/* Kein Overlay */
.if-lv .lv-overlay {
  background: transparent;
}

/* Hintergrund-Schriftzug — Anton: massiv-kondensiert, ähnlich Bebas Neue aber fetter */
.if-lv .lv-bg-text {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: normal;
  letter-spacing: 0.03em;
  top: 54%;
  font-size: clamp(4rem, 19vw, 32rem);
  color: transparent;
  -webkit-text-stroke: 0px;
  background: linear-gradient(120deg, var(--cyan), #ffffff 50%, var(--cyan));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0.88;
  z-index: 5;
  animation: shine 14s ease-in-out infinite;
}

/* Scroll-Indikator über die Vignette heben */
.if-lv .if-scroll {
  z-index: 25;
  color: rgba(255, 255, 255, 0.92);
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.75));
}
.if-lv .if-scroll-ring {
  border-color: rgba(255, 255, 255, 0.55);
}
.if-lv .if-scroll:hover {
  color: var(--cyan);
}
.if-lv .if-scroll:hover .if-scroll-ring {
  border-color: var(--cyan);
}

/* =========================================================
   INTRO-SEKTION (direkt nach Logo-Slider)
   ========================================================= */
.if-intro {
  padding-block: clamp(72px, 11vw, 120px);
}

.if-intro-h {
  font-family: var(--font-d);
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin: 0 0 28px;
  color: var(--ink);
}

.if-intro-h em {
  display: inline-block;
  font-style: italic;
  background: linear-gradient(120deg, var(--cyan), #ffffff 50%, var(--cyan));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 8s ease-in-out infinite;
}

.if-intro-lead {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--ink-mute, rgba(245,246,248,0.65));
  line-height: 1.7;
  margin: 0 0 40px;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 40px;
}

.if-intro-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================================
   FAQ — mehr Luft unten
   ========================================================= */
.vp-faq .faq-body {
  padding-bottom: 36px;
}

/* =========================================================
   TESTIMONIAL-MASONRY — "Aus 100+ Projekten"
   ========================================================= */
.if-testi-grid {
  columns: 3;
  column-gap: 20px;
  margin-top: 48px;
}
.if-testi-card {
  break-inside: avoid;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 14px;
  padding: 24px 26px 22px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04), 0 4px 20px rgba(0,0,0,0.05);
}
.if-testi-q {
  font-size: 15px;
  line-height: 1.65;
  color: #1e2028;
  margin: 0 0 18px;
}
.if-testi-name {
  display: block;
  font-weight: 700;
  font-size: 13px;
  color: #111;
  margin-bottom: 2px;
}
.if-testi-role {
  display: block;
  font-size: 12px;
  color: #888;
}
@media (max-width: 900px) {
  .if-testi-grid { columns: 2; }
}
@media (max-width: 540px) {
  .if-testi-grid { columns: 1; }
}

/* =========================================================
   MOBILE — Imagefilm Levitation Hero
   Überschreibt levitation-hero.css (lädt davor).
   ========================================================= */
@media (max-width: 640px) {
  /* Andreas — deutlich größer, Oberkörper im Fokus */
  .if-lv .lv-person-obj {
    --w: 140vw !important;
    --oy: 6vh !important;
    --ox: 0vw !important;
  }

  /* Objekte wieder einblenden (levitation-hero.css blendet sie aus) */
  .if-lv .lv-bg-obj {
    display: block;
  }

  /* Größer auf Mobile — oben/unten ist Platz */
  .if-lv .lv-obj:not(.lv-person-obj) {
    --w: 36vw !important;
  }
}
