/* anjamusic.de – statische Seite
   Farben und Aufbau orientieren sich an der bisherigen Joomla-Seite:
   hellgrauer Hintergrund, weiße Karte mit zartem Schatten, blaue Links. */

:root {
  --hintergrund: #ebeae8;
  --karte: #ffffff;
  --text: #2b2b2b;
  --link: #28679f;
  --link-hover: #174567;
  --rahmen: #d6d4d0;
  --schriftgroesse: 1.125rem; /* 18 px – deutlich besser lesbar als die bisherigen 14 px */
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--hintergrund);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: var(--schriftgroesse);
  line-height: 1.65;
}

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

a { color: var(--link); text-decoration: underline; text-underline-offset: 0.15em; }
a:hover { color: var(--link-hover); }

:focus-visible { outline: 3px solid #e08a00; outline-offset: 2px; }

/* Sprunglink für Tastatur und Screenreader */
.skip-link {
  position: absolute; left: 0.5rem; top: -4rem;
  background: #fff; color: var(--link); padding: 0.6rem 1rem;
  border: 2px solid var(--link); border-radius: 4px; z-index: 10;
}
.skip-link:focus { top: 0.5rem; }

/* Kopfleiste */
.site-header { background: #fff; border-bottom: 1px solid var(--rahmen); }
.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 0.9rem 1.25rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 2rem;
}
.site-name { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.site-name a { color: var(--text); text-decoration: none; }
.site-name span { display: block; font-size: 0.85rem; font-weight: 400; letter-spacing: 0.04em; color: #555; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-nav a { display: inline-block; padding: 0.35rem 0; text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--link); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--link); color: var(--text); }

/* Inhaltskarte */
main {
  max-width: 1100px;
  margin: 2rem auto;
  background: var(--karte);
  border-radius: 4px;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
  padding: 1.5rem 1.25rem 2rem;
}
@media (min-width: 700px) { main { padding: 2rem 2.5rem 2.5rem; } }
@media (min-width: 1160px) { main { margin-left: auto; margin-right: auto; } }
@media (max-width: 1159px) { main { margin-left: 0.75rem; margin-right: 0.75rem; } }

h1, h2 { font-family: Georgia, "Times New Roman", serif; line-height: 1.25; }
h1 { font-size: 1.8rem; margin: 0 0 1.25rem; text-align: center; }
h2 { font-size: 1.3rem; margin: 2rem 0 0.5rem; }
p { margin: 0 0 1.1rem; }

/* Startseite: Foto links, Text rechts */
.start-layout { display: grid; gap: 1.5rem 2.5rem; }
@media (min-width: 800px) { .start-layout { grid-template-columns: minmax(260px, 38%) 1fr; align-items: start; } }
.start-layout figure { margin: 0 auto; max-width: 24rem; }
@media (min-width: 800px) { .start-layout figure { margin: 0; max-width: none; } }
.start-layout img { width: 100%; border-radius: 2px; }
.start-layout h1 { text-align: center; }

.kontakt { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--rahmen); }
.kontakt h2 { margin-top: 0; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 1.15rem; }
.kontakt p { margin-bottom: 0.4rem; }

/* Textseiten mit Bild */
.text-seite { max-width: 46rem; margin: 0 auto; }
.text-seite figure { margin: 0 0 1.5rem; }
.text-seite img { border-radius: 2px; margin: 0 auto; }
@media (min-width: 800px) {
  .text-seite figure.rechts { float: right; width: 20rem; margin: 0.3rem 0 1rem 2rem; }
  .text-seite figure.rechts.breit { width: 24rem; }
}
.text-seite figure.mitte { max-width: 18rem; margin: 0 auto 1.5rem; }
.text-seite::after { content: ""; display: table; clear: both; }

/* Video (wird erst nach Klick von YouTube geladen) */
.video { margin: 1.5rem 0; }
.video-box {
  position: relative; width: 100%; max-width: 560px; aspect-ratio: 16 / 9;
  background: #1d1d1d; border-radius: 4px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 1rem;
}
.video-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-load {
  font: inherit; font-weight: 700; color: #fff; background: #c4302b; border: 2px solid #fff;
  border-radius: 6px; padding: 0.8rem 1.2rem; cursor: pointer; max-width: 100%;
}
.video-load:hover { background: #a42622; }
a.video-load { display: inline-block; text-decoration: none; text-align: center; }
a.video-load:hover { color: #fff; }
.video-titel { margin: 0 0 0.5rem; font-weight: 700; }
.video-hinweis { font-size: 0.9rem; color: #444; margin: 0.6rem 0 0; max-width: 560px; }

/* Repertoire */
/* Liedtabelle: Spalte 1 = Lied, Spalte 2 = Hörbeispiel (echte Tabelle, vom Screenreader als Tabelle erkannt) */
.lieder-tabelle { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; }
.lieder-tabelle th, .lieder-tabelle td { text-align: left; vertical-align: middle; padding: 0.7rem 0.75rem; border-bottom: 1px solid var(--rahmen); }
.lieder-tabelle thead th { background: #f5f4f2; border-bottom: 2px solid #b9b6b0; font-size: 0.95rem; }
.lieder-tabelle tbody th { font-weight: 400; width: 52%; }
.lieder-tabelle tbody tr:nth-child(even) { background: #faf9f8; }
.lieder-tabelle .titel { font-weight: 700; }
.lieder-tabelle .zusatz { display: block; font-size: 0.9rem; color: #555; }
.lieder-tabelle audio { display: block; width: 100%; min-width: 10rem; height: 40px; }
.lieder-tabelle .kein { color: #555; font-size: 0.95rem; }
.lieder-tabelle .dauer { display: block; font-size: 0.85rem; color: #555; margin-top: 0.2rem; padding-left: 0.2rem; }
@media (max-width: 520px) {
  .lieder-tabelle th, .lieder-tabelle td { padding: 0.6rem 0.3rem; }
  .lieder-tabelle { font-size: 1rem; }
  .lieder-tabelle tbody th { width: 36%; }
  .lieder-tabelle audio { min-width: 12.5rem; }
}

/* Text, der nur für Screenreader da ist */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hinweis { background: #f5f4f2; border-left: 4px solid var(--link); padding: 0.75rem 1rem; margin: 0 0 1.5rem; }

/* Rechtliche Texte */
.recht { max-width: 52rem; margin: 0 auto; }
.recht h1 { text-align: left; }
.recht h2 { font-size: 1.15rem; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
.recht ul { margin: 0 0 1.1rem; padding-left: 1.4rem; }
.recht li { margin-bottom: 0.3rem; }
.recht p, .recht li { overflow-wrap: anywhere; }

/* Fußzeile */
.site-footer { max-width: 1100px; margin: 0 auto 2rem; padding: 0 1.25rem; text-align: center; font-size: 0.95rem; color: #444; }
.site-footer ul { list-style: none; margin: 0.4rem 0 0; padding: 0; display: flex; justify-content: center; gap: 1.5rem; }

@media print {
  .site-header, .site-footer, .video, audio, .skip-link { display: none; }
  body { background: #fff; }
  main { box-shadow: none; margin: 0; }
}
