/* Aluminiumfenster24 / Alu-Windows24 — consistent product and system selection cues. */
:root {
  --af24-choice-blue: #0b6ea8;
  --af24-choice-blue-bright: #23a0e0;
  --af24-choice-ink: #071923;
  --af24-choice-muted: #5f7380;
  --af24-choice-surface: #f8fcfe;
  --af24-choice-soft: #edf7fb;
  --af24-choice-line: rgba(11, 110, 168, .24);
  --af24-choice-shadow: 0 1px 2px rgba(7, 25, 35, .05), 0 20px 54px rgba(7, 25, 35, .11);
  --af24-choice-shadow-hover: 0 2px 4px rgba(7, 25, 35, .06), 0 30px 72px rgba(11, 110, 168, .2);
  --af24-choice-ease: cubic-bezier(.4, 0, .2, 1);
}

/* Preserve a calm editorial pause between the homepage product introduction
   and the first selection row after removing the former instruction banner. */
#produkte > .container > .mb-3 + .grid.grid-3 {
  margin-top: clamp(24px, 3vw, 42px) !important;
}

.af24-choice-guide {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 72px;
  margin: 0 0 20px;
  padding: 11px 18px;
  border: 1px solid var(--af24-choice-line);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(237, 247, 251, .94));
  color: var(--af24-choice-ink);
  box-shadow: 0 12px 34px rgba(7, 25, 35, .07);
}

.af24-choice-guide__number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--af24-choice-blue-bright);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 9px 22px rgba(35, 160, 224, .26);
}

.af24-choice-guide__copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.af24-choice-guide__copy strong {
  color: var(--af24-choice-ink);
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: -.015em;
}

.af24-choice-guide__copy small {
  color: var(--af24-choice-muted);
  font-size: .8rem;
  line-height: 1.4;
}

.af24-choice-guide__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(11, 110, 168, .09);
  color: var(--af24-choice-blue);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Provider selectors: Schüco / Reynaers. */
.slide-system-choice {
  gap: clamp(16px, 2vw, 24px) !important;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.slide-system-choice > a,
.door-system-selection__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 2px solid rgba(126, 207, 242, .72) !important;
  border-radius: 30px !important;
  box-shadow: var(--af24-choice-shadow) !important;
  text-decoration: none !important;
  transform: translateY(0);
  transition: transform .3s var(--af24-choice-ease), border-color .3s var(--af24-choice-ease), box-shadow .3s var(--af24-choice-ease) !important;
}

.slide-system-choice > a::before {
  content: "Choose system  →";
  position: absolute;
  z-index: 4;
  top: 22px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--af24-choice-blue);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .01em;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .14);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  transition: color .28s var(--af24-choice-ease), background .28s var(--af24-choice-ease), transform .28s var(--af24-choice-ease);
}

html[lang^="de"] .slide-system-choice > a::before { content: "System auswählen  →"; }

.slide-system-choice > a:hover,
.door-system-selection__card:hover {
  z-index: 2;
  border-color: var(--af24-choice-blue-bright) !important;
  box-shadow: var(--af24-choice-shadow-hover) !important;
  transform: translateY(-7px) !important;
}

.slide-system-choice > a:hover::before {
  background: var(--af24-choice-blue);
  color: #fff;
  transform: translateX(3px);
}

.slide-system-choice > a:focus-visible,
.door-system-selection__card:focus-visible,
.door-system-card:focus-visible,
.home-motion-products > a.card:focus-visible,
#produkte .grid.grid-3 > a.card:focus-visible,
.seo-pathways__card:focus-visible {
  outline: 3px solid var(--af24-choice-blue-bright) !important;
  outline-offset: 5px !important;
}

.door-system-selection__card > b {
  display: inline-flex !important;
  align-items: center;
  align-self: flex-start;
  min-height: 46px;
  margin-top: 22px !important;
  padding: 11px 17px !important;
  border: 1px solid rgba(255, 255, 255, .44) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .94) !important;
  color: var(--af24-choice-blue) !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .12);
}

.door-system-selection__card:hover > b {
  background: var(--af24-choice-blue) !important;
  color: #fff !important;
}

/* Window provider cards: make the existing CTA stretch over the full card. */
.aw-system-card {
  position: relative !important;
  border-width: 2px !important;
  border-color: rgba(126, 207, 242, .65) !important;
  box-shadow: var(--af24-choice-shadow) !important;
}

