/* ============================================================
   V4 OVERRIDES + NEUE SEKTIONEN
   Lädt nach style.css; überschreibt selektiv und ergänzt neu.
   ============================================================ */

/* === HERO V4 — Schmidt-Style mit Foto-Background === */
.hero-v4 {
  position: relative;
  min-height: clamp(580px, 88vh, 820px);
  padding: clamp(80px, 10vw, 140px) 0 clamp(60px, 8vw, 120px);
  overflow: hidden;
  background: var(--c-ink);
}
.hero-v4 .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-v4 .hero-photo-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/florian-portrait.webp');
  background-size: cover;
  background-position: 92% 18%;
  filter: saturate(105%) contrast(103%);
  animation: hero-kenburns 28s ease-in-out infinite alternate;
}
.hero-v4 .hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(95deg, rgba(14,17,24,0.96) 0%, rgba(14,17,24,0.90) 35%, rgba(14,17,24,0.55) 60%, rgba(14,17,24,0.20) 88%, rgba(14,17,24,0.08) 100%),
    linear-gradient(180deg, rgba(14,17,24,0.20) 0%, rgba(14,17,24,0.55) 100%);
}
@keyframes hero-kenburns {
  0%   { transform: scale(1.0) translate(0, 0); }
  100% { transform: scale(1.06) translate(-1.5%, -1%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-v4 .hero-photo-bg { animation: none; }
}

.hero-v4-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  color: var(--c-paper);
}
.hero-v4 .hero-eyebrow {
  display: inline-block;
  font-family: var(--f-sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-paper);
  background: rgba(211,80,42,0.20);
  border: 1px solid rgba(211,80,42,0.45);
  padding: 8px 18px;
  border-radius: 100px;
  font-weight: 600;
}
.hero-v4 h1 {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.022em;
  color: var(--c-paper);
  max-width: 820px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.30);
}
.hero-v4 h1 em {
  font-style: italic;
  color: #f0a78a; /* Soft accent statt grellem Orange */
  font-weight: 500;
}
.hero-v4 .hero-lead {
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.6;
  color: rgba(250,246,238,0.82);
  max-width: 660px;
  margin-top: 4px;
}
.hero-v4 .hero-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.hero-v4 .hero-cta-row .btn-ghost-light {
  background: rgba(250,246,238,0.06);
  color: var(--c-paper);
  border: 1px solid rgba(250,246,238,0.30);
  padding: 13px 24px;
  border-radius: var(--rad-sm);
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 180ms ease, border-color 180ms ease;
}
.hero-v4 .hero-cta-row .btn-ghost-light:hover {
  background: rgba(250,246,238,0.14);
  border-color: rgba(250,246,238,0.55);
}
.hero-v4 .hero-photo-caption-v4 {
  margin-top: auto;
  padding-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--f-serif);
  color: rgba(250,246,238,0.85);
}
.hero-v4 .hero-photo-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.hero-v4 .hero-photo-role {
  font-family: var(--f-sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(250,246,238,0.65);
}

@media (max-width: 720px) {
  .hero-v4 .hero-photo-bg { background-position: 70% 15%; }
  .hero-v4 .hero-overlay {
    background:
      linear-gradient(180deg, rgba(14,17,24,0.40) 0%, rgba(14,17,24,0.78) 55%, rgba(14,17,24,0.94) 100%);
  }
  .hero-v4 h1 { font-size: clamp(30px, 8vw, 44px); }
}

/* === STAT-STRIP — vollbreit prominent === */
.stat-strip {
  background: var(--c-paper-2);
  border-bottom: 1px solid var(--c-line);
  padding: clamp(40px, 5vw, 64px) 0;
}
.stat-strip .stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-strip .stat-cell strong {
  display: block;
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  color: var(--c-ink);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.stat-strip .stat-cell strong small {
  font-size: 0.45em;
  color: var(--c-mute);
  font-weight: 500;
}
.stat-strip .stat-cell span {
  font-size: 14px;
  color: var(--c-mute);
  line-height: 1.45;
  display: block;
}
@media (max-width: 880px) {
  .stat-strip .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (max-width: 480px) {
  .stat-strip .stat-grid { grid-template-columns: 1fr; gap: 22px; }
}

/* === AKZENT-STATEMENT-SEKTION === */
.accent-statement {
  background: var(--c-ink);
  color: var(--c-paper);
  padding: clamp(70px, 10vw, 140px) 0;
  position: relative;
  overflow: hidden;
}
.accent-statement::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 30%, rgba(211,80,42,0.14), transparent 55%),
    radial-gradient(circle at 15% 80%, rgba(46,93,58,0.08), transparent 55%);
  z-index: 0;
}
.accent-statement .section-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.accent-statement .accent-eyebrow {
  display: inline-block;
  font-family: var(--f-sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250,246,238,0.55);
  margin-bottom: 24px;
}
.accent-statement-headline {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: clamp(34px, 5.5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: var(--c-paper);
  margin-bottom: 20px;
}
.accent-statement-headline em {
  font-style: italic;
  color: #f0a78a;
}
.accent-statement-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: rgba(250,246,238,0.75);
  max-width: 720px;
  margin: 0 auto;
}
.accent-statement-sub strong {
  color: var(--c-paper);
  font-weight: 600;
}

/* === ZIGZAG-PROZESS MIT PIPE-LINIE === */
.process-zigzag {
  position: relative;
  max-width: 920px;
  margin: 48px auto 0;
}
.process-zigzag .pipe {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
  background: var(--c-line);
  z-index: 0;
}
.process-zigzag .pipe-fill {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 0;
  transform: translateX(-50%);
  background: var(--c-accent);
  transition: height 60ms linear;
  z-index: 1;
}
.zigzag-step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
  margin: 0;
  padding: 36px 0;
  z-index: 2;
}
.zigzag-step:nth-child(odd) .zigzag-num  { order: 2; }
.zigzag-step:nth-child(odd) .zigzag-text { order: 1; text-align: right; padding-right: 8px; }
.zigzag-step:nth-child(odd) .zigzag-spacer { order: 3; }

