
/* =========================================================
   1. GOOGLE FONTS
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');


/* =========================================================
   2. FARBPALETTE & VARIABLEN
   ========================================================= */

:root {
  /* Fiat Language: Heidelbeer-Palette */
  --midnight-blue: #1E1F26;
  --indigo-ink: #283655;
  --blueberry: #4D648D;
  --periwinkle: #D0E1F9;

  /* Abgeleitete Text- und Effektfarben */
  --ink: var(--midnight-blue);
  --ink-soft: #34496a;
  --paper: #edf4ff;
  --surface: #ffffff;
  --sand: var(--periwinkle);
  --accent: var(--blueberry);
  --line: #c4d4eb;
  --muted: #52647d;
}


/* =========================================================
   3. GRUNDEINSTELLUNGEN
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', Arial, sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--periwinkle);
  outline-offset: 4px;
}


/* =========================================================
   4. TYPOGRAFIE
   ========================================================= */

h1,
h2,
h3,
.brand,
.nav-link,
.eyebrow,
.button {
  font-family: 'Cinzel', Georgia, serif;
}

h1,
h2,
h3 {
  font-weight: 500;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.75rem, 6.6vw, 6rem);
  letter-spacing: 0.025em;
  margin: 0.2em 0;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.9rem);
  margin: 0 0 1.2rem;
}

h3 {
  font-size: 1.18rem;
  margin: 0.3rem 0 0.7rem;
}

p {
  margin: 0 0 1rem;
}


/* =========================================================
   5. CONTAINER
   ========================================================= */

.container {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}


/* =========================================================
   6. HEADER & NAVIGATION
   ========================================================= */

.site-header {
  background: var(--midnight-blue);
  color: var(--periwinkle);
  border-bottom: 1px solid rgba(208, 225, 249, 0.17);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 8px 35px #1e1f2614;
}

.nav-wrap {
  display: flex;
  align-items: center;
  min-height: 88px;
  gap: 26px;
}

.brand {
  font-size: 1.55rem;
  letter-spacing: 0.065em;
  font-weight: 600;
  white-space: nowrap;
  color: #fff;
}

.brand span {
  color: var(--periwinkle);
}

.nav-links {
  display: flex;
  gap: clamp(13px, 2.2vw, 33px);
  align-items: center;
  justify-content: flex-end;
  flex: 1;
}

.nav-link {
  font-family: 'DM Sans', sans-serif;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  font-weight: 700;
  white-space: nowrap;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  color: #e4edfc;
  transition: color 0.2s, border-color 0.2s;
}

.nav-link:hover,
.nav-link[aria-current=page] {
  border-bottom-color: var(--periwinkle);
  color: #fff;
}

.menu-button {
  display: none;
  border: 1px solid #8498b4;
  background: transparent;
  color: #fff;
  font-size: 1.6rem;
  padding: 0.1em 0.5em;
  cursor: pointer;
}


/* =========================================================
   7. STARTSEITE – HERO
   ========================================================= */

.hero {
  background:
    radial-gradient(
      ellipse at 87% 33%,
      #4d648d78 0,
      transparent 38%
    ),
    linear-gradient(
      125deg,
      var(--midnight-blue) 10%,
      var(--indigo-ink) 70%,
      #344c70 100%
    );

  color: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  width: min(59vw, 690px);
  aspect-ratio: 1;
  border: 1px solid #d0e1f93d;
  border-radius: 50%;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  box-shadow:
    0 0 0 60px #d0e1f90b,
    0 0 0 132px #d0e1f908;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  right: 14%;
  top: 17%;
  background: radial-gradient(
    circle at 30% 30%,
    #d0e1f949,
    transparent 65%
  );
  filter: blur(28px);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  padding: clamp(105px, 13vw, 174px) 0;
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.26em;
  font-weight: 600;
  color: var(--indigo-ink);
  display: inline-block;
}

.hero .eyebrow {
  color: var(--periwinkle);
  border-left: 2px solid var(--periwinkle);
  padding-left: 16px;
}

