/* Basis */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  scroll-behavior: smooth;
  background-color: #fff5e9;
}

h1, h2, h3 {
  margin-bottom: 10px;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 100%;
  margin: auto;
  padding: 20px;
}


/* Header */
header {
  background: #30629e;
  color: white;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

/* Logo links */
.logo-container img {
  height: 140px;
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .logo {
    font-size: 1.5rem;
  }
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

header nav a {
  color: white;
  font-weight: 500;
  transition: color 0.3s;
}

header nav a:hover {
  color: #ddd;
}


/* Burger Menü */
.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background: white;
  margin: 5px;
  transition: all 0.3s ease;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav ul {
    position: absolute;
    right: 0;
    top: 160px;
    max-height: 0;          /* statt height */
    overflow: hidden;
    background: #30629e;
    flex-direction: column;
    align-items: center;
    width: 100%;
    transition: max-height 0.4s ease;
  }

  .nav ul li {
    margin: 15px 0;
  }

  .burger {
    display: block;
  }

  .nav ul.nav-active {
    max-height: 500px; /* genug Platz für alle Links */
  }
}

/* Burger Animation zum X */
.toggle .line1 {
  transform: rotate(-45deg) translate(-5px, 6px);
}
.toggle .line2 {
  opacity: 0;
}
.toggle .line3 {
  transform: rotate(45deg) translate(-5px, -6px);
}


/* Popup */
/* Overlay-Hintergrund */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;             /* standardmäßig versteckt */
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

/* Pop-Up Box */
.popup-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Close Button */
.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #333;
}

/* Banner Bilder */
.popup-banners img {
  max-width: 100%;
  margin: 0.5rem 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}

.popup-banners img:hover {
  transform: scale(1.03);
}


/* Hero */
.hero {
  position: relative;
  height: 90vh;
  background: url('banner.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Bild füllt Container */
  filter: blur(4px);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}

.hero-text {
    position: relative;
    z-index: 1;
}

.hero-text p {
  font-size: 1rem;
}

.hero-text-head p {
    font-family: "DM Serif Text", serif;
    font-size: 4.5rem;
    color: white;
    margin-bottom: -50px;
}

@media (max-width: 768px) {
  .hero-text p {
  font-size: 1rem;
  padding-top: 20px;
  }
  
  .hero-text-head p {
    font-family: "DM Serif Text", serif;
    font-size: 4rem;
    color: white;
    margin-bottom: -40px;
  }

  .hero-text h2 {
    font-size: 2rem;
  }
}


/* Sections */
section {
  padding: 60px 12%;
}

section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5rem;
  font-weight: 700;
  color: #30629e;
}

/* Ensembles & News */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  text-align: center;
}

.card:hover {
  transform: translateY(-5px);
}

.mobilecardtitle {
  display: none;
}

@media (max-width: 1174px) {
  .mobilecardtitle {
    display: block;
    text-align: left;
  }
}



/* Events */
.event-table {
  width: 100%;
  max-width: 900px;
  margin: 20px auto;
  border-collapse: collapse;
  font-size: 1rem;
}

.event-table .date {
  text-align: right;
  font-weight: 700;
}

.event-table th,
.event-table td {
  padding: 12px 16px;
  text-align: left;
}

.event-table tbody tr {
  border-bottom: 1px solid #ddd;
}

.event-table tbody tr:last-child {
  border-bottom: none;
}

.event-table a {
  color: #30629e;
  text-decoration: none;
}

.event-table a:hover {
  text-decoration: underline;
}

/* Mobile Ansicht */
@media (max-width: 768px) {
  .event-table thead {
    display: none; /* Tabellenkopf ausblenden */
  }

  .event-table,
  .event-table tbody,
  .event-table tr,
  .event-table td {
    display: block;
    width: 100%;
  }

  .event-table tr {
    margin-bottom: 15px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
  }

  .event-table td {
    padding: 8px 0;
  }

  .event-table td::before {
    content: attr(data-label);
    font-weight: 700;
    display: block;
    color: #30629e;
  }
}



/* Kontakt */
.contact {
  text-align: center;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background: #30629e;
  color: white;
  border-radius: 8px;
  transition: background 0.3s;
}

.btn:hover {
  background: #254770;
}

/* Kartenlayout */
.visitencard-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* fix: immer 4 nebeneinander */
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 992px) {
  .visitencard-container {
    grid-template-columns: repeat(2, 1fr); /* Tablet: 2 nebeneinander */
  }
}

@media (max-width: 600px) {
  .visitencard-container {
    grid-template-columns: 1fr; /* Handy: 1 untereinander */
  }
}

/* Karten */
.visitencard {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.visitencard:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.visitencard img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.visitencard-content {
  padding: 1rem;
}

.visitencard-content h3 {
  margin: 0.5rem 0;
  font-size: 1.2rem;
  color: #30629e;
}

.visitencard-content p {
  font-size: 0.95rem;
  color: #555;
}


/* Footer */
footer {
  box-shadow: 24px 24px 24px 20px rgba(0, 0, 0, 0.25);
  background: #ffffff;
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
  margin-top: 40px;
}
