/* ==========================================================================
   Capo47 – gemeinsames Stylesheet für alle Seiten
   ========================================================================== */

:root {
  /* Palette sampled from photos/capo47-logo.jpg */
  --color-bg: #101c19;
  --color-bg-alt: #182722;
  --color-text: #f4f2ea;
  --color-text-muted: #9db2ac;
  --color-accent: #cf8a4a;        /* terracotta – guitar strings / duck */
  --color-accent-dark: #a96f39;
  --color-accent-teal: #7fc0a8;   /* mint teal – logo background circle */
  --color-accent-yellow: #deea80; /* neon yellow-green – the "47" (im Logo gemessen) */
  --color-border: #24352f;
  --max-width: 960px;
  --font-base: "Segoe UI", system-ui, -apple-system, sans-serif;
  /* Ueberschriften: Oswald (liegt in fonts/, kein Abruf bei Google) */
  --font-titel: "Oswald", "Segoe UI", system-ui, sans-serif;
}

@font-face { font-family: "Oswald"; font-weight: 500; font-display: swap; src: url("fonts/oswald-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 600; font-display: swap; src: url("fonts/oswald-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 700; font-display: swap; src: url("fonts/oswald-latin-700.woff2") format("woff2"); }

h1, h2, h3, .logo {
  font-family: var(--font-titel);
  font-weight: 600;
  letter-spacing: 0.02em;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-base);
  line-height: 1.6;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* ---- Layout ---- */

.site-header {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-text);
}

.logo:hover {
  text-decoration: none;
  color: var(--color-accent);
}

.logo-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  color: var(--color-text-muted);
  font-weight: 600;
}

.nav a:hover {
  color: var(--color-text);
  text-decoration: none;
}

/* Anfragen: der eine Knopf, den Kunden suchen - auf jeder Seite oben */
.nav a.nav-cta {
  color: #fff;
  background: var(--color-accent);
  padding: 0.2rem 0.8rem;
  border-radius: 6px;
}

.nav a.nav-cta:hover {
  background: var(--color-accent-dark);
}

.nav a[aria-current="page"] {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 2px solid var(--color-accent-teal);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 1.2rem;
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  cursor: pointer;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
}

/* ---- Hero (Startseite) ---- */

.hero {
  text-align: center;
  padding: 4rem 1rem;
}

.hero--photo {
  background-image: linear-gradient(180deg, rgba(16, 28, 25, 0) 30%, rgba(16, 28, 25, 0.55) 60%, rgba(16, 28, 25, 0.92) 100%),
    url("photos/band-feld-sonnenuntergang.webp");
  background-size: cover;
  background-position: center 35%;
  border-radius: 12px;
  margin-top: 1.5rem;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 2rem 1rem 2.25rem;
}

.hero-inhalt {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

.hero .hero-spruch {
  font-family: var(--font-titel);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--color-text);
  margin: 0 0 0.25rem;
}

.hero .hero-unterzeile {
  font-size: 1rem;
  color: #e6e6e6;
  margin: 0 0 1.5rem;
}

