/* ==========================================================
   Skisaufen.de – gemeinsames Stylesheet
   ========================================================== */

@font-face {
  font-family: "Alfa Slab One";
  src: url("../fonts/alfa-slab-one-latin.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Bebas Neue";
  src: url("../fonts/bebas-neue-latin.woff2") format("woff2");
  font-display: swap;
}

:root {
  --blau: #1d2b4f;        /* Hauptfarbe: Dunkelblau wie im Logo */
  --blau-dunkel: #141e38;
  --blau-hell: #efe5cc;
  --eis: #f5ecd7;          /* Creme */
  --bier: #d9901a;        /* Akzentfarbe: Bierton wie der Kronkorken */
  --bier-dunkel: #a86c0c;
  --text: #1d2b4f;
  --text-leise: #5f6475;
  --radius: 1.25rem;
  --schatten: 0 10px 30px rgba(29, 43, 79, 0.15);
  --schrift-logo: "Alfa Slab One", Rockwell, Georgia, serif;
  --schrift-titel: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --rot: #b8432f;
  --weiss: #fffcf5;
  --linie: #e9dec3;
  --rahmen: #dccfae;
  --schrift-text: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--schrift-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(29, 43, 79, 0.07) 0 1.5px, transparent 2.5px) 0 0 / 70px 70px,
    var(--eis);
}

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

a {
  color: var(--blau);
}

h1,
h2,
h3 {
  font-family: var(--schrift-titel);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.04em;
  color: var(--blau);
}

h1 {
  font-family: var(--schrift-logo);
  letter-spacing: 0.01em;
  hyphens: manual; /* nur an Leerzeichen oder festen Trennstellen (&shy;) umbrechen */
  overflow-wrap: break-word;
}

/* Bebas Neue hat nur eine Staerke: kein kuenstliches Fett */
body {
  font-synthesis: none;
}

/* ---------- Logo: Etikett-Schriftzug, die Flasche ist das I ---------- */

.wortmarke {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--schrift-logo);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* .DE halb so gross in gleicher Farbe */
.wortmarke__de {
  margin-left: 0.02em;
  font-size: 0.5em;
}

.flasche {
  flex: none;
  width: auto;
  height: 0.98em;
  margin: 0 0.05em;
  fill: currentColor;
}

.flasche .kappe {
  fill: var(--bier);
}

.etikett {
  display: inline-grid;
  justify-items: center;
  gap: 0.35rem;
  max-width: 100%;
  margin: 0 0 1.25rem;
  padding: 0.9rem min(1.6rem, 5cqi) 0.8rem;
  border: 3px solid var(--blau);
  outline: 1.5px solid var(--blau);
  outline-offset: -9px;
  border-radius: 1.1rem;
  color: var(--blau);
}

/* Groesse nach verfuegbarer Breite (cqi = % der Kartenbreite), auch bei vergroesserter Handy-Schrift */
.etikett .wortmarke {
  font-size: min(3.4rem, 10.5cqi);
}

.etikett__klein {
  font-family: var(--schrift-titel);
  font-size: 1rem;
  letter-spacing: 0.22em;
  white-space: nowrap;
}

.start__karte .etikett__klein {
  font-size: min(1rem, 3.9cqi);
  letter-spacing: min(0.22em, 0.6cqi);
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 3rem;
  padding: 0.7em 1.6em;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--schrift-titel);
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible {
  outline: 3px solid var(--blau);
  outline-offset: 3px;
}

.button--haupt {
  background: var(--bier);
  color: var(--blau-dunkel);
  box-shadow: 0 6px 0 var(--bier-dunkel);
}

.button--haupt:hover {
  box-shadow: 0 8px 0 var(--bier-dunkel);
}

.button--leise {
  background: transparent;
  border-color: var(--blau);
  color: var(--blau);
}

.button--leise:hover {
  background: var(--blau-hell);
}

/* ---------- Startseite ---------- */

.start {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem 1rem;
}