.hero h1 {
  max-width: 860px;
  text-shadow: 0 2px 18px #11162833;
}

.hero-lede {
  font-size: clamp(1.09rem, 2.1vw, 1.38rem);
  color: #e0eafb;
  max-width: 650px;
  line-height: 1.8;
}


/* =========================================================
   8. BUTTONS
   ========================================================= */

.button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 25px;
  background: var(--periwinkle);
  border: 1px solid var(--periwinkle);
  color: var(--indigo-ink);
  font-size: 0.77rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  transition:
    transform 0.2s,
    background 0.2s,
    border-color 0.2s;
  margin-top: 20px;
}

.button:hover {
  transform: translateY(-3px);
  background: #fff;
  border-color: #fff;
}

.button.outline {
  background: var(--indigo-ink);
  color: white;
  border-color: var(--indigo-ink);
}

.button.outline:hover {
  background: var(--blueberry);
  border-color: var(--blueberry);
}


/* =========================================================
   9. SEKTIONEN
   ========================================================= */

.section {
  padding: clamp(70px, 9vw, 118px) 0;
  background: var(--paper);
}

.section.alt {
  background: var(--periwinkle);
  position: relative;
}

.section-intro {
  max-width: 690px;
  margin-bottom: 36px;
  color: var(--ink-soft);
}


/* =========================================================
   10. GRID & KARTEN
   ========================================================= */

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blueberry);
  padding: 32px;
  display: flex;
  flex-direction: column;
  min-height: 290px;
  transition:
    transform 0.22s,
    box-shadow 0.22s,
    border-color 0.22s;
  box-shadow: 0 8px 28px #2836550b;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--blueberry);
  box-shadow: 0 18px 40px #28365525;
}

.card .number {
  font-family: 'Cinzel', serif;
  color: var(--blueberry);
  font-size: 1.7rem;
}

.card p {
  color: var(--ink-soft);
  flex: 1;
}

.card .card-link {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--indigo-ink);
}


/* =========================================================
   11. UNTERSEITEN – PAGE HERO
   ========================================================= */

.page-hero {
  background:
    radial-gradient(
      circle at 88% 30%,
      #4d648d83,
      transparent 33%
    ),
    linear-gradient(
      120deg,
      var(--midnight-blue),
      var(--indigo-ink)
    );

  color: #fff;
  padding: 85px 0 92px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  border: 1px solid #d0e1f932;
  border-radius: 50%;
  height: 360px;
  width: 360px;
  right: -70px;
  top: -100px;
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.6rem);
}

.page-hero p {
  color: #e0eafb;
  max-width: 700px;
  font-size: 1.1rem;
}

.page-hero .eyebrow {
  color: var(--periwinkle);
}


/* =========================================================
   12. BREADCRUMBS
   ========================================================= */

.breadcrumbs {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: #c8d9f4;
  margin-bottom: 25px;
}

.breadcrumbs a {
  text-decoration: underline;
  text-underline-offset: 4px;
}


/* =========================================================
   13. TEXT-PANELS
   ========================================================= */

.text-panel {
  background: #fff;
  border-left: 5px solid var(--blueberry);
  padding: 36px;
  max-width: 830px;
  box-shadow: 0 15px 40px #28365516;
}


/* =========================================================
   14. VIDEOS
   ========================================================= */

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.video-card {
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 8px 28px #2836550e;
}

.video-frame {
  aspect-ratio: 16 / 9;
  background: var(--indigo-ink);
  display: grid;
  place-items: center;
  color: var(--periwinkle);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  padding: 24px;
  text-align: center;
  color: var(--periwinkle);
}

.video-copy {
  padding: 24px;
}

.video-copy p {
  color: var(--ink-soft);
}

.video-fallback {
  display: inline-block;
  margin-top: 12px;
  color: #283655;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.91rem;
}


/* =========================================================
   15. HINWEISBOXEN
   ========================================================= */

.notice {
  padding: 20px 24px;
  background: var(--periwinkle);
  color: var(--indigo-ink);
  border-left: 4px solid var(--blueberry);
  margin: 22px 0;
}


