/* Page-owned styles for level-loesungen */

#level-loesungen-main {
  overflow-x: hidden;
}

/* Hero */
.ll-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: center;
}

.ll-hero-text {
  min-width: 0;
  max-width: 600px;
}

.ll-hero-lead {
  max-width: 45ch;
}

.ll-hero-facts {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.ll-hero-facts li {
  position: relative;
  padding-inline-start: var(--space-lg);
  max-width: 45ch;
}

.ll-hero-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background-color: var(--color-clay);
  border-radius: 50%;
}

.ll-hero-cta {
  margin-block-end: var(--space-md);
  display: flex;
  justify-content: flex-start;
}

.ll-hero-note {
  font-size: var(--text-small);
  line-height: var(--leading-small);
  color: var(--color-ink);
  opacity: 0.8;
  max-width: 45ch;
}

.ll-hero-media {
  min-width: 0;
  max-width: 400px;
  justify-self: end;
}

.ll-hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Intro */
.ll-intro-container {
  max-width: 800px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.ll-intro-block {
  text-align: center;
  max-width: 70ch;
  margin-inline: auto;
}

.ll-intro-block ul {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.ll-intro-block li {
  position: relative;
  padding-inline-start: var(--space-lg);
}

.ll-intro-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background-color: var(--color-clay);
  border-radius: 50%;
}

/* Level sections */
.ll-level-container {
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.ll-level-description,
.ll-level-steps {
  min-width: 0;
}

.ll-level-description p,
.ll-level-steps p {
  max-width: 70ch;
}

.ll-step-list {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.ll-step-list li {
  position: relative;
  padding-inline-start: 3rem;
  min-height: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ll-step-list li::before {
  content: counter(ll-step);
  counter-increment: ll-step;
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 2rem;
  height: 2rem;
  background-color: var(--color-clay);
  color: var(--color-white);
  font-weight: 700;
  font-size: var(--text-small);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.ll-step-list {
  counter-reset: ll-step;
}

.ll-level-tip {
  background-color: var(--color-ink-5);
  border-inline-start: 3px solid var(--color-clay);
  padding: var(--space-md) var(--space-lg);
  border-radius: 0 var(--radius-medium) var(--radius-medium) 0;
  max-width: 70ch;
}

/* Tips */
.ll-tips-container {
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.ll-tips-block {
  min-width: 0;
}

.ll-tips-block p {
  max-width: 70ch;
}

/* Download */
.ll-download-container {
  max-width: 600px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: center;
}

.ll-download-container p {
  max-width: 50ch;
  margin-inline: auto;
}

.ll-download-cta {
  display: flex;
  justify-content: center;
}

/* Tablet */
@media (max-width: 900px) {
  .ll-hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .ll-hero-text {
    max-width: 100%;
  }

  .ll-hero-media {
    max-width: 100%;
    justify-self: stretch;
  }

  .ll-hero-cta {
    justify-content: center;
  }

  .ll-hero-note {
    text-align: center;
    margin-inline: auto;
  }

  .ll-hero-lead,
  .ll-hero-facts li {
    max-width: 100%;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .ll-hero-grid {
    gap: var(--space-md);
  }

  .ll-hero-cta {
    justify-content: center;
  }

  .ll-hero-note {
    text-align: center;
  }

  .ll-intro-container {
    text-align: left;
  }

  .ll-intro-block {
    text-align: left;
    max-width: 100%;
  }

  .ll-intro-block ul {
    padding-inline-start: 0;
  }

  .ll-intro-block li {
    padding-inline-start: var(--space-lg);
  }

  .ll-step-list li {
    padding-inline-start: 2.75rem;
  }

  .ll-step-list li::before {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.75rem;
  }

  .ll-download-container p {
    max-width: 100%;
  }
}

@media (max-width: 390px) {
  .ll-hero-cta .btn {
    width: 100%;
  }

  .ll-download-cta .btn {
    width: 100%;
  }
}