.hero h1 {
  font-size: 3.2rem;
  margin: 0;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.hero--photo h1 {
  color: var(--color-accent-yellow);
  /* Leuchtschein wie die "47" im Logo, dazu ein dunkler Schatten fuers Foto */
  text-shadow: 0 0 10px rgba(222, 234, 128, 0.55), 0 0 28px rgba(222, 234, 128, 0.35), 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero p {
  color: var(--color-text-muted);
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

.hero--photo p {
  color: #e6e6e6;
}

.button {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 0.75rem 1.6rem;
  border-radius: 6px;
  font-weight: 600;
}

.button:hover {
  background: var(--color-accent-dark);
  text-decoration: none;
}

.hero-knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.button--zweit {
  background: rgba(16, 28, 25, 0.55);
  border: 2px solid var(--color-accent);
  padding: calc(0.75rem - 2px) calc(1.6rem - 2px);
}

.button--zweit:hover {
  background: rgba(16, 28, 25, 0.8);
}

.weiter-hinweis {
  margin-top: 1rem;
  color: var(--color-text-muted);
}

.site-footer a {
  color: var(--color-text-muted);
}

/* ---- Generic sections ---- */

section {
  margin-bottom: 2.5rem;
}

h2 {
  font-size: 1.7rem;
  margin: 0 0 1rem;
}

h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 0.35rem;
  border-radius: 2px;
  background: var(--color-accent);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.25rem;
}

.card h3 {
  margin-top: 0;
}

.card--member {
  text-align: center;
}

.member-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.75rem;
  border: 2px solid var(--color-accent-teal);
}

.card .role {
  display: inline-block;
  color: var(--color-accent-teal);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0.15rem 0 0.6rem;
}

.card .place {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.photo-figure {
  margin: 0 0 2.5rem;
}

.photo-figure img {
  border-radius: 8px;
  width: 100%;
  height: auto;
}

.photo-figure figcaption {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* ---- Setlist (öffentlich) ---- */

/* Akustik und volle Kapelle sollen als zwei eigenstaendige Listen lesbar
   sein, nicht nur als weitere Ueberschrift. Daher ein eigener Rahmen je
   Besetzung, farblich unterschieden. */
.lineup-block {
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: 12px;
  padding: 1.25rem 1.25rem 0.5rem;
  margin-bottom: 2rem;
  background: rgba(24, 39, 34, 0.45);
}

.lineup-block.akustik {
  border-left-color: var(--color-accent-teal);
}

.lineup-block > h3 {
  font-size: 1.25rem;
  margin: 0 0 0.35rem;
  color: var(--color-accent);
}

.lineup-block.akustik > h3 {
  color: var(--color-accent-teal);
}

.lineup-block > .lineup-intro {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0 0 1.25rem;
  max-width: 55ch;
}

.lineup-count {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: normal;
}

.setlist-category {
  margin-bottom: 1.75rem;
}

.setlist-category h3 {
  color: var(--color-accent-teal);
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

/* Rubriken - Trauung, Abschluss - sind kein drittes Besetzungs-Set, sondern
   ein Blick von der anderen Seite auf dieselben Songs. Deshalb dieselbe
   Bauform wie die Besetzungsbloecke, aber in der dritten Farbe. */
.lineup-block.rubrik {
  border-left-color: var(--color-accent-yellow);
}

.lineup-block.rubrik > h3 {
  color: var(--color-accent-yellow);
}

.lineup-block.rubrik > .song-chip-list {
  margin-bottom: 1rem;
}

/* Der Erklaersatz einer Kategorie. Steht er nicht da, sieht der Block aus
   wie vorher - deshalb sitzt der Abstand am Satz und nicht an der
   Ueberschrift. */
.kategorie-intro {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin: 0 0 0.6rem;
  max-width: 55ch;
}

.setlist-category h3:has(+ .kategorie-intro) {
  margin-bottom: 0.3rem;
}

.song-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.song-chip {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
}

/* Kleine Symbole vor Instagram- und Mail-Links. Als eingebettete Grafik mit
   currentColor: sie nehmen die Linkfarbe an, auch beim Drueberfahren, und
   es braucht kein Icon-Paket aus dem Netz. */
/* Kontakt-Knoepfe (Instagram, E-Mail): gross genug, dass man auf den
   ersten Blick sieht, wohin sie fuehren - Icon, Name, darunter Adresse. */
.kontakt-knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0;
}

.kontakt-knopf {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 240px;
  padding: 12px 20px 12px 14px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-accent-dark);
  border-radius: 14px;
  color: var(--color-text);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.kontakt-knopf:hover,
.kontakt-knopf:focus-visible {
  background: rgba(207, 138, 74, 0.14);
  border-color: var(--color-accent);
  transform: translateY(-1px);
}

.kontakt-knopf:focus-visible {
  outline: 2px solid var(--color-accent-yellow);
  outline-offset: 2px;
}

.kontakt-icon {
  flex: none;
  width: 30px;
  height: 30px;
  padding: 9px;
  box-sizing: content-box;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-bg);
}

.kontakt-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.kontakt-text b {
  font-size: 1.1rem;
}

.kontakt-text small {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

@media (max-width: 520px) {
  .kontakt-knopf {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kontakt-knopf {
    transition: none;
  }
  .kontakt-knopf:hover {
    transform: none;
  }
}

/* ---- FAQ (Akkordeon) ---- */

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  margin-bottom: 0.6rem;
  background: var(--color-bg-alt);
  overflow: hidden;
}

.faq-item > summary {
  cursor: pointer;
  padding: 0.9rem 1rem;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Den Standard-Pfeil ersetzen wir durch ein eigenes Zeichen */
.faq-item > summary::-webkit-details-marker { display: none; }

.faq-item > summary::after {
  content: "+";
  margin-left: auto;
  color: var(--color-accent);
  font-size: 1.3rem;
  line-height: 1;
  flex: none;
  transition: transform 0.15s ease;
}

.faq-item[open] > summary::after {
  content: "−";
}

.faq-item > summary:hover {
  color: var(--color-accent);
}

.faq-item > summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

/* Absaetze (Leerzeile im Bandbereich) bleiben erhalten; die Breite nutzt
   den ganzen Kasten - eine feste Zeichenbreite endete am grossen
   Bildschirm mitten im Kasten. */
.faq-answer {
  padding: 0 1rem 1rem;
  color: var(--color-text-muted);
  white-space: pre-line;
}

/* ---- Verfügbarkeits-Kalender ---- */

.cal-legend {
  display: flex;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.cal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.cal-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.cal-dot-free {
  background: rgba(127, 192, 168, 0.22);
  border: 1px solid rgba(127, 192, 168, 0.6);
}

.cal-dot-blocked {
  background: var(--color-accent);
}

.cal-months {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.cal-month h4 {
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 0.6rem;
  color: var(--color-accent-teal);
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 0.3rem;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.cal-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  border-radius: 4px;
  background: var(--color-bg-alt);
}

.cal-cell.cal-empty {
  background: transparent;
}

.cal-cell.cal-blocked {
  background: var(--color-accent);
  color: #241800;
  font-weight: 600;
}

.cal-cell.cal-past:not(.cal-blocked) {
  opacity: 0.4;
}

a.cal-cell.cal-frei {
  color: var(--color-text);
  text-decoration: none;
  background: rgba(127, 192, 168, 0.12);
  border: 1px solid rgba(127, 192, 168, 0.35);
  cursor: pointer;
}

a.cal-cell.cal-frei:hover,
a.cal-cell.cal-frei:focus-visible {
  background: var(--color-accent-teal);
  color: #0d1a16;
  font-weight: 600;
}

.cal-cell.cal-today {
  outline: 2px solid var(--color-accent-teal);
  outline-offset: -2px;
}

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
}

.cal-nav-btn {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
}

.cal-nav-btn:hover:not(:disabled) {
  border-color: var(--color-accent);
}

.cal-nav-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.cal-range-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* ---- Auftritts-Counter ---- */

.zahlen-ueberleitung {
  margin: 1.5rem 0 0.75rem;
  color: var(--color-text-muted);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.stat-tile {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.25rem 1rem;
  text-align: center;
}

.stat-tile .stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.stat-tile .stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.4rem;
}

.stat-tile.stat-total .stat-number {
  color: var(--color-accent-yellow);
}

/* ---- Termine (Gigs) ---- */

.gig-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gig-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.gig-date {
  color: var(--color-accent);
  font-weight: 700;
  min-width: 90px;
}

/* ---- Mobile ---- */

@media (max-width: 640px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.6rem 0;
    border-top: 1px solid var(--color-border);
  }

  .nav a.nav-cta {
    margin-top: 0.4rem;
    padding: 0.6rem 0.8rem;
    text-align: center;
  }

  .site-header__inner {
    flex-wrap: wrap;
  }

  .hero h1 {
    font-size: 2rem;
  }
}

/* ---- Impressum und Datenschutz ---- */

.rechtstext section {
  max-width: 70ch;
}

.rechtstext h1 {
  margin-bottom: 1.5rem;
}

.rechtstext h2 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
}

.rechtstext-stand {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* ---- Startseite: Zahlen, Angebot, naechster Auftritt, FAQ ---- */

.zahlenleiste {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2.5rem;
  padding: 1.25rem 1rem;
  margin: -0.5rem 0 2.5rem;
  border-bottom: 1px solid var(--color-border);
}

.zahl {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.zahl-wert {
  font-family: var(--font-titel);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--color-accent);
}

.zahl:first-child .zahl-wert {
  color: var(--color-accent-yellow);
}

.zahl-wort {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.angebot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .angebot-grid {
    grid-template-columns: 1fr;
  }
}

.angebot h3 {
  color: var(--color-accent-teal);
  margin-bottom: 0.5rem;
}

.angebot ul {
  margin: 0;
  padding-left: 1.1rem;
}

.angebot li {
  margin-bottom: 0.35rem;
}

.angebot li::marker {
  color: var(--color-accent);
}

.naechster-datum {
  font-family: var(--font-titel);
  font-size: 1.5rem;
  color: var(--color-accent);
  margin: 0;
}

.naechster-was {
  margin: 0.2rem 0 0;
}

.mehr-knopf {
  display: block;
  margin: 0.25rem 0 0;
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-accent);
  font: inherit;
  font-weight: 600;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  cursor: pointer;
}

.mehr-knopf:hover {
  border-color: var(--color-accent);
}

/* ---- Bandmitglieder: Steckbriefe ---- */

.steckbriefe {
  display: grid;
  gap: 1rem;
}

.steckbrief {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.1rem 1.25rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 10px;
}

.steckbrief .member-photo {
  width: 112px;
  height: 112px;
  margin: 0;
  border-width: 3px;
}

.steckbrief h3 {
  margin: 0;
  font-size: 1.45rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.75rem;
}

.steckbrief h3 .role {
  font-family: var(--font-base);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--color-accent-teal);
}

.steckbrief-rolle {
  margin: 0.15rem 0 0.6rem;
  font-style: italic;
  color: var(--color-text);
}

.steckbrief dl {
  margin: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  font-size: 0.92rem;
}

.steckbrief dt {
  color: var(--color-text-muted);
  padding: 0.3rem 0.9rem 0.3rem 0;
}

.steckbrief dd {
  margin: 0;
  padding: 0.3rem 0;
}

/* Feine Linie zwischen Lieblingssong und Lieblingsband - ueber beide
   Spalten, deshalb Abstand per padding statt Spaltenluecke. */
.steckbrief dt + dd + dt,
.steckbrief dt + dd + dt + dd {
  border-top: 1px solid var(--color-border);
}

@media (max-width: 640px) {
  .steckbrief {
    grid-template-columns: 72px 1fr;
    gap: 0.9rem;
    padding: 1rem;
  }
  .steckbrief .member-photo {
    width: 72px;
    height: 72px;
  }
  .steckbrief dl {
    grid-template-columns: 1fr;
  }
  .steckbrief dt {
    padding: 0.35rem 0 0;
  }
  .steckbrief dd {
    padding: 0 0 0.35rem;
  }
  /* untereinander: die Linie nur einmal, ueber der zweiten Bezeichnung */
  .steckbrief dt + dd + dt + dd {
    border-top: none;
  }
}

@media (max-width: 640px) {
  /* Hochkant: Foto oben in voller Breite, Schrift darunter - sonst liegt
     der Schriftzug mitten auf den Gesichtern. */
  .hero--photo {
    min-height: 0;
    display: block;
    padding: 50vw 1rem 2rem;
    background-image: linear-gradient(180deg, rgba(16, 28, 25, 0) 30%, rgba(16, 28, 25, 0.75) 42%, rgb(16, 28, 25) 50%),
      url("photos/band-feld-sonnenuntergang.webp");
    background-size: 100% 100%, 100% auto;
    background-position: top center, top center;
    background-repeat: no-repeat;
    background-color: rgb(16, 28, 25);
  }
  .hero .hero-spruch {
    font-size: 1.4rem;
  }
  .zahlenleiste {
    gap: 0.75rem 1.5rem;
  }
}

/* ---- Impressionen (Ueber uns) ---- */

.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}

.galerie-bild {
  padding: 0;
  border: none;
  background: none;
  border-radius: 8px;
  overflow: hidden;
  cursor: zoom-in;
}

.galerie-bild img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.25s ease;
}

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