/* =========================================================
   16. FLIESSTEXT
   ========================================================= */

.body-copy {
  max-width: 800px;
}

.body-copy h2 {
  font-size: 1.7rem;
  margin: 2rem 0 0.7rem;
}

.body-copy a {
  text-decoration: underline;
}


/* =========================================================
   17. TAGS
   ========================================================= */

.tag {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--blueberry);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 15px;
  color: var(--indigo-ink);
  background: #d0e1f966;
}


/* =========================================================
   18. FOOTER
   ========================================================= */

.site-footer {
  background: var(--midnight-blue);
  color: var(--periwinkle);
  padding: 48px 0;
  border-top: 4px solid var(--blueberry);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.footer-brand {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  color: #fff;
}

.footer-meta {
  display: flex;
  gap: 22px;
  font-size: 0.9rem;
  color: var(--periwinkle);
}

.footer-meta a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-meta a:hover {
  color: #fff;
}


/* =========================================================
   19. RESPONSIVE – TABLET
   ========================================================= */

@media (max-width: 950px) {

  .nav-wrap {
    min-height: 76px;
    flex-wrap: wrap;
  }

  .menu-button {
    display: block;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 0 18px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-link {
    padding: 14px 6px;
    border-bottom: 1px solid #d0e1f930;
  }

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


/* =========================================================
   20. RESPONSIVE – SMARTPHONE
   ========================================================= */

@media (max-width: 650px) {

  .grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 220px;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-inner {
    padding: 95px 0;
  }

  .hero::before {
    width: 86vw;
    right: -45%;
    opacity: 0.6;
  }

  .section {
    padding: 65px 0;
  }

  .container {
    width: min(1160px, calc(100% - 34px));
  }

  .brand {
    font-size: 1.35rem;
  }

  .text-panel {
    padding: 25px;
  }
}


/* =========================================================
   21. BARRIEREFREIHEIT – REDUZIERTE BEWEGUNG
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}


/* ==========================================
   EIN VIDEO – GOLDENER SCHNITT
   ========================================== */

.video-grid {
  display: block;
  width: 61.8%;
  max-width: 100%;
  margin: 0 auto;
}

.video-card {
  width: 100%;
}

.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Smartphone und Tablet */
@media (max-width: 768px) {
  .video-grid {
    width: 100%;
  }
}


/* ==========================================
   FIAT LANGUAGE – EINHEITLICHE LEKTIONSKARTEN
   ========================================== */

.lektion-karte {
  display: block;
  width: 61.8%;
  max-width: 100%;
  margin: 50px auto 70px;
  padding: 0;

  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blueberry);
  box-shadow: 0 12px 35px #28365514;
  overflow: hidden;
}

/* Überschrift */

.lektion-kopf {
  padding: 28px 30px;
}

.lektion-label {
  display: block;
  color: var(--blueberry);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.lektion-kopf h3 {
  color: var(--indigo-ink);
  font-size: 1.5rem;
  margin: 0 0 10px;
}

.lektion-kopf p {
  color: var(--muted);
  margin: 0;
}

/* Video */

.lektion-video {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--indigo-ink);
}

.lektion-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

/* Materialbereich */

.lektion-material {
  padding: 28px 30px;
}

.material-zeile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.material-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.material-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--paper);
  color: var(--indigo-ink);
  font-weight: 700;
}

.material-info h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  color: var(--indigo-ink);
  margin: 0 0 5px;
}