.zigzag-step:nth-child(even) .zigzag-num  { order: 2; }
.zigzag-step:nth-child(even) .zigzag-spacer { order: 1; }
.zigzag-step:nth-child(even) .zigzag-text { order: 3; text-align: left; padding-left: 8px; }

.zigzag-spacer { min-height: 1px; }

.zigzag-num {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--c-paper);
  border: 2px solid var(--c-line);
  display: grid;
  place-items: center;
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 38px;
  color: var(--c-accent-d);
  flex-shrink: 0;
  transition: transform 280ms cubic-bezier(.2,.8,.2,1), border-color 220ms ease, box-shadow 220ms ease;
  box-shadow: 0 6px 20px rgba(14,17,24,0.06);
  position: relative;
  z-index: 3;
  opacity: 0;
  transform: scale(0.8);
}
.zigzag-step.is-active .zigzag-num {
  opacity: 1;
  transform: scale(1);
  border-color: var(--c-accent);
}
.zigzag-step.is-active .zigzag-text {
  opacity: 1;
  transform: translateY(0);
}
.zigzag-text {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 480ms ease, transform 520ms cubic-bezier(.2,.8,.2,1);
}
.zigzag-text h3 {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 24px);
  margin-bottom: 8px;
  color: var(--c-paper);
}
.zigzag-text p {
  font-size: 15px;
  color: rgba(250,246,238,0.72);
  line-height: 1.55;
}

/* Mobile: stacked statt zigzag */
@media (max-width: 720px) {
  .process-zigzag .pipe,
  .process-zigzag .pipe-fill { left: 44px; }
  .zigzag-step {
    grid-template-columns: 88px 1fr;
    gap: 24px;
  }
  .zigzag-step:nth-child(odd) .zigzag-num,
  .zigzag-step:nth-child(even) .zigzag-num  { order: 1; }
  .zigzag-step:nth-child(odd) .zigzag-text,
  .zigzag-step:nth-child(even) .zigzag-text {
    order: 2; text-align: left; padding: 0;
  }
  .zigzag-step .zigzag-spacer { display: none; }
}

