:root {
  --color-bg: #ffffff;
  --color-bg-muted: #f4f2ef;
  --color-text: #1f1c1a;
  --color-primary: #a8272c;
  --color-primary-dark: #7c1c20;
  --color-header-bg: #1f1c1a;
  --color-header-text: #ffffff;
  --font-body: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: Georgia, "Times New Roman", serif;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
}

.button:hover {
  background: var(--color-primary-dark);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--color-header-bg);
  color: var(--color-header-text);
}

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

.site-header__brand {
  color: var(--color-header-text);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-header-text);
}

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-header-bg);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.site-nav.is-open {
  /* Scales with however many nav items exist instead of a guessed fixed
     number. overflow stays hidden (not auto/scroll) because animating
     max-height together with a scrollable overflow is unreliable across
     browsers — it can get stuck at height 0 and never open. */
  max-height: calc(100vh - 64px);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1rem 1rem;
}

.site-nav a {
  display: block;
  padding: 0.6rem 0;
  color: var(--color-header-text);
  text-decoration: none;
}

@media (min-width: 700px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    max-height: none;
    overflow: visible;
    background: none;
  }

  .site-nav ul {
    display: flex;
    gap: 1.5rem;
    padding: 0;
  }

  .site-nav a {
    padding: 0;
  }
}

/* Hero */
.hero {
  min-height: 70vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 2rem 1rem;
}

.hero__content h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin: 0 0 0.5rem;
}

.hero__tagline {
  font-size: clamp(1rem, 3vw, 1.3rem);
  margin: 0 0 1.5rem;
}

/* Sections */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1rem;
}

.section--muted {
  background: var(--color-bg-muted);
  max-width: none;
}

.section--muted > * {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.section h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-top: 0;
}

.section__intro {
  max-width: 65ch;
}

/* Impressum */
.impressum-board {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.impressum-board li {
  padding: 0.15rem 0;
}

/* Vereinsdokumente */
.document-list {
  list-style: none;
  margin-top: 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.document-list a {
  color: var(--color-primary);
  font-weight: 600;
}

/* Conductor */
.conductor-card {
  text-align: center;
  max-width: 320px;
  margin: 2rem auto 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e2ddd8;
}

.conductor-card img {
  border-radius: 6px;
  border: 1px solid #e2ddd8;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: clamp(200px, 28vw, 280px);
  margin: 0 auto 0.75rem;
}

.conductor-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
}

.conductor-card p {
  margin: 0;
  color: var(--color-primary);
  font-weight: 600;
}

/* Member grid */
.member-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

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

.member-card img {
  border-radius: 6px;
  border: 1px solid #e2ddd8;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  margin: 0 auto 0.75rem;
}

.member-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.member-card p {
  margin: 0;
  color: #555;
}

@media (min-width: 600px) {
  .member-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .member-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Video + photo grid */
.video-embed {
  aspect-ratio: 16 / 9;
  margin-bottom: 2rem;
  border-radius: 6px;
  overflow: hidden;
}

.video-embed:has(p) {
  border: 2px dashed #c9c2ba;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  color: #6b645d;
}

.video-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.photo-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}

@media (min-width: 600px) {
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Press */
.press-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.press-card {
  display: block;
  border: 1px solid #e2ddd8;
  border-radius: 6px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.2s ease;
}

.press-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.press-card img {
  width: 100%;
  height: auto;
}

.press-card__body {
  padding: 1.25rem;
}

.press-card__outlet {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 600;
}

.press-card__title {
  margin: 0;
  font-size: 1.15rem;
}

/* Events */
.event-list {
  list-style: none;
  margin-top: 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  border: 1px solid #e2ddd8;
  border-radius: 6px;
}

.event-card__date {
  display: flex;
  gap: 1rem;
  font-weight: 700;
  color: var(--color-primary);
}

.event-card__title {
  margin: 0;
  font-size: 1.1rem;
}

.event-card__venue {
  margin: 0;
  font-weight: 600;
}

.event-card__city {
  margin: 0;
  color: #555;
}

@media (min-width: 700px) {
  .event-card {
    flex-direction: row;
    align-items: center;
  }

  .event-card__date {
    flex-direction: column;
    gap: 0.1rem;
    min-width: 140px;
  }
}

/* Footer */
.site-footer {
  background: var(--color-header-bg);
  color: var(--color-header-text);
  padding: 2rem 1rem;
  text-align: center;
}

.site-footer__nav ul,
.social-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 0 0 1rem;
  padding: 0;
}

.site-footer a,
.social-links a {
  color: var(--color-header-text);
  text-decoration: none;
}

.site-footer__copyright {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.8;
}

.section .social-links a {
  color: var(--color-primary);
}
