/*
 * Sektionerna under slogan-delen på startsidan, samt återförsäljarsidan.
 * Allt innehåll här kommer från admin. Mörk bakgrund som resten av sidan.
 */

body.page-dark {
  background: #101010;
  color: #fff;
}

.au-section {
  background: #101010;
  color: #fff;
  padding: clamp(2rem, 4vw, 3.25rem) 0;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
}

.au-section--page { padding-top: clamp(2rem, 4vw, 3.5rem); }
.au-section--features { padding-top: clamp(2.5rem, 5vw, 4rem); }

.au-wrap {
  max-width: 1124px;
  margin: 0 auto;
  padding: 0 24px;
}

.au-page__title {
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
}

/* ---------- Fördelar (ikon + rubrik + text) ---------- */

.au-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  text-align: center;
}

.au-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.au-feature__icon {
  width: clamp(76px, 8vw, 104px);
  height: clamp(76px, 8vw, 104px);
  color: #cfcfcf;
  object-fit: contain;
}

.au-feature__title {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
}

.au-feature__text {
  margin: 0;
  max-width: 24rem;
  color: #e8e8e8;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.5;
}

/* ---------- Bild + punkter med bock ---------- */

.au-section--demo .au-wrap { padding-left: 0; }

.au-demo {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.au-demo__image {
  width: 100%;
  height: auto;
  /* Bilden har vit bakgrund i vissa filformat – mörk ram gör övergången mjuk. */
  border-radius: 6px;
}

.au-demo__title {
  margin: 0 0 1.5rem;
  color: #fff;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 700;
}

.au-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.au-checks__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #f2f2f2;
  font-size: 1.02rem;
  line-height: 1.45;
}

.au-checks__icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  color: #fff;
}

.au-divider {
  display: block;
  width: min(100%, 230px);
  height: 2px;
  margin: clamp(2rem, 4vw, 3.5rem) 0 0 auto;
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 0%, #e9e9e9 50%, rgba(255,255,255,0.05) 100%);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
}

/* ---------- Återförsäljare ---------- */

.au-resellers__title {
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
}

.au-resellers__intro {
  margin: 0 0 2.5rem;
  max-width: 44rem;
  color: #d8d8d8;
  line-height: 1.6;
}

.au-resellers {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}
/* Med karta: logotyper till vänster, karta i mitten, logotyper till höger. */
.au-resellers--with-map {
  grid-template-columns: minmax(0, 1fr) minmax(200px, 300px) minmax(0, 1fr);
}

.au-logos {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
/* Förskjutningen ger den spridda känslan från skissen. */
.au-logos--left { align-items: flex-start; }
.au-logos--right { align-items: flex-end; padding-top: clamp(2rem, 5vw, 4.5rem); }
.au-logos .au-logo-card:nth-child(even) { transform: translateX(8%); }

/* Logotyperna ligger direkt på den mörka bakgrunden, utan ruta runt. */
.au-logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 118px;
  padding: 1rem;
  border-radius: 10px;
  color: #fff;
  text-align: center;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
a.au-logo-card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
  text-decoration: none;
}
.au-logo-card.is-active .au-logo-card__meta { color: #e8762c; }

.au-logo-card__img {
  max-width: 100%;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.au-logo-card__name {
  font-size: 1.05rem;
  font-weight: 700;
}

.au-logo-card__meta {
  font-size: 0.85rem;
  color: #bdbdbd;
  line-height: 1.4;
}

/* ---------- Kartan ---------- */

.au-map {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 380px;
}

.au-map__image {
  display: block;
  width: 100%;
  height: auto;
}

 /* Pricken är exakt lika stor som punkten, så att den hamnar rätt på kartan.
    Namnet ligger absolut placerat och påverkar därför inte prickens läge. */
.au-map__pin {
  position: absolute;
  display: block;
  z-index: 1;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  color: #fff;
  text-decoration: none;
}

.au-map__dot {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #e8762c;
  box-shadow: 0 0 0 3px rgba(232, 118, 44, 0.3);
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.au-map__label {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.78rem;
  color: #ededed;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}
a.au-map__pin:hover .au-map__label,
a.au-map__pin:focus-visible .au-map__label {
  opacity: 1;
}
/* Pricken lyser upp när man hovrar den eller företagets logotyp.
   Klassen is-active sätts av static/js/resellers.js. */
/* Den markerade pricken läggs överst, så att den syns när flera ligger tätt. */
a.au-map__pin:hover,
.au-map__pin.is-active { z-index: 3; }

a.au-map__pin:hover .au-map__dot,
.au-map__pin.is-active .au-map__dot {
  transform: scale(1.5);
  background: #ffb066;
  box-shadow:
    0 0 0 5px rgba(232, 118, 44, 0.35),
    0 0 16px 5px rgba(232, 118, 44, 0.85);
}
.au-map__pin.is-active .au-map__label { opacity: 1; }

.au-logo-card.is-active {
  background: rgba(255, 255, 255, 0.06);
}

.au-resellers__more {
  margin: 2.5rem 0 0;
}
.au-resellers__more a {
  color: #e8762c;
  font-weight: 600;
}

/* ---------- Bli återförsäljare ---------- */

.au-reseller-contact {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid #2a2a2a;
  color: #e4e4e4;
}
.au-reseller-contact h2 {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: 1.3rem;
}
.au-reseller-contact p { margin: 0.25rem 0; }
.au-reseller-contact a { color: #e8762c; }
.au-reseller-contact a.btn { color: #fff; }
.au-reseller-pdf {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1rem;
}
.au-reseller-pdf span { color: #9a9a9a; font-size: 0.9rem; }

/* ---------- Mobil ---------- */

@media (max-width: 760px) {
  .au-demo,
  .au-resellers--with-map {
    grid-template-columns: minmax(0, 1fr);
  }
  .au-checks__icon { width: 36px; height: 36px; }
  .au-section--demo .au-wrap { padding-left: 24px; }
  .au-resellers,
  .au-logos--left,
  .au-logos--right {
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    padding-top: 0;
  }
  .au-logos .au-logo-card:nth-child(even) { transform: none; }
  .au-divider { margin-right: auto; }
  .au-map { max-width: 260px; }
  .au-map__label { display: none; }
}
