/* Schleswiger Husaren – eigene Ergänzungen zu Bootstrap
   Designidee: Konzertprogramm statt Vereinsblatt. Source Serif 4 für Überschriften,
   Nachtblau für den Konzertabend im Dom, Messing als Akzent der Instrumente – sparsam eingesetzt. */

/* Schriften liegen lokal (keine Verbindung zu Google Fonts), Lizenz: SIL Open Font License */
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/source-serif-4.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/source-serif-4-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/source-sans-3.woff2") format("woff2");
}

:root {
  --brand: #005293;        /* Blau aus dem Vereinslogo */
  --brand-dark: #003d6e;
  --navy: #0e2238;         /* Nachtblau: Titelbereich, Konzerte, Fußzeile */
  --navy-soft: #1a3350;
  --ink: #1b2533;
  --muted: #5a6575;
  --brass: #c9a352;        /* Messing – nur auf Nachtblau als Schrift, sonst als Linie */
  --brass-dark: #94722c;
  --mist: #eef2f6;
  --line: #d9e0e8;
  --nav-height: 80px;

  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --bs-body-font-family: var(--font-body);
  --bs-body-font-size: 1.0625rem;
  --bs-body-line-height: 1.6;
  --bs-body-color: var(--ink);
  --bs-border-radius: .25rem;
  --bs-link-color: var(--brand);
  --bs-link-color-rgb: 0, 82, 147;
  --bs-link-hover-color: var(--brand-dark);
  --bs-link-hover-color-rgb: 0, 61, 110;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);   /* Abschnitte nicht unter der fixen Navigation verstecken */
}

body {
  padding-top: var(--nav-height);
  background: #fff;
  font-feature-settings: "kern", "liga";
}

h1, h2, .display-serif {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.15;
}
h3, .h3, .h4, .h5, .h6 { font-family: var(--font-body); font-weight: 600; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

.text-brand { color: var(--brand) !important; }

.btn { border-radius: 2px; font-weight: 600; padding: .55rem 1.25rem; }
.btn-brand {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--brand-dark);
  --bs-btn-hover-border-color: var(--brand-dark);
  --bs-btn-active-bg: var(--brand-dark);
  --bs-btn-active-border-color: var(--brand-dark);
}
/* Kartenkauf: Messing auf Nachtblau */
.btn-brass {
  --bs-btn-color: var(--navy);
  --bs-btn-bg: var(--brass);
  --bs-btn-border-color: var(--brass);
  --bs-btn-hover-color: var(--navy);
  --bs-btn-hover-bg: #dbb868;
  --bs-btn-hover-border-color: #dbb868;
  --bs-btn-active-bg: #dbb868;
  --bs-btn-active-border-color: #dbb868;
}
.btn-ghost-light {
  --bs-btn-color: #fff;
  --bs-btn-border-color: rgba(255, 255, 255, .45);
  --bs-btn-hover-color: var(--navy);
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-border-color: #fff;
  --bs-btn-active-bg: #fff;
  --bs-btn-active-color: var(--navy);
}

/* Navigation */
.navbar { min-height: var(--nav-height); border-bottom: 1px solid var(--line); }
.brand-logo { height: 56px; width: auto; }
@media (max-width: 575.98px) { .brand-logo { height: 46px; } }
.navbar .nav-link { font-weight: 500; color: var(--ink); padding-inline: .7rem !important; }
.navbar .nav-link:hover,
.navbar .nav-link.active { color: var(--brand); }
.navbar .nav-link.active { box-shadow: inset 0 -2px 0 var(--brass); }
@media (max-width: 991.98px) {
  .navbar .nav-link.active { box-shadow: inset 3px 0 0 var(--brass); padding-left: .75rem !important; }
}

/* Titelbereich: das Gruppenfoto wird nie beschnitten, damit immer alle Musiker zu sehen sind */
.hero {
  background: var(--navy);
  color: #fff;
  scroll-margin-top: var(--nav-height);
}
.hero-img {
  display: block;
  width: 100%;
  max-width: 1200px;
  height: auto;
  max-height: calc(100svh - var(--nav-height) - 12rem);   /* Konzerthinweis bleibt am unteren Rand sichtbar */
  margin-inline: auto;
  object-fit: contain;
}
.hero-caption { padding: 1.5rem 0 1.75rem; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 500;
  line-height: 1.05;
  margin: 0 0 .5rem;
}
.hero-subtitle { font-size: clamp(1rem, 1.6vw, 1.15rem); margin: 0; color: #b9c6d6; max-width: 32rem; }

/* Nächstes Konzert im Titelbereich */
.next-concert {
  border-left: 2px solid var(--brass);
  padding-left: 1.5rem;
}
.next-concert-label {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--brass);
  font-size: 1.05rem;
  margin: 0;
}
.next-concert-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: .1rem 0 .35rem;
}
.next-concert-when { color: #d7dfe9; margin-bottom: 1rem; }

/* Abschnitte: Überschrift links, Inhalt rechts – hält die Seite kompakt */
.section { padding: 4.5rem 0; }
.section-sm { padding: 2.5rem 0; }
.section-alt { background: var(--mist); }
.section-title {
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  margin-bottom: 1.25rem;
}
.section-title::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  margin-top: .9rem;
  background: var(--brass-dark);
}
.section-intro { color: var(--muted); max-width: 22rem; }
@media (min-width: 992px) {
  .section-head { position: sticky; top: calc(var(--nav-height) + 2rem); }
}
.lead { font-size: 1.25rem; font-weight: 400; line-height: 1.5; }
.prose { max-width: 40rem; }
.prose h3 { font-size: 1.0625rem; margin: 1.75rem 0 .35rem; }
.prose h3:first-child { margin-top: 0; }

