/* ==================================================
   LEHRERBEREICH – GRAMMATIK
   Store-/Editorial-Layout
   Mobile First
================================================== */


/* ==================================================
   ROOT
================================================== */

:root {
  --teacher-accent: #e4544d;
  --teacher-accent-hover: #cf4741;

  --page-bg: #f5f5f7;
  --surface: #ffffff;
  --surface-soft: #f5f5f7;

  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;

  --border: rgba(0, 0, 0, 0.08);

  --radius-lg: 28px;
  --radius-md: 20px;

  --shadow-soft:
    0 8px 26px rgba(0, 0, 0, 0.055);
}


/* ==================================================
   BASE
================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text-primary);

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "SF Pro Text",
    "Helvetica Neue",
    Arial,
    sans-serif;

  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.grammar-page {
  min-height: 100vh;
}

.grammar-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}


/* ==================================================
   HERO
================================================== */

.grammar-hero {
  padding: 92px 0 54px !important;
  background: var(--surface);
}

.grammar-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  color: var(--text-secondary);

  font-size: .95rem;
  font-weight: 500;

  transition: color .18s ease;
}

.grammar-back span {
  color: var(--teacher-accent);
  font-size: 1.3rem;
}

.grammar-back:hover {
  color: var(--text-primary);
}

.grammar-hero-copy {
  max-width: 780px;
  margin: 68px auto 0;
  text-align: center;
}

.grammar-eyebrow {
  margin: 0 0 10px;

  color: var(--teacher-accent);

  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.grammar-hero h1 {
  margin: 0;

  font-size: clamp(3.1rem, 10vw, 6.6rem);
  line-height: .92;

  font-weight: 760;
  letter-spacing: -.04em;
}

.grammar-lead {
  max-width: 650px;
  margin: 24px auto 0;

  color: var(--text-secondary);

  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  line-height: 1.55;
  letter-spacing: -.04em;
}


/* ==================================================
   LEVEL SECTION
================================================== */

.grammar-levels {
  padding: 58px 0 72px;
  overflow: hidden;
}

.grammar-section-head {
  margin-bottom: 26px;

  display: flex;
  flex-direction: column;
  gap: 12px;
}

.grammar-section-head h2 {
  max-width: 760px;
  margin: 0;

  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;

  font-weight: 730;
  letter-spacing: -.045em;
}

.grammar-section-hint {
  max-width: 480px;
  margin: 0;

  color: var(--text-secondary);

  font-size: .96rem;
  line-height: 1.5;
}


/* ==================================================
   CAROUSEL
================================================== */

.level-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(86vw, 420px);
  gap: 16px;

  margin-right: calc((100vw - min(1180px, calc(100vw - 40px))) / -2);

  padding: 2px 20px 18px 0;

  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

.level-carousel::-webkit-scrollbar {
  display: none;
}


/* ==================================================
   LEVEL CARD
================================================== */

.level-card {
  position: relative;
  isolation: isolate;

  min-height: 510px;

  overflow: hidden;

  border-radius: var(--radius-lg);

  background: #d8d8da;

  box-shadow: var(--shadow-soft);

  scroll-snap-align: start;

  transform: translateZ(0);

  transition:
    box-shadow .28s ease;
}

.level-card__image {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transform: scale(1);

  transition: transform .55s cubic-bezier(.2,.7,.2,1);
}

.level-card__shade {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,.06) 0%,
      rgba(0,0,0,.04) 38%,
      rgba(0,0,0,.58) 100%
    );
}

