/* ==================================================
   SCHULSPANISCH – LEHRER / GRAMMATIK-THEMENSEITEN
   Neue Master-Datei
   Light + Dark Mode
   Mobile First
================================================== */


/* ==================================================
   ROOT
================================================== */

:root {
  --teacher-accent: #e4544d;
  --teacher-accent-hover: #cf4741;

  --topic-bg: #ffffff;
  --topic-surface: #ffffff;
  --topic-surface-soft: #f5f5f7;
  --topic-surface-softer: #f8f8fa;

  --topic-text: #1d1d1f;
  --topic-text-secondary: #6e6e73;
  --topic-text-tertiary: #86868b;

  --topic-border: rgba(0, 0, 0, 0.075);
  --topic-border-soft: rgba(0, 0, 0, 0.05);

  --topic-shadow:
    0 8px 26px rgba(0, 0, 0, 0.045);

  --topic-radius-lg: 30px;
  --topic-radius-md: 22px;
  --topic-radius-sm: 15px;
}


/* ==================================================
   BASE
================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  background: var(--topic-bg);
  color: var(--topic-text);

  -webkit-font-smoothing: antialiased;
}

.teacher-topic-page {
  min-height: 100vh;

  background: var(--topic-bg);
}


/* ==================================================
   LEVEL-BILDER
================================================== */

.teacher-topic-page--beginner .teacher-topic-image-hero {
  background-image: url("/lehrer/grammatik/bilder/anfaenger.jpg");
  background-position: center 10%;
}

.teacher-topic-page--advanced .teacher-topic-image-hero {
  background-image: url("/lehrer/grammatik/bilder/fortgeschrittene.jpg");
  background-position: center 42%;
}

.teacher-topic-page--expert .teacher-topic-image-hero {
  background-image: url("/lehrer/grammatik/bilder/experten.jpg");
  background-position: center 40%;
}


/* ==================================================
   BILD-HERO
================================================== */

/* ==================================================
   BILD-HERO
   Bild läuft weich in den Content über
================================================== */

.teacher-topic-image-hero {
  position: sticky;
  top: 0;
  z-index: 0;

  height: 430px;

  background-position: center 38%;
  background-size: cover;
  background-repeat: no-repeat;
}

/* weicher Übergang vom Foto zum Content */

.teacher-topic-image-overlay {
  position: absolute;
  inset: 0;

  pointer-events: none;

  background:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0) 58%,
      rgba(255, 255, 255, 0.10) 66%,
      rgba(255, 255, 255, 0.32) 74%,
      rgba(255, 255, 255, 0.68) 84%,
      rgba(255, 255, 255, 0.94) 94%,
      #ffffff 100%
    );
}


/* ==================================================
   CONTENT SHEET
================================================== */

.teacher-topic-sheet {
  position: relative;
  z-index: 5;

  margin-top: -125px;

  overflow: visible;

  border-radius:
    30px
    30px
    0
    0;

  background:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.03) 0px,
      rgba(255, 255, 255, 0.10) 35px,
      rgba(255, 255, 255, 0.25) 70px,
      rgba(255, 255, 255, 0.48) 110px,
      rgba(255, 255, 255, 0.74) 155px,
      rgba(255, 255, 255, 0.94) 205px,
      #ffffff 245px,
      #ffffff 100%
    );

  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

@media (max-width: 719px) {
  .teacher-topic-sheet {
    margin-top: -95px;

    background:
      linear-gradient(
        to bottom,
        rgba(255,255,255,.03) 0px,
        rgba(255,255,255,.12) 30px,
        rgba(255,255,255,.32) 65px,
        rgba(255,255,255,.62) 105px,
        rgba(255,255,255,.90) 145px,
        #ffffff 185px,
        #ffffff 100%
      );
  }
}
/* ==================================================
   TOPIC HERO
================================================== */

.teacher-topic-hero {
  padding:
    34px
    20px
    38px;
}

.teacher-topic-back {
  width: min(1180px, 100%);
  margin: 0 auto 42px;
}

.teacher-topic-back a {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  color: var(--topic-text-secondary);

  font-size: .94rem;
  font-weight: 500;

  text-decoration: none;

  transition:
    color .18s ease;
}

