/* Ergänzungen zum Webflow-CSS — Nachbau ohne Webflow-Runtime */

/* === Aus dem Webflow-Head übernommen: Such-Button erst bei Eingabe === */
/* Unsichtbar, aber immer im Layout */
.search-button {
  position: relative;
  right: 0;
  top: 0;
  opacity: 0;
  transform: scale(.95);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  will-change: opacity, transform;
}
/* Sichtbar, wenn JS diese Klasse hinzufügt */
.search-button.is-visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* === Scroll-Einblendungen (Ersatz für Webflow-Interactions) ========== */
/* Nur aktiv mit JS (html.w-mod-js, im <head> gesetzt → kein Aufblitzen).
   Werte wie Webflow-Preset „Slide In Bottom“: 100px, 1s, outQuart;
   Verzögerung je Element aus data-ix-delay (→ --ix-delay, main.js). */
html.w-mod-js .wf-anim {
  opacity: 0;
  transform: translate3d(0, 100px, 0);
}
html.w-mod-js .wf-anim.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 1s cubic-bezier(.165, .84, .44, 1),
              transform 1s cubic-bezier(.165, .84, .44, 1);
  transition-delay: var(--ix-delay, 0ms);
}

/* Startseite, News-Bilder: „Portfolio Image Reveal“ — 130 % → 100 % in 4 s */
html.w-mod-js [data-ix="reveal"] {
  transform: scale(1.3);
}
html.w-mod-js [data-ix="reveal"].is-in {
  transform: scale(1);
  transition: transform 4s ease;
}

@media (prefers-reduced-motion: reduce) {
  html.w-mod-js .wf-anim,
  html.w-mod-js [data-ix="reveal"] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* === Honeypot-Feld des Kontaktformulars ============================== */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  height: 0;
  overflow: hidden;
  opacity: 0;
}


/* === Sidebar-Akkordeon (aus dem Webflow-Head übernommen) ============= */
/* Aktive Kategorie (aktuelle Seite bzw. Kategorie des Produkts) */
.accordion-toggle.is-active {
  font-weight: 600;
  background: #313847;
  color: #ffffff;
}
.accordion-toggle.is-active .sidebar-category-link {
  color: #ffffff !important;
}
/* Offenes Panel: Pfeil nach unten */
.accordion-toggle.is-open .arrow-icon {
  transform: rotate(0deg);
}
.icon-close,
.accordion-toggle .arrow-icon {
  cursor: pointer;
}

/* === News-Sidebar: aktuellen Artikel hervorheben (Webflow-Head) ====== */
.news-menu-element:has(.w--current) {
  background-color: var(--color-accent, #313847);
}

/* === Footer: Text vertikal mittig, Klickflächen am Handy ============= */
/* Webflow setzt ab 1280px zusätzlich 30px oberhalb der Footer-Zeile –
   dadurch saß der Text nicht mittig (oben 110px, unten 80px) */
@media screen and (min-width: 1280px) {
  .footer-bottom-wrapper {
    margin-top: 0;
  }
}
/* Barrierefreiheit (WCAG 2.5.8): Footer-Links am Handy mind. 24px hoch */
@media screen and (max-width: 767px) {
  .footer-copyright-link {
    display: inline-block; /* Zeilenhöhe 27px wird zur Klickfläche */
    min-height: 24px;
  }
}

/* === Barrierefreiheit ================================================ */
/* Nur für Screenreader (unsichtbar, aber vorgelesen) */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
/* „Zum Inhalt springen“: erscheint erst bei Tastaturbedienung */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: #313847;
  color: #fff;
  padding: 12px 16px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}
/* Fokus-Rahmen bei Tastaturbedienung (Webflow-CSS schaltet ihn für
   Menü-Button und Tabs ab); mit der Maus bleibt er unsichtbar */
.w-nav-button:focus-visible,
.w-tab-link:focus-visible,
.accordion-toggle .arrow-icon:focus-visible,
.skip-link:focus-visible {
  outline: 3px solid #3898ec;
  outline-offset: 2px;
}