.start__karte {
  container-type: inline-size; /* Logo richtet sich nach der Kartenbreite */
  width: 100%;
  max-width: 34rem;
  padding: 2rem 1.5rem 1.75rem;
  background: var(--weiss);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  text-align: center;
}

.start__untertitel {
  margin: 0 0 1.25rem;
  font-family: var(--schrift-titel);
  font-size: 1.25rem;
  color: var(--text-leise);
}

.start__text {
  margin: 0 0 1.5rem;
}

.start__hinweis {
  margin: 1.75rem 0 1rem;
  padding: 1rem 1.25rem;
  background: var(--blau-hell);
  border-radius: 0.9rem;
  font-size: 0.95rem;
  color: var(--text-leise);
}

.start__gruss {
  margin: 1.25rem 0 0;
  font-family: var(--schrift-titel);
  font-size: 1.15rem;
  color: var(--blau-dunkel);
}

.start__karte--breit {
  max-width: 38rem;
}

.start__karte h1 {
  margin: 0.5rem 0 0.75rem;
  font-size: clamp(1.7rem, 6vw, 2.2rem);
}

.logo-klein {
  display: inline-block;
  margin: 0 0 0.5rem;
  color: var(--blau);
  font-size: 1.7rem;
  text-decoration: none;
}

/* ---------- Meldungen ---------- */

.meldung {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1.1rem;
  border-radius: 0.75rem;
  text-align: left;
}

.meldung--fehler {
  background: #fdecec;
  border: 1px solid #f3b7b7;
  color: #8a1c1c;
}

.hinweis {
  font-size: 0.95rem;
  color: var(--text-leise);
}

/* ---------- Formulare ---------- */

.formular {
  display: grid;
  gap: 1.1rem;
  text-align: left;
}

.formular__feld {
  display: grid;
  gap: 0.35rem;
}

.formular label {
  font-weight: 600;
  color: var(--blau-dunkel);
}

.formular__optional {
  font-weight: 400;
  color: var(--text-leise);
}

.formular input,
.formular textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 2px solid var(--rahmen);
  border-radius: 0.75rem;
  background: var(--weiss);
  font: inherit;
  color: var(--text);
}

.formular textarea {
  resize: vertical;
  min-height: 9rem;
}

.formular input:focus,
.formular textarea:focus {
  outline: none;
  border-color: var(--blau);
  box-shadow: 0 0 0 3px rgba(29, 43, 79, 0.2);
}

.formular [aria-invalid="true"] {
  border-color: #d14343;
}

.formular__fehler {
  margin: 0;
  font-size: 0.9rem;
  color: #a12626;
}

.formular__datenschutz {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-leise);
}

.formular .button {
  justify-self: center;
}

.formular__falle {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.fuss {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-leise);
  text-align: center;
}

/* ==========================================================
   Geschuetzter Bereich
   ========================================================== */

.kopf {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--blau);
  box-shadow: 0 4px 16px rgba(29, 43, 79, 0.25);
}

.kopf__innen {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center; /* Logo mittig */
  max-width: 64rem;
  margin: 0 auto;
  padding: 0.7rem 1rem;
}

.kopf__logo {
  color: var(--eis);
  font-size: min(1.7rem, 6vw); /* passt auch bei vergroesserter Handy-Schrift neben den Menue-Knopf */
  text-decoration: none;
}

.kopf__menueknopf {
  position: absolute;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.4rem 1rem;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: 600 1rem var(--schrift-titel);
  cursor: pointer;
}

/* drei Striche, beim Oeffnen wird daraus ein X */
.kopf__burger,
.kopf__burger::before,
.kopf__burger::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.kopf__burger {
  position: relative;
}

.kopf__burger::before,
.kopf__burger::after {
  content: "";
  position: absolute;
  left: 0;
}

.kopf__burger::before {
  top: -6px;
}

.kopf__burger::after {
  top: 6px;
}

.menue-offen .kopf__burger {
  background: transparent;
}

.menue-offen .kopf__burger::before {
  transform: translateY(6px) rotate(45deg);
}