.aw-system-card::before {
  content: "";
  position: absolute;
  z-index: 4;
  top: 0;
  left: 22px;
  right: 22px;
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--af24-choice-blue), #55c8ed);
  pointer-events: none;
}

.aw-system-card:hover {
  border-color: var(--af24-choice-blue-bright) !important;
  box-shadow: var(--af24-choice-shadow-hover) !important;
}

.aw-system-card__body > a {
  position: static !important;
}

.aw-system-card__body > a::before {
  content: "";
  position: absolute;
  z-index: 5;
  inset: 0;
  border-radius: inherit;
}

.aw-system-card:has(.aw-system-card__body > a:focus-visible) {
  outline: 3px solid var(--af24-choice-blue-bright) !important;
  outline-offset: 5px;
}

.aw-system-card__body > a b {
  transition: transform .25s var(--af24-choice-ease), background .25s var(--af24-choice-ease);
}

.aw-system-card:hover .aw-system-card__body > a b { transform: translateX(4px); }

/* Product/finish tiles with real destinations. */
.door-system-card,
.home-motion-products > a.card,
#produkte .grid.grid-3 > a.card,
.seo-pathways__card {
  border-color: rgba(11, 110, 168, .24) !important;
  box-shadow: 0 1px 2px rgba(7, 25, 35, .04), 0 16px 42px rgba(7, 25, 35, .09) !important;
  text-decoration: none !important;
  transform: translateY(0);
  transition: transform .3s var(--af24-choice-ease), border-color .3s var(--af24-choice-ease), box-shadow .3s var(--af24-choice-ease) !important;
}

.door-system-card:hover,
.home-motion-products > a.card:hover,
#produkte .grid.grid-3 > a.card:hover,
.seo-pathways__card:hover {
  border-color: var(--af24-choice-blue-bright) !important;
  box-shadow: var(--af24-choice-shadow-hover) !important;
  transform: translateY(-6px) !important;
}