.material-info p {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

/* PDF-Download */

.material-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  background: var(--indigo-ink);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.material-button:hover {
  background: var(--blueberry);
  color: #ffffff;
}

/* Audiobereich */

.lektion-audio {
  padding-top: 28px;
}

.lektion-audio audio {
  display: block;
  width: 100%;
  margin: 22px 0 18px;
}

.audio-download {
  display: block;
  width: fit-content;
  margin: 12px auto 10px;
  color: var(--indigo-ink);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Tablet */

@media (max-width: 950px) {
  .lektion-karte {
    width: 85%;
  }
}

/* Smartphone */

@media (max-width: 650px) {
  .lektion-karte {
    width: 100%;
    margin: 35px auto 50px;
  }

  .lektion-kopf,
  .lektion-material {
    padding: 22px 18px;
  }

  .material-zeile {
    flex-direction: column;
    align-items: stretch;
  }

  .material-button {
    width: 100%;
  }
}


/* ==========================================
   SPANISCHKURS – FEINSCHLIFF FÜR ALLE VIDEOS
   ========================================== */

.lektionen-liste {
  margin-top: 60px;
}

.lektion-karte {
  border-radius: 6px;
}

.lektion-karte .lektion-video {
  overflow: hidden;
}

.lektion-karte .lektion-video iframe {
  vertical-align: top;
}

.lektion-karte .material-zeile,
.lektion-karte .material-info,
.lektion-karte .lektion-audio {
  min-width: 0;
}

.lektion-karte .material-button {
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.lektion-karte .material-button:hover {
  transform: translateY(-2px);
}

.lektion-karte .audio-download:hover {
  color: var(--blueberry);
}

@media (max-width: 650px) {
  .lektionen-liste {
    margin-top: 40px;
  }

  .lektion-karte .lektion-kopf h3 {
    font-size: 1.25rem;
  }

  .lektion-karte .material-button {
    white-space: normal;
  }
}

/* ==========================================
   SPANISCH – TAG 21: AUDIO-HINWEIS
   ========================================== */

.lektion-karte .audio-hinweis {
  margin: 20px 0 24px;
  padding: 18px 22px;
  background: var(--paper);
  border-left: 4px solid var(--blueberry);
  border-radius: 8px;
  color: var(--indigo-ink);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 500;
}

/* ==========================================
   EINZELSEITEN – KONTAKT, METHODE, TRIVIUM
   ========================================== */

.kontakt-email {
  color: #8d5a42;
}

.methode-video-bereich {
  margin-top: 58px;
}

.trivium-video-bereich {
  margin-top: 60px;
}

.spanisch-weiterleitung {
  padding: 3rem 1rem;
}

/* =========================================================
   STARTSEITE – FREIWILLIG UNTERSTÜTZEN & EINSENDEN
   ========================================================= */
.community-section { background: var(--paper); }
.community-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.community-card { display: flex; flex-direction: column; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--blueberry); padding: clamp(26px, 4vw, 42px); box-shadow: 0 12px 35px #28365512; }
.community-symbol { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; background: var(--paper); color: var(--indigo-ink); font-size: 1.8rem; line-height: 1; }
.community-card h3 { color: var(--indigo-ink); margin-bottom: 14px; }
.community-card p { color: var(--ink-soft); flex: 1; }
.community-button { margin-top: 20px; text-align: center; justify-content: center; }
@media (max-width: 650px) {
  .community-grid { grid-template-columns: 1fr; }
  .community-button { width: 100%; font-size: 0.7rem; padding-inline: 12px; }
}

/* =========================================================
   TRIVIUM – BUCH UND NAVIGATION (ohne JavaScript)
   ========================================================= */
.trivium-mobile-nav { display: none; }
.trivium-book-section {
  background: linear-gradient(180deg, #f2f6fc 0%, #eaf1fb 100%);
}
.trivium-book-intro {
  max-width: 720px;
  margin: 0 auto 42px;
  text-align: center;
}
.trivium-book-intro .eyebrow { color: var(--blueberry); }
.trivium-book-intro h2 { margin: 12px 0 14px; }
.trivium-book-intro p { font-size: 1.05rem; color: var(--ink-soft); margin: 0; }
.trivium-book {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 55px rgba(40,54,85,0.10);
  max-width: 1040px;
  margin: 0 auto;
  overflow: hidden;
}
.trivium-book-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 5vw, 56px);
  background: linear-gradient(155deg, #dce7f8, #f3f7fe);
  min-width: 0;
}
.trivium-book-visual img {
  display: block;
  width: min(100%, 285px);
  height: auto;
  aspect-ratio: 500 / 730;
  object-fit: contain;
  box-shadow: 10px 15px 28px rgba(30,31,38,0.24);
}
.trivium-book-content {
  padding: clamp(28px, 5vw, 62px);
  min-width: 0;
}
.trivium-book-kicker {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--blueberry);
}
.trivium-book-content h3 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--indigo-ink);
  margin: 15px 0 10px;
}
.trivium-book-original-title {
  font-family: Georgia, serif;
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  line-height: 1.45;
  color: var(--indigo-ink);
  margin: 0 0 10px;
}
.trivium-book-author { font-size: .94rem; font-weight: 700; color: var(--muted); margin-bottom: 0; }
.trivium-book-rule { width: 54px; height: 3px; background: var(--blueberry); margin: 25px 0; }
.trivium-book-content > p:not(.trivium-book-original-title):not(.trivium-book-author) { color: var(--ink-soft); }
@media (max-width: 950px) {
  .trivium-desktop-nav { display: none; }
  .trivium-mobile-nav { display: block; margin-left: auto; position: relative; }
  .trivium-mobile-nav summary {
    list-style: none;
    cursor: pointer;
    border: 1px solid #8599b7;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: .9rem;
    color: #fff;
  }
  .trivium-mobile-nav summary::-webkit-details-marker { display: none; }
  .trivium-mobile-nav summary span { margin-left: 8px; }
  .trivium-mobile-nav nav {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background: var(--midnight-blue);
    border: 1px solid #556782;
    box-shadow: 0 15px 30px rgba(0,0,0,.2);
    border-radius: 10px;
    min-width: 210px;
    padding: 7px;
    z-index: 12;
  }
  .trivium-mobile-nav nav a { display: block; padding: 10px 13px; border-radius: 5px; font-size: .9rem; }
  .trivium-mobile-nav nav a:hover, .trivium-mobile-nav nav a[aria-current=page] { background: var(--indigo-ink); }
}
@media (max-width: 700px) {
  .trivium-book { grid-template-columns: minmax(0, 1fr); }
  .trivium-book-visual { padding: 34px 24px; }
  .trivium-book-visual img { width: min(58%, 240px); }
  .trivium-book-content { padding: 30px 25px 35px; }
  .trivium-book-intro { margin-bottom: 26px; }
  .trivium-book-intro h2 { font-size: clamp(1.85rem, 6vw, 2.5rem); }
}
@media (max-width: 370px) {
  .trivium-book-visual img { width: 72%; }
  .trivium-book-content { padding-inline: 18px; }
}