.menue-offen .kopf__burger::after {
  transform: translateY(-6px) rotate(-45deg);
}

.menue {
  display: none;
  background: var(--blau-dunkel);
}

.menue-offen .menue {
  display: block;
}

.menue ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 0.25rem;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0.75rem 1rem 1rem;
  list-style: none;
}

.menue a {
  display: block;
  padding: 0.6rem 0.9rem;
  border-radius: 0.6rem;
  color: #fff;
  font-family: var(--schrift-titel);
  font-weight: 500;
  font-size: 1.05rem;
  text-decoration: none;
}

.menue a:hover,
.menue a:focus-visible {
  background: rgba(255, 255, 255, 0.15);
}

.menue a[aria-current="page"] {
  background: var(--bier);
  color: var(--blau-dunkel);
}

/* Breite Bildschirme: Menue immer sichtbar als Leiste */
@media (min-width: 60rem) {
  .kopf__menueknopf {
    display: none;
  }

  .menue {
    display: block;
  }

  .menue ul {
    display: flex;
    flex-wrap: wrap;
    padding: 0.4rem 1rem;
  }

  .menue a {
    padding: 0.4rem 0.75rem;
    font-size: 1rem;
  }
}

.inhalt {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* lange Woerter duerfen die Spalte nicht sprengen */
  gap: 1.5rem;
}

.karte {
  padding: 1.5rem;
  background: var(--weiss);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
}

.karte > :first-child {
  margin-top: 0;
}

.karte > :last-child {
  margin-bottom: 0;
}

.karte h1 {
  font-size: clamp(1.8rem, 6vw, 2.4rem);
}

.karte__gruss {
  font-family: var(--schrift-titel);
  font-size: 1.15rem;
  color: var(--blau-dunkel);
}

.leise {
  font-family: var(--schrift-text);
  font-size: 0.85rem;
  color: var(--text-leise);
}

.rot {
  color: var(--rot);
}

/* Grosser Kasten oben auf der Home-Seite */
.held {
  display: grid;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem 1.5rem;
  background: var(--weiss);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  text-align: center;
}

.held h1 {
  margin: 0.25rem 0;
  font-size: clamp(2.2rem, 8vw, 3.2rem);
  color: var(--blau);
}

.held__vorzeile {
  margin: 0;
  font-family: var(--schrift-titel);
  font-size: 1.2rem;
  color: var(--text-leise);
}

.held__termin {
  margin: 0 0 1.25rem;
  font-family: var(--schrift-titel);
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 600;
  color: var(--rot);
}

.held__frist {
  margin: 1.1rem 0 0;
  font-size: 0.95rem;
  color: var(--text-leise);
}

.held__bild {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 1rem;
}

.held__bild img {
  display: block;
  width: 100%;
  mix-blend-mode: multiply;
}

/* Bild unter dem Text ueber die volle Kartenbreite, damit die Szene gross genug ist */
@media (min-width: 45rem) {
  .held {
    padding: 2rem 2.5rem;
  }
}

/* Titelbild in der Einladung */
.einladung__bild img {
  display: block;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto 1rem;
  mix-blend-mode: multiply;
}

.kontakt {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 0 2rem;
}

/* Einladung: Begriff links, Beschreibung rechts */
.steckbrief {
  display: grid;
  gap: 0.35rem 1.5rem;
  margin: 1.25rem 0 1.5rem;
}

.steckbrief dt {
  margin-top: 0.75rem;
  font-family: var(--schrift-titel);
  font-weight: 600;
  color: var(--blau-dunkel);
}

.steckbrief dd {
  margin: 0;
}

@media (min-width: 40rem) {
  .steckbrief {
    grid-template-columns: 10rem 1fr;
  }

  .steckbrief dt,
  .steckbrief dd {
    margin-top: 0;
    padding: 0.6rem 0;
    border-top: 1px solid var(--linie);
  }
}

.liste {
  margin: 0;
  padding-left: 1.2rem;
}