.level-card__content {
  position: absolute;
  inset: 0;
  z-index: 2;

  padding: 28px;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.level-card__level {
  margin: 0 0 7px;

  color: rgba(255,255,255,.82);

  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.level-card h3 {
  max-width: 320px;
  margin: 0;

  color: #fff;

  font-size: clamp(2rem, 7vw, 2.85rem);
  line-height: .98;

  font-weight: 740;
  letter-spacing: -.045em;
}

.level-card__description {
  max-width: 330px;
  margin: 13px 0 0;

  color: rgba(255,255,255,.86);

  font-size: .98rem;
  line-height: 1.45;
}

.level-card__plus {
  position: absolute;
  right: 24px;
  bottom: 24px;

  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: rgba(255,255,255,.92);
  color: #1d1d1f;

  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1;

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

@media (hover: hover) {
  .level-card:hover {
    box-shadow:
      0 12px 34px rgba(0,0,0,.08);
  }

  .level-card:hover .level-card__image {
    transform: scale(1.025);
  }
}


/* ==================================================
   FEEDBACK
================================================== */

.grammar-feedback {
  padding: 0 0 72px;
}

.feedback-card {
  padding: 30px;

  display: flex;
  flex-direction: column;
  gap: 26px;

  border-radius: var(--radius-lg);

  background: var(--surface);

  box-shadow:
    0 1px 0 rgba(0,0,0,.04);
}

.feedback-card__copy {
  max-width: 670px;
}

.feedback-card h2 {
  margin: 0;

  font-size: clamp(1.9rem, 5vw, 2.7rem);
  line-height: 1.05;

  font-weight: 720;
  letter-spacing: -.04em;
}

.feedback-card__copy > p:last-child {
  margin: 13px 0 0;

  color: var(--text-secondary);

  font-size: 1rem;
  line-height: 1.55;
}

.feedback-button {
  width: fit-content;

  padding: 13px 18px;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  border-radius: 999px;

  background: var(--text-primary);
  color: #fff;

  font-size: .94rem;
  font-weight: 650;

  transition:
    opacity .18s ease,
    transform .18s ease;
}

.feedback-button:hover {
  opacity: .86;
}

.feedback-button span {
  font-size: 1.05rem;
}


/* ==================================================
   FOOTER
================================================== */

.grammar-footer {
  padding: 28px 0 38px;

  color: var(--text-tertiary);

  font-size: .84rem;
}

.grammar-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.grammar-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.grammar-footer a:hover {
  color: var(--text-primary);
}


/* ==================================================
   OVERLAY
   CSS-only via :target
================================================== */
/* ==================================================
   LEVEL OVERLAY
================================================== */

.level-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;

  padding: 24px;

  display: grid;
  place-items: center;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity .28s ease,
    visibility .28s ease;
}

.level-overlay:target {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


/* BACKDROP */

.level-overlay__backdrop {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, .72);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}


/* PANEL */

.level-overlay__panel {
  position: relative;
  z-index: 2;

  width: min(960px, 100%);
  max-height: calc(100vh - 48px);

  padding: 34px;

  overflow-y: auto;
  overscroll-behavior: contain;

  border-radius: 34px;

  background: #f5f5f7;

  box-shadow:
    0 30px 90px rgba(0, 0, 0, .28);

  transform:
    translateY(18px)
    scale(.985);

  transition:
    transform .42s cubic-bezier(.2, .7, .2, 1);
}

.level-overlay:target .level-overlay__panel {
  transform:
    translateY(0)
    scale(1);
}


/* HEADER */

.level-overlay__header {
  position: relative;

  margin-bottom: 28px;

  padding-right: 74px;
}

.level-overlay__topline {
  margin: 0 0 12px;

  color: #6e6e73;

  font-size: .84rem;
  font-weight: 650;
}

.level-overlay__header h2 {
  max-width: 780px;

  margin: 0;

  color: #111;

  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: .94;

  font-weight: 760;
  letter-spacing: -.04em;
}


/* CLOSE */

.level-overlay__close {
  position: absolute;
  top: 0;
  right: 0;

  width: 52px;
  height: 52px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: #1d1d1f;
  color: #fff;

  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1;

  transition:
    transform .18s ease,
    opacity .18s ease;
}

.level-overlay__close:hover {
  opacity: .82;
}


/* BILD */

.level-overlay__media {
  width: 100%;

  overflow: hidden;

  aspect-ratio: 16 / 8.5;

  border-radius: 28px;

  background: #e8e8ed;
}

.level-overlay__media img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}


/* INTRO CARD */
/* ==================================================
   OVERLAY INTRO – EDITORIAL INFO
================================================== */

.level-overlay__intro-card {
  padding: 24px 26px;

  border: 1px solid rgba(0, 0, 0, .04);
  border-radius: 20px;

  background:
    linear-gradient(
      135deg,
      rgba(245, 245, 247, .92),
      rgba(248, 248, 250, .72)
    );

  box-shadow: none;
}

.level-overlay__intro-card strong {
  display: block;

  margin: 0 0 7px;

  color: #1d1d1f;

  font-size: 1.02rem;
  font-weight: 680;
  line-height: 1.25;

  letter-spacing: -.03em;
}

.level-overlay__intro-card p {
  margin: 0;

  max-width: 760px;

  color: #6e6e73;

  font-size: .9rem;
  line-height: 1.5;
}


/* TOPICS CARD */

.level-overlay__topics-card {
  margin-top: 26px;
  padding: 28px 30px 30px;

  border-radius: 26px;

  background: #e8e8ed;
}

.level-overlay__topics-head {
  margin-bottom: 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.level-overlay__topics-head p {
  margin: 0;

  color: #515154;

  font-size: 1rem;
  font-weight: 700;
}

.level-overlay__topics-head span {
  color: #86868b;

  font-size: .8rem;
  font-weight: 600;
}


/* TOPIC GRID */

.level-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 12px;
}

.level-topic-grid a {
  min-height: 64px;

  padding: 0 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  border-radius: 18px;

  background: rgba(255,255,255,.82);

  color: #1d1d1f;

  font-size: .97rem;
  font-weight: 550;

  transition:
    background .18s ease,
    transform .18s ease;
}

.level-topic-grid a > span:last-child {
  flex: 0 0 auto;

  color: var(--teacher-accent);

  transition: transform .18s ease;
}

.level-topic-grid a:hover {
  background: #fff;
}

.level-topic-grid a:hover > span:last-child {
  transform: translateX(3px);
}


/* ==================================================
   TABLET / DESKTOP
================================================== */

@media (min-width: 760px) {

  .grammar-hero {
    padding-top: 42px;
    padding-bottom: 72px;
  }

  .grammar-hero-copy {
    margin-top: 82px;
  }

  .grammar-levels {
    padding-top: 70px;
    padding-bottom: 45px;
  }

  .grammar-section-head {
    margin-bottom: 32px;

    flex-direction: row;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
  }

  .level-carousel {
    grid-auto-columns: 430px;
    gap: 20px;

    padding-bottom: 22px;
  }

  .level-card {
    min-height: 560px;
  }

  .level-card__content {
    padding: 32px;
  }

  .feedback-card {
    padding: 38px 40px;

    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .grammar-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .level-overlay {
    align-items: center;
    justify-items: center;

    padding: 28px;
  }

  .level-overlay__panel {
    width: min(920px, 100%);
    max-height: 88vh;

    padding: 42px 46px 46px;

    border-radius: 30px;

    transform:
      translateY(18px)
      scale(.985);
  }

  .level-overlay:target .level-overlay__panel {
    transform:
      translateY(0)
      scale(1);
  }

}


/* ==================================================
   DARK MODE
================================================== */

@media (prefers-color-scheme: dark) {

  :root {
    --page-bg: #111214;
    --surface: #1c1c1e;
    --surface-soft: #242426;

    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-tertiary: #7d7d82;

    --border: rgba(255,255,255,.09);

    --shadow-soft:
      0 8px 28px rgba(0,0,0,.18);
  }

  body {
    background: var(--page-bg);
  }

  .grammar-hero {
    background: #111214;
  }

  .feedback-card {
    background: #1c1c1e;
  }

  .feedback-button {
    background: #f5f5f7;
    color: #1d1d1f;
  }

  .level-overlay__backdrop {
    background: rgba(0,0,0,.58);
  }

  .level-overlay__panel {
    background: rgba(28,28,30,.97);

    box-shadow:
      0 -16px 52px rgba(0,0,0,.38);
  }

  .level-overlay__close {
    background: #2c2c2e;
    color: #d1d1d6;
  }

  .level-topic-list > a,
  .level-topic-list > a:first-child {
    border-color: rgba(255,255,255,.085);
  }

  .level-topic-list small {
    background: #2c2c2e;
    color: #a1a1a6;
  }

  .level-project {
    background: #242426;
  }

}


/* ==================================================
   REDUCED MOTION
================================================== */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }

}