/* =========================================================
   SPANISCH – PAGINIERUNG ZWISCHEN ECHTEN HTML-UNTERSEITEN
   Alle vier Videoseiten verwenden ausschließlich diese Regeln.
   ========================================================= */

.spanisch-seiten-info {
  text-align: center;
  color: var(--muted);
  margin: 0 0 22px;
}

.spanisch-paginierung {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 9px;
  max-width: 670px;
  margin: 26px auto 54px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(40, 54, 85, 0.07);
}

.spanisch-paginierung .spanisch-page {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 46px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--indigo-ink);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
}

.spanisch-paginierung a.spanisch-page:hover,
.spanisch-paginierung a.spanisch-page:focus-visible {
  color: #fff;
  background: var(--blueberry);
  border-color: var(--blueberry);
}

.spanisch-paginierung .spanisch-page.is-current {
  color: #fff;
  background: var(--indigo-ink);
  border-color: var(--indigo-ink);
}

.spanisch-paginierung .spanisch-page.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.spanisch-paginierung .spanisch-page-arrow {
  min-width: 100px;
}

.spanisch-leere-seite {
  max-width: 640px;
  margin: 38px auto 56px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
}

.spanisch-leere-seite h3 {
  color: var(--indigo-ink);
}

.spanisch-leere-seite p {
  color: var(--muted);
  margin-bottom: 0;
}

