/* Pröve Werkbibliothek — angeglichen an proeve.net
   Weißer Grund, dunkle Schrift, schlichte Linien, Systemschrift
   wie das WordPress-Blocktheme der Hauptseite */

:root {
  --grund: #000000;
  --schrift: #ffffff;
  --grau: #a3a3a3;
  --linie: #2e2e2e;
  --flaeche: #141414;
  --stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
           "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--grund);
  color: var(--schrift);
  font-family: var(--stack);
  font-size: 1.05rem;
  line-height: 1.65;
}
a { color: var(--schrift); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration: none; }
:focus-visible { outline: 2px solid var(--schrift); outline-offset: 2px; }

/* Kopf */
.kopf { border-bottom: 1px solid var(--linie); }
.kopf-innen {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.marke {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}
.marke-logo { border-radius: 50%; display: block; }
.marke-name {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.kopf-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.35rem;
  font-size: 0.95rem;
}
.kopf-nav a { text-decoration: none; }
.kopf-nav a:hover, .kopf-nav a.aktiv { text-decoration: underline; text-underline-offset: 4px; }

/* Inhalt */
.inhalt {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}
h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}
.meta { color: var(--grau); font-size: 0.95rem; }
.meta a { color: var(--grau); }
.meta strong { color: var(--schrift); font-weight: 600; }

/* Filterleiste */
.filter { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.75rem 0 2.25rem; }
.filter input[type="search"], .filter select {
  font: inherit;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--schrift);
  background: var(--grund);
  color: var(--schrift);
  border-radius: 4px;
}
.filter input[type="search"] { flex: 1 1 14rem; }
.filter button {
  font: inherit;
  padding: 0.55rem 1.3rem;
  border: 1px solid var(--schrift);
  background: var(--schrift);
  color: var(--grund);
  border-radius: 999px;
  cursor: pointer;
}
.filter button:hover { opacity: 0.8; }

/* Werkliste */
.werkliste { list-style: none; margin: 0; padding: 0; }
.werkzeile {
  border-top: 1px solid var(--linie);
  padding: 1.2rem 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 1rem;
  align-items: baseline;
}
.werkzeile:last-child { border-bottom: 1px solid var(--linie); }
.werkzeile .titel {
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
}
.werkzeile .titel:hover { text-decoration: underline; }
.werkzeile .jahr { font-variant-numeric: tabular-nums; color: var(--grau); }
.werkzeile .unterzeile {
  grid-column: 1 / -1;
  font-size: 0.9rem;
  color: var(--grau);
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.medien-marker { letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.72rem; color: #4d4d4d; }
.medien-marker.aktiv { color: var(--schrift); }

/* Werk-Detailseite */
.werk-kopf { margin-bottom: 2rem; }
.abschnitt { margin: 2.75rem 0; }
.abschnitt > h2 {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grau);
  margin: 0 0 1rem;
}
.video-rahmen { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-rahmen iframe, .video-rahmen video {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
audio { width: 100%; }
.medienliste { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }

.partitur-karte {
  border: 1px solid var(--linie);
  background: var(--flaeche);
  padding: 1rem 1.25rem;
  border-radius: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.knopf {
  display: inline-block;
  font: inherit;
  font-size: 0.92rem;
  padding: 0.5rem 1.3rem;
  border: 1px solid var(--schrift);
  background: var(--schrift);
  color: var(--grund);
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
}
.knopf:hover { opacity: 0.8; }
.knopf.leise { background: transparent; color: var(--schrift); }

.leer {
  border: 1px dashed var(--linie);
  padding: 2rem;
  text-align: center;
  color: var(--grau);
  border-radius: 6px;
}

/* Fuß */
.fuss { border-top: 1px solid var(--linie); margin-top: 3rem; }
.fuss-innen {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  font-size: 0.9rem;
  color: var(--grau);
}
.fuss-marke { font-size: 1.4rem; font-weight: 700; color: var(--schrift); margin: 0 0 0.25rem; }
.fuss p { margin: 0.25rem 0; }
.fuss a { color: var(--grau); }

/* Admin-Formulare */
.formular { display: grid; gap: 1rem; max-width: 44rem; }
.formular label { display: grid; gap: 0.3rem; font-size: 0.92rem; font-weight: 600; }
.formular input[type="text"], .formular input[type="number"], .formular input[type="password"],
.formular textarea, .formular select, .formular input[type="file"] {
  font: inherit;
  font-weight: 400;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--linie);
  background: var(--grund);
  color: var(--schrift);
  caret-color: var(--schrift);
  border-radius: 4px;
  width: 100%;
}
.formular textarea { min-height: 8rem; resize: vertical; }
.hinweis { font-size: 0.85rem; font-weight: 400; color: var(--grau); }
.fehler { background: #3a1512; border: 1px solid #e74c3c; padding: 0.75rem 1rem; border-radius: 4px; }
.ok { background: #122917; border: 1px solid #4caf50; padding: 0.75rem 1rem; border-radius: 4px; }

.tabelle { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.tabelle th, .tabelle td { text-align: left; padding: 0.65rem 0.5rem; border-bottom: 1px solid var(--linie); }
.tabelle th { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grau); }

@media (max-width: 40rem) {
  .werkzeile { grid-template-columns: 1fr; }
  .partitur-karte { flex-direction: column; align-items: flex-start; }
  .marke-name { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* YouTube-Fassade: Vorschaubild mit Play-Symbol, lädt erst beim Klick */
.yt-fassade {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  overflow: hidden;
}
.yt-fassade img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.play-symbol {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: #fff;
  background: rgba(0,0,0,0.25);
}
.play-symbol::before { content: ""; }
.yt-fassade:hover .play-symbol { background: rgba(0,0,0,0.45); }
