/* =========================
   Basis
   ========================= */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #0b0b0d;
  color: white;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2 {
  letter-spacing: 0.5px;
}

p {
  line-height: 1.6;
}

.muted {
  opacity: 0.85;
  font-size: 14px;
  margin-top: 10px;
}

/* =========================
   Header + Menü
   ========================= */
header {
  padding: 15px;
  border-bottom: 2px solid #e10612;
  position: sticky;
  top: 0;
  background: #0b0b0d;
  z-index: 50;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-center {
  flex: 1;
  text-align: center;
}

.site-title {
  margin: 0;
  font-size: 34px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 800;
}

.site-logo {
  width: 190px;
  height: auto;
  display: block;
  margin: 10px auto 0;
}

/* Menü rechts */
.dropdown {
  position: relative;
  margin-left: auto;
}

.menu-btn {
  width: 44px;
  height: 44px;
  border: 1px solid white;
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

.dots {
  display: flex;
  gap: 6px;
}

.dots span {
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 55px;
  background: #141419;
  border: 1px solid white;
  border-radius: 12px;
  padding: 8px;
  width: 200px;
}

.dropdown-menu a {
  display: block;
  padding: 14px 12px;
  font-size: 16px;
  border-radius: 10px;
}

.dropdown-menu a + a {
  margin-top: 4px;
}

.dropdown-menu a:hover {
  background: rgba(225, 6, 18, 0.35);
}

/* =========================
   Layout / Main / Footer
   ========================= */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

footer {
  border-top: 2px solid #e10612;
  margin-top: 30px;
  padding: 15px;
  text-align: center;
}

footer a {
  text-decoration: underline;
}

/* =========================
   Box / Karten
   ========================= */
.box {
  background: #141419;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 14px;
  padding: 15px;
  margin-top: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

/* =========================
   Buttons
   ========================= */
.btn {
  border: 1px solid white;
  background: transparent;
  color: white;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 700;
  display: inline-block;
}

.btn-primary {
  border-color: #e10612;
  background: #e10612;
}

.btn:hover {
  filter: brightness(1.05);
}

/* =========================
   Startseite – Layout + Startshow
   ========================= */
.home-layout {
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  gap: 16px;
  align-items: start;
}

.home-center {
  min-width: 0;
}

.side-show {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.side-show img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid #e10612;
  transition: opacity 0.8s ease;
  filter: brightness(0.9) contrast(1.05);
}

.fade-out {
  opacity: 0;
}

/* =========================
   Hero
   ========================= */
.hero {
  margin-top: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: center;
}

.hero-title {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 28px;
}

.hero-lead {
  margin: 0;
  opacity: 0.95;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.hero-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border: 2px solid #e10612;
  border-radius: 14px;
  margin-top: 15px;
}

.hero-image-tight {
  margin-top: 0;
}

/* =========================
   Highlights (3 kleine Kacheln)
   ========================= */
.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 15px;
}

.highlight {
  background: #141419;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.highlight-title {
  opacity: 0.85;
  font-size: 14px;
}

.highlight-value {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 800;
}

/* =========================
   Über uns (2 Spalten)
   ========================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* =========================
   Kacheln (Themen)
   ========================= */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 15px;
}

.tile {
  display: block;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid white;
  background: #141419;
}

.tile:hover {
  background: rgba(225, 6, 18, 0.25);
}

.tile-title {
  font-weight: bold;
  font-size: 18px;
}

.tile-sub {
  opacity: 0.85;
  margin-top: 6px;
}

/* =========================
   Mitgliederkarten
   ========================= */
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.member-card {
  background: #141419;
  border: 1px solid white;
  border-radius: 14px;
  padding: 12px;
  text-align: center;
}

.member-card img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #e10612;
}

.member-name {
  font-size: 18px;
  font-weight: bold;
  margin-top: 10px;
}

.member-info {
  font-size: 14px;
  margin-top: 6px;
  opacity: 0.9;
}

/* =========================
   Galerie (Vorschaubilder)
   ========================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 15px;
}

.gallery-grid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid #e10612;
  transition: transform 0.2s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
}

/* =========================
   Lightbox
   ========================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 95vw;
  max-height: 85vh;
  border-radius: 14px;
  border: 2px solid #e10612;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid white;
  background: rgba(20,20,25,0.9);
  color: white;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

/* =========================
   Formulare (Anmeldung)
   ========================= */
.form-wrap {
  max-width: 650px;
  margin: 0 auto;
}

.form-card {
  background: #141419;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-weight: 700;
}

input, select, textarea {
  background: #0b0b0d;
  color: white;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 12px;
  padding: 12px;
  outline: none;
  font-size: 16px;
}

input:focus, select:focus, textarea:focus {
  border-color: #e10612;
  box-shadow: 0 0 0 3px rgba(225, 6, 18, 0.25);
}

textarea {
  resize: vertical;
  min-height: 110px;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 900px) {
  .home-layout {
    grid-template-columns: 1fr;
  }

  .side-show {
    display: none;
  }

  .site-title {
    font-size: 26px;
  }

  .site-logo {
    width: 150px;
  }

  .highlights {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }

  main {
    padding: 12px;
  }

  .box {
    padding: 12px;
  }

  .menu-btn {
    width: 40px;
    height: 40px;
  }

  .dropdown-menu {
    width: 220px;
  }

  .gallery-grid img {
    height: 140px;
  }

  .member-card img {
    max-height: 220px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}
