@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin.woff2") format("woff2");
}

:root {
  --green: #209529;
  --green-dark: #1a7a22;
  --text: #4b5563;
  --heading: #111827;
  --muted: #7a7a7a;
  --grey: #f3f4f6;
  --border: #d6d6d6;
  --radius: 6px;
  --container: 1360px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; scrollbar-gutter: stable; }
body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 1rem; color: var(--heading); line-height: 1.2; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; }
h2 strong { font-weight: 800; }
p { margin: 0 0 1rem; }

.container { width: min(var(--container), 100% - 2rem); margin-inline: auto; }

/* Buttons */
.button {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border: 2px solid var(--green);
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.button:hover, .button:focus-visible { background: var(--green-dark); border-color: var(--green-dark); }
.button--outline { background: transparent; color: var(--text); }
.button--outline:hover, .button--outline:focus-visible { background: var(--green); border-color: var(--green); color: #fff; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: min(1440px, 100% - 2.5rem);
  margin-inline: auto;
  padding: 1.25rem 0;
}
.site-header__logo img { height: 52px; width: auto; }
.site-nav { display: flex; gap: 1.75rem; margin-left: auto; }
.site-nav a { font-weight: 600; color: #4b5563; text-decoration: none; }
.site-nav a:hover { color: var(--green); }
.cart-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.2rem;
  border: 0;
  background: none;
  color: var(--heading);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.cart-toggle:hover { color: var(--green); }
.cart-toggle__count {
  min-width: 1.25rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 0.75rem;
  line-height: 1.25rem;
  text-align: center;
}
.nav-toggle { display: none; width: 40px; height: 40px; border: 0; background: none; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; margin: 6px 0; background: var(--heading); transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 767px) {
  .site-header__inner { gap: 0.75rem; }
  .cart-toggle { margin-left: auto; }
  .cart-toggle__total { display: none; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
    background: #fff;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.08);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.6rem 0; }
}

/* Sections */
.section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.section--grey { background: var(--grey); }
.section--tight { padding-top: 0; }
.section__head { max-width: 46rem; margin: 0 auto 2.5rem; text-align: center; }
.section__head--left { margin-left: 0; text-align: left; }
.section__head p { color: var(--text); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.eyebrow { margin-bottom: 0.5rem; color: var(--green); font-weight: 600; letter-spacing: 0.08em; }
.badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
}
.card-image { border-radius: 10px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); }
@media (max-width: 767px) { .split { grid-template-columns: 1fr; } }

/* Hero */
.hero { background: var(--grey); padding: clamp(2rem, 4vw, 3rem) 0 0; overflow: hidden; }
.hero__inner { width: 100%; max-width: none; padding-left: 5vw; padding-right: 0; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 2rem; align-items: center; }
.hero__image { width: 100%; justify-self: end; }
.hero h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 300; line-height: 1.1; }
.hero h1 strong { display: block; font-weight: 800; }
.lead { max-width: 34rem; margin-bottom: 1.75rem; font-size: 1.125rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
@media (max-width: 1024px) { .hero__inner { grid-template-columns: 1fr; } .hero__image { display: none; } }

/* Media grid */
.media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.media-grid > * { border-radius: 10px; overflow: hidden; }
.media-grid__video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.media-grid__ar {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.5rem;
  min-height: 200px;
  background-size: cover;
  background-position: center;
  text-decoration: none;
}
.media-grid__strip { grid-column: 1 / -1; display: grid; grid-template-columns: 3fr 1fr 3fr; gap: 0.75rem; }
.media-grid__strip img { width: 100%; height: 100%; max-height: 220px; object-fit: cover; border-radius: 10px; }
@media (max-width: 767px) {
  .media-grid { grid-template-columns: 1fr; }
  .media-grid__strip { grid-template-columns: 1fr; }
}

/* Testimonials */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 1.75rem;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.stars { color: #f5b301; letter-spacing: 0.15em; }
.testimonial blockquote { flex: 1; margin: 0.75rem 0 1.25rem; font-style: italic; }
.testimonial figcaption { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; }
.testimonial figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial figcaption strong { display: block; color: var(--heading); }
@media (max-width: 1024px) { .cards { grid-template-columns: 1fr; } }

/* Check lists */
.checks { margin: 1.25rem 0 0; padding: 0; list-style: none; }
.checks li { position: relative; padding-left: 1.75rem; margin-bottom: 0.6rem; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.35rem;
  width: 0.4rem;
  height: 0.8rem;
  border: solid var(--green);
  border-width: 0 3px 3px 0;
  transform: rotate(40deg);
}

/* Leo Player feature */
.feature-player {
  background-color: var(--grey);
  background-image: url("../img/Leo-Player-1.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: contain;
}
.feature-player__copy { max-width: 28rem; padding: 2rem 0; }
@media (max-width: 1024px) {
  .feature-player {
    background-position: center bottom;
    background-size: min(100%, 26rem) auto;
    padding-bottom: 26rem;
  }
}
@media (max-width: 767px) {
  .feature-player { background-size: min(100%, 20rem) auto; padding-bottom: 20rem; }
}

/* Facts */
.logos { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: center; }
.logos img { max-height: 90px; width: auto; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 1.5rem 0 0; }
.facts div { padding: 1.5rem 1rem; border: 1px solid #e5e7eb; border-radius: 10px; text-align: center; }
.facts dt { color: var(--green); font-size: 1.375rem; font-weight: 700; }
.facts dd { margin: 0; color: var(--text); font-weight: 600; }

/* Accordion */
.details { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.accordion { display: grid; gap: 1rem; }
.accordion__item { border-radius: 4px; background: #fff; }
.accordion__item summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  cursor: pointer;
  list-style: none;
  color: var(--heading);
}
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__item summary img { flex: none; width: 32px; height: 32px; }
.accordion__item summary span { flex: 1; font-size: 0.9rem; line-height: 1.3; }
.accordion__item summary strong { display: block; }
.accordion__item summary::after {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  margin: 0 0.5rem;
  border: solid var(--heading);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform 0.2s;
}
.accordion__item[open] summary::after { transform: rotate(-135deg); }
.accordion__item > p { margin: 0; padding: 0 1.25rem 1.25rem; }
.details__image { position: sticky; top: 6rem; margin: 0; }
.details__image img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); }
@media (max-width: 767px) { .details { grid-template-columns: 1fr; } .details__image { position: static; order: -1; } }

/* Product offer */
#product-offer {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  background: #fafafa;
  color: #111;
}
.product-offer-gallery img { width: 100%; object-fit: cover; aspect-ratio: 1.32; }
.product-offer-gallery figure { margin: 0; }
.product-offer-eyebrow {
  margin: 0 0 0.75rem;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.product-offer-copy > p:not(.product-offer-eyebrow):not(.product-offer-price) {
  max-width: 35rem;
  margin: 1.25rem 0 0;
  color: #4a4a4a;
}
.product-offer-specifications { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.75rem 0; }
.product-offer-specifications div { padding-top: 0.75rem; border-top: 1px solid var(--border); }
.product-offer-specifications dt { color: #6b6b6b; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.product-offer-specifications dd { margin: 0.25rem 0 0; font-weight: 700; }
.product-offer-price {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  color: #111;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1;
}
.product-offer-price span { margin-bottom: 0.25rem; color: #6b6b6b; font-size: 0.75rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; }
.product-offer-button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.9rem 2rem;
  border: 0;
  border-radius: var(--radius);
  background: #111;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s;
}
.product-offer-button:hover, .product-offer-button:focus-visible { background: var(--green); }
@media (max-width: 767px) {
  #product-offer, .product-offer-specifications { grid-template-columns: 1fr; }
}

/* Footer */
.site-footer { padding: 2rem 0; background: #fff; }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  align-items: center;
  width: min(1440px, 100% - 2.5rem);
  margin-inline: auto;
}
.site-footer__brand img { height: 44px; width: auto; }
.site-footer__copy { margin: 0 0 0 auto; font-weight: 600; font-size: 0.9rem; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; }
.site-footer__nav a { color: var(--text); text-decoration: none; }
.site-footer__nav a:hover { color: var(--green); }

/* Legal pages: shown instead of the home page when targeted (#agb etc.) */
.legal { display: none; width: min(52rem, 100% - 2.5rem); margin: 3rem auto 4rem; }
.legal:target { display: block; }
body:has(.legal:target) .home { display: none; }
.legal h1, .legal h2 { margin-top: 0; }
.legal h3 { margin-top: 2rem; font-size: 1.25rem; }
.legal a { color: var(--green); }

/* Cart */
.cart[hidden] { display: none; }
.cart { position: fixed; inset: 0; z-index: 100; }
.cart__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); }
.cart__panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(26rem, 100%);
  height: 100%;
  background: #fff;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
}
.cart__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.cart__head h2 { margin: 0; font-size: 1.25rem; }
.cart__close { border: 0; background: none; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--heading); }
.cart__items { flex: 1; margin: 0; padding: 0 1.25rem; overflow-y: auto; list-style: none; }
.cart__item { padding: 1rem 0; border-bottom: 1px solid #eee; }
.cart__item strong { color: var(--heading); }
.cart__item small { display: block; margin: 0.25rem 0 0.5rem; color: var(--muted); }
.cart__row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.cart__qty { display: inline-flex; align-items: center; gap: 0.5rem; }
.cart__qty button, .cart__remove {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
  cursor: pointer;
}
.cart__qty button { width: 1.9rem; height: 1.9rem; }
.cart__remove { padding: 0.25rem 0.6rem; font-size: 0.8rem; color: var(--muted); }
.cart__empty { margin: 0; padding: 1.5rem 1.25rem; color: var(--muted); }
.cart__empty[hidden] { display: none; }
.cart__foot { padding: 1.25rem; border-top: 1px solid var(--border); }
.cart__sum { display: flex; justify-content: space-between; margin-bottom: 0.5rem; font-size: 1.125rem; color: var(--heading); }
.cart__note { font-size: 0.8rem; color: var(--muted); }
.cart__order { display: block; text-align: center; }
.cart__order[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Zubehör */
.filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filter__button {
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}
.filter__button:hover, .filter__button.is-active { background: var(--green); border-color: var(--green); color: #fff; }
.products {  display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.5rem; }
.product { display: flex; flex-direction: column; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.product[hidden] { display: none; }
.product__image { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.product__category { margin: 0.75rem 0 0.25rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--green); }
.product__name { margin: 0 0 0.75rem; font-size: 1.05rem; color: var(--heading); }
.product__option { display: block; margin-bottom: 0.5rem; font-size: 0.8rem; color: var(--muted); }
.product__option select { display: block; width: 100%; margin-top: 0.15rem; padding: 0.4rem; border: 1px solid var(--border); border-radius: var(--radius); font: inherit; color: var(--text); background: #fff; }
.product__price { margin: auto 0 0.75rem; padding-top: 0.5rem; font-size: 1.2rem; font-weight: 600; color: var(--heading); }
.product__button { width: 100%; text-align: center; cursor: pointer; }
.product__button:disabled { opacity: 0.5; cursor: not-allowed; }

/* Checkout step in the cart */
.cart__form { flex: 1; padding: 1.25rem; overflow-y: auto; }
.cart__form[hidden], .cart__foot[hidden], .cart__items[hidden] { display: none; }
.cart__form h3 { margin: 0 0 1rem; font-size: 1.1rem; }
.cart__fields { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.cart__field { display: block; flex: 1 1 100%; font-size: 0.85rem; color: var(--muted); }
.cart__field--half { flex: 1 1 calc(50% - 0.45rem); }
.cart__field input { display: block; width: 100%; margin-top: 0.2rem; padding: 0.55rem 0.6rem; border: 1px solid var(--border); border-radius: var(--radius); font: inherit; color: var(--text); }
.cart__field input[aria-invalid="true"] { border-color: #b42318; }
.cart__error { display: block; margin-top: 0.25rem; color: #b42318; }
.cart__error[hidden] { display: none; }
.cart__actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.cart__actions .button { flex: 1; text-align: center; cursor: pointer; }
.cart__order:disabled { opacity: 0.5; pointer-events: none; }
