/* Grundlayout mit Grid */
.grid-container {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  grid-template-columns: 1fr;
  min-height: 100vh;
}

/* Allgemein */
body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  background: #fefefe;
}

/* Navigation - vereinfacht ohne Dropdowns */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #003366;
  color: white;
  padding: 10px 20px;
}

/* Breadcrumb Navigation */
.breadcrumb {
  background: #f8f9fa;
  padding: 8px 20px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 0.9em;
}

.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li + li:before {
  content: "›";
  margin: 0 8px;
  color: #666;
  font-weight: bold;
}

.breadcrumb a {
  color: #003366;
  text-decoration: none;
  padding: 2px 4px;
  border-radius: 3px;
  transition: background-color 0.2s;
}

.breadcrumb a:hover {
  background-color: #e3f2fd;
  text-decoration: underline;
}

.breadcrumb .current {
  color: #666;
  font-weight: 500;
}

.logo {
  font-weight: bold;
  font-size: 1.2em;
}

.logo img {
  height: 40px;
  width: auto;
  max-width: 150px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  display: block;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.nav-links li a:hover {
  background-color: #004080;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.8em;
  color: white;
  cursor: pointer;
}

/* Content Blocks */
.content-blocks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 0px;
}

.block-item {
  background: white;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  margin-bottom: 5px;
}

.block-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

.block-item h3 {
  color: #003366;
  margin: 0 0 10px 0;
  font-size: 1.3em;
}

.block-item > p {
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.block-content {
  display: none;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid #ffeb3b;
  animation: fadeIn 0.3s ease;
}

.block-item.active .block-content {
  display: block;
}

.block-item.active {
  background: #f8f9fa;
  border-color: #003366;
}

.block-content h4 {
  color: #003366;
  margin: 0 0 10px 0;
}

.block-content ul {
  padding-left: 20px;
}

.block-content ul li {
  margin-bottom: 5px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .navbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 10px;
  }

  .logo {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .hamburger {
    display: block;
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #003366;
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid #004080;
  }

  .logo img {
    height: 30px;
  }
}

/* Banner */
.banner {
  background: #ffeb3b;
  color: #000;
  padding: 1em;
  text-align: center;
  font-weight: bold;
}

.banner p {
  margin: 0;
}

/* Hauptbereich */
main {
  padding: 15px;
  display: grid;
  gap: 15px;
}

main h1 {
  margin-bottom: 0px;
  color: #003366;
}

/* Kontakt-Seite spezifisch */
.contact-info {
  max-width: 600px;
}

.contact-info h3 {
  margin-top: 25px;
  margin-bottom: 8px;
  color: #003366;
  font-size: 1.1em;
}

.contact-info h3:first-child {
  margin-top: 0;
}

.contact-info p {
  margin: 0 0 15px 0;
  line-height: 1.5;
}

.contact-info ul {
  margin: 0 0 15px 0;
  padding-left: 20px;
}

.contact-info ul li {
  margin-bottom: 3px;
}

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

.contact-info a:hover {
  text-decoration: underline;
}

/* Aktuelles */
.dropdowns details {
  margin-bottom: 10px;
  background: #f0f0f0;
  padding: 10px;
  border-left: 5px solid #003366;
}

/* Links/Spenden-Bereich */
.links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.betterplace-widget iframe {
  width: 100%;
  height: 320px;
  border: none;
}

.foerderpenny-img img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Footer */
footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 10px;
}

footer a {
  color: #fff;
  margin: 0 10px;
  text-decoration: none;
}

/* Responsive Grid */
@media (min-width: 768px) {
  .links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .content-blocks {
    grid-template-columns: 1fr;
  }
  
  .links {
    grid-template-columns: 1fr;
  }
}