.door-system-card__link {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 15px !important;
  border: 1px solid var(--af24-choice-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: var(--af24-choice-blue) !important;
  font-weight: 800 !important;
  box-shadow: 0 9px 22px rgba(7, 25, 35, .08);
}

.door-system-card:hover .door-system-card__link {
  background: var(--af24-choice-blue);
  color: #fff !important;
}

.door-system-card__link b,
.seo-pathways__card > b { transition: transform .25s var(--af24-choice-ease); }
.door-system-card:hover .door-system-card__link b,
.seo-pathways__card:hover > b { transform: translateX(4px); }

/* Curtain-wall brand blocks keep two useful links; both actions stay explicit. */
.cw-system {
  border: 2px solid rgba(11, 110, 168, .2) !important;
  border-radius: 28px !important;
  box-shadow: var(--af24-choice-shadow) !important;
  transition: transform .3s var(--af24-choice-ease), border-color .3s var(--af24-choice-ease), box-shadow .3s var(--af24-choice-ease);
}

.cw-system:hover {
  border-color: rgba(35, 160, 224, .72) !important;
  box-shadow: var(--af24-choice-shadow-hover) !important;
  transform: translateY(-5px);
}

.cw-system__links a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 17px !important;
  border: 1px solid var(--af24-choice-line) !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

.cw-system__links a:first-child {
  background: var(--af24-choice-blue) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(11, 110, 168, .22);
}

.cw-system__links a:focus-visible {
  outline: 3px solid var(--af24-choice-blue-bright);
  outline-offset: 4px;
}

/* Individual systems: cards explain; the blue control performs the action. */
.reynaers-system,
.sliding-product {
  border-color: rgba(11, 110, 168, .2) !important;
  box-shadow: 0 1px 2px rgba(7, 25, 35, .04), 0 14px 38px rgba(7, 25, 35, .075) !important;
  transition: transform .3s var(--af24-choice-ease), border-color .3s var(--af24-choice-ease), box-shadow .3s var(--af24-choice-ease) !important;
}

.reynaers-system:hover,
.sliding-product:hover {
  border-color: rgba(35, 160, 224, .7) !important;
  box-shadow: var(--af24-choice-shadow) !important;
  transform: translateY(-4px);
}

.reynaers-system__link,
.sliding-product__details > summary {
  cursor: pointer !important;
  border: 1px solid rgba(11, 110, 168, .34) !important;
  border-radius: 999px !important;
  background: var(--af24-choice-blue) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(11, 110, 168, .2) !important;
  font-weight: 800 !important;
  transition: transform .25s var(--af24-choice-ease), background .25s var(--af24-choice-ease), box-shadow .25s var(--af24-choice-ease) !important;
}

.reynaers-system__link:hover,
.sliding-product__details > summary:hover {
  background: #085b8c !important;
  box-shadow: 0 14px 30px rgba(11, 110, 168, .3) !important;
  transform: translateY(-2px);
}

.reynaers-system__link:focus-visible,
.sliding-product__details > summary:focus-visible {
  outline: 3px solid var(--af24-choice-blue-bright) !important;
  outline-offset: 4px !important;
}

.sliding-product__details[open] > summary {
  background: var(--af24-choice-ink) !important;
  border-color: var(--af24-choice-ink) !important;
}

@media (max-width: 760px) {
  .af24-choice-guide {
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 0;
    padding: 12px 14px;
    border-radius: 17px;
  }
  .af24-choice-guide__number { width: 40px; height: 40px; }
  .af24-choice-guide__action { grid-column: 2; justify-self: start; min-height: 34px; }
  .slide-system-choice > a::before { top: 16px; right: 16px; min-height: 40px; padding: 8px 13px; font-size: .7rem; }
  .slide-system-choice > a,
  .door-system-selection__card,
  .cw-system { border-radius: 22px !important; }
  .reynaers-system:hover,
  .sliding-product:hover { transform: none; }
}

/* Window-system catalogs: refined media card with a truly centered profile. */
.window-catalog-modern .reynaers-system__side--visual {
  grid-template-columns: minmax(280px, 42%) minmax(0, 1fr) !important;
  grid-template-rows: auto auto;
  align-items: stretch !important;
  padding-bottom: clamp(18px, 2.5vw, 28px);
  border-color: rgba(7, 25, 35, .1) !important;
  border-radius: 26px !important;
  background: linear-gradient(135deg, rgba(247, 252, 254, .98), rgba(255, 255, 255, .98)) !important;
  box-shadow: 0 1px 2px rgba(7, 25, 35, .04), 0 18px 52px rgba(7, 25, 35, .09) !important;
}

.window-catalog-modern .reynaers-system__product-zoom {
  display: grid !important;
  place-items: center !important;
  min-width: 0;
  padding: clamp(22px, 3vw, 36px) !important;
  background: radial-gradient(circle at 50% 46%, #fff 0%, #edf6fa 56%, #dceaf0 100%) !important;
}

.window-catalog-modern .reynaers-system__product-image,
.window-catalog-modern.schueco-page .reynaers-system__product-image,
.window-catalog-modern.reynaers-page .reynaers-system__product-image {
  display: block !important;
  width: 84% !important;
  height: 84% !important;
  max-width: 100% !important;
  margin: auto !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: 50% 50% !important;
  transform-origin: 50% 50% !important;
  filter: drop-shadow(0 22px 24px rgba(12, 30, 44, .19)) !important;
}

.window-catalog-modern .reynaers-system__product-zoom:hover .reynaers-system__product-image,
.window-catalog-modern .reynaers-system__product-zoom:focus-visible .reynaers-system__product-image {
  transform: scale(1.02) !important;
  filter: drop-shadow(0 26px 28px rgba(12, 30, 44, .23)) !important;
}

.window-catalog-modern .reynaers-system__side--visual .reynaers-system__link,
.window-catalog-modern .reynaers-system__side--visual .technical-detail-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  width: auto !important;
  min-width: 0;
  min-height: 58px !important;
  margin-top: clamp(18px, 2.5vw, 26px) !important;
  padding: 10px 18px !important;
  border-radius: 999px !important;
  font-size: clamp(.78rem, 1vw, .9rem) !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  text-align: left !important;
  text-decoration: none !important;
  transform: translateY(0);
  transition: transform .25s var(--af24-choice-ease), border-color .25s var(--af24-choice-ease), background .25s var(--af24-choice-ease), box-shadow .25s var(--af24-choice-ease) !important;
}

.window-catalog-modern .reynaers-system__side--visual .reynaers-system__link {
  grid-column: 1;
  grid-row: 2;
  margin-right: 8px !important;
  margin-left: clamp(18px, 2.5vw, 28px) !important;
  border: 1px solid var(--af24-choice-blue) !important;
  background: var(--af24-choice-blue) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(11, 110, 168, .18) !important;
}

.window-catalog-modern .reynaers-system__side--visual .technical-detail-link {
  grid-column: 2;
  grid-row: 2;
  margin-right: clamp(18px, 2.5vw, 28px) !important;
  margin-left: 8px !important;
  border: 1px solid rgba(11, 110, 168, .32) !important;
  background: rgba(255, 255, 255, .94) !important;
  color: var(--af24-choice-blue) !important;
  box-shadow: 0 7px 18px rgba(7, 25, 35, .06) !important;
}

.window-catalog-modern .reynaers-system__side--visual .reynaers-system__link > span,
.window-catalog-modern .reynaers-system__side--visual .technical-detail-link > span {
  display: grid !important;
  flex: 0 0 auto;
  place-items: center;
  width: 32px !important;
  height: 32px !important;
  border: 0 !important;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15) !important;
  color: #fff !important;
  font-size: 1rem !important;
  line-height: 1 !important;
  transform: none !important;
}