@media (max-width: 700px) {

  .level-overlay {
    padding: 0;

    align-items: end;
  }

  .level-overlay__panel {
    width: 100%;
    max-height: 92vh;

    padding: 26px 20px 30px;

    border-radius: 30px 30px 0 0;
  }

  .level-overlay__header {
    padding-right: 58px;
  }

  .level-overlay__close {
    width: 44px;
    height: 44px;
  }

  .level-overlay__media {
    aspect-ratio: 4 / 3;

    border-radius: 22px;
  }

  .level-overlay__intro-card,
  .level-overlay__topics-card {
    margin-top: 18px;
    padding: 22px;

    border-radius: 22px;
  }

  .level-topic-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .level-topic-grid a {
    min-height: 58px;

    border-radius: 16px;
  }

}

/* ==================================================
   OVERLAY PROJECT – PREMIUM CTA
================================================== */

.level-overlay__project-card {
  position: relative;

  margin-top: 26px;
  padding: 26px 28px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;

  overflow: hidden;

  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: 20px;

  background:
    linear-gradient(
      135deg,
      #f5f5f7 0%,
      #fafafa 100%
    );

  color: #1d1d1f;
  text-decoration: none;

  box-shadow: none;

  transition:
    border-color .18s ease,
    background-color .18s ease;
}

