

/* ================= RESET ================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ================= BODY ================= */
body {
  font-family: system-ui, -apple-system, Arial, sans-serif;
  background: #f4f6f8;
  color: #333;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ================= HERO ================= */
.hero {
  background: linear-gradient(135deg, #003b7a, #005fb8);
  color: #fff;
  text-align: center;
  padding: 30px 20px 80px;
}

/* ================= HEADER ================= */
.header {
  position: relative;
  padding: 15px;
}

.logo {
  font-weight: 600;
  line-height: 1.5;
  font-size: 0.95rem;
}

/* ================= NAV ================= */
.nav {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 15px;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

/* Hover Linie */
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #fff;
  transition: 0.3s;
}

.nav a:hover::after {
  width: 100%;
}

/* ================= HAMBURGER ================= */
.hamburger {
  display: none;
  position: absolute;
  right: 15px;
  top: 15px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  margin: 6px 0;
  border-radius: 3px;
  transition: 0.3s;
}

/* Animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ================= HERO CONTENT ================= */
.hero img {
  max-width: 160px;
  margin: 25px auto;
  display: block;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.hero p {
  opacity: 0.9;
}

/* ================= MAIN ================= */
main {
  max-width: 1000px;
  margin: auto;
  padding: 40px 18px;
}

h2 {
  margin-bottom: 20px;
  font-size: 1.6rem;
}

/* ================= NEWS ================= */

.news-grid {
  display: grid;
  gap: 30px;
}

/* CARD */
.news-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e6e6e6;

  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  transition: 0.3s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.15);
}

/* ================= IMAGE SYSTEM ================= */

.news-image {
  width: 100%;
  background: #f2f2f2;
  border-bottom: 1px solid #eee;
}

/* Bilder behalten ihr echtes Format */
.news-image img {
  width: 100%;
  height: auto; /* 🔥 entscheidend */
  display: block;
}


/* CONTENT */
.news-content {
  padding: 22px 20px 24px;
}

.news-content time {
  font-size: 0.8rem;
  color: #777;
  display: block;
  margin-bottom: 6px;
}

.news-content h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.news-content p {
  color: #555;
}

/* LINKS */
.news-content a {
  color: #005fb8;
  text-decoration: none;
  font-weight: 500;
}

.news-content a:hover {
  text-decoration: underline;
}

/* ================= GALERIE ================= */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.gallery-grid img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

/* ================= LIGHTBOX ================= */

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);

  display: none;
  align-items: center;
  justify-content: center;

  z-index: 2000;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
}

.lightbox.active {
  display: flex;
}

/* ================= SCROLL ================= */

.fade-in {
  opacity: 0;
  transform: translateY(25px);
  transition: 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================= FOOTER ================= */

.footer {
  background: #1f1f1f;
  color: #fff;
  text-align: center;
  padding: 25px;
  margin-top: 50px;
  font-size: 0.9rem;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {

  .hamburger {
    display: block;
    z-index: 1000;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: #003366;

    flex-direction: column;
    padding-top: 90px;

    transform: translateX(100%);
    transition: 0.3s ease;
  }

  .nav.active {
    transform: translateX(0);
  }

  .nav a {
    padding: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.news-card.event {
  border-left: none;
  
}

.news-card.event h4 {
  margin-top: 5px;
  color: #003a8f;
  font-weight: normal;
}

.news-card.event hr {
  border: none;
  height: 1px;
  background: #ddd;
  margin: 20px 0;
}