.galerie-bild:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.galerie-gross {
  padding: 0;
  border: none;
  background: transparent;
  max-width: 95vw;
  max-height: 92vh;
  overflow: visible;
}

.galerie-gross::backdrop {
  background: rgba(5, 10, 9, 0.88);
}

.galerie-gross img {
  max-width: 95vw;
  max-height: 92vh;
  border-radius: 8px;
  cursor: zoom-out;
}

.galerie-zu {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: none;
  background: rgba(16, 28, 25, 0.8);
  color: var(--color-text);
  font-size: 1.1rem;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .galerie-bild img { transition: none; }
  .galerie-bild:hover img { transform: none; }
}

/* ---- Termine: Link zum Veranstalter, Flyer ---- */

.gig-list li {
  align-items: center;
}

.gig-was {
  flex: 1 1 14rem;
}

.gig-link,
.gig-karte {
  white-space: nowrap;
  font-weight: 600;
}

.gig-karte {
  margin-left: 0.25rem;
}

/* Vorschau im Originalformat: feste Hoehe, die Breite ergibt sich aus dem
   Flyer - hoch oder quer, nichts wird abgeschnitten. */
.gig-flyer {
  flex: none;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--color-bg-alt);
  cursor: zoom-in;
  height: 72px;
  max-width: 128px;
  line-height: 0;
}