@media (max-width: 650px) {
  .spanisch-paginierung {
    gap: 6px;
    padding: 10px;
  }

  .spanisch-paginierung .spanisch-page {
    min-width: 42px;
    min-height: 42px;
    padding: 7px 10px;
  }

  .spanisch-paginierung .spanisch-page-arrow {
    min-width: auto;
  }

  .spanisch-leere-seite {
    padding: 24px 18px;
  }
}

/* =========================================================
   FOOTER – KONTAKT LINKS UNTER DEM MARKENNAMEN
   Kontakt ist bewusst nicht mehr Teil der Hauptnavigation.
   ========================================================= */
.footer-contact-link {
  display: block;
  width: fit-content;
  margin-top: 12px;
  color: var(--periwinkle);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-contact-link:hover,
.footer-contact-link:focus-visible {
  color: #fff;
}

/* =========================================================
   LERNEN – ÜBERSICHT UND THEMENSEITEN
   Sämtliche Formatierungen der neuen Lernbereiche sind hier.
   ========================================================= */
.home-bereiche-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lernen-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lern-kategorie {
  min-height: 280px;
}

.lern-sammlung {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.lern-leerhinweis,
.lern-eintrag {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blueberry);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: 0 8px 28px #2836550e;
  min-width: 0;
}

.lern-leerhinweis p,
.lern-eintrag p {
  color: var(--ink-soft);
  margin-bottom: 0;
}

.lern-status {
  display: block;
  margin-bottom: 12px;
  color: var(--blueberry);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.lern-eintrag h3 {
  color: var(--indigo-ink);
  font-size: 1.4rem;
  margin: 0 0 12px;
}

.lern-link,
.lern-zurueck {
  display: inline-block;
  margin-top: 24px;
  color: var(--indigo-ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.lern-link:hover,
.lern-zurueck:hover {
  color: var(--blueberry);
}

.lern-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 22px;
  background: var(--indigo-ink);
}

.lern-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 950px) {
  .home-bereiche-grid,
  .lernen-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .home-bereiche-grid,
  .lernen-grid,
  .lern-sammlung {
    grid-template-columns: minmax(0, 1fr);
  }

  .lern-kategorie {
    min-height: 220px;
  }
}


/* =========================================================
   LERNEN / FILME – ABWECHSELNDE FILMPLAKATE
   Nur für lernen/filme/index.html. Alle Gestaltungen in CSS.
   ========================================================= */
.filme-section {
  overflow: hidden;
}

.filme-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(36px, 6vw, 70px);
}

.filme-intro h2 {
  margin: 10px 0 18px;
}

.filme-intro p {
  color: var(--ink-soft);
  max-width: 680px;
  margin: 0;
}

.filme-gesamt {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 500;
  line-height: 1;
  color: var(--blueberry);
}

.filme-gesamt small {
  margin-top: 8px;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.filme-liste {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 48px);
}

.filme-karte {
  display: grid;
  grid-template-columns: minmax(140px, 190px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 3vw, 35px);
  width: min(100%, 660px);
  padding: clamp(18px, 2.7vw, 28px);
  margin-right: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blueberry);
  box-shadow: 0 14px 38px rgba(40, 54, 85, 0.10);
  min-width: 0;
}

.filme-karte:nth-child(even) {
  margin-right: 0;
  margin-left: auto;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 190px);
}

.filme-karte:nth-child(even) .filme-plakat {
  grid-column: 2;
  grid-row: 1;
}

.filme-karte:nth-child(even) .filme-inhalt {
  grid-column: 1;
  grid-row: 1;
}

.filme-plakat {
  display: block;
  min-width: 0;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(30, 31, 38, 0.13);
}

.filme-plakat img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: contain;
}

.filme-inhalt {
  min-width: 0;
}

