/* Basis-Einstellungen */
html {
  font-size: 100%;
  line-height: 1.5;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 1rem;
  font-family: sans-serif;
  font-size: 1rem;
  max-width: 60rem;
  /* Begrenzte Lesebreite */
  margin-left: auto;
  margin-right: auto;
}

p {
  margin: 1rem 0 1rem 0;
  /* Absatzabstand unten, kein Abstand oben */
  line-height: 1.3;
  /* gute Lesbarkeit */
  font-size: 1rem;
  /* passt zu normalem Fließtext */
  color: #333;
  /* leicht abgedunkeltes Schwarz */
}

.small {
  font-size: 0.9rem;
  /* etwas kleiner */
}

/* Medien */
video {
  max-width: 100%;
  height: auto;
  display: block;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.ss {
  margin-top: 3rem;
  /* Abstand nach oben */
  border: 1px solid #c6c6c6;
  /* Rahmenfarbe und -dicke */
  border-radius: 6px;
  /* leicht abgerundete Ecken */
  width: 600px;
}

/* Überschriften und Text */

h1 {
  font-size: 2rem;
  margin-top: 1.5rem;
  color: #6b8e6e;
  line-height: 1.2;
}

h2 {
  font-size: 1.75rem;
  margin-top: 3rem;
  color: #d9a441;
  line-height: 1.2;
}

/* nur für h2 mit Bild davor */
.h2-with-icon {
  /* dein vorhandenes h2-Design bleibt erhalten */
  /*margin-top: 3rem;*/
  color: #d9a441;
  line-height: 1.2;
  display: flex;
  align-items: center;
  /* vertikal mittig */
  gap: 0.5rem;
  /* Abstand zwischen Icon und Text */
}

.h2-with-icon .h2-icon {
  width: 1em;
  /* skaliert mit der H2-Schriftgröße */
  height: auto;
  margin-right: 0.5rem;
  vertical-align: middle;
  /* Icon und Text schön auf einer Höhe */
}

.h2-no-margin {
  margin-top: 1.0rem;
}


h3 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  color: #555;
  line-height: 1.2;
}

@media (max-width: 600px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1.125rem;
  }
}

.note {
  color: #888;
  /* hellgrau */
  font-style: italic;
  /* optional: kursiv */
  font-size: 0.9rem;
  /* etwas kleiner als Fließtext */
  margin-top: 3rem;
}

/* Flexibles Layout */
.container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.container>* {
  flex: 1 1 20rem;
  /* wächst, schrumpft, min. 20rem */
}

/* Responsive YouTube-Video mit Rahmen und abgerundeten Ecken */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 Seitenverhältnis */
  height: 0;
  overflow: hidden;
  /* nötig für runde Ecken */
  max-width: 100%;
  border: 1px solid #c6c6c6;
  /* gleiche Rahmenfarbe wie .ss */
  border-radius: 10px;
  /* gleiche Rundung wie .ss */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Zeilenpaare für Lerntext + Übersetzung */
.line-pair {
  background: #fcfcfc;
  /* sehr helles Grau als Box-Hintergrund */
  border: 1px solid #ddd;
  /* dünner grauer Rahmen */
  border-radius: 6px;
  /* abgerundete Ecken */
  padding: 0.6rem 0.8rem;
  /* Innenabstand */
  margin-bottom: 1.2rem;
  /* Abstand zur nächsten Box */
}

/* Lernsprache */
.target-lang {
  background: #d5fbe6;
  font-weight: bold;
  color: #222;
  font-size: 1.05rem;
  padding: 0.2rem;
  border-radius: 4px;
}

/* Muttersprache */
.native-lang {
  color: #555;
  font-style: italic;
  font-size: 0.95rem;
  margin-top: 0.5rem;
  padding-left: 5px;
}

/* Wortpaare */
.paare {
  display: flex;
  flex-wrap: wrap;    /* erlaubt Zeilenumbruch */margin-top: 0.5em;
  background-color: #d5fbe6; 
  border-radius: 5px;
  padding: 5px;
}

.paar {
  display: flex;
  flex-direction: column;
  align-items: center;
  white-space: nowrap;
}

.paar .oben {
  padding: 0 3px 0 3px;
  font-size: 1.1em;
  font-weight: bold;
}

.paar .unten {
  font-size: 0.9em;
  padding: 0 3px 0 3px;
  color: #444;
}

img[data-wid] {
  cursor: pointer;
  width: 24px;
  height: 24px;
  margin-bottom: 5px;
}

