:root {
  --primary: #e30613;
  --text-dark: #1a1a1a;
  --text-light: #ffffff;
  --gray-light: #f5f5f5;
  --bg: #ffffff;
}
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  background-color: var(--bg);
}
header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 0;
}
.header-image {
  width: auto;
  max-width: 100%;
}
/* Hero-Bereich */
.hero {
  background: url("/images/startbild.jpg") no-repeat left bottom/cover;
  text-align: center;
  color: var(--text-dark);
  padding: 80px 20px;
  position: relative;
  min-height: 200px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
}
.hero-content {
  position: absolute;
  max-width: 800px;
  margin: 10px 80px;
  z-index: 9999;
}
.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}
.hero p {
  font-size: 1.2rem;
  margin: 0;
}
main {
  padding: 20px;
  max-width: 1000px;
  margin: auto;
}
h2 {
  color: var(--primary);
  border-left: 5px solid var(--primary);
  padding-left: 10px;
  margin-top: 30px;
}
a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
a:hover {
  color: var(--text-dark);
  text-decoration: underline;
}
section {
  margin-bottom: 40px;
  background-color: var(--gray-light);
  padding: 5px 15px 10px 15px;
  border-radius: 8px;
}
/* Kurskarten */
.kursuebersicht {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}
.kurs-card {
  background: #ffffff;
  border: 1px solid #ddd;
  padding: 15px 15px 20px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: calc(33.333% - 15px);
  min-width: 250px;
  max-width: 280px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  text-align: center;
}
.kurs-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.kurs-card h3 {
  font-size: 1rem;
  margin: 0 0 12px 0;
  color: var(--text-dark);
  line-height: 1.4;
}
.kurs-button {
  display: inline-block;
  background-color: var(--primary);
  color: #fff !important;
  padding: 10px 14px;
  border-radius: 4px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: auto;
  transition:
    background 0.25s ease,
    transform 0.2s ease;
  /* ✨ Zentrierung */
  align-self: center;
  text-align: center;
}
.kurs-button:hover {
  background-color: #9b0010;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 900px) {
  .kurs-card {
    width: calc(50% - 15px);
  }

  main {
    padding: 0px;
    max-width: 1000px;
    margin: auto;
  }
  .hero {
    background: url("/images/startbild.jpg") no-repeat center bottom/cover;
    text-align: center;
    color: var(--text-dark);
    padding: 80px 20px;
    position: relative;
    min-height: 200px;

    border-radius: 0px;
  }
  .hero-content {
    max-width: 800px;
    margin: 0px;
    z-index: 9999;
  }
}

@media (max-width: 600px) {
  .kurs-card {
    width: 100%;
  }

  main {
    padding: 0px;
    max-width: 1000px;
    margin: auto;
  }
  .hero {
    background: url("images/startbild.jpg") no-repeat center bottom/cover;
    text-align: center;
    color: #ffffff;
    padding: 80px 20px;
    position: relative;
    min-height: 200px;

    border-radius: 0px;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 1rem;
  }
}
.hero-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.hero-link:hover .hero {
  cursor: pointer;
}
/* Footer */
footer {
  background-color: var(--primary);
  color: var(--text-light);
  text-align: center;
  padding: 1.5em 0;
}
footer a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
}
footer a:hover {
  text-decoration: underline;
  color: var(--gray-light);
}