.section-photo { border-radius: 2px; }
.intro-logo { display: block; width: 100%; max-width: 320px; height: auto; margin-top: 1.75rem; }

/* Kurzangaben (Startseite) */
.facts { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.5rem; margin: 2rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--muted); }

/* Konzerte: der Konzertabend in Nachtblau */
.section-concert { background: var(--navy); color: #e4eaf1; }
.section-concert .section-title { color: #fff; }
.section-concert .section-title::after { background: var(--brass); }
.section-concert a:not(.btn) { color: #fff; }
.section-concert .concert-name { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2rem); color: #fff; font-weight: 500; margin: 0 0 .25rem; }
.section-concert .concert-date { font-family: var(--font-display); font-style: italic; color: var(--brass); font-size: 1.15rem; margin-bottom: 1rem; }
.concert-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .45rem 2rem;
  margin: 1.75rem 0;
  padding: 1.25rem 0;
  border-block: 1px solid rgba(255, 255, 255, .15);
}
.concert-facts dt { font-weight: 400; color: #9fb0c4; }
.concert-facts dd { margin: 0; color: #fff; font-weight: 600; }
.concert-poster { border-radius: 2px; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.ticket-note { display: flex; gap: 1.25rem; align-items: center; margin-top: 3rem; font-size: .95rem; color: #9fb0c4; }
.ticket-note-logo { flex: 0 0 auto; background: #fff; padding: .5rem .75rem; border-radius: 2px; }
.ticket-note-logo img { width: 120px; height: auto; display: block; }

/* Medien */
.video { margin: 0; }
.video figcaption { margin-top: .45rem; font-size: .95rem; font-weight: 600; line-height: 1.3; }
.media-note { font-size: .9rem; color: var(--muted); }

/* Zwei-Klick-Lösung: Platzhalter für YouTube und Google Maps */
.embed-consent { background: var(--navy); overflow: hidden; border-radius: 2px; }
.embed-consent > img { object-fit: cover; }
.embed-consent-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: 1rem;
  text-align: center;
  color: #fff;
  background: rgba(14, 34, 56, .35);
}
.embed-consent-overlay p { margin: 0; font-size: .8rem; max-width: 30rem; }
.embed-consent-overlay a { color: #fff; }
/* runder Abspielknopf in den Video-Kacheln */
.video .embed-consent-load {
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
}
.video .embed-consent:hover .embed-consent-load { transform: scale(1.06); }
.embed-consent-map { background: #fff; border: 1px solid var(--line); }
.embed-consent-map .embed-consent-overlay { background: none; color: var(--ink); }
.embed-consent-map .embed-consent-overlay a { color: var(--brand); }
.embed-consent-map .embed-consent-address { font-size: 1rem; }

/* Kontakt */
.contact-list { margin: 0; }
.contact-list dt { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; }
.contact-list dd { margin: .15rem 0 1.5rem; }
.map { --bs-aspect-ratio: 75%; }
.map iframe { border: 0; }

/* Partnerlogos */
.partner-logos img { max-height: 64px; width: auto; }
.partner-label { color: var(--muted); }

/* Impressum und Datenschutz: kleinere Schrift, gut lesbare Zeilenlänge */
.legal { font-size: .95rem; }
.legal > * { max-width: 46rem; }
.legal h3 { font-size: 1rem; margin-top: 1.5rem; }

/* Footer */
.site-footer { background: var(--navy); color: #b9c6d6; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Nach-oben-Button: erscheint erst unterhalb des Titelbilds (ohne JavaScript immer sichtbar) */
.scroll-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  border: 1px solid var(--brass);
  color: var(--brass);
  font-size: 1.25rem;
  text-decoration: none;
  z-index: 1020;
  transition: opacity .2s, visibility .2s;
}
.scroll-top:hover { background: var(--brass); color: var(--navy); }
.js .scroll-top:not(.is-visible) { opacity: 0; visibility: hidden; }

@media (prefers-reduced-motion: no-preference) {
  .video .embed-consent-load { transition: transform .15s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-top { transition: none; }
}
