/* iSOLVE — global styles. Colors and fonts follow the old Avada theme:
   orange #f86635, black header/footer, Arial text, Jost for nav and buttons. */

/* ─── Tokens ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

:root {
  --bg:        #ffffff;
  --bg-2:      #f9f9fb;
  --bg-card:   #f2f3f5;
  --ink:       #000000;
  --ink-2:     #4a4e57;
  --ink-3:     #6b7280;
  --line:      #e2e2e2;
  --line-2:    #c9c9c9;
  --accent:    #f86635;
  --indigo:    #f86635;
  --indigo-dim: #fde3d9;

  --sans:    Arial, Helvetica, sans-serif;
  --heading: Arial, Helvetica, sans-serif;
  --ui:      "Jost", Arial, Helvetica, sans-serif;

  --radius:    4px;
  --radius-lg: 4px;
  /* Avada: site width 1380px + 30px side padding */
  --maxw:      1440px;
  --gutter:    30px;
}

/* ─── Base ──────────────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--accent); color: #fff; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading);
  font-weight: 600;
  color: var(--ink);
}
/* Avada sizes: h1 57px, h2 40px, h3 37px, h4 28px (smaller on narrow screens) */
h1 { font-size: clamp(34px, 5vw, 57px); line-height: 1.25; }
h2 { font-size: clamp(28px, 3.5vw, 40px); line-height: 1.2; margin: 0 0 1.1em; }
h3 { font-size: clamp(26px, 3.25vw, 37px); line-height: 1.3; }
h4 { font-size: clamp(22px, 2.5vw, 28px); line-height: 1.36; }

