a {
  color: #2e7d32;
  text-decoration: none;
  font-weight: 500;
}
a:hover {
  color: #f57c00;
  text-decoration: underline;
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  color: #333;
}

.header {
  padding: 3rem 1rem 2rem 1rem;
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  border-radius: 0 0 20px 20px;
}

.container {
  max-width: 1140px;
  margin: 2rem auto;
  padding: 1rem;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
}

h2 {
  color: #2e7d32;
  margin-top: 2rem;
}

.modules {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.module {
  flex: 1 1 calc(50% - 1.5rem);
  border: 1px solid #c8e6c9;
  background: #f1f8f4;
  padding: 1.2rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.module h3 {
  margin-top: 0;
  color: #1b5e20;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.2rem;
}

.module h3 img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.module ul {
  padding-left: 1.2rem;
}

.more-button {
  margin-top: auto;
  align-self: flex-start;
  background-color: #388e3c;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 1rem;
  transition: background-color 0.3s ease;
  white-space: nowrap;
  display: inline-block;
}


.more-button:hover {
  background-color: #f57c00;
  color: white;
  transform: scale(1.03);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.cta {
  background-color: #388e3c;
  color: white;
  padding: 1.8rem;
  text-align: center;
  border-radius: 10px;
  font-size: 1.2rem;
  margin-top: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.cta a {
  color: white;
  text-decoration: underline;
}

.nav-modulbar {
  position: sticky;
  top: 0;
  z-index: 99;
  background: #ffffff;
  padding: 0.5rem 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.nav-modulbar a {
  display: inline-block;
  margin: 0.3rem 0.6rem;
  padding: 0.4rem 1rem;
  font-weight: 600;
  color: #2e7d32;
  background-color: #e8f5e9;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: background-color 0.3s, color 0.3s;
}

.nav-modulbar a:hover {
  background-color: #c8e6c9;
  color: #1b5e20;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
}

@media (max-width: 768px) {
  .header {
    font-size: 1.3rem;
    padding: 1.5rem 1rem 1rem 1rem;
    line-height: 1.3;
    word-break: break-word;
    hyphens: auto;
  }
  .module {
    flex: 1 1 100%;
  }
  .module h3 {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-modulbar {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.5rem;
    margin: 0 auto;
    max-width: 98%;
  }
  .nav-modulbar a {
    white-space: nowrap;
    margin: 0.3rem 0.5rem;
  }
}
.analyse-wrapper .field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.analyse-wrapper label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.analyse-wrapper input[type="text"],
.analyse-wrapper input[type="email"],
.analyse-wrapper textarea {
  width: 100%;
  margin-bottom: 1rem;
}

.analyse-wrapper .checkbox-group label {
  display: block;
  margin-bottom: 0.4rem;
}

.kk-header {
  background-color: #047857;
  padding: 1rem;
  color: white;
  border-radius: 0 0 1rem 1rem;
  margin-bottom: 2rem;
}

.kk-nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.kk-button {
  background-color: #d1fae5;
  color: #065f46;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.kk-button:hover {
  background-color: #a7f3d0;
}

.kk-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: bold;
  color: white;
  margin-top: 1rem;
}
/* Animation für Modulbilder beim Hover */
.module img,
.analyse-wrapper img {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border-radius: 50%;
  will-change: transform;
}

.module img:hover,
.analyse-wrapper img:hover {
  transform: scale(1.08) rotate(2deg);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Fade-In bei Sichtbarkeit */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Intro-Bereich für Einstieg optisch anheben */
.intro {
  animation: fadeInUp 1s ease-out both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 480px) {
  .more-button {
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
  }
}
