/* Base Styles */
body {
  font-family: Arial, sans-serif;
  color: var(--primary-color);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Header Image */
.header-image {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.header-image img {
  filter: brightness(90%);
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Hero-Bereich */
.hero {
  background-color: rgba(0, 0, 0, 0);
  position: absolute;
  z-index: 1;
  height: 70vh;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-attachment: fixed;
  width: 100%;
}

.untertitel {
  margin-top: 20px;
}

.hero-content {
  background-color: rgba(0, 0, 0, 0);
  position: relative;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 30px 40px;
  width: 100%;
  max-width: 1200px;
}

.hero h1 {
  font-size: clamp(1.5rem, 5vw, 3.5rem);
  color: var(--primary-color);
  font-weight: normal;
  letter-spacing: 1px;
  margin: 0;
}

.hero h2 {
  font-size: clamp(1rem, 5vw, 3rem);
}

#Titel-Schritte {
  color: var(--text-color);
  text-align: center;
  margin-top: 60px;
}

.einführung {
  padding: 4rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.einführung h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--text-color);
}

.schritte {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.schritt {
  background: var(--primary-color);
  padding: 2rem 1.5rem;
  text-align: center;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.schritt::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--text-color), #2980b9);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.schritt:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.schritt:hover::before {
  transform: scaleX(1);
}

.schritt-nummer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--accent-color);
  color: white;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.schritt h3 {
  margin-bottom: 1.5rem;
  color: var(--text-color);
  font-size: 1.3rem;
}

.schritt ul {
  list-style: none;
  text-align: left;
}

.schritt li {
  padding: 0.5rem 0;
  font-size: clamp(14px, 2vw, 16px);
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-color);
}

.schritt li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--text-color);
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
  .einführung {
    padding: 2rem 1rem;
  }

  .schritte {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .schritt {
    padding: 1.5rem 1rem;
  }
}