.teacher-topic-back a span {
  color: var(--teacher-accent);

  font-size: 1.25rem;
  line-height: 1;
}

.teacher-topic-back a:hover {
  color: var(--topic-text);
}


/* ==================================================
   INTRO
================================================== */

.teacher-intro {
  max-width: 760px;
  margin: 0 auto;

  text-align: center;
}

.teacher-title {
  margin: 0;

  color: var(--topic-text);

  font-size: clamp(2.7rem, 10vw, 5rem);
  line-height: .96;

  font-weight: 760;
  letter-spacing: -.055em;
}

.teacher-subtitle {
  max-width: 650px;

  margin:
    20px
    auto
    0;

  color: var(--topic-text-secondary);

  font-size: clamp(1rem, 2.2vw, 1.18rem);
  line-height: 1.55;

  letter-spacing: -.012em;
}

.teacher-accent {
  width: 54px;
  height: 3px;

  margin:
    26px
    auto
    0;

  border-radius: 999px;

  background: var(--teacher-accent);
}


/* ==================================================
   HAUPTBEREICH
================================================== */

.teacher-topic-section {
  padding:
    10px
    20px
    84px;
}

.teacher-topic-layout {
  width: min(1180px, 100%);
  margin: 0 auto;

  display: block;
}

.teacher-topic-content {
  min-width: 0;
}

/* ==================================================
   RESOURCE – APPLE CLEAN
================================================== */

.teacher-resource-card {
  width: 100%;
  padding: 18px 0 44px;

  border: 0;
  border-radius: 0;

  background: transparent;
  box-shadow: none;
}

.teacher-resource-intro {
  max-width: 620px;
  margin: 0 auto 32px;

  text-align: center;
}

.teacher-resource-intro h2 {
  margin: 0;

  color: var(--topic-text);

  font-size: clamp(1.45rem, 3vw, 1.8rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.035em;
}

.teacher-resource-intro p {
  max-width: 560px;
  margin: 11px auto 0;

  color: var(--topic-text-secondary);

  font-size: .96rem;
  line-height: 1.55;
}

/* ==================================================
   QR CODE
================================================== */
/* ==================================================
   QR CODE – CLEAN
================================================== */

.teacher-qr {
  width: 220px;
  height: 220px;

  margin: 0 auto;
  padding: 10px;

  display: grid;
  place-items: center;

  border: 0;
  border-radius: 18px;

  background: #ffffff;

  box-shadow:
    0 1px 2px rgba(0,0,0,.03),
    0 8px 30px rgba(0,0,0,.045);
}

.teacher-qr img,
.teacher-qr canvas {
  display: block;
  max-width: 100%;
  height: auto;
}


/* ==================================================
   QR HIGHLIGHT
================================================== */

.teacher-qr-highlight {
  max-width: 570px;

  margin:
    24px
    auto
    0;

  text-align: center;
}

.teacher-qr-highlight__main {
  color: var(--topic-text);

  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 720;

  line-height: 1.35;
  letter-spacing: -.02em;
}

.teacher-qr-highlight__sub {
  width: fit-content;
  max-width: 100%;

  margin:
    14px
    auto
    0;

  padding:
    9px
    14px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  border-radius: 999px;

  background: var(--topic-surface-soft);
  color: var(--topic-text-secondary);

  font-size: .88rem;
  line-height: 1.4;
}

.teacher-qr-highlight__sub i {
  color: var(--teacher-accent);
}


/* ==================================================
   RESOURCE BUTTONS
================================================== */

.teacher-resource-actions {
  margin-top: 28px;

  display: flex;
  flex-direction: column;

  gap: 10px;
}

.teacher-resource-button {
  min-height: 48px;

  padding:
    0
    18px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  border-radius: 14px;

  text-decoration: none;

  font-size: .93rem;
  font-weight: 650;

  transition:
    background .18s ease,
    opacity .18s ease;
}

.teacher-resource-button--primary {
  background: var(--teacher-accent);
  color: #ffffff;
}

.teacher-resource-button--primary:hover {
  background: var(--teacher-accent-hover);
}

.teacher-resource-button--secondary {
  border: 1px solid var(--topic-border);

  background: var(--topic-surface-soft);
  color: var(--topic-text);
}

.teacher-resource-button--secondary:hover {
  background: #eeeeF1;
}


/* ==================================================
   KOSTENLOSE INHALTE
================================================== */

.teacher-free-content {
  margin-top: 38px;

  padding-top: 34px;

  border-top: 1px solid var(--topic-border-soft);
}

.teacher-free-content__head {
  margin-bottom: 22px;

  text-align: center;
}

.teacher-free-content__eyebrow {
  display: inline-block;

  margin-bottom: 8px;

  color: var(--teacher-accent);

  font-size: .74rem;
  font-weight: 700;

  letter-spacing: .04em;
  text-transform: uppercase;
}

.teacher-free-content__head h2 {
  margin: 0;

  color: var(--topic-text);

  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 700;

  letter-spacing: -.025em;
}

.teacher-free-content__head p {
  margin:
    8px
    0
    0;

  color: var(--topic-text-secondary);

  font-size: .92rem;
  line-height: 1.5;
}



/* ==================================================
   TOGGLE
================================================== */

.teacher-free-content__toggle {
  margin:
    16px
    auto
    0;

  padding:
    11px
    17px;

    align-items: center;
  display: flex;
  justify-content: center;
  gap: 9px;

  border: 0;
  border-radius: 999px;

  background: var(--topic-surface-soft);
  color: var(--topic-text-secondary);

  font: inherit;

  font-size: .87rem;
  font-weight: 650;

  cursor: pointer;

  transition:
    background .18s ease,
    color .18s ease;
}

.teacher-free-content__toggle:hover {
  background: #ededf0;

  color: var(--topic-text);
}

.teacher-free-content__toggle i {
  font-size: .72rem;

  transition:
    transform .22s ease;
}

.teacher-free-content__toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.teacher-free-content__toggle[hidden] {
  display: none;
}


/* ==================================================
   EXTRA CONTENT / FADE
================================================== */

.teacher-free-content__item.is-extra {
  display: none;
}

.teacher-free-content__grid.is-expanded
.teacher-free-content__item.is-extra {
  display: flex;
}

.teacher-free-content__grid:not(.is-expanded)::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  height: 30px;

  pointer-events: none;

  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,0),
      var(--topic-bg)
    );
}

