/* Halfinger Blasmusik – gemeinsames Stylesheet für alle Seiten */

/* Schriften lokal eingebunden (keine Verbindung zu Google beim Seitenaufruf) */
@font-face {
  font-family: "Arvo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/arvo-700.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/open-sans.woff2") format("woff2");
}

:root {
  --rot: #e74c3c;
  --rot-dunkel: #c0392b;
  --grau: #7f8c8d;
  --text: #222;
  --text-hell: #555;
  --hintergrund: #fff;
  --hintergrund-alt: #f6f6f6;
  --footer: #2a2b33;
  --breite: 72rem;
  --abstand: clamp(1rem, 4vw, 2.5rem);
  --schrift: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --schrift-titel: "Arvo", Georgia, "Times New Roman", serif;
}

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

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

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--hintergrund);
  border-top: 6px solid var(--rot-dunkel);
}

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

a {
  color: var(--rot-dunkel);
}
a:hover,
a:focus-visible {
  color: var(--rot);
}

:focus-visible {
  outline: 3px solid var(--rot);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  line-height: 1.25;
  text-wrap: balance;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: #fff;
}
.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* ---------- Navigation ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid #eee;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 var(--abstand);
  min-height: 3.5rem;
}

.nav-brand {
  display: none;
  font-family: var(--schrift-titel);
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg {
  width: 1.75rem;
  height: 1.75rem;
}
.nav-toggle .icon-close {
  display: none;
}
.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}
.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: block;
  padding: 0.75rem 1.1rem;
  font-family: var(--schrift-titel);
  font-weight: 700;
  font-size: 1.05rem;
  color: #95a5a6;
  text-decoration: none;
  transition: color 0.3s;
}
.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--rot-dunkel);
}
.nav-list a[aria-current="page"] {
  color: #333;
}

@media (max-width: 48rem) {
  .nav-inner {
    justify-content: space-between;
  }
  .nav-brand,
  .nav-toggle {
    display: flex;
  }
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  }
  .nav-list.is-open {
    display: flex;
  }
  .nav-list a {
    padding: 1rem var(--abstand);
    border-top: 1px solid #f0f0f0;
  }
  /* Ohne JavaScript bleibt das Menü einfach sichtbar */
  .no-js .nav-list {
    display: flex;
    position: static;
    box-shadow: none;
  }
  .no-js .nav-toggle {
    display: none;
  }
}

/* ---------- Kopfbereich (Startseite) ---------- */

.hero {
  position: relative;
  aspect-ratio: 2 / 1;
  max-height: 80vh;
  min-height: 14rem;
  width: 100%;
  overflow: hidden;
  background: #333;
}

.hero .slideshow,
.hero .slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero .slideshow img {
  object-fit: cover;
}

.hero-title {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 3vw, 2.5rem);
  padding: clamp(0.4rem, 1.5vw, 0.9rem) 1rem;
  background: rgba(0, 0, 0, 0.45);
}

.hero-title h1 {
  margin: 0;
  font-family: var(--schrift-titel);
  font-weight: 700;
  font-size: clamp(1.25rem, 4.5vw, 2.6rem);
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-title img {
  width: clamp(2.5rem, 8vw, 5.5rem);
  flex: none;
}

/* ---------- Slideshow ---------- */

.slideshow {
  position: relative;
}
.slideshow img {
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.slideshow img.is-active {
  opacity: 1;
}
/* Kleine Slideshow im Inhalt: erstes Bild bestimmt die Höhe */
.slideshow--inline {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 4px;
}
.slideshow--inline img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

/* ---------- Inhalt ---------- */

.section {
  padding: clamp(2rem, 6vw, 4rem) var(--abstand);
}
.section--alt {
  background: var(--hintergrund-alt);
}

.container {
  max-width: var(--breite);
  margin: 0 auto;
}

.grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
}
@media (min-width: 52rem) {
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.block > * + * {
  margin-top: 1rem;
}

.section h1,
.section h2 {
  margin: 0 0 0.25rem;
  font-family: var(--schrift);
  font-size: clamp(1.35rem, 3.5vw, 1.6rem);
  font-weight: 700;
  color: #000;
  text-align: center;
}
.section .untertitel {
  hyphens: manual;
  text-wrap: balance;
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--rot);
  text-align: center;
}

.section p {
  margin: 0 0 1rem;
  hyphens: auto;
}

.foto {
  margin: 1.5rem 0 0;
}
.foto img {
  width: 100%;
  border-radius: 4px;
}
.foto figcaption {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-hell);
  text-align: center;
}

/* Dekoratives Bild zwischen Abschnitten (Startseite) */
.bildband {
  height: clamp(12rem, 40vw, 28rem);
  background: #444 url("../img/hintergrund-960.jpg") center / cover no-repeat;
}
@media (min-width: 60rem) {
  .bildband {
    background-image: url("../img/hintergrund-1920.jpg");
  }
}

.bildband--bild {
  height: auto;
  background: none;
}
.bildband--bild img {
  width: 100%;
}

.aufruf {
  text-align: center;
}
.aufruf h2 {
  font-size: clamp(1.2rem, 3vw, 1.45rem);
}

.button {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.7rem 1.4rem;
  border: 0;
  border-radius: 4px;
  background: var(--rot-dunkel);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button:hover,
.button:focus-visible {
  background: var(--rot);
  color: #fff;
}

/* ---------- Termine: Kalender und Karte ---------- */

.embed {
  position: relative;
  width: 100%;
  height: 26rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  background: #fafafa;
}
.embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.embed-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-hell);
}
.embed-placeholder p {
  max-width: 28rem;
}

.adresse {
  font-style: normal;
  text-align: center;
  margin-bottom: 1rem;
}

/* ---------- Impressum ---------- */

.rechtstext {
  max-width: 50rem;
  margin: 0 auto;
}
.rechtstext h1 {
  font-family: var(--schrift);
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  margin: 0 0 1rem;
}
.rechtstext h2 {
  text-align: left;
  font-size: 1.3rem;
  margin-top: 2.5rem;
}
.rechtstext h3 {
  font-size: 1.05rem;
  margin: 1.75rem 0 0.4rem;
}
.rechtstext address {
  font-style: normal;
  margin-bottom: 1rem;
}
.rechtstext p {
  overflow-wrap: anywhere;
}
.quelle {
  font-size: 0.85rem;
  color: var(--text-hell);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: clamp(2rem, 6vw, 3.5rem) var(--abstand);
  background: var(--footer) url("../img/footer-muster.jpg") center / cover;
  border-top: 5px solid var(--rot-dunkel);
  color: #fff;
  text-align: center;
  font-weight: 300;
}
.site-footer a {
  color: #fff;
}
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--rot);
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}
.footer-nav a {
  display: inline-block;
  padding: 0.4rem 0;
  text-decoration: none;
}

.social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem;
  text-decoration: none;
}
.social svg {
  width: 2.25rem;
  height: 2.25rem;
}

.site-footer p {
  margin: 0.5rem 0;
}