@media (max-width: 640px) {
  :root { --gutter: 20px; }
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Sections that span the whole window although they sit inside .wrap. */
.bleed,
.block-product-grid {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* Markdown pages (Impressum, Datenschutz, …): full content width like the old site */
.site-main {
  padding-bottom: clamp(48px, 7vw, 100px);
}
.site-main .wrap > :is(h2, h3, h4):first-child,
.site-main .wrap > .block-title-bar + :is(h2, h3, h4) { margin-top: clamp(40px, 6vw, 90px); }
.site-main .wrap > h2 { margin: 1.2em 0 0.8em; }
.site-main .wrap > h3 { margin: 1em 0 0.8em; }
.site-main .wrap > h4 { margin: 1.33em 0 0.8em; }
.site-main table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.site-main td, .site-main th { border: 1px solid var(--line); padding: 0.5em 0.75em; vertical-align: top; }

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--ui);
  font-weight: 600;
  font-size: 18px;
  line-height: 21px;
  padding: 17px 40px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none !important;
  transition: background 200ms, color 200ms;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #fff; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn.is-loading { opacity: 0.7; cursor: progress; }

/* ─── Header / nav ──────────────────────────────────────────── */
.nav {
  position: relative;
  z-index: 50;
  background: #000 url("/assets/bg/header-bg.svg") no-repeat left top / 1926px auto;
  color: #fff;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 60px 50px 60px 4vw;
}

.brand { display: flex; flex-shrink: 0; }
.brand img { display: block; width: max(80px, 8.5vw); height: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 35px;
  margin-left: auto;
  font-family: var(--ui);
  font-weight: 500;
  font-size: 18px;
  text-transform: uppercase;
}

.nav-link,
.nav-dropdown__trigger,
.nav-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  color: #fff;
  background: none;
  border: 0;
  font: inherit;
  text-transform: inherit;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.nav-link:hover { color: var(--accent); text-decoration: none; }
.nav-link.active,
.nav-dropdown.active > .nav-dropdown__trigger,
.nav-dropdown.active > .nav-dropdown__trigger-link { border-bottom-color: #fff; }
.nav-dropdown__toggle { padding-left: 0; margin-left: -4px; }

.nav-dropdown__chevron {
  width: 10px;
  height: 6px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.nav-dropdown { position: relative; display: flex; align-items: center; gap: 8px; }
.nav-dropdown__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  padding: 0;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  text-transform: none;
  font-weight: 500;
  font-size: 17px;
}
.nav-dropdown__menu a {
  display: block;
  padding: 12px 20px;
  color: #212934;
  line-height: 1.8;
  white-space: nowrap;
}
.nav-dropdown__menu a:hover,
.nav-dropdown__menu a.active { color: var(--accent); text-decoration: none; }
.nav-dropdown--open > .nav-dropdown__menu { display: block; }
@media (hover: hover) and (min-width: 1025px) {
  .nav-dropdown:hover > .nav-dropdown__menu { display: block; }
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: 40px;
  padding: 17px 40px;
  font-family: var(--ui);
  font-weight: 600;
  font-size: 18px;
  color: var(--accent);
  white-space: nowrap;
}
.nav-phone svg,
.footer-phone svg { width: 18px; height: 18px; fill: currentColor; }

.nav-toggle { display: none; }

@media (max-width: 1024px) {
  .nav-inner { padding: 24px var(--gutter); flex-wrap: wrap; }
  .nav-phone { margin-left: auto; padding: 0; font-size: 16px; }
  .nav-toggle {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: none;
    border: 0;
    color: #fff;
    cursor: pointer;
  }
  .nav-toggle svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .nav-toggle .icon-close { display: none; }
  .nav.is-open .nav-toggle .icon-menu { display: none; }
  .nav.is-open .nav-toggle .icon-close { display: block; }

  .nav-links {
    display: none;
    order: 10;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 16px 0 0;
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links > .nav-link,
  .nav-dropdown { margin-top: 10px; padding-bottom: 4px; }
  .nav-links > .nav-link { align-self: flex-start; }
  .nav-dropdown { flex-wrap: wrap; }
  .nav-dropdown__menu { position: static; width: 100%; box-shadow: none; background: transparent; }
  .nav-dropdown__menu a { color: #fff; padding: 8px 16px; }
  html.nav-scroll-lock { overflow: hidden; }
}
@media (max-width: 520px) {
  .nav-phone { display: none; }
  .nav-toggle { margin-left: auto; }
}

/* ─── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: #000 url("/assets/bg/footer-bg-1.svg") no-repeat center center / cover;
  color: #fff;
  padding: 11vh 0 calc(11vh + 48px);
}
.footer-top {
  display: flex;
  align-items: center;
  gap: 24px 54px;
  flex-wrap: wrap;
}
.footer-top .brand img { width: 146px; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 40px;
  font-family: var(--ui);
  font-weight: 500;
  font-size: 19px;
}
.footer-nav__item { position: relative; }
.footer-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0 7px;
  color: #fff;
  border-bottom: 2px solid transparent;
}
.footer-nav__link:hover { color: var(--accent); text-decoration: none; }
.footer-nav__link.active { border-bottom-color: #fff; }
.footer-nav__menu {
  display: none;
  position: absolute;
  z-index: 10;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  font-size: 17px;
}
.footer-nav__item:hover > .footer-nav__menu,
.footer-nav__item:focus-within > .footer-nav__menu { display: block; }
.footer-nav__menu a {
  display: block;
  padding: 12px 20px;
  color: #212934;
  white-space: nowrap;
}
.footer-nav__menu a:hover,
.footer-nav__menu a.active { color: var(--accent); text-decoration: none; }
.footer-actions { display: flex; flex-direction: column; align-items: center; margin-left: auto; }
.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 40px;
  font-family: var(--ui);
  font-weight: 600;
  font-size: 18px;
  line-height: 21px;
  color: #fff;
}
.footer-claim { margin-top: clamp(48px, 7vw, 100px); }
.footer-claim p { margin: 0 0 1em; font-weight: 600; font-size: clamp(28px, 3.5vw, 40px); line-height: 1.2; }
.footer-bottom {
  margin-top: clamp(40px, 6vw, 80px);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.footer-sep { color: #fff; }
.footer-bottom a { color: var(--accent); }
@media (max-width: 1024px) {
  .footer-nav { display: none; }
}
@media (max-width: 640px) {
  .footer-actions { align-items: flex-start; margin-left: 0; }
  .footer-phone { padding-inline: 0; }
}

/* ─── Back to top (old Avada #toTop) ───────────────────────── */
.to-top {
  position: fixed;
  z-index: 100;
  bottom: 0;
  left: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 35px;
  border-radius: 6px 6px 0 0;
  background: #333;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease-in-out, background 0.2s ease-in-out;
}
.to-top.is-visible { opacity: 0.9; pointer-events: auto; }
.to-top:hover { background: var(--accent); }
.to-top svg { width: 14px; height: 9px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 1024px) {
  .to-top { bottom: 30px; left: 30px; width: 44px; height: 44px; border-radius: 4px; }
}

/* ─── Progressive images (framework ResponsiveImage) ────────── */
.js-img-stack {
  display: grid;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  justify-items: center;
}
.js-img-stack > img { grid-area: 1 / 1; width: 100%; min-width: 0; min-height: 0; }
.js-blur-placeholder { transition: opacity 300ms ease-out; }
.js-blur-placeholder.is-hidden { opacity: 0; }
.js-progressive-img { opacity: 0; transition: opacity 300ms ease-out; }
.js-progressive-img.is-loaded { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .js-blur-placeholder, .js-progressive-img { transition: none; }
}
