@import url('https://fonts.googleapis.com/css2?family=Playfair+Display&display=swap');

body {
  font-family: 'Playfair Display', serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  color: #333;
  text-align: center;
  font-size: 1.2em;
  line-height: 1.8;
}

p::after {
  content: "";
  display: block;
  margin: 1em auto;
  width: 100%;
  max-width: 100%;
  height: 1px;
  background-color: #ccc;
}

header {
  background-color: #005b96;
  color: white;
  padding: 20px;
  text-align: center;
  position: relative;
}

header h1 {
  margin: 0;
  font-size: 2.5em;
}

h2 {
  color: #005b96;
  text-align: center;
  font-size: 2.2em;
}

p {
  text-align: center;
}

.hero {
  display: none;
}

@media (min-width: 769px) {
  .hero {
    display: block;
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 300px;
    background-image: url('bild_hero.jpg');
    background-size: cover;
    background-position: center;
  
    margin: 0 auto;           /* <— sorgt für horizontale Zentrierung */
    border-radius: 12px;      /* optional hübsch */
    overflow: hidden;         /* optional, falls runde Ecken */
  }

  .hero-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    padding: 0 12px;
    text-shadow: 0 2px 8px rgba(0,0,0,.5);
    max-width: 90%;
  }

  .hero-credit {
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.8);
    background-color: rgba(0, 0, 0, 0.4);
    padding: 3px 8px;
    border-radius: 5px;
  }
}

.burger {
  display: none;
  position: absolute;
  top: 60px;
  right: 20px;
  background-color: #005b96;
  color: white;
  border: none;
  font-size: 1.5em;
  padding: 10px;
  cursor: pointer;
}

.navbar {
  background-color: #005b96;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 10px 0;
}

.navbar a {
  color: white;
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 3px solid transparent;
  padding-bottom: 5px;
}

.navbar a.active {
  border-bottom: 3px solid white;
}

main {
  padding: 20px;
}

section {
  margin-bottom: 40px;
}

footer {
  background-color: #eaeaea;
  text-align: center;
  padding: 0;
  font-size: 1em;
}



.highlight {
  background-color: transparent;
  padding: 0;
  border: none;
}

.section-divider {
  width: 100%;
  border: none;
  height: 1px;
  background-color: #ccc;
  margin: 2em 0;
}

/* Footer-Zitatbereich mit Bild */
.footer-quote-area {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  background-color: #eaeaea;
  gap: 30px;
}

.footer-quote-image {
  flex: 1 1 45%;
  min-width: 280px;
  text-align: center;
}

.footer-quote-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.footer-quote-credit {
  font-size: 0.8em;
  margin-top: 8px;
  color: #555;
}

.footer-quote-text {
  flex: 1 1 45%;
  min-width: 280px;
  text-align: left;
}

.footer-quote-text p {
  margin: 0;
  font-size: 1.1em;
}

.footer-quote-text em {
  display: block;
  margin-top: 10px;
  font-style: italic;
  font-size: 0.95em;
}

@media (max-width: 768px) {
  .footer-quote-area {
    flex-direction: column;
  }

  .footer-quote-text,
  .footer-quote-image {
    flex: 1 1 100%;
    text-align: center;
  }

  .footer-quote-text {
    text-align: center;
  }
}


#login-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

#login-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  border-radius: 8px;
  max-width: 90%;
  width: 320px;
}

#login-popup form {
  display: flex;
  flex-direction: column;
}

#login-popup input {
  padding: 10px;
  margin-bottom: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#login-popup button[type="submit"] {
  background-color: #005b96;
  color: white;
  padding: 12px 18px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}




#login-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  cursor: pointer;
  background: none;
  border: none;
  color: #005b96;
}