/* === ABOUT V4 — Foto rechts statt links === */
.about-v4 .about-grid {
  grid-template-columns: 1fr 0.85fr; /* Text links, Foto rechts */
}
.about-v4 .about-text { order: 1; }
.about-v4 .about-portrait {
  order: 2;
  aspect-ratio: 3/5; /* hochkant */
  background-image: url('../assets/florian-ueber.webp');
  background-size: cover;
  background-position: center 25%;
  border-radius: var(--rad);
  position: relative;
}
@media (max-width: 880px) {
  .about-v4 .about-grid { grid-template-columns: 1fr; }
  .about-v4 .about-portrait { order: 1; aspect-ratio: 4/5; max-width: 420px; margin: 0 auto 32px; }
  .about-v4 .about-text { order: 2; }
}

/* === DEMO-GALERIE MINI === */
.demo-mini {
  background: var(--c-paper-2);
  padding: clamp(60px, 8vw, 100px) 0;
}
.demo-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 32px;
}
.demo-mini-card {
  display: block;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--rad);
  overflow: hidden;
  transition: transform 240ms cubic-bezier(.2,.8,.2,1), box-shadow 240ms ease, border-color 200ms ease;
  text-decoration: none;
  color: inherit;
}
.demo-mini-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: rgba(14,17,24,0.18);
}
.demo-mini-cover {
  aspect-ratio: 4/3;
  background-color: var(--c-paper-3);
  background-size: cover;
  background-position: top center;
  border-bottom: 1px solid var(--c-line);
  position: relative;
}
.demo-mini-cover .demo-mini-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--c-ink);
  color: var(--c-paper);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.demo-mini-body {
  padding: 18px 20px 22px;
}
.demo-mini-body h3 {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 19px;
  margin-bottom: 6px;
  color: var(--c-ink);
}
.demo-mini-body p {
  font-size: 13px;
  color: var(--c-mute);
  line-height: 1.5;
}
.demo-mini-body .demo-mini-link {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-accent-d);
  letter-spacing: 0.04em;
}
@media (max-width: 880px) { .demo-mini-grid { grid-template-columns: 1fr; } }

/* ============================================================
   V5 OVERRIDES — Branchen-Dropdown, Hero zurück zu V3-Stil
   ============================================================ */

/* Branchen-Dropdown */
.nav-has-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
}
.dropdown-caret {
  font-size: 11px;
  opacity: 0.55;
  transition: transform 180ms ease;
  display: inline-block;
}
.nav-has-dropdown:hover .dropdown-caret,
.nav-has-dropdown:focus-within .dropdown-caret {
  transform: rotate(180deg);
  opacity: 0.85;
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  box-shadow: 0 14px 38px rgba(14,17,24,0.14);
  min-width: 260px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 180ms ease, visibility 180ms ease, transform 200ms ease;
  z-index: 100;
}
.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block !important;
  padding: 10px 14px !important;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  color: var(--c-ink);
  background: transparent !important;
  transition: background 180ms ease;
}
.nav-dropdown a:hover { background: var(--c-paper-2) !important; }
.nav-dropdown-all {
  margin-top: 6px;
  padding-top: 12px !important;
  border-top: 1px solid var(--c-line);
  font-weight: 600 !important;
  color: var(--c-accent-d) !important;
}

/* Mobile: Burger-Menu zeigt Branchen flach inline */
@media (max-width: 880px) {
  .nav-has-dropdown { width: 100%; }
  .nav-dropdown {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0;
    min-width: 0;
    background: transparent;
  }
  .nav-dropdown a {
    padding-left: 24px !important;
    font-size: 13px;
  }
  .dropdown-caret { display: none; }
  .nav-has-dropdown:hover .dropdown-caret { transform: none; }
}

/* Aria-current für Preise-Link auf preise.html */
.nav-links a[aria-current="page"] {
  color: var(--c-accent-d);
  font-weight: 600;
}

/* Pricing-Link aus Angebot-Sektion */
.angebot-pricing-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  padding: 14px 22px;
  background: var(--c-paper-2);
  border: 1px solid var(--c-line);
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  color: var(--c-ink);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.angebot-pricing-link:hover {
  background: #fff;
  border-color: var(--c-accent);
  transform: translateY(-1px);
}
.angebot-pricing-link strong {
  color: var(--c-accent-d);
  margin-right: 6px;
}

/* V6-FINAL: Preise-Dropdown links-aligned (Branchen bleibt rechts) */
.nav-dropdown-left { left: 0 !important; right: auto !important; }