.filme-nummer {
  display: block;
  margin-bottom: 16px;
  color: var(--blueberry);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.filme-von {
  color: var(--muted);
}

.filme-inhalt h3 {
  color: var(--indigo-ink);
  font-size: clamp(1.45rem, 2.35vw, 2rem);
  line-height: 1.25;
  overflow-wrap: break-word;
  margin: 0 0 20px;
}

.filme-accent {
  display: block;
  width: 50px;
  height: 3px;
  margin-bottom: 22px;
  background: var(--blueberry);
}

.filme-abschluss {
  margin-top: clamp(34px, 6vw, 70px);
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}

.filme-abschluss p {
  color: var(--muted);
  margin: 0;
}

@media (max-width: 700px) {
  .filme-intro {
    align-items: flex-start;
  }

  .filme-karte,
  .filme-karte:nth-child(even) {
    grid-template-columns: minmax(105px, 155px) minmax(0, 1fr);
    gap: 20px;
    margin-inline: auto;
  }

  .filme-karte:nth-child(even) .filme-plakat {
    grid-column: 1;
    grid-row: 1;
  }

  .filme-karte:nth-child(even) .filme-inhalt {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 430px) {
  .filme-intro {
    gap: 12px;
  }

  .filme-gesamt {
    font-size: 2.4rem;
  }

  .filme-karte,
  .filme-karte:nth-child(even) {
    grid-template-columns: minmax(95px, 120px) minmax(0, 1fr);
    gap: 14px;
    padding: 13px;
  }

  .filme-nummer {
    margin-bottom: 9px;
  }

  .filme-inhalt h3 {
    font-size: 1.12rem;
    margin-bottom: 13px;
  }

  .filme-accent {
    margin-bottom: 12px;
  }

}


/* =========================================================
   LERNEN / BÜCHEREI – BUCHVORSTELLUNGEN
   Inspiriert von der Trivium-Buchvorstellung und der Filmsammlung.
   Die Bücher stehen abwechselnd links/rechts, mit wechselnder
   Position von Buchcover und Text. Alle Regeln bleiben in style.css.
   ========================================================= */
.buecher-section {
  overflow: hidden;
}

.buecher-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(38px, 6vw, 70px);
}

.buecher-intro h2 {
  margin: 10px 0 18px;
}

.buecher-intro p {
  max-width: 720px;
  color: var(--ink-soft);
  margin: 0;
}

.buecher-gesamt {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  color: var(--blueberry);
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1;
  font-weight: 500;
}

.buecher-gesamt small {
  margin-top: 8px;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: .73rem;
  letter-spacing: .22em;
  font-weight: 700;
}

.buecher-liste {
  display: flex;
  flex-direction: column;
  gap: clamp(30px, 4.5vw, 58px);
}

.buecher-karte {
  display: grid;
  grid-template-columns: minmax(200px, 35%) minmax(0, 1fr);
  width: min(100%, 920px);
  align-items: stretch;
  margin-right: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blueberry);
  box-shadow: 0 15px 40px rgba(40, 54, 85, .10);
  min-width: 0;
  overflow: hidden;
}

/* Jede zweite Buchkarte rechts ausrichten – Bild ebenfalls rechts. */
.buecher-karte:nth-child(even) {
  margin-left: auto;
  margin-right: 0;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 35%);
}

.buecher-karte:nth-child(even) .buecher-visual {
  grid-column: 2;
  grid-row: 1;
}

.buecher-karte:nth-child(even) .buecher-content {
  grid-column: 1;
  grid-row: 1;
}

.buecher-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: clamp(24px, 3.5vw, 42px);
  background: linear-gradient(155deg, #dce7f8, #f3f7fe);
}

.buecher-visual img {
  display: block;
  width: min(100%, 252px);
  height: auto;
  max-height: 370px;
  object-fit: contain;
  box-shadow: 8px 12px 25px rgba(30, 31, 38, .22);
}

.buecher-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 50px);
  min-width: 0;
}