.teacher-free-content__grid.is-expanded::after {
  display: none;
}


/* ==================================================
   TABLET
================================================== */

@media (min-width: 720px) {

  .teacher-topic-image-hero {
    height: 390px;
    background-position: center 38%;

  }

  .teacher-topic-sheet {
    margin-top: -34px;
  }

  .teacher-topic-hero {
    padding:
      42px
      26px
      44px;
  }

  .teacher-topic-section {
    padding:
      12px
      26px
      94px;
  }

  .teacher-resource-card {
    padding:
      36px
      32px;
  }

  .teacher-resource-actions {
    flex-direction: row;

    justify-content: center;
    flex-wrap: wrap;
  }

  .teacher-free-content__grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}


/* ==================================================
   TABLET + DESKTOP SIDEBAR
================================================== */

@media (min-width: 820px) {

  .teacher-topic-layout {
    display: grid;

    grid-template-columns:
      minmax(0, 1fr)
      minmax(240px, 290px);

    gap: 34px;

    align-items: start;
  }

  .teacher-topic-sidebar {
    position: sticky;

    top: 100px;

    margin-top: 0;
  }

}


/* ==================================================
   DESKTOP
================================================== */

@media (min-width: 1080px) {

  .teacher-topic-image-hero {
    height: 430px;
    background-position: center 38%;

  }

  .teacher-topic-sheet {
    margin-top: -38px;

    border-radius:
      34px
      34px
      0
      0;
  }

  .teacher-topic-hero {
    padding-top: 48px;
  }

  .teacher-topic-layout {
    grid-template-columns:
      minmax(0, 760px)
      minmax(280px, 320px);

    gap: 54px;

    justify-content: center;
  }

  .teacher-topic-sidebar {
    top: 110px;
  }

}


/* ==================================================
   DARK MODE
================================================== */