/* Rahmen fuer noch nicht umgebaute Seiten */
.altseite {
  overflow-x: auto;
  background: var(--weiss);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
}

.altseite iframe {
  display: block;
  width: 100%;
  min-width: 40rem;
  height: 70vh;
  border: 0;
}

/* ---------- Login, Anmeldung, Adressbuch ---------- */

.schmal {
  width: 100%;
  max-width: 32rem;
  justify-self: center;
}

.knopfreihe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.button--klein {
  min-height: 2.4rem;
  padding: 0.45em 1.1em;
  font-size: 1rem;
}

.meldung--ok {
  background: #e7f6ec;
  border: 1px solid #a9dcb8;
  color: #1d5c31;
}

.hinweisbox {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--blau-hell);
  border-radius: 0.9rem;
  font-size: 0.95rem;
}

.hinweisbox p {
  margin: 0.4rem 0;
}

.hervorgehoben {
  border: 3px solid var(--bier);
}

.held__termin--klein {
  margin: 0 0 0.75rem;
  font-size: 1.3rem;
}

.unsichtbar {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.linkknopf {
  padding: 0;
  border: 0;
  background: none;
  color: var(--blau);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.linkknopf--gefahr {
  color: #b42318;
}

.abmelden {
  text-align: center;
}

/* Abschluss von "Meine Angaben" im Anmelde-Ablauf */
.weiter-zur-anmeldung {
  text-align: center;
}

.weiter-zur-anmeldung p {
  margin: 0 0 0.75rem;
  font-family: var(--schrift-titel);
  font-size: 1.3rem;
  letter-spacing: 0.05em;
}

/* Eingeloggt als ... – Nicht Du? Abmelden */
.wer {
  margin: 0 0 1rem;
  padding: 0.6rem 0.9rem;
  background: var(--blau-hell);
  border-radius: 0.6rem;
  font-size: 0.95rem;
}

.formular select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 2px solid var(--rahmen);
  border-radius: 0.75rem;
  background: var(--weiss);
  font: inherit;
  color: var(--text);
}

.formular select:focus {
  outline: none;
  border-color: var(--blau);
  box-shadow: 0 0 0 3px rgba(29, 43, 79, 0.2);
}

.formular h2 {
  margin: 0.75rem 0 0;
  font-size: 1.2rem;
}

.formular--zweispaltig {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1rem 1.25rem;
  align-items: end;
}

.formular--zweispaltig > .formular__haken,
.formular--zweispaltig > .button,
.formular--zweispaltig > .knopfreihe {
  grid-column: 1 / -1;
  justify-self: start;
}

.formular--eingebettet {
  margin: 0.5rem 0;
  padding: 1rem;
  background: var(--blau-hell);
  border-radius: 0.9rem;
}

.formular__feld--kurz input {
  max-width: 7rem;
}

.formular__haken {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 400 !important;
  color: var(--text) !important;
}

.formular__haken input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
  flex: none;
}

.frage {
  margin: 0;
  padding: 0;
  border: 0;
}

.frage legend {
  margin-bottom: 0.3rem;
  padding: 0;
  font-weight: 600;
  color: var(--blau-dunkel);
}

.frage label {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  margin-right: 1.5rem;
  font-weight: 400;
  color: var(--text);
}

.frage input {
  width: 1.2rem;
  height: 1.2rem;
}

.suche {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.suche input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.9rem;
  border: 2px solid var(--rahmen);
  border-radius: 999px;
  font: inherit;
}

.namensliste {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.namensliste a,
.namensliste span {
  display: block;
  padding: 0.7rem 1rem;
  background: var(--weiss);
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(29, 43, 79, 0.08);
}

.namensliste a {
  font-weight: 600;
  text-decoration: none;
}

.namensliste a:hover,
.namensliste a:focus-visible {
  background: var(--blau-hell);
}

.namensliste span {
  color: var(--text-leise);
}

.kontaktliste {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.kontaktliste__eintrag {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--linie);
}

.kontaktliste__aktionen {
  display: flex;
  gap: 1rem;
}

.admin-aktion {
  margin-top: 1rem;
}

/* ---------- Tabellen (Teilnehmer, Verwaltung) ---------- */

.tabelle-rahmen {
  overflow-x: auto;
  padding: 0.5rem;
}

.tabelle {
  width: 100%;
  border-collapse: collapse;
}

.tabelle th,
.tabelle td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--linie);
  text-align: left;
  white-space: nowrap;
}

