/* =========================== */
/* Hauptkartenbereich (Cards) */
/* =========================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  animation: fadeIn 1.5s ease-in-out both;
}

.sections h2 {
  font-size: 2.2em;
  font-weight: 700;
  color: var(--main);
  text-align: center;
  margin-bottom: 48px;
  padding-top: 40px;
  position: relative;
}

.sections h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin: 16px auto 0;
  border-radius: 2px;
  opacity: 0.8;
}

.card {
  background: #ffffffcc;
  backdrop-filter: blur(6px);
  border-radius: 18px;
  padding: 32px 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.logo-container {
  margin-bottom: 16px;
}

.logo-image {
  max-height: 60px;
  object-fit: contain;
}

.card h3 {
  font-size: 1.5em;
  margin: 16px 0 10px;
  color: var(--main);
}

.card p {
  font-size: 1em;
  opacity: 0.85;
  line-height: 1.6;
  margin-bottom: 20px;
}

.card-button {
  padding: 10px 24px;
  background-color: var(--main);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.card-button:hover {
  background-color: #ff3366;
}


/* ======================== */
/* Kompakter Header-Bereich */
/* ======================== */
.hero {
  height: 50vh;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px 16px;
  background: linear-gradient(to bottom right, #e0f7ff, #ffffff);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-image: url('images/header.png');
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to top, #f9f9f9, transparent);
  z-index: 1;
}

.hero .logo img {
  max-height: 90px;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 5px var(--accent));
  z-index: 2;
  position: relative;
}

.hero h1 {
  font-size: 2em;
  font-weight: 700;
  margin: 8px 0;
  color: var(--main);
  z-index: 2;
  position: relative;
}

.hero p {
  font-size: 1em;
  opacity: 0.8;
  margin-bottom: 16px;
  max-width: 560px;
  z-index: 2;
  position: relative;
}

.cta-button {
  padding: 10px 24px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s;
  z-index: 2;
  position: relative;
}

.cta-button:hover {
  background: #00cbe6;
  transform: translateY(-3px);
}


/* ================= */
/* Fußbereich (Footer) */
/* ================= */
footer {
  background: #f2fbff;
  padding: 24px;
  text-align: center;
  font-size: 0.95em;
  color: #555;
  border-top: 1px solid #d9f0f6;
  margin-top: 60px;
}

footer a {
  color: var(--main);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}


/* =================== */
/* Reusable Animation */
/* =================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
