/* ============================================================
   🎓 Modul-Layout (Hero + YouTube-Video + Materialien)
   Stil: schulspanisch.de (optimiert)
   ============================================================ */

:root {
  --bg-page: #f5f7fa;
  --bg-section: #ffffff;
  --text: #1f2937;
  --muted: #4b5563;
  --accent-yellow: #fdd835;
  --accent-blue: #0d47a1;
  --accent-red: #ff6f61;

  --max-width: 1080px;
  --shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

/* =========================
   HERO
   ========================= */

.site-header {
  background: #f5f7fb;
  padding: 3rem 1.5rem;
  width: 100vw;
}

.container.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-text h1 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.hero-text h1 mark {
  background: var(--accent-yellow);
  color: #111;
  padding: 0.2em 0.4em;
}

.hero-text p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.hero-media {
  text-align: right;
}

.hero-media img {
  width: 100%;
  max-width: 320px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

/* =========================
   BUTTONS (eckig + weiß)
   ========================= */

.btn {
  display: inline-block;
  border: none;
  border-radius: 0; /* kein Radius */
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-red);
  color: #fff !important;
}

.btn-primary:hover {
  background: #e53935;
  text-decoration: none !important;
}

.btn-outline {
  display: inline-block;
  border: 1px solid #000; /* dünner schwarzer Rahmen */
  border-radius: 0;
  background: #fff;
  color: #000 !important;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.btn-outline:hover {
  background: #dcdcdc;
  text-decoration: none !important;
}


/* =========================
   VIDEO SECTION (YouTube)
   ========================= */





/* =========================
   MATERIALIEN
   ========================= */

.module-materials {
  background: var(--bg-page);
  padding: 3rem 1.5rem;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.module-materials .container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.module-materials .section-title {
  margin-bottom: 0.5rem;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 740px) {
  .container.hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-media {
    text-align: center;
  }

  .hero-media img {
    max-width: 260px;
  }

  .hero-text h1 {
    font-size: 1.6rem;
  }

  .video-wrapper {
    max-width: 100%;
  }
}

/* =========================
   DARK MODE
   ========================= */

@media (prefers-color-scheme: dark) {
  :root {
    --bg-page: #0f1923;
    --bg-section: #1c2733;
    --text: #fdfdfd;
    --muted: #d0d0d0;
    --shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  }

  body {
    background: var(--bg-page);
    color: var(--text);
  }

  .site-header,
  .module-materials {
    background: var(--bg-page);
  }

  .video-section {
    background: var(--bg-section);
  }

  .hero-text h1,
  .section-title {
    color: var(--text);
  }

  .hero-text p {
    color: var(--muted);
  }

  .btn-primary {
    background: var(--accent-red);
    color: #fff;
  }

  .btn-primary:hover {
  background: #e53935;
  }

  .video-wrapper iframe {
    box-shadow: var(--shadow);
  }
}

/* 🎬 Lernvideo: YouTube-Embed klar & groß */
/* 🎬 Video direkt eingebettet – ohne Wrapper */

.video-section {
  background: #eceef1;
  padding: 3rem 1.5rem;
  border-top: 1px solid #e5e7eb;
  text-align: center;
  width: 100vw;
}

.video-section .container {
  max-width: 1080px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.5rem;
}

/* Video direkt */
.module-video {
  width: 100%;
  max-width: 900px;     /* oder 1080px, falls du willst */
  height: 506px;        /* 16:9 Verhältnis zu 900px */
  border: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  background: #000;
  border-radius: 0;
}

/* 📱 Mobil */
@media (max-width: 740px) {
  .module-video {
    width: 90%;
    height: 56vw;       /* erhält 16:9-Verhältnis automatisch */
  }
}

/* 🌙 Dark Mode */
@media (prefers-color-scheme: dark) {
  .video-section {
    background: #1c2733;
    border-color: #2a3a4a;
  }

  .module-video {
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  }
}

/* ============================================================
   🧭 Footer – 100 % Bildschirmbreite, größere Icons
   ============================================================ */

.footer {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;            /* trick: zieht den Footer über Container hinaus */
  background: #f3f5f7;
  padding: 1.4rem 1rem 1.2rem;
  text-align: center;
  font-size: 0.85rem;
  color: #333;
  border-top: 1px solid #e0e0e0;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.04);
}

/* Social Media Icons */
.footer-social-media {
  margin-bottom: 0.8rem;
}

.footer-social-media a {
  color: #111;
  font-size: 1.6rem;              /* größere Icons */
  margin: 0 0.45rem;
  transition: transform 0.25s ease, color 0.25s ease;
}

.footer-social-media a:hover {
  color: #0d47a1;
  transform: translateY(-2px);
}

/* Footer-Links */
.footer p {
  margin: 0.3rem 0 0;
}

.footer a {
  color: #111;
  text-decoration: none;
  font-weight: 500;
}

.footer a:hover {
  color: #0d47a1;
  text-decoration: underline;
}

/* kein Strich zwischen Links */
.footer p a + a::before {
  content: " | ";
  color: #aaa;
}

/* 📱 Mobil */
@media (max-width: 740px) {
  .footer {
    font-size: 0.8rem;
    padding: 1.2rem 0.5rem 1rem;
  }

  .footer-social-media a {
    font-size: 1.8rem;            /* noch etwas größer auf Mobil */
    margin: 0 0.4rem;
  }
}

/* 🌙 Dark Mode */
@media (prefers-color-scheme: dark) {
  .footer {
    background: #1c2733;
    color: #f0f0f0;
    border-top: 1px solid #2a3a4a;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.4);
  }

  .footer a {
    color: #f0f0f0;
  }

  .footer a:hover {
    color: #fdd835;
  }

  .footer-social-media a {
    color: #f0f0f0;
  }

  .footer-social-media a:hover {
    color: #fdd835;
  }
}

@media (max-width: 740px) {
  .container.hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* 🔼 Bild nach oben */
  .hero-media {
    order: -1;
    text-align: center;
  }

  .hero-media img {
    max-width: 260px;
    margin-bottom: 1rem;
  }

  .hero-text h1 {
    font-size: 1.6rem;
  }

  .video-wrapper {
    max-width: 100%;
  }
}

/* =========================================================
   Día de un Influencer – kompakter, linksbündiger Stil
   (scoped auf .influencer-lesson; ohne :root Variablen)
   ========================================================= */

/* Grundlayout (Light) */
.influencer-lesson {
  background: #ffffff;
  color: #1f2937;
  text-align: left;
  line-height: 1.6;
  font-size: clamp(15px, 1.6vw, 17px);
}

/* Headings */
.influencer-lesson h1,
.influencer-lesson h2 {
  margin: 0 0 .5rem;
  line-height: 1.25;
  letter-spacing: .2px;
}

.influencer-lesson h1 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
}

.influencer-lesson h2 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* Fließtext & Hinweise */
.influencer-lesson p {
  margin: .5rem 0 1rem;
  color: #1f2937;
}

.influencer-lesson .hint {
  margin-top: .25rem;
  font-size: .95em;
  color: #4b5563;
}

/* Karten/Container */
.influencer-lesson .task-container,
.influencer-lesson .cta {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  padding: 1rem 1.1rem;
  margin: 1rem 0;
}

/* Listen */
.influencer-lesson ul,
.influencer-lesson ol {
  margin: .25rem 0 .75rem 1.25rem;
  padding: 0;
}
.influencer-lesson li { margin: .35rem 0; }

/* Inline-Emphasis */
.influencer-lesson b,
.influencer-lesson strong { font-weight: 700; }
.influencer-lesson em,
.influencer-lesson i { font-style: italic; }

/* Links – klar erkennbar */
.influencer-lesson a {
  color: #0d47a1;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.influencer-lesson a:hover,
.influencer-lesson a:focus-visible {
  filter: brightness(1.1);
  text-decoration-thickness: 2px;
}

/* Icons (FontAwesome/Emoji) */
.influencer-lesson .icon {
  width: 1.25em;
  text-align: center;
}

/* Spacing zum Umfeld */
.influencer-lesson > * + * { margin-top: .75rem; }

/* Mobile Tuning */
@media (max-width: 640px) {
  .influencer-lesson .task-container,
  .influencer-lesson .cta {
    padding: .9rem .95rem;
    border-radius: 12px;
  }
  .influencer-lesson h2 { gap: .4rem; }
}

/* ========================
   Dark Mode Overrides
   ======================== */
@media (prefers-color-scheme: dark) {
  .influencer-lesson {
    background: #0f172a;
    color: #f3f4f6;
  }

  .influencer-lesson p { color: #f3f4f6; }
  .influencer-lesson .hint { color: #cbd5e1; }

  .influencer-lesson .task-container,
  .influencer-lesson .cta {
    background: #121b2f;
    border-color: #243044;
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
  }

  .influencer-lesson a { color: #7aa6ff; }
}

/* ============================================
   Stil für .creative-task (liegt in Eltern-Container)
   Links ausgerichtet, klar lesbar, mit Dark-Mode
   ============================================ */

.creative-task {
  text-align: left;
  color: #1f2937;
  line-height: 1.6;
  font-size: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.creative-task h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.creative-task h2 {
  font-size: 1.3rem;
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
}

.creative-task p {
  margin: 0.5rem 0 1rem;
}

.creative-task ul {
  margin: 0.4rem 0 1rem 1.2rem;
  padding: 0;
}

.creative-task li {
  margin: 0.3rem 0;
}

.creative-task .task-container,
.creative-task .cta {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin: 1rem 0;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

/* Link-Stil */
.creative-task a {
  color: #0d47a1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* =======================
   🌙 Dark Mode
   ======================= */
@media (prefers-color-scheme: dark) {
  .creative-task {
    color: #f3f4f6;
  }

  .creative-task .task-container,
  .creative-task .cta {
    background: #121b2f;
    border-color: #243044;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  }

  .creative-task a {
    color: #7aa6ff;
  }
}

/* ===============================
   Stil für .gustar-block (scoped)
   mit Tabellen, Badges & Dark Mode
   =============================== */

.gustar-block {
  text-align: left;
  line-height: 1.6;
  color: #1f2937;
}

.gustar-block summary {
  cursor: pointer;
  font-size: 1.1rem;
  margin-bottom: .5rem;
}

.gustar-block h3 {
  margin: 1rem 0 .4rem;
  font-size: 1.05rem;
}

.gustar-block p { margin: .4rem 0 .8rem; }

/* Badge */
.gustar-block .badge {
  display: inline-block;
  padding: .1rem .45rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #1e3a8a;
  font-size: .85em;
  border: 1px solid #c7d2fe;
}

/* Tabellen */
.gustar-block .table-container {
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(0,0,0,.06);
  margin: .6rem 0 1rem;
}

.gustar-block .table-container.compact table td,
.gustar-block .table-container.compact table th {
  padding: .55rem .7rem;
}

.gustar-block table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.gustar-block th, .gustar-block td {
  padding: .7rem .9rem;
  border-bottom: 1px solid #eef2f7;
  vertical-align: top;
  text-align: left;
}

.gustar-block th {
  background: #f8fafc;
  font-weight: 700;
}

/* Beispiele */
.gustar-block .example-list {
  display: grid;
  gap: .6rem;
}

.gustar-block .example {
  padding: .6rem .8rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
}

/* Trenner */
.gustar-block .section-divider {
  border: 0;
  height: 1px;
  background: #e5e7eb;
  margin: 1rem 0;
}

/* Links */
.gustar-block a {
  color: #0d47a1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  .gustar-block { color: #e5e7eb; }

  .gustar-block .table-container,
  .gustar-block .example {
    background: #121b2f;
    border-color: #243044;
    box-shadow: 0 8px 20px rgba(0,0,0,.4);
  }

  .gustar-block th {
    background: #0f1a2a;
  }

  .gustar-block .badge {
    background: #1c2a4a;
    border-color: #2b3d66;
    color: #cfe0ff;
  }

  .gustar-block .section-divider {
    background: #243044;
  }

  .gustar-block a { color: #7aa6ff; }
}

/* ====== Estilos para .vacaciones-task (scoped) con Dark Mode ====== */
.vacaciones-task {
  text-align: left;
  color: #1f2937;
  line-height: 1.6;
  font-size: 1rem;
  max-width: 860px;
  margin: 0 auto;
}

.vacaciones-task h2 {
  font-size: 1.6rem;
  margin: 0 0 .5rem;
}

.vacaciones-task h3 {
  font-size: 1.15rem;
  margin: .6rem 0 .4rem;
}

.vt-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin: .9rem 0;
  box-shadow: 0 6px 14px rgba(0,0,0,.06);
}

.vt-list {
  margin: .4rem 0 .6rem 1.2rem;
  padding: 0;
}
.vt-list li { margin: .35rem 0; }

.vt-hint {
  margin: .4rem 0 0;
  font-size: .95em;
  color: #4b5563;
}

/* Links, por si se usan */
.vacaciones-task a {
  color: #0d47a1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- Dark Mode ---- */
@media (prefers-color-scheme: dark) {
  .vacaciones-task { color: #e5e7eb; }
  .vt-card {
    background: #121b2f;
    border-color: #243044;
    box-shadow: 0 8px 22px rgba(0,0,0,.45);
  }
  .vt-hint { color: #cbd5e1; }
  .vacaciones-task a { color: #7aa6ff; }
}