/* Animation für bessere UX */
.schritt {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.schritt:nth-child(1) {
  animation-delay: 0.1s;
}
.schritt:nth-child(2) {
  animation-delay: 0.2s;
}
.schritt:nth-child(3) {
  animation-delay: 0.3s;
}
.schritt:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slogan */
.slogan {
  background: none;
  padding: 60px 20px;
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--text-color);
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Überblick */
.überblick {
  padding: 70px 20px;
  background-color: white;
}

.überblick ul {
  display: flex;
  justify-content: center;
  list-style: none;
  color: var(--text-color);
  margin: 0;
  padding: 0;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.überblick li {
  margin: 0;
  font-size: clamp(18px, 2vw, 24px);
  text-align: center;
  position: relative;
  padding-top: 0;
}

.überblick img {
  width: 100%;
  max-width: 190px;
  height: auto;
}

/* FAQ-Bereich */
.faq {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--secondary-color);
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
}

.faq-title {
  font-size: clamp(28px, 4vw, 36px);
  color: var(--text-color);
  margin-bottom: 20px;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.faq-title::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.faq-subtitle {
  color: var(--text-color);
  max-width: 700px;
  margin: 0 auto 50px;
  font-size: clamp(16px, 1.8vw, 18px);
  padding: 0 20px;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.Fragen {
  list-style: none;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-color: white;
  margin: 0;
  padding: 0;
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  color: var(--text-color);
  padding: 20px 30px;
  font-size: clamp(16px, 1.8vw, 18px);
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  gap: 20px;
}

.faq-question:hover {
  background-color: rgb(51, 102, 204, 0.15);
}

.faq-question span {
  flex-grow: 1;
  text-align: left;
}

.faq-icon {
  width: 24px;
  height: 24px;
  background-color: var(--accent-color);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background-color: white;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon::before {
  width: 2px;
  height: 12px;
}

.faq-icon::after {
  width: 12px;
  height: 2px;
}

.faq-item.active .faq-icon::before {
  display: none;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: clamp(10px, 3vw, 40px);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background-color: white;
  width: 100%;
  max-width: min(90vw, 600px);
  min-width: min(300px, 90vw);
  border-radius: clamp(6px, 1vw, 12px);
  padding: clamp(20px, 4vw, 40px);
  position: relative;
  transform: translateY(-20px);
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-height: min(90vh, 800px);
  overflow-y: auto;
  margin: auto;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: clamp(10px, 2vw, 20px);
  right: clamp(10px, 2vw, 20px);
  width: clamp(28px, 4vw, 35px);
  height: clamp(28px, 4vw, 35px);
  cursor: pointer;
  border-radius: 50%;
  background-color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
  touch-action: manipulation;
}

.modal-close:hover,
.modal-close:focus {
  background-color: var(--accent-color);
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  width: clamp(12px, 2vw, 18px);
  height: 2px;
  background-color: var(--primary-color);
  transition: background-color 0.3s ease;
}

.modal-close:hover::before,
.modal-close:hover::after,
.modal-close:focus::before,
.modal-close:focus::after {
  background-color: white;
}

.modal-close::before {
  transform: rotate(45deg);
}

.modal-close::after {
  transform: rotate(-45deg);
}

.modal-title {
  color: var(--accent-color);
  font-size: clamp(18px, 3.5vw, 28px);
  margin-bottom: clamp(15px, 3vw, 25px);
  margin-right: clamp(40px, 6vw, 60px);
  line-height: 1.3;
}

.modal-content {
  color: var(--text-color);
  line-height: 1.6;
  font-size: clamp(14px, 2vw, 18px);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Responsive Breakpoints */

/* Large Tablets and Small Desktops */
@media (max-width: 1200px) {
  .einführung {
    margin: 50px 50px;
    gap: 30px;
  }

  .überblick {
    padding: 60px 30px;
  }

  .überblick ul {
    gap: 30px;
  }
}

/* Tablets */
@media (max-width: 900px) {
  .hero {
    height: 60vh;
  }

  .hero-content {
    padding: 20px 30px;
  }

  .einführung {
    flex-direction: column;
    margin: 40px 30px;
    gap: 20px;
  }

  .slogan {
    padding: 50px 30px;
  }

  .überblick ul {
    flex-direction: column;
    align-items: center;
  }

  .überblick li {
    margin: 30px 0;
    max-width: 300px;
  }

  .überblick img {
    max-width: 150px;
  }

  .faq {
    padding: 60px 30px;
  }

  .faq-question {
    padding: 18px 25px;
  }
}

/* Mobile Landscape */
@media (max-width: 768px) {
  .header-image {
    height: 70vh;
  }

  .hero {
    height: 50vh;
    top: 50%;
  }

  .hero-content {
    padding: 15px 20px;
    top: 30%;
  }

  .hero h1 {
    letter-spacing: 0.5px;
  }

  .einführung {
    margin: 30px 20px;
    gap: 15px;
  }

  .slogan {
    padding: 40px 20px;
  }

  .überblick {
    padding: 40px 20px;
  }

  .überblick img {
    max-width: 120px;
  }

  .faq {
    padding: 50px 20px;
  }

  .faq-question {
    padding: 15px 20px;
    gap: 15px;
  }

  .faq-icon {
    width: 20px;
    height: 20px;
  }

  .faq-icon::before {
    height: 10px;
  }

  .faq-icon::after {
    width: 10px;
  }

  .modal-overlay {
    padding: 15px;
  }

  .modal {
    max-width: calc(100vw - 30px);
    max-height: calc(100vh - 30px);
    border-radius: 8px;
  }

  .modal-title {
    margin-right: 50px;
  }
}

/* Mobile Portrait */
@media (max-width: 480px) {
  .header-image {
    height: 60vh;
  }

  .hero {
    height: 40vh;
    top: 45%;
  }

  .hero-content {
    margin-top: 40px;
    padding: 40px 10px;
  }

  .einführung {
    margin: 20px 15px;
  }

  .slogan {
    padding: 30px 15px;
  }

  .überblick {
    padding: 30px 15px;
  }

  .überblick li {
    margin: 20px 0;
  }

  .überblick img {
    max-width: 100px;
  }

  .faq {
    padding: 40px 15px;
  }

  .faq-container {
    margin: 0;
  }

  .faq-question {
    padding: 12px 15px;
    gap: 10px;
  }

  .modal {
    padding: 20px 15px;
    margin: 5px;
    border-radius: 6px;
  }
}

/* Extra Small Devices */
@media (max-width: 320px) {
  .einführung {
    margin: 15px 10px;
  }

  .slogan {
    padding: 25px 10px;
  }

  .überblick {
    padding: 25px 10px;
  }

  .faq {
    padding: 30px 10px;
  }

  .faq-question {
    padding: 10px 12px;
  }

  .modal {
    padding: 15px 10px;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .header-image img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .modal {
    background-color: #2a2a2a;
    color: #ffffff;
  }

  .modal-title {
    color: var(--accent-color);
  }

  .modal-content {
    color: #e0e0e0;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero {
    background-attachment: scroll;
  }
}

/* Print Styles */
@media print {
  .hero,
  .header-image,
  .modal-overlay {
    display: none;
  }

  .faq-question {
    page-break-inside: avoid;
  }

  .modal {
    position: static;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