/* --- Mobile-Navigation (bis 768px) --- */
@media (max-width: 768px) {
  /* Burger sichtbar machen */
  .burger {
    display: block;             /* vorher: none */
    position: absolute;
    top: 20px;                  /* etwas höher, passt besser zum Header */
    right: 20px;
    background-color: #005b96;
    color: #fff;
    border: none;
    font-size: 1.8em;
    padding: 8px 12px;
    cursor: pointer;
    z-index: 1002;              /* über der Nav */
  }

  /* Navbar standardmäßig verstecken */
  .navbar {
    display: none;              /* überschreibt dein globales display:flex */
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
  }

  /* … und per JS/Toggle einblenden */
  .navbar.active {
    display: flex;
  }

  /* Links mobil besser tappbar */
  .navbar a {
    display: block;
    margin: 0;
    padding: 10px 0;
    width: 100%;
    max-width: 420px;
    border-bottom: 1px solid rgba(255,255,255,.2);
  }
}

/* --- Ab Desktop: Nav immer sichtbar, Burger ausblenden --- */
@media (min-width: 769px) {
  .burger { display: none; }
  .navbar { display: flex !important; } /* erzwingt Sichtbarkeit über mobile Regel */
}


/* Tabelle ohne Kopfzeile, mit „Karten“-Feeling in der ersten Spalte */
.downloads-table { width: 100%; border-collapse: collapse; }
.download-row td { border-bottom: 1px solid #ddd; padding: 12px; vertical-align: top; }
.col-main { width: 60%; }

.download-title { margin: 0 0 10px; font-size: 1.3rem; color: #005b96; }
.download-title a { color: inherit; text-decoration: none; }
.download-title a:hover { text-decoration: underline; }

/* Heller Rahmen für Cover + Player */
.media-box {
  background: #f3f4f6;                  /* leicht grau */
  border: 1px solid #e5e7eb;            /* feiner Rand */
  border-radius: 10px;
  padding: 10px;
}
.media-box .cover {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin-bottom: 8px;
  object-fit: cover;
}
.media-box .player {
  width: 100%;                          /* Player volle Breite */
  display: block;
  background: transparent;              /* Browser-UI bleibt, Rahmen macht das Grau */
}

/* Nebenspalten */
.col-date, .col-size { white-space: nowrap; color: #555; min-width: 110px; }

/* Schöner Download-Button */
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #005b96;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  transition: background .2s, transform .05s;
}
.download-btn:hover { background: #004477; }
.download-btn:active { transform: translateY(1px); }

/* Mobile: Zeilen stapeln */
@media (max-width: 800px) {
  .col-main { width: auto; display: block; }
  .downloads-table, .downloads-table tr, .downloads-table td { display: block; width: 100%; }
  .downloads-table td { border-bottom: none; }
  .download-row { border-bottom: 1px solid #ddd; padding-bottom: 12px; margin-bottom: 14px; }
  .col-date, .col-size, .col-action { margin-top: 6px; }
}


/* Karte */
.row-card {
  margin: 10px auto;
  width: 90%;
  background: #f7fbff;      /* Hintergrundfarbe */
  border: 1px solid #d7e6f5;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Titel */
.row-title {
  margin: 0 0 10px 0;
  text-align: center;
  font-size: 1.1rem;
}

/* Bild + Audio nebeneinander */
.media-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap; /* bricht bei schmalem Bildschirm um */
}

/* Bild */
#meinBild {
  width: 30%;
  max-width: 200px;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* Audio-Box mit gleichem Hintergrund wie Container */
.audio-box {
  flex: 1;
  background: #f7fbff;      /* gleiche Farbe wie Container */
  padding: 5px;
  border-radius: 8px;
}

/* Audio-Element füllt die Box */
#meinAudio {
  width: 100%;
  display: block;
  background: transparent;  /* Hintergrund transparent, Box bestimmt die Farbe */
  outline: none;
  border-radius: 8px;
}

/* Infos */
.row-info {
  margin-top: 10px;
  line-height: 1.4;
}

/* Aktionen */
.row-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.btn-download {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #1e6bcb;
  text-decoration: none;
  font-weight: 600;
  background: #2b7de9;
  color: #fff;
}

.btn-download:hover {
  background: #1e6bcb;
  border-color: #1756a5;
}


.left {
  text-align: left;
}