.tabelle th {
  font-family: var(--schrift-titel);
  font-weight: 600;
  color: var(--blau-dunkel);
}

.tabelle tbody tr:hover {
  background: var(--eis);
}

.tabelle--klein {
  font-size: 0.9rem;
}

.tabelle__bemerkung td {
  padding-top: 0;
  white-space: normal;
  color: var(--text-leise);
}

.zahlknopf {
  padding: 0.3rem 0.7rem;
  border: 2px solid var(--rahmen);
  border-radius: 999px;
  background: var(--weiss);
  font: inherit;
  cursor: pointer;
}

.zahlknopf--da {
  border-color: #a9dcb8;
  background: #e7f6ec;
  color: #1d5c31;
}

@media print {
  .kopf,
  .fuss,
  .button {
    display: none !important;
  }

  body {
    background: var(--weiss);
  }

  .karte,
  .held {
    box-shadow: none;
  }
}

/* ---------- Textseiten (AGB, Jubilaeum) ---------- */

.text {
  max-width: 48rem;
}

.text h2 {
  margin: 1.75rem 0 0.4rem;
  font-size: 1.25rem;
}

/* ---------- Links ---------- */

.linkliste {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.linkkarte {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
  padding: 1rem 1.25rem;
  background: var(--weiss);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.15s ease;
}

.linkkarte:hover,
.linkkarte:focus-visible {
  transform: translateY(-3px);
}

.linkkarte span {
  min-width: 0;
  overflow-wrap: anywhere; /* lange Namen wie Fontanella/Faschina duerfen umbrechen */
}

.linkkarte img {
  flex: none;
  width: min(6rem, 30%);
  object-fit: contain;
}

.linkkarte strong {
  display: block;
  font-family: var(--schrift-titel);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--blau-dunkel);
}

/* ---------- Anfahrt ---------- */

.bildkarte {
  margin: 0;
  text-align: center;
}

.bildkarte img {
  display: block;
  margin: 0 auto;
}

.bildkarte figcaption {
  margin-top: 0.5rem;
}

/* ---------- Livebilder ---------- */

.webcams {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.webcam {
  overflow: hidden;
  background: var(--weiss);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
}

.webcam img {
  display: block;
  width: 100%;
  min-height: 8rem;
  background: var(--blau-hell);
}

.webcam p {
  margin: 0;
  padding: 0.7rem 1rem;
  font-family: var(--schrift-titel);
  font-weight: 600;
  color: var(--blau-dunkel);
}

.schneebericht {
  display: block;
  width: 100%;
  max-width: 300px;
  height: 381px;
  border: 0;
}

/* ---------- Videos ---------- */

.videogruppe h2 {
  margin: 0.5rem 0 0.75rem;
}

.videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.video {
  overflow: hidden;
  background: var(--weiss);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
}

.video video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #000;
}

.video p {
  margin: 0;
  padding: 0.7rem 1rem;
  font-family: var(--schrift-titel);
  font-weight: 600;
  color: var(--blau-dunkel);
}

/* ---------- Historie ---------- */

.historie {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.historie__eintrag {
  display: grid;
  gap: 1rem 1.5rem;
  align-items: start;
}

.historie__eintrag h2 {
  margin: 0;
}

.historie__ausfall {
  padding-block: 1rem;
  border: 2px dashed var(--rahmen);
  background: transparent;
  box-shadow: none;
  text-align: center;
  color: var(--text-leise);
}

.historie__logo {
  width: 8rem;
  border-radius: 0.6rem;
}

.historie__datum {
  margin: 0.2rem 0 0.75rem;
  color: var(--rot);
  font-weight: 600;
}

.historie summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--blau);
}