@media (prefers-color-scheme: dark) {

  :root {
    --topic-bg: #111214;

    --topic-surface: #1c1c1e;

    --topic-surface-soft: #242426;
    --topic-surface-softer: #2c2c2e;

    --topic-text: #f5f5f7;

    --topic-text-secondary: #a1a1a6;
    --topic-text-tertiary: #7d7d82;

    --topic-border:
      rgba(255,255,255,.09);

    --topic-border-soft:
      rgba(255,255,255,.065);

    --topic-shadow:
      0 7px 22px rgba(0,0,0,.16);
  }


  body,
  .teacher-topic-page,
  .teacher-topic-sheet {
    background: var(--topic-bg);
  }


  /* Bild */

.teacher-topic-image-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;

  background:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0) 52%,
      rgba(255, 255, 255, 0.04) 62%,
      rgba(255, 255, 255, 0.12) 70%,
      rgba(255, 255, 255, 0.28) 79%,
      rgba(255, 255, 255, 0.52) 87%,
      rgba(255, 255, 255, 0.78) 94%,
      #ffffff 100%
    );
}


  /* Resource */

  .teacher-resource-card {
    background: var(--topic-surface);

    border-color: var(--topic-border);

    box-shadow: none;
  }


  /* QR bewusst weiß */

  .teacher-qr {
    background: #ffffff;

    border-color:
      rgba(255,255,255,.10);
  }


  /* Secondary Button */

  .teacher-resource-button--secondary {
    background: #2c2c2e;

    border-color:
      rgba(255,255,255,.08);

    color: #f5f5f7;
  }

  .teacher-resource-button--secondary:hover {
    background: #343437;
  }


  /* QR Hinweis */

  .teacher-qr-highlight__sub {
    background: #242426;

    color: #c7c7cc;
  }


  /* Free Content */

  .teacher-free-content__item {
    background: #242426;

    color: #f5f5f7;
  }

  .teacher-free-content__toggle {
    background: #242426;

    color: #a1a1a6;
  }

  .teacher-free-content__toggle:hover {
    background: #2c2c2e;

    color: #f5f5f7;
  }


  /* Fade */

  .teacher-free-content__grid:not(.is-expanded)::after {
    background:
      linear-gradient(
        to bottom,
        rgba(17,18,20,0),
        #111214
      );
  }


  /* Eduki */

  .upgrade-preview__card {
    background: #1c1c1e;

    border-color:
      rgba(255,255,255,.08);

    box-shadow: none;
  }

  .upgrade-preview__card:hover {
    border-color:
      rgba(255,255,255,.12);

    box-shadow: none;
  }

  .upgrade-preview__media,
  .upgrade-preview__fallback {
    background: #242426;
  }

  .upgrade-preview__badge {
    background:
      rgba(28,28,30,.92);

    color: #ff6259;
  }

}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 719px) {

  .teacher-topic-image-hero {
    height: 330px;
    background-position: center 38%;

  }

  .teacher-topic-sheet {
    margin-top: -26px;

    border-radius:
      26px
      26px
      0
      0;
  }

  .teacher-topic-hero {
    padding:
      30px
      18px
      34px;
  }

  .teacher-topic-back {
    margin-bottom: 34px;
  }

  .teacher-topic-section {
    padding:
      6px
      18px
      72px;
  }

  .teacher-resource-card {
    padding:
      28px
      18px;

    border-radius: 24px;
  }

  .teacher-qr {
    width: 190px;
    height: 190px;
  }

  .teacher-qr-highlight__sub {
    width: 100%;

    border-radius: 14px;
  }

  .teacher-topic-sidebar {
    margin-top: 48px;

    padding-top: 34px;

    border-top:
      1px solid var(--topic-border-soft);
  }

  .teacher-eduki-eyebrow {
  margin-bottom: 5px;

  font-size: .60rem;
  font-weight: 700;
  letter-spacing: .055em;
}

.teacher-eduki-head h2 {
  font-size: 1.08rem;
}

.teacher-eduki-head p {
  font-size: .82rem;
}

}


/* ==================================================
   REDUCED MOTION
================================================== */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }

}

/* ==================================================
   DARK MODE – WEICHER ÜBERGANG BILD → CONTENT
================================================== */