.level-overlay__project-card::before {
  content: "";

  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;

  width: 3px;

  background: var(--teacher-accent);
}

.level-overlay__project-card p {
  margin: 0 0 6px;

  color: var(--teacher-accent);

  font-size: .64rem;
  font-weight: 700;

  letter-spacing: .06em;
  text-transform: uppercase;
}

.level-overlay__project-card h3 {
  margin: 0;

  color: #1d1d1f;

  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;

  letter-spacing: -.03em;
}

.level-overlay__project-card div > span {
  display: block;

  margin-top: 7px;

  color: #6e6e73;

  font-size: .86rem;
  line-height: 1.45;
}

.level-overlay__project-arrow {
  flex: 0 0 auto;

  color: #9b9ba0;

  font-size: 1.25rem;

  transition:
    color .18s ease;
}

@media (hover: hover) {

  .level-overlay__project-card:hover {
    border-color: rgba(0, 0, 0, .08);

    background:
      linear-gradient(
        135deg,
        #f2f2f4 0%,
        #f8f8fa 100%
      );
  }

  .level-overlay__project-card:hover
  .level-overlay__project-arrow {
    color: var(--teacher-accent);
  }

}

@media (max-width: 700px) {

  .level-overlay__project-card {
    margin-top: 18px;
    padding: 22px;

    border-radius: 22px;
  }

  .level-overlay__project-card h3 {
    font-size: 1.25rem;
  }

}

.social-btn {
  color: #fff !important;
}

.section--social::before {
  content: "";
  display: block;

  width: min(60%, 760px);
  height: 1px;

  margin: 0 auto 70px;

  background: rgba(0, 0, 0, 0.04);
}

@media (prefers-color-scheme: dark) {
  .section--social::before {
    background: rgba(255, 255, 255, 0.07);
  }
}

@media (max-width: 700px) {
  .section--social::before {
    width: 70%;
    margin-bottom: 48px;
  }
}

/* ==================================================
   OVERLAY – DARK MODE
================================================== */