.historie__namen {
  columns: 12rem auto;
  column-gap: 1.5rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.historie__namen li {
  break-inside: avoid;
  padding: 0.1rem 0;
}

@media (min-width: 40rem) {
  .historie__eintrag:has(.historie__logo) {
    grid-template-columns: 8rem 1fr;
  }
}

/* ---------- Gaestebuch ---------- */

.gaestebuch {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gaestebuch__kopf {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  margin: 0 0 0.5rem;
}

.gaestebuch__kopf strong {
  font-family: var(--schrift-titel);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--blau);
}

.gaestebuch__text {
  margin: 0;
  overflow-wrap: anywhere;
}

.gaestebuch__loeschen {
  margin-top: 0.5rem;
  text-align: right;
}

/* ---------- Jubilaeum ---------- */

.jubi-bilder {
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.jubi-bilder img {
  border-radius: 0.6rem;
}

/* ---------- Bildergalerie ---------- */

.alben,
.galerie {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.alben {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
  gap: 1rem;
}

.album {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--weiss);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.15s ease;
}

.album:hover,
.album:focus-visible {
  transform: translateY(-3px);
}

.album img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--blau-hell);
}

.album__titel {
  padding: 0.75rem 1rem 0;
  font-family: var(--schrift-titel);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--blau-dunkel);
}

.album__anzahl {
  padding: 0 1rem 0.9rem;
  font-size: 0.9rem;
  color: var(--text-leise);
}

.galerie-kopf h1 {
  margin: 0.25rem 0;
}

.zurueck {
  font-weight: 600;
  text-decoration: none;
}

.galerie {
  grid-template-columns: repeat(auto-fill, minmax(min(30%, 9rem), 1fr));
  gap: 0.5rem;
}

.galerie a {
  display: block;
  overflow: hidden;
  border-radius: 0.6rem;
  background: var(--blau-hell);
}

.galerie img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.galerie a:hover img,
.galerie a:focus-visible img {
  transform: scale(1.05);
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(5, 12, 35, 0.95);
}

.lightbox::backdrop {
  background: rgba(5, 12, 35, 0.95);
}

.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__bild {
  max-width: 100%;
  max-height: calc(100dvh - 5rem);
  object-fit: contain;
  user-select: none;
}

.lightbox__zaehler {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  color: #fff;
  font-family: var(--schrift-titel);
}

.lightbox__knopf {
  position: absolute;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox__knopf:hover,
.lightbox__knopf:focus-visible {
  background: rgba(255, 255, 255, 0.3);
  outline: none;
}

.lightbox__zu {
  top: 1rem;
  right: 1rem;
}

.lightbox__zurueck,
.lightbox__weiter {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__zurueck {
  left: 1rem;
}

.lightbox__weiter {
  right: 1rem;
}

.fuss--bereich {
  padding: 0 1rem 2rem;
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }

  .button:hover {
    transform: none;
  }
}

/* ---------- Feinschliff fuer die schmale Etikett-Schrift ---------- */

.button,
.kopf__menueknopf,
.menue a,
.steckbrief dt,
.tabelle th,
.linkkarte strong,
.webcam p,
.video p,
.album__titel,
.lightbox__zaehler,
.held__vorzeile,
.held__termin,
.start__untertitel,
.start__gruss,
.karte__gruss {
  letter-spacing: 0.05em;
  font-weight: 400;
}

.button {
  font-size: 1.35rem;
}

.menue a {
  font-size: 1.2rem;
}

.steckbrief dt {
  font-size: 1.15rem;
}

/* Kopfleiste: Menue-Leiste mittig, auf schmalen Handys nur das Menue-Symbol */

@media (min-width: 60rem) {
  .menue ul {
    justify-content: center;
  }
}

@media (max-width: 26rem) {
  .kopf__menueknopf {
    padding: 0.4rem 0.75rem;
  }

  .kopf__menueknopf-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}