@media (prefers-color-scheme: dark) {

  /* Bild läuft weich in den dunklen Seitenhintergrund aus */
  .teacher-topic-image-overlay {
    background:
      linear-gradient(
        to bottom,
        rgba(17, 18, 20, 0) 0%,
        rgba(17, 18, 20, 0) 52%,
        rgba(17, 18, 20, 0.04) 62%,
        rgba(17, 18, 20, 0.12) 70%,
        rgba(17, 18, 20, 0.28) 79%,
        rgba(17, 18, 20, 0.52) 87%,
        rgba(17, 18, 20, 0.78) 94%,
        #111214 100%
      );
  }


  /* Content beginnt fast transparent über dem Bild
     und wird erst weiter unten vollständig dunkel */
  .teacher-topic-sheet {
    background:
      linear-gradient(
        to bottom,
        rgba(17, 18, 20, 0.03) 0px,
        rgba(17, 18, 20, 0.10) 35px,
        rgba(17, 18, 20, 0.25) 70px,
        rgba(17, 18, 20, 0.48) 110px,
        rgba(17, 18, 20, 0.74) 155px,
        rgba(17, 18, 20, 0.94) 205px,
        #111214 245px,
        #111214 100%
      );

    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
  }

}

@media (prefers-color-scheme: dark) and (max-width: 719px) {

  .teacher-topic-sheet {
    background:
      linear-gradient(
        to bottom,
        rgba(17, 18, 20, 0.03) 0px,
        rgba(17, 18, 20, 0.12) 30px,
        rgba(17, 18, 20, 0.32) 65px,
        rgba(17, 18, 20, 0.62) 105px,
        rgba(17, 18, 20, 0.90) 145px,
        #111214 185px,
        #111214 100%
      );
  }

}


/* ==================================================
   FREE CONTENT – APPLE LIST
   passend zu deinem bestehenden JS
================================================== */

.teacher-free-content__grid {
  display: block;

  overflow: hidden;

  border-top: 1px solid var(--topic-border-soft);
  border-bottom: 1px solid var(--topic-border-soft);

  background: transparent;
}


/* einzelne Zeile */

.teacher-free-content__item {
  position: relative;

  display: flex;
  align-items: center;
  gap: 15px;

  min-height: 70px;

  padding:
    16px
    44px
    16px
    4px;

  border: 0;
  border-bottom: 1px solid var(--topic-border-soft);
  border-radius: 0;

  background: transparent;
  box-shadow: none;

  color: var(--topic-text);

  font-size: .94rem;
  font-weight: 540;

  transition:
    background-color .18s ease,
    padding-left .18s ease;
}

.teacher-free-content__item:last-child {
  border-bottom: 0;
}


/* Icon */

.teacher-free-content__item > i {
  flex: 0 0 auto;

  width: 32px;
  height: 32px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: var(--topic-surface-soft);
  color: var(--teacher-accent);

  font-size: .82rem;
}


/* Text */

.teacher-free-content__item > span {
  min-width: 0;

  line-height: 1.35;
}


/* Pfeil rechts */

.teacher-free-content__item::after {
  content: "→";

  position: absolute;
  top: 50%;
  right: 8px;

  color: var(--teacher-accent);

  font-size: 1.05rem;

  transform: translateY(-50%);

  transition:
    transform .18s ease;
}




/* ==================================================
   FREE CONTENT – APPLE INFO CARDS
   neutral, ruhig, ohne Hover / Pfeile
================================================== */

.teacher-free-content {
  margin-top: 54px;
  padding-top: 46px;

  border-top: 1px solid var(--topic-border-soft);
}

.teacher-free-content__head {
  max-width: 720px;
  margin: 0 auto 34px;

  text-align: center;
}