@media (prefers-color-scheme: dark) {

  .level-overlay__panel {
    background: #1c1c1e;
    color: #f5f5f7;

    border: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow:
      0 30px 90px rgba(0, 0, 0, 0.48);
  }


  /* Header */

  .level-overlay__topline {
    color: #a1a1a6;
  }

  .level-overlay__header h2 {
    color: #f5f5f7;
  }

  .level-overlay__close {
    background: #2c2c2e;
    color: #f5f5f7;
  }

  .level-overlay__close:hover {
    background: #3a3a3c;
  }


  /* Intro-Card */

  .level-overlay__intro-card {
    background: #242426;
  }

  .level-overlay__intro-card strong {
    color: #f5f5f7;
  }

  .level-overlay__intro-card p {
    color: #a1a1a6;
  }


  /* Themen-/Trainer-Container */

  .level-overlay__topics-card {
    background: #242426;
  }

  .level-overlay__topics-head p {
    color: #f5f5f7;
  }

  .level-overlay__topics-head span {
    color: #8e8e93;
  }


  /* einzelne Themenkarten */

  .level-topic-grid a {
    background: #2c2c2e;
    color: #f5f5f7;
  }

  .level-topic-grid a:hover {
    background: #343437;
  }

  .level-topic-grid a > span:last-child {
    color: var(--teacher-accent);
  }

  .level-topic-grid small {
    color: #a1a1a6;
  }


  /* Abschlussprojekt */

  .level-overlay__project-card {
    background: #242426;
    color: #f5f5f7;
  }

  .level-overlay__project-card h3 {
    color: #f5f5f7;
  }

  .level-overlay__project-card div > span {
    color: #a1a1a6;
  }

  .level-overlay__project-card p,
  .level-overlay__project-arrow {
    color: var(--teacher-accent);
  }

}

@media (prefers-color-scheme: dark) {

  .level-overlay__project-card {
    background: #242426;
    color: #f5f5f7;

    border-color: rgba(255, 255, 255, 0.06);
  }

  .level-overlay__project-card:hover {
    background: #2c2c2e;
  }

  .level-overlay__project-card h3 {
    color: #f5f5f7;
  }

  .level-overlay__project-card div > span {
    color: #a1a1a6;
  }

}

/* ==================================================
   OVERLAY TOPICS – SOFT APPLE CARDS
   Mittelweg zwischen Card und Liste
================================================== */

.level-overlay__topics-card {
  padding: 28px 30px 30px;

  border-radius: 24px;

  background: #f5f5f7;

  border: 1px solid rgba(0, 0, 0, .025);
}


/* Header */

.level-overlay__topics-head {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 18px;
}

.level-overlay__topics-head p {
  margin: 0;

  color: #1d1d1f;

  font-size: .92rem;
  font-weight: 650;
}

.level-overlay__topics-head > span {
  color: #86868b;

  font-size: .76rem;
  font-weight: 500;
}


/* ==================================================
   GRID
================================================== */

.level-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 10px;
}


/* ==================================================
   THEMENLINK
================================================== */

.level-topic-grid > a {
  min-height: 60px;

  padding: 14px 16px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  border: 1px solid rgba(0, 0, 0, .045);
  border-radius: 14px;

  background: rgba(255, 255, 255, .72);

  color: #1d1d1f;
  text-decoration: none;

  box-shadow: none;

  font-size: .91rem;
  font-weight: 560;
  line-height: 1.3;

  transition:
    background-color .18s ease,
    border-color .18s ease;
}


/* Pfeil */

.level-topic-grid > a > span:last-child {
  flex: 0 0 auto;

  color: #9b9ba0;

  font-size: .95rem;
  font-weight: 400;

  transition:
    color .18s ease;
}


/* sehr dezenter Hover */

@media (hover: hover) {

  .level-topic-grid > a:hover {
    background: #ffffff;

    border-color: rgba(0, 0, 0, .09);
  }

  .level-topic-grid > a:hover > span:last-child {
    color: var(--teacher-accent);
  }

}


/* A1 Badge */

.level-topic-grid small {
  margin-left: 6px;

  padding: 3px 6px;

  border-radius: 6px;

  background: #eeeeF0;

  color: #86868b;

  font-size: .66rem;
  font-weight: 600;
}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 719px) {

  .level-overlay__topics-card {
    padding: 22px 20px 24px;

    border-radius: 20px;
  }

  .level-topic-grid {
    grid-template-columns: 1fr;

    gap: 8px;
  }

  .level-topic-grid > a {
    min-height: 56px;

    padding: 13px 14px;

    border-radius: 13px;

    font-size: .9rem;
  }

}

