html.is-landing {
  --landing-header-alpha: 0;

  --landing-max: 1400px;
  --landing-pad: clamp(1rem, 3vw, 2rem);

  --glass-bg: rgba(255, 255, 255, 0.16);
  --glass-bd: rgba(255, 255, 255, 0.28);

  --card-bg: rgba(255, 255, 255, 0.85);
  --card-bd: rgba(0, 0, 0, 0.08);
}

/* Header/Tabs: Farbe + smooth */
html.is-landing .md-header,
html.is-landing .md-tabs {
  background-color: rgba(
    34,
    64,
    179,
    var(--landing-header-alpha, 0)
  ) !important;
  box-shadow: none !important;
  transition: background-color 160ms linear;
  backdrop-filter: blur(calc(var(--landing-header-alpha, 0) * 10px));
  -webkit-backdrop-filter: blur(calc(var(--landing-header-alpha, 0) * 10px));
}

/* Full-bleed Wrapper */
.landing {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.landing .md-grid {
  /* max-width: var(--landing-max); */
  margin: 0 auto;
}

html.is-landing .md-main__inner {
  margin-top: 0 !important;
}
html.is-landing .md-content__inner {
  padding-top: 0 !important;
}

.landing-hero {
  position: relative;

  /* wieder groß */
  min-height: clamp(640px, 82vh, 920px);

  margin-top: calc(
    -1 * (var(--md-header-height, 3.5rem) + var(--md-tabs-height, 2.5rem))
  );
  padding-top: calc(
    var(--md-header-height, 3.5rem) + var(--md-tabs-height, 2.5rem)
  );
}

.landing-hero__bg {
  position: absolute;
  inset: 0;

  background:

    /* oben leicht */ linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0.2) 35%,
      rgba(0, 0, 0, 0.08) 100%
    ),
    url("../assets/hero_banner3.webp");

  background-size: cover;
  background-position: center right;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.landing-hero__inner {
  position: relative;
  color: #fff;

  display: flex;
  flex-direction: column;
  align-items: stretch;

  /* viel Luft wie vorher */
  padding: clamp(4.5rem, 14vh, 9rem) 0 clamp(4.5rem, 12vh, 7.5rem);
  height: 76vh;
}

.hero-copy {
  max-width: 70ch;
  display: flex;
  flex-direction: column;
  gap: 1vh;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 650;
  font-size: 0.85rem;
  letter-spacing: 0.2px;
}

.md-typeset h1 {
  margin: 0;
}

.hero-flex {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  gap: 20vh;
}

.hero-title,
.md-typeset h1 {
  font-size: clamp(1.1rem, 2vw, 2.35rem);
  line-height: 1.04;
  font-weight: bold;
  margin: 0;
  padding: 0;
  opacity: 1;
  color: white;
}

