/* ==========================================================================
   Blasorchester Stützerbach – Style
   Farben aus dem Vereinslogo: Blau & Gelb
   ========================================================================== */

:root {
  --blue: #2b8fe0;
  --blue-dark: #1f6cb0;
  --blue-darker: #144a7c;
  --yellow: #ffe800;
  --yellow-dark: #e0c900;
  --ink: #1c2733;
  --ink-soft: #4a5866;
  --paper: #ffffff;
  --paper-soft: #f4f8fc;
  --border: #dde8f2;
  --shadow: 0 10px 30px rgba(20, 74, 124, 0.12);
  --radius: 14px;
  --nav-height: 70px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  margin: 0;
  font-family: "Segoe UI", Verdana, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

a {
  color: var(--blue-dark);
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 64px 0;
}

section:nth-of-type(even) {
  background: var(--paper-soft);
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 30px;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 5px;
  background: linear-gradient(90deg, var(--blue), var(--yellow));
  border-radius: 3px;
}

.section-title.center {
  text-align: center;
}

.section-title.center::after {
  left: 50%;
  transform: translateX(-50%);
}

.lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 70ch;
}

.center-text {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

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

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(255, 232, 0, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 232, 0, 0.45);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--paper);
  color: var(--paper);
}

.btn-outline:hover {
  background: var(--paper);
  color: var(--blue-dark);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(20, 74, 124, 0.06);
}

.nav-wrap {
  max-width: 1100px;
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  height: 44px;
  width: auto;
}

.brand-text {
  font-family: Georgia, serif;
  line-height: 1.1;
}

.brand-text strong {
  display: block;
  font-size: 1.05rem;
  color: var(--blue-dark);
}

.brand-text span {
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 1100;
}

.nav-toggle span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--blue-dark);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--blue);
  color: #fff;
}

/* ---------- Hero ---------- */

.hero {
  padding: 0;
  background: linear-gradient(160deg, var(--blue-darker), var(--blue) 65%);
  color: #fff;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 40px;
  padding-top: 70px;
  padding-bottom: 70px;
}

.hero-text .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero-text h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.3em;
}

.hero-text p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  max-width: 52ch;
  margin-bottom: 1.6em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  border: 4px solid rgba(255, 255, 255, 0.25);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-credit {
  margin-top: 10px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  text-align: right;
}

/* ---------- Über uns ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.about-logo {
  text-align: center;
}

.about-logo img {
  max-width: 200px;
  margin: 0 auto;
}

.about-text p {
  margin-bottom: 1em;
}

.about-photo {
  margin: 30px auto 0;
  max-width: 470px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-photo img {
  width: 100%;
}

.figure-caption {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 8px;
}

/* ---------- Besetzung ---------- */

.cast-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

table.cast-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  min-width: 480px;
}

table.cast-table th,
table.cast-table td {
  text-align: left;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

table.cast-table th {
  background: var(--blue);
  color: #fff;
  font-family: Georgia, serif;
  font-weight: normal;
}

table.cast-table tr:last-child td {
  border-bottom: none;
}

table.cast-table tr:nth-child(even) td {
  background: var(--paper-soft);
}

table.cast-table td.instrument {
  font-weight: 700;
  color: var(--blue-dark);
  white-space: nowrap;
}

/* ---------- Aktuelles / Gallery ---------- */

.flyer-box {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 470px;
  margin: 0 auto 20px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  margin-top: 30px;
}

.gallery-item {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.gallery-item .photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-soft);
}

.gallery-item .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item .caption {
  padding: 14px 18px;
}

.gallery-item .caption h3 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.gallery-item .caption span {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ---------- Termine ---------- */

.termine-frame-wrap {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 24px;
}

#km-list-frame {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 600px;
  min-height: 600px;
  margin: 0 auto;
  border: solid 1px #bbb;
  border-radius: 8px;
}

/* ---------- Geschichte ---------- */

.timeline {
  display: grid;
  gap: 18px;
  margin-bottom: 40px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 16px 20px;
  background: var(--paper);
  border-left: 4px solid var(--yellow);
  border-radius: 0 10px 10px 0;
  box-shadow: var(--shadow);
}

.timeline-item .year {
  font-family: Georgia, serif;
  font-weight: bold;
  color: var(--blue-dark);
  font-size: 1.2rem;
}

.chronik-entry {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 40px;
  align-items: start;
}

.chronik-entry .photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.chronik-entry h3 {
  margin-top: 4px;
  margin-bottom: 0;
}

.chronik-entry .figure-caption {
  margin-bottom: 14px;
}

.anniversary-box {
  margin-top: 20px;
  padding: 26px;
  background: linear-gradient(135deg, var(--blue-darker), var(--blue));
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.anniversary-box h3 {
  color: var(--yellow);
  margin-bottom: 10px;
}

.anniversary-box a {
  color: #fff;
  text-decoration: underline;
}

.anniversary-box .figure-caption {
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Probenarbeit ---------- */

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.info-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--blue);
  text-align: center;
}

.info-card.accent {
  border-top-color: var(--yellow-dark);
}

.info-card .icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.info-card h3 {
  margin-bottom: 8px;
}

.info-card p {
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Nachwuchs ---------- */

.nachwuchs-groups {
  display: grid;
  gap: 40px;
  margin-top: 30px;
}

/* ---------- Kontakt ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

.contact-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.contact-card .role {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--blue-dark);
  background: rgba(43, 143, 224, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.contact-card h3 {
  margin-bottom: 6px;
  font-size: 1.15rem;
}

.contact-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.contact-card a {
  color: var(--blue-dark);
  text-decoration: none;
  font-weight: 600;
}

.contact-email {
  margin-top: 30px;
  text-align: center;
  padding: 36px 22px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  border-radius: var(--radius);
}

.contact-email h3 {
  color: #fff;
  margin-bottom: 6px;
}

.contact-email p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
}

.contact-email .btn-primary {
  font-size: 1.05rem;
}

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

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.link-list li {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--blue);
}

.link-list a {
  display: block;
  font-weight: 700;
  text-decoration: none;
  margin-top: 4px;
}

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

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.8);
  padding: 50px 0 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  height: 50px;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
}

.footer-brand strong {
  display: block;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1.1rem;
}

.footer-links h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--yellow);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 18px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
}

/* ---------- Legal (Impressum / Datenschutz) ---------- */

.legal-section {
  padding: 50px 0;
}

.legal-section h2 {
  font-size: 1.5rem;
}

.legal-section p {
  color: var(--ink-soft);
  max-width: 70ch;
}

/* ---------- Responsive ---------- */

@media (min-width: 640px) {
  .chronik-entry {
    grid-template-columns: 340px 1fr;
  }

  .footer-top {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

@media (min-width: 860px) {
  .about-grid {
    grid-template-columns: 220px 1fr;
  }
}

@media (max-width: 1180px) {
  .main-nav {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--paper);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    padding: 20px;
    gap: 6px;
  }

  .main-nav a {
    display: block;
    padding: 14px 16px;
    font-size: 1.05rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero .container {
    grid-template-columns: 1fr;
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .hero-photo {
    order: -1;
  }
}

@media (max-width: 520px) {
  .timeline-item {
    grid-template-columns: 1fr;
  }

  section {
    padding: 48px 0;
  }
}
