/* -----------------------------------------
   Alu Einstiegshaustür — Sonderseite 2026
   Präfix .einstieg_ (BEM), für lafenetre.de

   Hinweis: Alle Größen/Abstände in px statt rem,
   da ic-bech.de das Root-Element auf font-size:10px setzt.
-------------------------------------------- */

.einstieg_page {
  overflow-x: hidden;
  --einstieg-text: #333;
  --einstieg-heading: #313131;
  --einstieg-accent: #FBBA00;
  --einstieg-bg-light: #f6f6f6;
  --einstieg-border: #e0e0e0;
  --einstieg-gap: 24px;

  font-size: 16px;
  line-height: 1.6;
  color: var(--einstieg-text);
}

.einstieg_page * {
  box-sizing: border-box;
}

/* Reset mit :where(), damit die Einzelklassen unten Vorrang behalten */

:where(.einstieg_page) img {
  display: block;
  max-width: 100%;
  height: auto;
}

:where(.einstieg_page) :is(p, ul, li, figure, h1, h2, h3, h4) {
  margin: 0;
  padding: 0;
  border: 0;
  font-family: inherit;
  letter-spacing: normal;
  text-transform: none;
  color: inherit;
}

.einstieg_page ul,
.einstieg_page li {
  list-style: none;
}

.einstieg_page li {
  margin: 0;
}

/* Gemeinsame Bausteine */

.einstieg_gruende,
.einstieg_gestalten {
  max-width: 1152px;
  margin: 0 auto;
  padding: 56px 24px 0;
}

/* Modelle und Bildband laufen wie in der Vorlage über die volle Breite (16 px Rand) */

.einstieg_modelle,
.einstieg_band__liste {
  padding: 56px 16px 0;
}

.einstieg_h2 {
  margin-bottom: 40px;
  text-align: center;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--einstieg-heading);
}

.einstieg_h2__sub {
  display: block;
  margin-top: 8px;
  font-size: 0.6em;
  font-weight: 400;
}

.einstieg_h3 {
  margin-bottom: 16px;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 400;
  line-height: 1.25;
  color: var(--einstieg-heading);
}

.einstieg_h3 strong {
  font-weight: 700;
}

.einstieg_h3--mitte {
  text-align: center;
}

.einstieg_label {
  display: inline-block;
  margin-bottom: 12px;
  padding-bottom: 4px;
  border-bottom: 3px solid var(--einstieg-accent);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--einstieg-heading);
}

.einstieg_hinweis {
  font-size: 14px;
}

/* Cover: Host-Regel (width:100% + Padding, content-box) läuft am Handy über den Rand */

@media (max-width: 800px) {
  .cover h2 {
    right: 0;
    width: auto;
    min-width: 0;
    box-sizing: border-box;
  }
}

/* Checkliste (steht im Host-Block .headline) */

.einstieg_checklist {
  text-align: left;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
  max-width: 960px;
  margin: 24px auto 0;
}

.einstieg_checklist__item {
  position: relative;
  padding-left: 28px;
  font-size: 18px;
}

.einstieg_checklist__item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 5px;
  width: 8px;
  height: 14px;
  border-right: 3px solid var(--einstieg-accent);
  border-bottom: 3px solid var(--einstieg-accent);
  transform: rotate(45deg);
}

/* Modelle */

.einstieg_modelle__liste {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.einstieg_modell {
  text-align: center;
}

.einstieg_modell__bild {
  width: 100%;
  aspect-ratio: 720 / 926;
  object-fit: cover;
}

.einstieg_modell__titel {
  margin-top: 20px;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
}

.einstieg_modell__titel strong {
  font-weight: 700;
}

.einstieg_modell__text {
  margin-top: 8px;
}

/* Bildband mit Bildunterschriften */

.einstieg_band {
  margin-top: 56px;
  padding-bottom: 56px;
  background: var(--einstieg-bg-light);
}

.einstieg_band__liste {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 56px;
}

.einstieg_figure {
  position: relative;
}

.einstieg_figure__bild {
  width: 100%;
}

.einstieg_band .einstieg_figure__bild {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.einstieg_figure__bild--quer {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.einstieg_figure__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.35;
}

.einstieg_figure__caption--unten {
  position: static;
  padding: 10px 0 0;
  background: none;
  font-size: 14px;
}

/* Gute Gründe */

.einstieg_grund {
  text-align: center;
}

.einstieg_grund__icon {
  width: 80px;
  margin: 0 auto 12px;
}

.einstieg_grund__titel {
  margin-bottom: 24px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--einstieg-heading);
}

.einstieg_grund__karten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  column-gap: var(--einstieg-gap);
}

/* Zwei Zeilen je Karte (Bild, Inhalt) über Subgrid: Titel stehen auch ohne Bild auf gleicher Höhe */