@media (prefers-color-scheme: dark) {

  .level-overlay__topics-card {
    background: #242426;

    border-color: rgba(255, 255, 255, .045);
  }

  .level-overlay__topics-head p {
    color: #f5f5f7;
  }

  .level-overlay__topics-head > span {
    color: #8e8e93;
  }

  .level-topic-grid > a {
    background: #2c2c2e;

    border-color: rgba(255, 255, 255, .045);

    color: #f5f5f7;
  }

  .level-topic-grid > a > span:last-child {
    color: #86868b;
  }

  .level-topic-grid small {
    background: #3a3a3c;

    color: #a1a1a6;
  }

}

@media (prefers-color-scheme: dark) and (hover: hover) {

  .level-topic-grid > a:hover {
    background: #323235;

    border-color: rgba(255, 255, 255, .08);
  }

  .level-topic-grid > a:hover > span:last-child {
    color: var(--teacher-accent);
  }

}

@media (max-width: 719px) {

  .level-overlay__intro-card {
    padding: 20px 20px;

    border-radius: 18px;
  }

  .level-overlay__intro-card strong {
    font-size: .98rem;
  }

  .level-overlay__intro-card p {
    font-size: .86rem;
  }

  .level-overlay__project-card {
    margin-top: 22px;
    padding: 22px 20px;

    border-radius: 18px;

    gap: 18px;
  }

  .level-overlay__project-card h3 {
    font-size: 1.12rem;
  }

  .level-overlay__project-card div > span {
    font-size: .82rem;
  }

}

@media (prefers-color-scheme: dark) {

  .level-overlay__intro-card {
    border-color: rgba(255, 255, 255, .045);

    background:
      linear-gradient(
        135deg,
        #242426,
        #202022
      );
  }

  .level-overlay__intro-card strong {
    color: #f5f5f7;
  }

  .level-overlay__intro-card p {
    color: #a1a1a6;
  }


  .level-overlay__project-card {
    border-color: rgba(255, 255, 255, .055);

    background:
      linear-gradient(
        135deg,
        #242426,
        #1f1f21
      );

    color: #f5f5f7;
  }

  .level-overlay__project-card h3 {
    color: #f5f5f7;
  }

  .level-overlay__project-card div > span {
    color: #a1a1a6;
  }

  .level-overlay__project-arrow {
    color: #86868b;
  }

}

@media (prefers-color-scheme: dark) and (hover: hover) {

  .level-overlay__project-card:hover {
    border-color: rgba(255, 255, 255, .09);

    background:
      linear-gradient(
        135deg,
        #29292b,
        #232325
      );
  }

}

/* ==================================================
   FEINSCHLIFF – INTRO + ABSCHLUSSPROJEKT
================================================== */


/* --------------------------------------------------
   INTRO
   Keine sichtbare Umrandung mehr
-------------------------------------------------- */

.level-overlay__intro-card {
  border: none;

  background:
    linear-gradient(
      135deg,
      rgba(245, 245, 247, .88),
      rgba(248, 248, 250, .62)
    );

  box-shadow: none;
}


/* --------------------------------------------------
   ABSCHLUSSPROJEKT
   Gleiche Breite / Ausrichtung wie restliche Bereiche
-------------------------------------------------- */

.level-overlay__project-card {
  width: 100%;
  box-sizing: border-box;

  margin-left: 0;
  margin-right: 0;

  padding: 28px 32px;

  border: 1px solid rgba(0, 0, 0, .045);
  border-radius: 22px;

  background:
    linear-gradient(
      135deg,
      rgba(248, 248, 250, .92),
      rgba(245, 245, 247, .72)
    );

  box-shadow: none;
}


/* roten Balken komplett entfernen */

.level-overlay__project-card::before {
  display: none;
}


/* Eyebrow darf rot bleiben – reicht als Akzent völlig */