.window-catalog-modern .reynaers-system__side--visual .technical-detail-link > span {
  background: rgba(11, 110, 168, .09) !important;
  color: var(--af24-choice-blue) !important;
}

.window-catalog-modern .reynaers-system__side--visual .reynaers-system__link:hover,
.window-catalog-modern .reynaers-system__side--visual .reynaers-system__link[aria-expanded="true"] {
  border-color: #075986 !important;
  background: #075986 !important;
  color: #fff !important;
  box-shadow: 0 14px 30px rgba(11, 110, 168, .25) !important;
  transform: translateY(-2px);
}

.window-catalog-modern .reynaers-system__side--visual .reynaers-system__link:hover > span,
.window-catalog-modern .reynaers-system__side--visual .reynaers-system__link[aria-expanded="true"] > span {
  background: rgba(255, 255, 255, .2) !important;
  color: #fff !important;
  transform: none !important;
}

.window-catalog-modern .reynaers-system__side--visual .technical-detail-link:hover,
.window-catalog-modern .reynaers-system__side--visual .technical-detail-link:focus-visible {
  border-color: var(--af24-choice-blue) !important;
  background: var(--af24-choice-soft) !important;
  color: var(--af24-choice-blue) !important;
  box-shadow: 0 10px 24px rgba(7, 25, 35, .09) !important;
  transform: translateY(-2px);
}

@media (max-width: 820px) {
  .window-catalog-modern .reynaers-system__side--visual {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto auto;
  }
  .window-catalog-modern .reynaers-system__product-zoom {
    grid-column: 1 !important;
    grid-row: 1 !important;
    padding: clamp(20px, 5vw, 34px) !important;
  }
  .window-catalog-modern .reynaers-system__visual-caption {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }
  .window-catalog-modern .reynaers-system__side--visual .reynaers-system__link,
  .window-catalog-modern .reynaers-system__side--visual .technical-detail-link {
    grid-column: 1 !important;
    width: auto !important;
    margin-right: 18px !important;
    margin-left: 18px !important;
  }
  .window-catalog-modern .reynaers-system__side--visual .reynaers-system__link { grid-row: 3 !important; }
  .window-catalog-modern .reynaers-system__side--visual .technical-detail-link {
    grid-row: 4 !important;
    margin-top: 10px !important;
  }
}

@media (max-width: 560px) {
  .window-catalog-modern .reynaers-system__side--visual { border-radius: 20px !important; }
  .window-catalog-modern .reynaers-system__product-zoom {
    padding: 20px !important;
  }
  .window-catalog-modern .reynaers-system__side--visual .reynaers-system__link,
  .window-catalog-modern .reynaers-system__side--visual .technical-detail-link {
    min-height: 54px !important;
    margin-right: 14px !important;
    margin-left: 14px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slide-system-choice > a,
  .slide-system-choice > a::before,
  .door-system-selection__card,
  .aw-system-card,
  .door-system-card,
  .home-motion-products > a.card,
  #produkte .grid.grid-3 > a.card,
  .seo-pathways__card,
  .cw-system,
  .reynaers-system,
  .sliding-product,
  .reynaers-system__link,
  .sliding-product__details > summary { transition: none !important; }
  .slide-system-choice > a:hover,
  .door-system-selection__card:hover,
  .door-system-card:hover,
  .home-motion-products > a.card:hover,
  #produkte .grid.grid-3 > a.card:hover,
  .seo-pathways__card:hover,
  .cw-system:hover,
  .reynaers-system:hover,
  .sliding-product:hover { transform: none !important; }
}