.gig-flyer img {
  height: 100%;
  width: auto;
  max-width: 128px;
  object-fit: contain;
}

.gig-flyer:hover,
.gig-flyer:focus-visible {
  border-color: var(--color-accent);
}

.gig-flyer--gross {
  height: 112px;
  max-width: 180px;
}

.gig-flyer--gross img {
  max-width: 180px;
}

.naechster-zeile {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

/* ---- Sprungziele (Knoepfe "Jetzt anfragen", "Freie Termine", "Haeufige Fragen") ---- */

/* Kontakt und die Fragen sind jeweils der letzte Abschnitt: ohne
   Mindesthoehe ist die Seite darunter zu kurz, der Browser bleibt am
   Seitenende stehen - und "Jetzt anfragen" landete an derselben Stelle
   wie "Freie Termine". */
#kontakt:target,
#faqSection:target {
  min-height: calc(100vh - 4rem);
}

section:target {
  scroll-margin-top: 1rem;
}

/* Wo man gelandet ist: die Ueberschrift leuchtet kurz in der Akzentfarbe. */
section:target > h2 {
  animation: sprungziel 1.8s ease-out;
}

@keyframes sprungziel {
  0%, 35% { color: var(--color-accent); }
  100%    { color: var(--color-text); }
}

@media (prefers-reduced-motion: reduce) {
  section:target > h2 { animation: none; }
}

