/* ======================================
   Basiseinstellungen
====================================== */
:root {
  --green: #8bbc06;
  --green-dark: #6fa504;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding-top: 60px;
  background-color: #f9f9f9;
  color: #212529;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Da sonst beim Mobiltelefon der Header teilweise das Hero Bild verdeckt */
@media (max-width: 768px) {
  .hero {
    margin-top: 50px; /* Header-Höhe */
  }
}

/* ======================================
   Links
====================================== */
a {
  color: var(--green);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--green-dark);
  text-decoration: underline;
}

/* ======================================
   Header (fixiert oben)
====================================== */
header.fixed-top {
  background-color: var(--green);
  color: white;
  z-index: 1030;
}

header.fixed-top h1,
header.fixed-top p {
  margin: 0;
}

/* ======================================
   Hero-Bereich
====================================== */
.hero {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 1rem 2rem;
  border-radius: 8px;
  max-width: 90%;
}

.hero-text h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.hero-button {
  background-color: var(--green);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.hero-button:hover,
.hero-button:focus {
  background-color: var(--green-dark);
  color: white;
  text-decoration: none;
}

/* ======================================
   Call-to-Action Button
====================================== */
.cta-button {
  background-color: var(--green);
  color: white;
  padding: 14px 28px;
  border-radius: 5px;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.cta-button:hover,
.cta-button:focus {
  background-color: var(--green-dark);
  color: white;
  text-decoration: none;
}

/* ======================================
   Aufzählungen mit Haken
====================================== */
ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

ul li {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: 0.5em;
}

ul li::before {
  content: "✔";
  color: var(--green);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* ======================================
   FAQ-Styling mit eigenem Pfeil
====================================== */
details {
  margin-bottom: 1rem;
  background: #fff;
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 5px;
}

summary {
  list-style: none;
  font-weight: bold;
  cursor: pointer;
  outline-offset: 4px;
  padding-left: 1.4em;
  position: relative;
}

summary:focus {
  outline: 2px solid var(--green);
}

summary::-webkit-details-marker {
  display: none;
}

summary::marker {
  display: none;
}

summary::before {
  content: "➤";
  color: var(--green);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* ======================================
   Barrierefreiheit: Sprunglink sichtbar bei Fokus
====================================== */
.visually-hidden-focusable {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.visually-hidden-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  left: auto;
  background: #000;
  color: #fff;
  padding: 0.5rem;
  z-index: 999;
}

/* ======================================
   Footer
====================================== */
footer {
  background-color: #f1f1f1;
  font-size: 0.95rem;
  color: #333;
  padding: 1.5rem 0;
  text-align: center;
}

footer a {
  color: var(--green);
}

footer a:hover,
footer a:focus {
  color: var(--green-dark);
}

/* ======================================
   Responsive Anpassungen
====================================== */
@media (max-width: 768px) {
  .hero {
    margin-top: 50px; /* Header-Höhe, bereits vorhanden */
  }

  .hero-text {
    padding: 0.8rem 1rem;
    max-width: 95%;
  }

  .hero-text h2 {
    font-size: 1.25rem;
  }

  .hero-button,
  .cta-button {
    font-size: 1rem;
    padding: 0.6rem 1rem;
  }
}

@media (max-width: 480px) {
  .hero-text h2 {
    font-size: 1rem;
  }

  .hero-button {
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
  }
}