.einstieg_karte {
  display: grid;
  grid-row: span 2;
  grid-template-rows: auto 1fr;
  grid-template-rows: subgrid;
  justify-self: center;
  width: 100%;
  max-width: 540px;
  margin-bottom: var(--einstieg-gap);
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.14);
  text-align: left;
}

.einstieg_karte__bild {
  grid-row: 1;
  width: 100%;
  aspect-ratio: 43 / 30;
  object-fit: contain;
  padding: 12px;
  background: #fff;
}

.einstieg_karte__inhalt {
  grid-row: 2;
  padding: 20px 24px 28px;
}

.einstieg_karte__titel {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

/* Gestalten Sie Ihre Haustür */

.einstieg_gestalten {
  padding-bottom: 72px;
}

.einstieg_block {
  margin-bottom: 64px;
}

.einstieg_block:last-child {
  margin-bottom: 0;
}

.einstieg_block--look {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}

.einstieg_block__text p + p,
.einstieg_block__text p + div {
  margin-top: 16px;
}

.einstieg_block__paar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--einstieg-gap);
  margin-top: 32px;
}

.einstieg_block__hoch {
  max-width: 420px;
  margin: 0 auto;
}

.einstieg_block__spalten {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.einstieg_block__reihe {
  display: grid;
  gap: 16px;
}

.einstieg_block__reihe--drei {
  grid-template-columns: repeat(3, 1fr);
}

.einstieg_block__reihe--zwei {
  grid-template-columns: repeat(2, 1fr);
}

.einstieg_block--ausstattung {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: center;
}

.einstieg_block__klein {
  max-width: 250px;
  margin: 0 auto;
}

.einstieg_block--griffe .einstieg_block__text {
  max-width: 720px;
}

.einstieg_block__mittel {
  max-width: 600px;
  margin-top: 32px;
}

/* Slider (Gute Gründe, Gestalten Sie Ihre Haustür): Scroll-Snap, Pfeile und Punkte baut das Skript */

.einstieg_slider__track {
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.einstieg_slider.is-ready .einstieg_slider__track {
  scrollbar-width: none;
}

.einstieg_slider.is-ready .einstieg_slider__track::-webkit-scrollbar {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .einstieg_slider.is-ready .einstieg_slider__track {
    transition: height 0.3s;
  }
}

.einstieg_slider__slide {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  padding: 4px 8px 16px;
  scroll-snap-align: start;
}

.einstieg_slider__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 16px;
}

.einstieg_slider__pfeil {
  position: relative;
  width: 44px;
  height: 44px;
  margin: 0 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--einstieg-accent);
  cursor: pointer;
}

.einstieg_slider__pfeil::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-top: 3px solid var(--einstieg-heading);
  border-right: 3px solid var(--einstieg-heading);
}

.einstieg_slider__pfeil--zurueck::before {
  transform: translate(-30%, -50%) rotate(-135deg);
}

.einstieg_slider__pfeil--weiter::before {
  transform: translate(-70%, -50%) rotate(45deg);
}

.einstieg_slider__pfeil:disabled {
  opacity: 0.35;
  cursor: default;
}

.einstieg_slider__punkt {
  position: relative;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.einstieg_slider__punkt::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c8c8c8;
  transform: translate(-50%, -50%);
}

.einstieg_slider__punkt[aria-current="true"]::before {
  background: var(--einstieg-heading);
}

.einstieg_slider__pfeil:focus-visible,
.einstieg_slider__punkt:focus-visible {
  outline: 2px solid var(--einstieg-heading);
  outline-offset: 2px;
}

/* Responsive */

@media (max-width: 1023px) {
  .einstieg_modelle__liste,
  .einstieg_band__liste {
    grid-template-columns: repeat(2, 1fr);
  }

  .einstieg_block--look,
  .einstieg_block--ausstattung,
  .einstieg_block__spalten {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 767px) {
  .einstieg_modelle,
  .einstieg_band__liste,
  .einstieg_gruende,
  .einstieg_gestalten {
    padding: 40px 16px 0;
  }

  .einstieg_band {
    margin-top: 40px;
    padding-bottom: 40px;
  }

  .einstieg_band__liste {
    padding-top: 40px;
  }

  .einstieg_modelle__liste {
    gap: 16px;
  }

  .einstieg_modell__titel {
    font-size: 22px;
  }

  .einstieg_checklist {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: fit-content;
  }

  .einstieg_block__paar {
    grid-template-columns: 1fr;
  }

  .einstieg_block__reihe {
    gap: 12px;
  }

  .einstieg_block__reihe .einstieg_figure__caption--unten {
    font-size: 12px;
    letter-spacing: 0;
  }
}

@media (max-width: 479px) {
  .einstieg_band__liste {
    grid-template-columns: 1fr;
  }
}
