/* Auftritt poster.waidgut.com. Farben sind Töne aus src/app/globals.css, Schriften aus public/fonts. */
@font-face {
  font-family: 'Lora';
  font-weight: 700;
  font-display: swap;
  src: url('/fest/lora-700-v1.ttf') format('truetype');
}
@font-face {
  font-family: 'Instrument Sans';
  font-weight: 400;
  font-display: swap;
  src: url('/fest/instrument-sans-400-v1.ttf') format('truetype');
}
@font-face {
  font-family: 'Instrument Sans';
  font-weight: 600;
  font-display: swap;
  src: url('/fest/instrument-sans-600-v1.ttf') format('truetype');
}

:root {
  color-scheme: dark light;
  --grund: #1A1A1A;
  --schrift: #E8E2D9;
  --leise: #9A9589;
  --titel: #C8A96E;
  --haar: #333333;
  --rand: #7A7A7A;
  --knopf: #C8A96E;
  --knopf-drueber: #D4BA82;
  --knopf-schrift: #1A1A1A;
  --fokus: #D4BA82;
  --schatten: 0 18px 40px -18px rgb(0 0 0 / 0.7);
}
@media (prefers-color-scheme: light) {
  :root {
    --grund: #F5F0E8;
    --schrift: #1A1A1A;
    --leise: #2C2C2C;
    --titel: #1A1A1A;
    --haar: #C1BCB1;
    --rand: #7A7570;
    --knopf: #1A1A1A;
    --knopf-drueber: #333333;
    --knopf-schrift: #F5F0E8;
    --fokus: #3D5C3A;
    --schatten: 0 18px 40px -20px rgb(0 0 0 / 0.35);
  }
}

*, ::before, ::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--grund);
  color: var(--schrift);
  font: 400 1rem/1.6 'Instrument Sans', system-ui, sans-serif;
}
h1, h2 {
  margin: 0;
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: break-word;
  hyphens: auto;
  text-wrap: balance;
}
h1 { color: var(--titel); font-size: clamp(1.875rem, 1.4rem + 2vw, 2.75rem); }
h2 { font-size: 1.375rem; }
p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; border-radius: 2px; }

.breite { width: 100%; max-width: 68rem; margin-inline: auto; padding-inline: 1.25rem; }

.sprung {
  position: absolute;
  left: 0.75rem;
  top: -10rem;
  z-index: 10;
  padding: 0.625rem 1rem;
  background: var(--knopf);
  color: var(--knopf-schrift);
  font-weight: 600;
}
.sprung:focus { top: 0.75rem; }

header { border-bottom: 1px solid var(--haar); }
header nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 0.5rem; padding-block: 0.5rem; }
.logo { display: inline-flex; min-height: 48px; align-items: center; }
.sprachen, .fuss { display: flex; flex-wrap: wrap; gap: 0 0.875rem; }
.sprachen { font-size: 0.9375rem; }
.sprachen a, .fuss a, .zurueck, .kontakt a { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; }
.sprachen a, .fuss a { color: var(--leise); text-decoration: none; }
.sprachen a:hover, .fuss a:hover { color: var(--schrift); text-decoration: underline; }
.sprachen a[aria-current], .fuss a[aria-current] { color: var(--schrift); font-weight: 600; text-decoration: underline; }

main { flex: 1; padding-block: 2.5rem 4rem; }
main:focus { outline: none; }
.zurueck { color: var(--leise); margin-bottom: 0.5rem; }
.zurueck:hover { color: var(--schrift); }
.satz { margin-top: 0.75rem; max-width: 60ch; }
.leise { color: var(--leise); }
.satz + .leise { margin-top: 0.5rem; }

.blatt { width: 100%; border: 1px solid var(--haar); border-radius: 4px; box-shadow: var(--schatten); }

.eintraege { margin-top: 2.5rem; display: grid; gap: 3.5rem; }
.eintrag { position: relative; display: grid; gap: 1.5rem; }
.eintrag h2 { font-size: clamp(1.375rem, 1.2rem + 1vw, 1.75rem); }
.eintrag h2 a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
/* Ein Tipp auf das Bild öffnet dieselbe Seite; die Knöpfe liegen darüber. */
.eintrag h2 a::after { content: ''; position: absolute; inset: 0; }
.eintrag h2 a:hover, .eintrag:hover h2 a { text-decoration: underline; }
.eintrag .satz { margin-top: 0.5rem; }
.knoepfe { position: relative; z-index: 1; margin-top: 1.5rem; display: grid; gap: 0.75rem; }

.fassungen { margin-top: 2.5rem; display: grid; gap: 3rem; }
/* Der Knopf steht vor dem Blatt, und ein Tipp auf das Blatt öffnet dasselbe PDF. */
.fassung { position: relative; display: grid; align-content: start; gap: 1rem; }
.fassung .knopf::after { content: ''; position: absolute; inset: 0; }

.knopf {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border: 1px solid var(--knopf);
  border-radius: 6px;
  color: var(--titel);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.knopf:hover { text-decoration: underline; }
.knopf-voll { background: var(--knopf); color: var(--knopf-schrift); }
.knopf-voll:hover { background: var(--knopf-drueber); border-color: var(--knopf-drueber); }

.rechtstext { max-width: 44rem; margin-top: 1rem; overflow-wrap: break-word; }
.rechtstext h2 { margin-top: 2rem; font-size: 1.1875rem; }
.rechtstext p { margin-top: 0.5rem; }
.rechtstext .leise + p { margin-top: 1rem; }
/* Die 44 px hohe Trefferfläche zählt nicht zum Abstand der Absätze. */
.rechtstext .kontakt { margin-block: -0.075rem -0.575rem; }
.zusammen { white-space: nowrap; }
.rechtstext .hervorgehoben { margin-top: 0.75rem; padding: 1rem 1.25rem; border: 2px solid var(--rand); border-radius: 6px; font-weight: 600; }

footer { border-top: 1px solid var(--haar); padding-block: 0.75rem; }
.fuss { justify-content: flex-start; }

@media (min-width: 40rem) {
  .breite { padding-inline: 2rem; }
  .eintrag { grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
  .knoepfe { max-width: 24rem; }
  .fassungen.mehrere { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
}
@media (min-width: 60rem) {
  .eintrag { grid-template-columns: minmax(0, 24rem) minmax(0, 1fr); gap: 4rem; }
}