.trenner {
  border: none;
  height: 1px;
  background-color: #ddd;
  /* hellgrau */
  margin: 2rem 0;
  /* Abstand oben/unten */
}


.site-header {
  /*position: sticky; */
  top: 0;
  background: white;
  padding: 1rem 0rem 1rem 0rem;
  margin-bottom: 2.5rem;
  /* zusätzlicher Abstand nach außen */
  border-bottom: 1px solid #ddd;
  z-index: 1000;

  display: flex;
  align-items: flex-start;
  /* Titel und Navi bündig oben */
  gap: 0.8rem;
  /* Abstand zwischen Sigel und Text */
}

.sigel {
  width: 90px;
  height: auto;
  margin-left: -1rem;
  /* schiebt das Bild an den Seitenrand */
}

.header-text {
  display: flex;
  flex-direction: column;
  /* Überschrift über Navigation */
}

.site-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 0.3rem;
}

.mini-nav a {
  margin-right: 1rem;
  text-decoration: none;
  color: #555;
  font-size: 0.9rem;
  white-space: nowrap;
}

.mini-nav a:hover {
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid #ddd;
  margin-top: 3rem;
  padding: 1rem 0;
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  background-color: #f9f9f9;
}

.site-footer p {
  margin: 0.3rem 0;
}

.footer-nav {
  margin-top: 0.3rem;
}

.footer-nav a {
  color: #666;
  text-decoration: none;
  margin: 0 0.5rem;
}

.footer-nav a:hover {
  text-decoration: underline;
}

/* CTA-Block */
.cta {
  background: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin: 2rem 0;
  text-align: center;
}

.cta h2 {
  margin: 0 0 0.5rem 0;
  color: #444;
  font-size: 1.3rem;
}

.cta p {
  margin: 0 0 1rem 0;
  color: #555;
}

.cta-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* einfache Buttons im bestehenden Stil */
.btn {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  color: #fff;
  background: #2e8b57;
  /* dein Grün */
}

.btn:hover {
  opacity: 0.9;
}

.btn-secondary {
  background: #555;
  /* dezentes Grau */
}

.btn-outline {
  background: transparent;
  color: #2e8b57;
  border: 1px solid #2e8b57;
}

/* Intro-Hinweis */
.intro-hinweis {
  background-color: #f9f9f9;
  /* sehr helles Grau */
  border-left: 4px solid #2e8b57;
  /* grüner Akzentstreifen */
  padding: 0.1rem 1rem;
  margin: 2rem 0 2rem 0;
  /*font-size: 0.95rem;
    color: #444;
    line-height: 1.3;*/
}

.intro-hinweis strong {
  color: #2e8b57;
  /* Plattformname grün hervorheben */
}


.video-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.video-entry {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #e0e0e0;
}

.video-entry:hover {
  background: #fafafa;
}

.thumb {
  /*flex: 0 0 auto;*/
  width: 160px;
  /* height: 180px; */
  /*object-fit: cover;*/
  border-radius: 4px;
}

/* Für Handys (bis 600px Bildschirmbreite) */
@media (max-width: 600px) {
  .thumb {
    width: 90px;
    /* kleiner als 160px */
  }
}

.video-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.video-info h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ger-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.subtitle {
  font-weight: normal;
  color: #666;
  font-size: 0.9em;
}

.duration {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: #777;
}

.support-box {
  background: #f5f8ff;
  border: 1px solid #d5e6ff;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 3rem;
  font-size: 0.95rem;
}

.support-box a {
  color: #2a64d6;
  text-decoration: none;
}

.support-box a:hover {
  text-decoration: underline;
}

.support-box h2,
.support-box h3 {
  margin-top: 0.5rem;
}

.play-icon {
  width: 30px;
  /* Breite des Icons */
  height: 30px;
  /* Höhe des Icons */
  margin-bottom: 0.5rem;
  /* Abstand zum Text daneben */
  cursor: pointer;
  /* Mauszeiger wird zur Hand */
  /* vertical-align: middle; /* schön in der Zeile ausgerichtet */
  +/
}

.toc {
  list-style: none;
  /* Standard-Bullets ausblenden */
  margin: 1rem 0;
  padding: 0;
  font-size: 1.1rem;
}

.toc li {
  display: flex;
  align-items: center;
  margin: 0.7rem 0;
}

.toc-icon {
  width: 26px;
  height: auto;
  margin-right: 0.7rem;
}

.toc a {
  text-decoration: none;
  color: #2e8b57;
  /* dein Grün */
  font-weight: 500;
  font-size: 1.1rem;
}

.toc a:hover {
  text-decoration: underline;
}