.teacher-free-content__eyebrow {
  display: block;
  margin-bottom: 9px;

  color: var(--teacher-accent);

  font-size: .67rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.teacher-free-content__head h2 {
  margin: 0;

  color: var(--topic-text);

  font-size: clamp(1.5rem, 2.7vw, 1.9rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.035em;
}

.teacher-free-content__head p {
  margin: 10px 0 0;

  color: var(--topic-text-secondary);

  font-size: .93rem;
  line-height: 1.5;
}


/* ==================================================
   GRID
================================================== */

.teacher-free-content__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 12px;

  border: 0;
  background: transparent;
}


/* ==================================================
   INFO CARD
================================================== */

.teacher-free-content__item {
  min-height: 78px;

  padding: 17px 18px;

  display: flex;
  align-items: center;
  gap: 14px;

  border: 1px solid rgba(0, 0, 0, .055);
  border-radius: 18px;

  background: rgba(255, 255, 255, .72);

  color: var(--topic-text);

  box-shadow:
    0 2px 8px rgba(0, 0, 0, .015);

  font-size: .92rem;
  font-weight: 600;
  line-height: 1.3;

  transition: none;
}





/* kein Pfeil */

.teacher-free-content__item::after {
  display: none !important;
  content: none !important;
}


/* ==================================================
   ICON
================================================== */

.teacher-free-content__item > i {
  flex: 0 0 auto;

  width: 36px;
  height: 36px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: #f2f2f4;
  color: #8e8e93;

  font-size: .88rem;
}


/* ==================================================
   TEXT
================================================== */

.teacher-free-content__item > span {
  min-width: 0;

  color: var(--topic-text);

  line-height: 1.3;
}


/* ==================================================
   EXTRA ITEMS
================================================== */

.teacher-free-content__item.is-extra {
  display: none;
}

.teacher-free-content__grid.is-expanded
.teacher-free-content__item.is-extra {
  display: flex;
}


/* ==================================================
   TOGGLE
================================================== */

.teacher-free-content__toggle {
  width: fit-content;
  min-height: 44px;

  margin: 26px auto 0;
  padding: 0 20px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  border: 0;
  border-radius: 999px;

  background: #f2f2f4;
  color: #6e6e73;

  font: inherit;

  font-size: .84rem;
  font-weight: 600;

  cursor: pointer;

  transition: none;
}

.teacher-free-content__toggle:hover {
  background: #f2f2f4;
  color: #6e6e73;
}

.teacher-free-content__toggle i {
  color: #86868b;

  font-size: .7rem;

  transition: transform .22s ease;
}

.teacher-free-content__toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}


/* ==================================================
   DESKTOP
================================================== */

@media (min-width: 900px) {

  .teacher-free-content__grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));

    gap: 14px;
  }

  .teacher-free-content__item {
    min-height: 82px;

    padding: 18px 19px;
  }

}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 719px) {

  .teacher-free-content {
    margin-top: 46px;
    padding-top: 40px;
  }

  .teacher-free-content__head {
    margin-bottom: 26px;
  }

  .teacher-free-content__eyebrow {
    font-size: .60rem;
  }

  .teacher-free-content__head h2 {
    font-size: 1.35rem;
  }

  .teacher-free-content__head p {
    margin-top: 7px;

    font-size: .86rem;
  }

  .teacher-free-content__grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 10px;
  }

  .teacher-free-content__item {
    min-height: 68px;

    padding: 13px 14px;

    gap: 11px;

    border-radius: 15px;

    font-size: .82rem;
  }



  .teacher-free-content__item > i {
    width: 30px;
    height: 30px;

    font-size: .76rem;
  }

}


/* sehr kleine iPhones */

@media (max-width: 390px) {

  .teacher-free-content__grid {
    grid-template-columns: 1fr;
  }

}


/* ==================================================
   DARK MODE
================================================== */

@media (prefers-color-scheme: dark) {

  .teacher-free-content {
    border-top-color:
      rgba(255, 255, 255, .07);
  }

  .teacher-free-content__item {
    border-color:
      rgba(255, 255, 255, .065);

    background: #1c1c1e;

    box-shadow: none;
  }



  .teacher-free-content__item > i {
    background: #2c2c2e;
    color: #a1a1a6;
  }

  .teacher-free-content__toggle {
    background: #242426;
    color: #a1a1a6;
  }


}

.teacher-free-content__copy {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 4px;
}

.teacher-free-content__copy strong {
  color: var(--topic-text);

  font-size: .92rem;
  font-weight: 650;
  line-height: 1.25;

  letter-spacing: -.01em;
}

.teacher-free-content__copy > span {
  color: var(--topic-text-secondary);

  font-size: .78rem;
  font-weight: 400;
  line-height: 1.4;
}

@media (min-width: 900px) {

  .teacher-free-content__grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));

    gap: 14px;
  }

  .teacher-free-content__item {
    min-height: 96px;

    padding: 18px 19px;

    align-items: flex-start;
  }

  .teacher-free-content__item > i {
    margin-top: 1px;
  }

}

