/* ========================
   Schriftart
======================== */
@font-face {
  font-family: 'Futura';
  src: url('../fonts/futura-book-webfont.woff2') format('woff2');     
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: 'Futura', sans-serif;  
  margin: 0;
  padding: 0;
}

/* ========================
   Navbar
======================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #77000c;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 0px 50px rgba(0, 0, 0, 0.5);
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 60px;
  height: 60px;
}

.navbar-title {
  font-size: 1.8rem;
  font-weight: 500;
  color: #fff;
}

/* Navigation Links */
.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin-left: 20px;
  position: relative;
}

.nav-links a {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
}

.nav-links a:hover {
  background-color: #d3d3d3;
  color: black;
  text-decoration: none;
}

/* Dropdown */
.nav-links li.dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 180px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 1000;
  padding: 0;
  list-style: none;
  margin: 0;
}

.nav-links li.dropdown .dropdown-menu li a {
  color: black;
  padding: 10px 15px;
  display: block;
}

.nav-links li.dropdown .dropdown-menu li a:hover {
  background-color: #d3d3d3;
}

.nav-links li.dropdown:hover .dropdown-menu {
  display: block;
}

.nav-links li.dropdown > a {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Burger-Menü */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 4px 0;
  transition: all 0.3s ease;
}

/* ========================
   Header
======================== */
.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  padding: 20px 20px;
  margin-left: 30px;
  margin-right: 30px;
  background-color: #eef7ee;
}

.header h1 {
  margin: 0;
  font-size: 2rem;
}

.header p {
  font-size: 1.5rem;
  color: #333;  
}

/* ========================
   Main / Artikel-Container
======================== */
main {
  padding: 20px;
}

section {
  margin-bottom: 40px;
}

article {
  border-bottom: 1px solid #ccc;
  padding: 10px 0;
}

#news-container,
#termine-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

@media (min-width: 768px) {
  #news-container,
  #termine-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1200px) {
  #news-container,
  #termine-container {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

#news-container article,
#termine-container article {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 15px 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

#news-container article:hover,
#termine-container article:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

#news-container article h3 a,
#termine-container article h3 a {
  color: #007700;
  text-decoration: none;
  transition: color 0.2s;
}

#news-container article h3 a:hover,
#termine-container article h3 a:hover {
  color: #005500;
  text-decoration: underline;
}

#news-container article small,
#termine-container article small {
  display: block;
  margin-top: 8px;
  color: #555;
  font-size: 0.85em;
}

.news-img, .termin-img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

/* ========================
   Welcome Card
======================== */
.welcome-section {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.welcome-card {
  background: white;
  max-width: 1100px;
  width: 100%;
  display: flex;
  gap: 30px;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}

.welcome-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.18);
}

.welcome-text { flex: 1; }
.welcome-text h2 { margin-top: 0; margin-bottom: 15px; font-size: 1.6rem; }
.welcome-text p { line-height: 1.6; margin-bottom: 10px; }

.welcome-image { flex: 1; display: flex; align-items: stretch; justify-content: center; }
.welcome-image img { width: 100%; object-fit: cover; border-radius: 8px; }


.more-button {
  text-align: center;
  margin: 20px 0;
}

.more-button a {
  display: inline-block;
  background-color: #007700;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.more-button a:hover {
  background-color: #005500;
}


/* ========================
   Footer
======================== */
.footer {
  justify-content: space-between;
  align-items: center;
  background-color: #77000c;
  padding: 10px 20px;
  margin-left: 30px;
  margin-right: 30px;
  box-shadow: 0 0px 50px rgba(0, 0, 0, 0.5);
  text-align: center;
  color: white;
}

/* ========================
   Responsive
======================== */
@media screen and (max-width: 768px) {

  /* Navbar Mobile */
  .nav-links {
    position: fixed;
    right: 0;
    top: 100px;
    height: 100vh;
    width: 250px;
    background-color: #77000c;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    padding-top: 20px;
    z-index: 999;
    overflow-y: auto;
  }

  .nav-links.nav-active {
    transform: translateX(0);
  }

  .nav-links li {
    margin: 20px 0;
  }

  .burger {
    display: flex;
  }

  .burger.toggle div:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  .burger.toggle div:nth-child(2) {
    opacity: 0;
  }
  .burger.toggle div:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  /* Welcome Card Mobile */
  .welcome-card { flex-direction: column; }
  .welcome-image img { max-height: 220px; }

  /* Artikel Container Mobile */
  #news-container,
  #termine-container {
    grid-template-columns: 1fr;
  }
}