.buecher-nummer {
  display: block;
  margin-bottom: 15px;
  color: var(--blueberry);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.buecher-von {
  color: var(--muted);
}

.buecher-kategorie {
  color: var(--blueberry);
  font-weight: 700;
  font-size: .71rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.buecher-content h3 {
  margin: 0 0 12px;
  color: var(--indigo-ink);
  font-size: clamp(1.52rem, 2.6vw, 2.4rem);
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.buecher-untertitel {
  margin: 0 0 10px;
  color: var(--indigo-ink);
  font-family: Georgia, serif;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  line-height: 1.4;
}

.buecher-autor {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 700;
}

.buecher-linie {
  width: 54px;
  height: 3px;
  background: var(--blueberry);
  margin: 24px 0;
  flex-shrink: 0;
}

.buecher-beschreibung {
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0;
}

.buecher-abschluss {
  border-top: 1px solid var(--line);
  margin-top: clamp(34px, 6vw, 70px);
  padding-top: 24px;
}

.buecher-abschluss p {
  color: var(--muted);
  margin: 0;
}

@media (max-width: 700px) {
  .buecher-karte,
  .buecher-karte:nth-child(even) {
    width: 100%;
    margin-inline: auto;
    grid-template-columns: minmax(0, 1fr);
  }
  .buecher-karte:nth-child(even) .buecher-visual,
  .buecher-karte:nth-child(even) .buecher-content {
    grid-column: 1;
  }
  .buecher-karte:nth-child(even) .buecher-visual {
    grid-row: 1;
  }
  .buecher-karte:nth-child(even) .buecher-content {
    grid-row: 2;
  }
  .buecher-visual {
    padding: 30px 20px;
  }
  .buecher-visual img {
    width: min(56%, 220px);
    max-height: 320px;
  }
  .buecher-content {
    padding: 28px 25px 32px;
  }
}

@media (max-width: 430px) {
  .buecher-intro {
    gap: 12px;
  }
  .buecher-gesamt {
    font-size: 2.4rem;
  }
  .buecher-content h3 {
    font-size: 1.55rem;
  }
  .buecher-visual img {
    width: min(60%, 200px);
  }
}

/* =========================================================
   LERNEN / ZEHN-FINGER-SYSTEM – TIPP10 ABBILDUNG & PDF
   ========================================================= */
.tipp10-karte {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blueberry);
  box-shadow: 0 15px 40px rgba(40, 54, 85, .10);
  overflow: hidden;
}

.tipp10-abbildung {
  margin: 0;
  padding: clamp(24px, 3.5vw, 44px);
  min-width: 0;
  background: linear-gradient(155deg, #dce7f8, #f3f7fe);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.tipp10-abbildung img {
  display: block;
  width: 100%;
  max-width: 500px;
  height: auto;
  border: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(30, 31, 38, .15);
}

.tipp10-abbildung figcaption {
  color: var(--muted);
  font-size: .85rem;
  text-align: center;
}

.tipp10-inhalt {
  padding: clamp(28px, 4vw, 50px);
  min-width: 0;
}

.tipp10-inhalt h3 {
  color: var(--indigo-ink);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 8px 0 16px;
}

.tipp10-inhalt h4 {
  color: var(--indigo-ink);
  font-size: 1.17rem;
  margin: 0 0 12px;
}

.tipp10-inhalt p {
  color: var(--ink-soft);
}

.tipp10-download {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 12px 22px;
  margin-top: 12px;
  background: var(--indigo-ink);
  color: #fff;
  font-weight: 700;
  border: 1px solid var(--indigo-ink);
  transition: background .2s, color .2s;
}

.tipp10-download:hover,
.tipp10-download:focus-visible {
  background: var(--blueberry);
  border-color: var(--blueberry);
  color: #fff;
}

.tipp10-inhalt .tipp10-dateiinfo {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .83rem;
}

@media (max-width: 800px) {
  .tipp10-karte {
    grid-template-columns: minmax(0, 1fr);
  }
  .tipp10-abbildung { padding: 30px 20px; }
  .tipp10-inhalt { padding: 28px 25px 34px; }
}

/* Eingebettete Tipp10-Videoanleitung oberhalb der Programmabbildung */
.tipp10-video-karte {
  max-width: 820px;
  margin: 0 auto clamp(24px, 4vw, 40px);
}
