/* Variante 4: Zwischending. Ruhige Basis aus Variante 3 (Weiß, helles Grau, weiches Schwarz),
   dazu wieder kräftige Farbflächen an ausgewählten Stellen wie in Variante 2. */
.v4 h1, .v4 h2, .v4 h3, .v4 h4 { font-weight: 700; }

/* Farbflächen zurück */
.v4 .hero-block { background: var(--signal); }
.v4 .contact-block { background: var(--signal); }
.v4 .frame--signal { background: var(--signal); }
.v4 .offset-block { border: 2px solid var(--ink); }
.v4 .marquee { background: var(--signal); color: var(--white); border-block: 2px solid var(--ink); }
.v4 .marquee .sep { background: var(--ink); width: 0.55em; height: 0.55em; }

/* Leistungen wieder dunkel mit orangem Hover */
.v4 #leistungen { background: var(--ink); color: var(--white); --line-dark: rgba(255, 255, 255, 0.22); }
.v4 #leistungen .services { border-top: 2px solid var(--white); }
.v4 #leistungen .services li::after { background: var(--signal); }
.v4 #leistungen .services li:hover::before { color: var(--ink); }
.v4 #leistungen .services p { color: rgba(255, 255, 255, 0.78); }
.v4 #leistungen .services li:hover p { color: var(--white); }
.v4 #leistungen .svc-icon, .v4 #leistungen .services li:hover .svc-icon { stroke: var(--white); stroke-width: 3; }

/* Ablauf: dunkle Karten mit Akzentziffern */
.v4 .steps li { background: var(--ink); color: var(--white); }
.v4 .steps p { color: rgba(255, 255, 255, 0.84); }
.v4 .steps .n { color: var(--signal); }

/* Footer komplett schwarz, Menü und Logo hell */
.v4 .site-footer { background: var(--ink); color: var(--white); }
.v4 .site-footer a { color: var(--white); }
.v4 .site-footer a:hover { color: var(--signal); }
.v4 .site-footer .foot-logo img { width: 200px; }
.v4 .footer-bar { border-top: 1px solid rgba(255, 255, 255, 0.18); }

/* Das dunkle Grün (--signal) ist auf Schwarz zu schwach, dort kommt eine hellere Stufe zum Einsatz */
.v4 { --signal-hi: #9bbb9d; }
.v4 .dark .label::before { background: var(--signal-hi); }
.v4 #leistungen .services li::before { color: var(--signal-hi); }
.v4 #leistungen .services li:hover::before { color: var(--ink); }
.v4 .steps .n, .v4 .steps li.on .n { color: var(--signal-hi); }
.v4 #kundenstimmen .quote blockquote::before { background: var(--signal-hi); }
.v4 #kundenstimmen .slider-count b { color: var(--signal-hi); }
.v4 #kundenstimmen .slider-dots button::after { background: var(--signal-hi); }
.v4 #kundenstimmen .slider-dots button[aria-current="true"] { border-color: var(--signal-hi); }
.v4 .site-footer a:hover, .v4 .footer-bar a:hover { color: var(--signal-hi); }

/* Ablauf: Farbverlauf von hell nach dunkel, Ziffern als Halbton-Punkte, Hover auf den Kacheln */
@property --dot { syntax: "<length>"; inherits: true; initial-value: 1.1px; }
.v4 .steps-line, .v4 .steps li::before { display: none; }
.v4 .steps-wrap { padding-top: 0; }
.v4 .steps li { background: var(--step-bg); color: var(--step-fg); transition: translate .45s var(--ease), box-shadow .45s var(--ease), --dot .45s var(--ease); }
.v4 .steps li:nth-child(1) { --step-bg: #e9efe9; --step-fg: var(--ink); --step-acc: var(--signal); }
.v4 .steps li:nth-child(2) { --step-bg: #c4d3c5; --step-fg: var(--ink); --step-acc: #3f573f; }
.v4 .steps li:nth-child(3) { --step-bg: #546e56; --step-fg: var(--white); --step-acc: var(--white); }
.v4 .steps li:nth-child(4) { --step-bg: #2f4031; --step-fg: var(--white); --step-acc: var(--signal-hi); }
.v4 .steps li p { color: var(--step-fg); opacity: 0.85; }
.v4 .steps .n, .v4 .steps li.on .n {
  font-size: 6.4rem; line-height: 0.8; letter-spacing: -0.04em;
  color: transparent;
  background-image: radial-gradient(circle at center, var(--step-acc) calc(var(--dot) - 0.4px), transparent var(--dot));
  background-size: 5px 5px;
  -webkit-background-clip: text; background-clip: text;
}
.v4 .steps li.on { --dot: 2.1px; }
.v4 .steps li:hover { translate: 0 -8px; box-shadow: 0 18px 36px -18px rgba(26, 26, 26, 0.45); --dot: 2.9px; }
@media (prefers-reduced-motion: reduce) { .v4 .steps li { transition: none; } }

/* Leistungen: auf dem Desktop nur Nummer und Überschrift, Text und Icon klappen beim Darüberfahren auf.
   Auf Handy und Tablet bleibt alles wie bisher offen. Der Text bleibt immer im Code. */
@media (hover: hover) and (min-width: 901px) {
  .v4 #leistungen .services li { outline: none; transition: padding .4s var(--ease); }
  .v4 #leistungen .services li:focus-visible { box-shadow: inset 0 0 0 2px var(--signal-hi); }
  .v4 #leistungen .services p {
    max-height: 0; opacity: 0; overflow: hidden;
    transition: max-height .55s var(--ease), opacity .4s var(--ease), color .3s;
  }
  .v4 #leistungen .services .svc-icon {
    height: 0; opacity: 0;
    transition: height .55s var(--ease), opacity .4s var(--ease), transform .5s var(--ease), stroke .3s;
  }
  .v4 #leistungen .services li:hover p, .v4 #leistungen .services li:focus-within p { max-height: 8em; opacity: 1; }
  .v4 #leistungen .services li:hover .svc-icon, .v4 #leistungen .services li:focus-within .svc-icon { height: clamp(56px, 8vw, 112px); opacity: 1; }
}
