/* =========================
   BASIS
========================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #fffdf5;
  color: #333;
  line-height: 1.6;
}

.wrapper {
  max-width: 1100px;
  margin: auto;
  padding: 10px 16px 40px 16px;
}

/* =========================
   HEADER
========================= */

.kopfbereich {
  background: #f3efe0;
  border-bottom: 1px solid #e0d7b8;
}

.kopf-inhalt {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 20px;
}

.logo {
  height: 80px;
  border-radius: 6px;
}

.titelblock h1 {
  margin: 0;
  font-size: 1.6em;
}

.titelblock p {
  margin: 4px 0 0;
  font-size: 0.9em;
  color: #555;
}

/* =========================
   NAVIGATION
========================= */

nav#navigation {
  margin: 15px 0;
}

.navigation {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.navigation li a {
  text-decoration: none;
  padding: 6px 14px;
  background: #e6dcbf;
  border-radius: 8px;
  color: #333;
  transition: background 0.2s ease;
}

.navigation li a:hover,
.navigation li a.active {
  background: #d8cfae;
}

/* =========================
   HERO
========================= */

.hero {
  text-align: center;
  padding: 20px 10px;
  background: #fff3cc;
  border-radius: 12px;
  margin-bottom: 20px;
}

.hero-subtitle {
  margin-top: 6px;
  color: #57dcfd;
}

/* HERO BILD (Indexseite) */
.hero img,
.hero-bild {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* =========================
   SECTION TITLES
========================= */

.section-title {
  margin-top: 30px;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e0cfa0;
  color: #5a4a1a;
}

/* =========================
   TEXTBLOCK
========================= */

.textblock {
  background: #ffffff;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #eee0b8;
  margin-bottom: 20px;
}

/* =========================
   NOTENLISTE
========================= */

.notenliste {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.noten-item {
  background: #ffffff;
  border: 1px solid #e6dcbf;
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: background 0.15s ease;
}

.noten-item strong {
  display: block;
  font-size: 1.05em;
  margin-bottom: 6px;
  color: #333;
}

/* Links */
.noten-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.noten-links a {
  text-decoration: none;
  background: #f3efe0;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.9em;
  color: #333;
  transition: background 0.15s ease;
}

.noten-links a:hover {
  background: #d8cfae;
}

/* Dateitypen einfärben */
.noten-links a[href$=".pdf"] { background: #e3f2fd; }
.noten-links a[href$=".mid"] { background: #e8f5e9; }
.noten-links a[href$=".mp3"] { background: #fce4ec; }

/* Neu-Badge */
.noten-links img {
  height: 18px;
  vertical-align: middle;
}

/* =========================
   FOOTER
========================= */

.seitenfooter {
  background: #f3efe0;
  border-top: 1px solid #e0d7b8;
  margin-top: 40px;
}

.footer-inhalt {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 15px 20px;
}

.footer-block {
  font-size: 0.9em;
}

.footer-block a {
  color: #333;
}

.footer-unten {
  text-align: center;
  padding: 8px;
  font-size: 0.8em;
  background: #e6dcbf;
}

/* =========================
   DARKMODE BUTTON
========================= */

#darkToggle {
  background: #e6dcbf;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9em;
  margin-left: auto;
}

#darkToggle:hover {
  background: #d8cfae;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 600px) {
  .kopf-inhalt {
    flex-direction: column;
    text-align: center;
  }

  .navigation {
    justify-content: center;
  }

  .noten-links a {
    font-size: 0.85em;
  }
}

/* =========================
   DARK MODE (BUTTON)
========================= */

/* =========================
   DARK MODE
========================= */

body.darkmode {
  background: #1a1a1a;
  color: #e6e6e6;
}

/* Header & Footer */
body.darkmode .kopfbereich,
body.darkmode .seitenfooter {
  background: #222;
  border-color: #444;
}

/* Titel & Untertitel */
body.darkmode .titelblock h1 {
  color: #ffffff;
}

body.darkmode .titelblock p {
  color: #cccccc;
}

/* Hero */
body.darkmode .hero {
  background: #2a2a2a;
}

body.darkmode .hero-subtitle {
  color: #57dcfd;
}

/* Section Titles */
body.darkmode .section-title {
  color: #ffd966;
  border-bottom-color: #666;
}

/* Textblock */
body.darkmode .textblock {
  background: #2a2a2a;
  border-color: #444;
  color: #e0e0e0;
}

/* Navigation */
body.darkmode .navigation li a {
  background: #333;
  color: #f0f0f0;
}

body.darkmode .navigation li a:hover,
body.darkmode .navigation li a.active {
  background: #555;
  color: #ffffff;
}

/* Notenliste */
body.darkmode .noten-item {
  background: #2a2a2a;
  border-color: #444;
  box-shadow: none;
}

body.darkmode .noten-item strong {
  color: #ffffff;
}

/* Notenlinks */
body.darkmode .noten-links a {
  background: #3a3a3a;
  color: #f0f0f0;
}

body.darkmode .noten-links a:hover {
  background: #555;
}

/* Dateitypen (PDF/MID/MP3) im Darkmode neutralisieren */
body.darkmode .noten-links a[href$=".pdf"],
body.darkmode .noten-links a[href$=".mid"],
body.darkmode .noten-links a[href$=".mp3"] {
  background: #444;
  color: #ffffff;
}

/* Footer */
body.darkmode .footer-block,
body.darkmode .footer-block a {
  color: #dddddd;
}

body.darkmode .footer-unten {
  background: #222;
  color: #bbbbbb;
}

/* Darkmode Button */
body.darkmode #darkToggle {
  background: #444;
  color: #ffffff;
}

/* ===== Darkmode Linkfarben ===== */

body.darkmode a {
    color: #7fdcff;   /* helles Blau – gut lesbar */
}

body.darkmode a:hover {
    color: #ffffff;   /* beim Überfahren noch heller */
}

/* =========================
   VIGNETTEN GRID
========================= */

.stimmenblock {
  margin-bottom: 25px;
}

.stimmenblock h3 {
  margin-bottom: 10px;
}

.vignette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.vignette {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
}

.vignette img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  transition: transform 0.2s ease;
}

.vignette:hover img {
  transform: scale(1.05);
}

/* Name Overlay */
.vignette::after {
  content: attr(data-name);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 6px 0;
  text-align: center;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 0.85em;
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Hover anzeigen */
.vignette:hover::after {
  opacity: 1;
}

/* Darkmode Feinschliff */
body.darkmode .vignette::after {
  background: rgba(0,0,0,0.8);
}
.audio-liste {
  list-style: none;
  padding-left: 0;
}

.audio-liste li {
  margin-bottom: 6px;
}

.audio-liste a {
  text-decoration: none;
  color: #0056aa;
}

body.darkmode .audio-liste a {
  color: #8fd3ff;
}
.media-item {
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 8px;
  background: #f9f9f9;
}

.media-item p {
  margin: 0 0 6px 0;
  font-weight: bold;
}

body.darkmode .media-item {
  background: #2a2a2a;
}

body.darkmode .media-item p {
  color: #fff;
}

audio, video {
  width: 100%;
  max-width: 600px;
}
/* =========================
   WITZE
========================= */

.witze a {
  color: #0056aa;
}

body.darkmode .witze a {
  color: #8fd3ff;
}

.witze a:hover {
  text-decoration: underline;
}
/* =========================
   FOTOLISTE
========================= */
.fotoliste a {
  color: #0056aa;
}

body.darkmode .fotoliste a {
  color: #8fd3ff;
}

.fotoliste a:hover {
  text-decoration: underline;
}

/* Suchfeld Songrepertoire */
.song-search {
  margin: 20px 0;
}

#songSearch {
  width: 100%;
  max-width: 500px;
  padding: 10px 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#songSearch:focus {
  outline: none;
  border-color: #666;
}

.video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}


.audio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.audio-grid .media-item {
  background: rgba(0,0,0,0.05);
  padding: 12px;
  border-radius: 8px;
}

.audio-grid audio {
  width: 100%;
}

.audio-player {
  margin-top: 8px;
}

.trainer-btn {
  background: #2b7cff;
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
}

.trainer-btn:hover {
  background: #1a5fd0;
}
