* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 20px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header h1 {
  font-size: 1.25rem;
  margin: 0;
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

nav a {
  padding: 8px 10px;
  text-decoration: none;
  color: #333;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switch a {
  padding: 6px 8px;
  font-size: 14px;
  text-decoration: none;
  color: #666;
}

.lang-active {
  font-weight: bold;
  color: #000;
}

.bild-klein {
  width: 96px;
  max-width: 100%;
  height: auto;
  display: block;
}

.bild-mittig {
  display: block;
  margin: 0 auto 24px;
  width: 320px;
  max-width: 100%;
  height: auto;
}

.hero {
  min-height: 75vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../images/bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 32px 20px;
}

.hero-content {
  max-width: 600px;
}

.hero h1 {
  font-size: 2.75rem;
  margin: 0 0 20px;
}

.hero p {
  font-size: 1.2rem;
  margin: 0 0 20px;
}

.donate {
  margin: 32px 0;
  text-align: center;
}


.btn,
.btn-donate {
  display: inline-block;
  background: #d62828;
  color: white;
  padding: 14px 28px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  transition: background 0.3s;
  cursor: pointer;
}

.btn:hover,
.btn-donate:hover {
  background: #a61c1c;
}

.absatz-mit-linie {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 1.5rem;
}

p {
  margin-top: 20px;
  margin-bottom: 20px;
}

.section {
  padding: 50px 24px;
  text-align: center;
}

.projects {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.card {
  background: #f5f5f5;
  padding: 20px;
  flex: 1 1 250px;
  max-width: 320px;
  border-radius: 10px;
}



.footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 50px 20px 20px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
  gap: 20px;
}

.footer-col {
  flex: 1 1 220px;
  text-align: center;
}

.footer h3,
.footer h4 {
  color: white;
  margin-top: 0;
  margin-bottom: 15px;
}

.footer a {
  display: block;
  width: fit-content;
  margin: 0 auto;
  padding: 1px 0;
  line-height: 1.15;
  color: #ccc;
  text-decoration: none;
  margin-bottom: 0px;
  transition: color 0.3s;
}

.footer a:hover {
  color: white;
}

.footer p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 30px;
  padding-top: 15px;
  text-align: center;
  font-size: 14px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 3rem;
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
}

.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery-item img:hover {
  transform: scale(1.08);
}

/* Mobile Optimierung */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 14px 16px;
  }

  nav {
    width: 100%;
    justify-content: center;
    gap: 4px;
  }

  nav a {
    padding: 10px 12px;
  }

  .hero {
    min-height: 60vh;
    padding: 24px 16px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .section {
    padding: 32px 16px;
  }

  .card {
    max-width: 100%;
    width: 100%;
  }

  .gallery {
    padding: 16px;
    grid-template-columns: 1fr;
  }

  .footer {
    padding: 36px 16px 20px;
    text-align: left;
  }

  .footer-bottom {
    text-align: center;
  }
}