.hero-lead {
  font-size: clamp(1.02rem, 1.25vw, 1.2rem);
  line-height: 1.55;
  opacity: 0.82;
  margin: 0;
  padding: 0;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

html.is-landing .landing-hero .md-button {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
html.is-landing .landing-hero .md-button--primary {
  border-color: transparent;
}

.hero-link {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}
.hero-link:hover {
  border-bottom-color: rgba(255, 255, 255, 0.6);
}
.hero-dot {
  opacity: 0.6;
}

.hero-glass {
  padding: 1.1rem 1.1rem;
  border-radius: 22px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-bd);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.hero-glass__item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 0.85rem;
  padding: 0.75rem 0.45rem;
}
.hero-glass__item + .hero-glass__item {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-glass__icon {
  font-size: 1.2rem;
  line-height: 1;
  opacity: 0.95;
}
.hero-glass__title {
  font-weight: 800;
  margin-bottom: 0.1rem;
}
.hero-glass__text {
  opacity: 0.88;
  font-size: 0.95rem;
  line-height: 1.35;
}

/* ===== SECTIONS ===== */
.section-head {
  margin-bottom: 1.25rem;
}
.section-title {
  margin: 0 0 0.35rem;
  font-weight: 850;
  font-size: clamp(1.45rem, 1.7vw, 2rem);
}
.section-subtitle {
  margin: 0;
  max-width: 70ch;
  opacity: 0.9;
  font-size: clamp(0.98rem, 1.05vw, 1.1rem);
}

/* ===== FEATURES ===== */
.landing-features {
  background: #fff;
  padding: clamp(2.5rem, 5vw, 3.75rem) 0;
}
[data-md-color-scheme="slate"] .landing-features {
  background: #0f1115;
}

.cards {
  display: grid;
  gap: clamp(0.8rem, 2vw, 1.25rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  display: block;
  padding: 1.2rem 1.2rem;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  background: var(--card-bg);
  border: 1px solid var(--card-bd);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease,
    border-color 160ms ease;
}

[data-md-color-scheme="slate"] .card {
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-bd: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.12);
  border-color: rgba(34, 64, 179, 0.35);
}

.card__icon {
  font-size: 1.55rem;
  margin-bottom: 0.55rem;
}
.card__title {
  font-weight: 850;
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
}
.card__text {
  opacity: 0.85;
  line-height: 1.45;
}

/* ===== STEPS ===== */
.landing-steps {
  padding: clamp(2.2rem, 5vw, 3.2rem) 0 clamp(2.2rem, 5vw, 3.6rem);
  background: linear-gradient(
    180deg,
    rgba(34, 64, 179, 0.06) 0%,
    rgba(34, 64, 179, 0) 70%
  );
}
[data-md-color-scheme="slate"] .landing-steps {
  background: linear-gradient(
    180deg,
    rgba(120, 150, 255, 0.1) 0%,
    rgba(120, 150, 255, 0) 70%
  );
}

.steps {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step {
  padding: 1.1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.75);
}
[data-md-color-scheme="slate"] .step {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.step__num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: rgba(34, 64, 179, 0.12);
  margin-bottom: 0.75rem;
}
[data-md-color-scheme="slate"] .step__num {
  background: rgba(120, 150, 255, 0.16);
}

.step__title {
  font-weight: 850;
  margin-bottom: 0.2rem;
}
.step__text {
  opacity: 0.85;
  line-height: 1.45;
}

/* Content */
.landing-content {
  padding: 1.5rem 0 2rem;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .landing-hero__inner {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .hero-glass {
    max-width: 680px;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  html.is-landing .landing-hero .md-button {
    width: 100%;
    text-align: center;
  }
}

/* ===== Flyer Content Sections (unterhalb des Hero) ===== */

.landing-product,
.landing-connect,
.landing-showcase {
  padding: clamp(2.5rem, 5vw, 3.75rem) 0;
}

.landing-product {
  background: #fff;
}
.landing-connect {
  background: linear-gradient(
    180deg,
    rgba(34, 64, 179, 0.05),
    rgba(34, 64, 179, 0)
  );
}
.landing-showcase {
  background: #fff;
}

[data-md-color-scheme="slate"] .landing-product,
[data-md-color-scheme="slate"] .landing-showcase {
  background: #0f1115;
}
[data-md-color-scheme="slate"] .landing-connect {
  background: linear-gradient(
    180deg,
    rgba(120, 150, 255, 0.1),
    rgba(120, 150, 255, 0)
  );
}

/* 2x2 Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.9rem, 2vw, 1.35rem);
}

.feature {
  border-radius: 18px;
  padding: 1.25rem 1.25rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

[data-md-color-scheme="slate"] .feature {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.feature__title {
  margin: 0 0 0.35rem;
  font-weight: 850;
}
.feature__text {
  margin: 0 0 0.75rem;
  opacity: 0.86;
}
.feature__list {
  margin: 0;
  opacity: 0.86;
}
.feature__list li {
  margin: 0.25rem 0;
}

/* Connectivity 3 columns */
.connect-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.9rem, 2vw, 1.25rem);
}

.connect {
  border-radius: 18px;
  padding: 1.2rem 1.2rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-md-color-scheme="slate"] .connect {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.connect__title {
  margin: 0 0 0.35rem;
  font-weight: 850;
}
.connect__text {
  margin: 0;
  opacity: 0.86;
}
.connect__note {
  margin: 0.65rem 0 0;
  opacity: 0.75;
  font-size: 0.95rem;
}

/* Showcase rows */
.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1.25rem, 2.5vw, 1.75rem) 0;
}

.showcase--reverse {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}
.showcase--reverse .showcase__copy {
  order: 2;
}
.showcase--reverse .showcase__media {
  order: 1;
}

.showcase__list {
  margin: 1rem 0 0;
  opacity: 0.88;
}
.showcase__list li {
  margin: 0.25rem 0;
}

.showcase__media img {
  display: block;
  width: 100%;
  height: auto;
}

/* Responsive */
@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .connect-grid {
    grid-template-columns: 1fr;
  }
  .showcase,
  .showcase--reverse {
    grid-template-columns: 1fr;
  }
  .showcase--reverse .showcase__copy,
  .showcase--reverse .showcase__media {
    order: initial;
  }
}