.level-overlay__project-card p {
  color: var(--teacher-accent);

  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .075em;
  text-transform: uppercase;
}


/* Pfeil bewusst zurückhaltend */

.level-overlay__project-arrow {
  color: #a1a1a6;
}


/* --------------------------------------------------
   MOBILE
-------------------------------------------------- */

@media (max-width: 719px) {

  .level-overlay__project-card {
    width: 100%;
  

    padding: 24px 22px;

    border-radius: 20px;
  }

}

/* ==================================================
   CAROUSEL CONTROLS – DEZENT UNTEN RECHTS
================================================== */

.level-carousel-wrap {
  position: relative;
}

.level-carousel-controls {
  margin-top: 18px;

  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.level-carousel-arrow {
  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(0, 0, 0, .07);
  border-radius: 50%;

  background: #f5f5f7;
  color: #6e6e73;

  font-size: .9rem;
  line-height: 1;

  cursor: pointer;

  box-shadow: none;

  transition:
    background .18s ease,
    color .18s ease,
    border-color .18s ease;
}

@media (hover: hover) {

  .level-carousel-arrow:hover {
    background: #eeeeF1;
    color: #1d1d1f;

    border-color: rgba(0, 0, 0, .10);
  }

}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 768px) {

  .level-carousel-controls {
    margin-top: 14px;
    padding-right: 2px;
  }

  .level-carousel-arrow {
    width: 32px;
    height: 32px;

    font-size: .84rem;
  }

}


/* ==================================================
   DARK MODE
================================================== */

@media (prefers-color-scheme: dark) {

  .level-carousel-arrow {
    background: #242426;

    border-color: rgba(255, 255, 255, .07);

    color: #a1a1a6;
  }

}

@media (prefers-color-scheme: dark) and (hover: hover) {

  .level-carousel-arrow:hover {
    background: #2c2c2e;

    border-color: rgba(255, 255, 255, .10);

    color: #f5f5f7;
  }

}

/* ==================================================
   ABSTAND CAROUSEL → GEMEINSAM BESSER
================================================== */

.grammar-levels {
  padding-bottom: 36px;
}

.section--social::before {
  margin-top: 0;
  margin-bottom: 54px;
}

@media (min-width: 760px) {
  .grammar-levels {
    padding-bottom: 42px;
  }
}

@media (max-width: 700px) {
  .grammar-levels {
    padding-bottom: 32px;
  }

  .section--social::before {
    margin-bottom: 40px;
  }
}


/* ==================================================
   MOBILE OVERLAY ÜBER FIXED NAVIGATION
================================================== */

.level-overlay {
  z-index: 9999;
}

@media (max-width: 700px) {

  .level-overlay {
    z-index: 9999;
  }

  .level-overlay__panel {
    max-height: 100dvh;
  }

}

@media (max-width: 700px) {

  .level-overlay__header {
    position: relative;
    top: auto;
    z-index: auto;

    padding: 4px 58px 18px 0;


    background: transparent;

    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

}

@media (max-width: 700px) and (prefers-color-scheme: dark) {

  .level-overlay__header {
    background: #1c1c1e;
  }

}

@media (max-width: 700px) {

  .level-overlay__close {
    width: 34px;
    height: 34px;

    font-size: 1.25rem;
  }

}

@media (max-width: 700px) {

  .level-overlay__header {
    position: relative;
    top: auto;
    z-index: auto;

    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .level-overlay__close {
    width: 34px;
    height: 34px;

    font-size: 1.2rem;
  }

}

@media (prefers-color-scheme: dark) {

  .level-overlay__intro-card {
    background: #242426;
    border: none;
  }

  .level-overlay__intro-card strong {
    color: #f5f5f7;
  }

  .level-overlay__intro-card p {
    color: #a1a1a6;
  }

}

/* TikTok Button */
.tiktok-btn {
  color: #0071e3 !important; /* Light Mode: Blau */
}

@media (prefers-color-scheme: dark) {
  .tiktok-btn {
    color: #fff !important; /* Dark Mode: Weiß */
  }
}