@media (max-width: 719px) {

  .teacher-free-content__grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .teacher-free-content__item {
    min-height: 92px;

    padding: 14px;

    align-items: flex-start;
  }

  .teacher-free-content__copy strong {
    font-size: .84rem;
  }

  .teacher-free-content__copy > span {
    font-size: .72rem;
  }

}

@media (max-width: 390px) {

  .teacher-free-content__grid {
    grid-template-columns: 1fr;
  }

}

/* ==================================================
   EDUKI – DEZENTE REDAKTIONELLE SIDEBAR
   QR-Bereich bleibt visuell klar dominant
================================================== */

.teacher-topic-sidebar {
  margin-top: 48px;
}

.upgrade-preview {
  margin: 0;
  padding: 0;

  border: 0;
  background: transparent;
}


/* ==================================================
   HEADER
================================================== */

.teacher-eduki-head {
  margin-bottom: 24px;
}

.teacher-eduki-eyebrow {
  display: block;
  margin-bottom: 6px;

  color: var(--teacher-accent);

  font-size: .60rem;
  font-weight: 700;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.teacher-eduki-head h2 {
  margin: 0;

  color: var(--topic-text);

  font-size: 1.05rem;
  line-height: 1.2;

  font-weight: 680;
  letter-spacing: -.025em;
}

.teacher-eduki-head p {
  margin: 7px 0 0;

  color: var(--topic-text-secondary);

  font-size: .80rem;
  line-height: 1.45;
}


/* ==================================================
   PRODUCT LIST
================================================== */

.upgrade-preview__grid {
  display: flex;
  flex-direction: column;

  gap: 0;
}


/* ==================================================
   PRODUCT
================================================== */

.upgrade-preview__card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  align-items: center;

  padding: 0 0 24px;
  margin: 0 0 24px;

  border: 0;
  border-bottom: 1px solid var(--topic-border-soft);
  border-radius: 0;

  background: transparent;
  color: inherit;

  text-decoration: none;

  box-shadow: none;

  transition: none;
}

.upgrade-preview__card:last-child {
  margin-bottom: 0;
  padding-bottom: 0;

  border-bottom: 0;
}


/* kein Hover-Look */

.upgrade-preview__card:hover {
  border-color: var(--topic-border-soft);
  box-shadow: none;
}


/* ==================================================
   PRODUKTBILD
   kein grauer Kasten mehr
================================================== */

.upgrade-preview__media {
  position: relative;

  width: 110px;
  height: 145px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: visible;

  border-radius: 0;

  background: transparent;
}

.upgrade-preview__img {
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;
}

.upgrade-preview__img img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: contain;

  filter:
    drop-shadow(0 5px 12px rgba(0, 0, 0, .05));
}

.upgrade-preview__fallback {
  width: 100%;
  height: 100%;

  background: transparent;
}


/* ==================================================
   BADGE RAUS
================================================== */

.upgrade-preview__badge {
  display: none;
}


/* ==================================================
   TEXT
================================================== */

.upgrade-preview__meta {
  min-width: 0;

  padding: 0;
}

.upgrade-preview__cardTitle {
  margin: 0;

  color: var(--topic-text);

  font-size: .88rem;
  font-weight: 650;
  line-height: 1.3;

  letter-spacing: -.015em;
}

.upgrade-preview__cardDesc {
  margin: 6px 0 0;

  color: var(--topic-text-secondary);

  font-size: .76rem;
  line-height: 1.45;
}


/* dezenter Link */

.upgrade-preview__meta::after {
  content: "Bei Eduki ansehen ↗";

  display: block;

  margin-top: 9px;

  color: var(--teacher-accent);

  font-size: .72rem;
  font-weight: 600;
  line-height: 1.3;
}


/* ==================================================
   DESKTOP – QR HAUPTBEREICH DOMINANT
================================================== */

@media (min-width: 1080px) {

  .teacher-topic-layout {
    grid-template-columns:
      minmax(0, 780px)
      minmax(240px, 285px);

    gap: 72px;

    justify-content: center;
  }

  .teacher-topic-sidebar {
    position: sticky;
    top: 110px;

    margin-top: 0;

    padding-left: 38px;

    border-left:
      1px solid rgba(0, 0, 0, .065);
  }

}