/* ===================================
   Grundlayout
=================================== */

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #222;
  background-color: #f5f7fa;
  line-height: 1.6;
}

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

a {
  color: #003366;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Container */

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

/* ===================================
   Header & Navigation
=================================== */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0;
}

.logo-title {
  font-weight: 700;
  font-size: 1rem;
  color: #003366;
  display: block;
}

.logo-subtitle {
  font-size: 0.8rem;
  color: #666;
}

.main-nav {
  display: flex;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.nav-link {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
}

.nav-link.is-active,
.nav-link:hover {
  background-color: #003366;
  color: #fff;
  text-decoration: none;
}

/* ===================================
   Hero
=================================== */

.hero {
  /* dunkler Verlauf mit hellem rechten Bereich */
  background: linear-gradient(
    135deg,
    #002244 0%,
    #003b73 55%,
    #f5f7fa 55%
  );
  color: #fff;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  padding: 3rem 0 3.5rem;
  align-items: stretch;
}

.hero-text h1 {
  margin-top: 0;
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.hero-text p {
  max-width: 32rem;
  margin-bottom: 1.5rem;
}

.hero-image {
  align-self: center;
}

.hero-video {
  width: 100%;
  height: 100%;              /* füllt die gesamte Spalte */
  object-fit: cover;         /* Video wird ggf. zugeschnitten, nicht verzerrt */
  display: block;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: #ff9900;
  color: #002244;
}

.btn-primary:hover {
  background-color: #e67e22;
  text-decoration: none;
}

/* ===================================
   Karten-Bereich (Startseite)
=================================== */

.cards {
  padding: 2.5rem 0;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: #fff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.card h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.card-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 600;
}

/* ===================================
   News-Bereich (Startseite)
=================================== */

.news {
  padding: 0 0 3rem;
}

.news h2 {
  font-size: 1.6rem;
}

.news-item {
  background-color: #fff;
  border-radius: 0.75rem;
  padding: 1.2rem 1.5rem;
  margin-top: 1rem;
  border-left: 4px solid #003366;
}

.news-item h3 {
  margin-top: 0;
}

.news-meta {
  font-size: 0.85rem;
  color: #666;
  margin-top: -0.5rem;
}

.news-item .news-thumb {
  max-width: 180px;        /* Größe des Thumbnails */
  height: auto;
  display: block;
  margin: 0.75rem 0;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* ===================================
   Galerie-Seite
=================================== */

.gallery {
  padding: 3rem 0;
}

.gallery-intro {
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  width: 100%;
  height: auto;
  background: #ffffff;
  border-radius: 4px;
  padding: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.gallery-item figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #555;
}

/* ===================================
   Termine-Seite
=================================== */

.termine-section {
  padding: 2.5rem 0 3rem;
  background-color: #eef1f5;
}

.termine-group {
  margin-bottom: 1.5rem;
}

.termine-section h1 {
  font-size: 2.2rem;
  margin: 0 0 2rem;
  font-weight: 700;
}

.termine-section h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.stand {
  font-size: 0.9rem;
  font-weight: normal;
  margin-left: 0.5rem;
  color: #666;
}

.termine-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.termine-item {
  position: relative;
  background: #fff;
  margin: 0.5rem 0;
  padding: 0.7rem 1rem 0.7rem 3rem; /* Platz für die Klammer */
  border-radius: 999px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

/* geschweifte Klammer links vor jedem Termin */
.termine-item::before {
  content: "{";
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.8rem;
  color: #003366;
  font-weight: 700;
}

.termine-item .titel {
  font-weight: 600;
  color: #003366;
}

.termine-meta {
  font-size: 0.85rem;
  color: #555;
  text-align: right;
  min-width: 140px;
}

/* ===================================
   Google Maps
=================================== */
.gmaps-consent { margin: 1rem 0; }
.gmaps-placeholder {
  padding: 1rem;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 12px;
}
.gmaps-placeholder button { padding: .6rem 1rem; cursor: pointer; }
.gmaps-consent iframe { width: 100%; border-radius: 12px; }

/* ===================================
   Footer
=================================== */

.site-footer {
  background-color: #003366;
  color: #fff;
  padding: 1.5rem 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: #ffdd99;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

/* ===================================
   Responsive (nur das Nötigste)
=================================== */

@media (max-width: 800px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 2rem 0 2.5rem;
    /* auf kleinen Bildschirmen einfach voll blau */
    background: #003366;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .termine-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .termine-meta {
    text-align: left;
  }

  .footer-inner {
    align-items: flex-start;
  }
}
/* Handy/Tablet im Querformat: Header nicht sticky und kompakter */
@media (orientation: landscape) and (max-height: 500px) {
  .site-header {
    position: static;       /* kein sticky mehr */
  }

  .header-inner {
    padding: 0.3rem 0;      /* etwas weniger Höhe */
  }

  .logo img {
    max-height: 32px;       /* Logo etwas kleiner, falls du ein Bild nutzt */
  }

  .main-nav {
    gap: 0.5rem;            /* Menüpunkte etwas enger zusammen */
    font-size: 0.9rem;
  }
}

@media (max-width: 600px) {
  body {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

body {
  overflow-x: hidden;
}

body {
  overscroll-behavior-x: none;
}