/* ---- Intro: eine kleine Buehne in 3D (Three.js, wie die Licht-Ansicht).
   Ein Bodenstrahler vorne links leuchtet das Logo schraeg von vorne an, die
   Kamera schwenkt langsam nach vorn, dann fliegt das Logo an seinen Platz in
   der Kopfzeile (~3 s). Nur wenn <html class="intro"> (einmal pro
   geoeffnetem Tab, siehe script.js). ---- */
html.intro::after {
  /* Dunkel schon vor dem ersten Bild - und Notausgang: verschwindet nach 4 s
     von selbst, falls das Skript nicht laeuft */
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #070d0b;
  animation: intro-notfall 0.4s ease 4s forwards;
}
html.intro.intro-laeuft::after { display: none; }
@keyframes intro-notfall { to { opacity: 0; visibility: hidden; } }
/* Das kleine Logo oben erst zeigen, wenn das grosse dort gelandet ist */
html.intro-laeuft .site-header .logo-img { visibility: hidden; }

.intro-buehne {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background-color: #070d0b;
  cursor: pointer;
  transition: background-color 0.7s ease;
}
.intro-buehne canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: opacity 0.55s ease; }
.intro-buehne.aus { background-color: transparent; }
.intro-buehne.aus canvas { opacity: 0; }
.intro-buehne.weg { opacity: 0; transition: opacity 0.25s ease; }
/* Flache Kopie des Logos fuer den Flug in die Kopfzeile */
.intro-flieger {
  position: fixed;
  border-radius: 50%;
  object-fit: cover;
  z-index: 1002;
  transform-origin: 0 0;
}
