/* =======================================
   GLOBAL / RESET
======================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: #000;
  color: #fff;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 80px;
}

/* =======================================
   SECTION LAYOUT
======================================= */

.section {
  padding: 24px 0;
}

.section-header {
  margin-bottom: 18px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.section-title {
  font-size: 22px;
  font-weight: 600;
}

.section-subtitle {
  font-size: 13px;
  color: #888;
}

/* =======================================
   HEADER + HERO
======================================= */

/* Header-Rahmen mit Hintergrundbild & Fade */
.site-header {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 380px;
  overflow: hidden;
}

/* Hintergrundbild */
.site-header-bg {
  position: absolute;
  inset: 0;
  background: url("img/header-bg.jpg") center center / cover no-repeat;
  z-index: 1;
}

/* Dunkler Fade nach unten */
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.3) 50%,
    rgba(0,0,0,0.85) 100%
  );
  z-index: 2;
}

/* Header-Inhalt über dem Bild */
.site-header-inner {
  position: relative;
  z-index: 3;
  height: 100%;
  padding: 0px 50px;
  display: flex;
  flex-direction: column;
}

/* =======================================
   NAVIGATION (DESKTOP)
======================================= */

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  padding: 25px;
}

.nav-logo img {
  height: 150px; /* Desktop-Logo */
  margin-top: 35px
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.3px;  
}

.nav-links a {
  color: #1e1e1e;
  position: relative;
  padding-bottom: 3px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #f7c948;
  transition: width 0.2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* =======================================
   BURGER / MOBILE NAV BUTTON
======================================= */

/* Burger-Grundstil (wird nur im Mobile-Viewport eingeblendet) */
.nav-toggle {
  display: none; /* Desktop: aus */
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(247,201,72,0.6);
  border-radius: 999px;
  padding: 6px 9px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.7);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #f7c948;
  border-radius: 999px;
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

/* Hover-Effekt */
.nav-toggle:hover span {
  background: #ffe27f;
}

/* Kreuz-Animation, wenn Menü offen */
.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* =======================================
   HERO-TEXT IM HEADER
======================================= */

.header-hero {
  margin-top: auto;
  max-width: 520px;
}

.header-hero-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  margin-bottom: 12px;
}

.header-hero-subtitle {
  font-size: 16px;
  color: #ddd;
  margin-bottom: 20px;
}

.header-hero-meta {
  font-size: 12px;
  color: #aaa;
  margin-top: 10px;
}

/* Pulsierender CTA-Button */
.pulse-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 999px;
  border: none;
  background: #f7c948;
  color: #000;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  margin-top: 8px;
}

.pulse-btn::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 2px solid rgba(247,201,72,0.6);
  opacity: 0;
  transform: scale(0.8);
  animation: pulse 1.8s ease-out infinite;
}

.pulse-btn:hover {
  background: #ffde73;
}

@keyframes pulse {
  0% {
    opacity: 0.8;
    transform: scale(0.8);
  }
  70% {
    opacity: 0;
    transform: scale(1.2);
  }
  100% {
    opacity: 0;
    transform: scale(1.2);
  }
}

/* =======================================
   LOGO-SLIDER
======================================= */

.logo-section {
  padding: 30px 0 10px;
}

.logo-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 10px 0 0;
}

.logo-track {
  display: flex;
  gap: 80px;
  animation: scroll 50s linear infinite;
}

.logo-track img {
  height: 80px;
  opacity: 0.9;
  filter: saturate(1);
  pointer-events: none;
  user-select: none;
  transition: opacity .3s ease, transform .3s ease;
}

.logo-track img:hover {
  opacity: 1;
  transform: scale(1.04);
}

@keyframes scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Fade links & rechts für weichen Übergang */
.logo-slider::before,
.logo-slider::after {
  content: "";
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.logo-slider::before {
  left: 0;
  background: linear-gradient(to right, #000 0%, rgba(0,0,0,0) 100%);
}

.logo-slider::after {
  right: 0;
  background: linear-gradient(to left, #000 0%, rgba(0,0,0,0) 100%);
}

/* =======================================
   FÖRDERUNGS-KARTEN
======================================= */

.foerder-card {
  background: linear-gradient(to bottom right, #0f0f0f, #171717);
  border: 1px solid #222;
  border-radius: 18px;
  padding: 22px 20px 26px;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.foerder-card:hover {
  transform: translateY(-4px);
  border-color: #f7c948;
  box-shadow: 0 18px 40px rgba(0,0,0,0.55);
}

.foerder-icon {
  font-size: 30px;
  color: #f7c948;
  margin-bottom: 12px;
  opacity: 0.9;
}

.foerder-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  font-size: 14px;
  color: #ddd;
  line-height: 1.5;
}

.foerder-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}

.foerder-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 7px;
  width: 7px;
  height: 7px;
  background: #f7c948;
  border-radius: 50%;
  box-shadow: 0 0 6px #f7c948;
}

.foerder-card .ref-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.foerder-card .ref-meta {
  font-size: 12px;
  color: #999;
  margin-bottom: 12px;
}

/* =======================================
   REFERENZEN (3×3 GRID)
======================================= */

.refs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* explizit für das 3×3 Raster */
.refs-9grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ref-card-img {
  background: linear-gradient(to bottom right, #0f0f0f, #171717);
  border: 1px solid #222;
  border-radius: 18px;
  padding: 0 0 18px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.ref-card-img:hover {
  transform: translateY(-4px);
  border-color: #f7c948;
  box-shadow: 0 18px 40px rgba(0,0,0,0.55);
}

.ref-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-bottom: 1px solid #222;
}

.ref-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.ref-card-img:hover .ref-img img {
  transform: scale(1.06);
}

.ref-card-img .ref-title {
  font-size: 15px;
  font-weight: 600;
  margin: 14px 16px 4px;
}

.ref-card-img .ref-meta {
  font-size: 12px;
  color: #bbb;
  margin: 0 16px 10px;
}

.ref-card-img .ref-text {
  font-size: 13px;
  color: #ddd;
  margin: 0 16px;
  line-height: 1.4;
}

/* generische Referenzkarte (u.a. für Förderkacheln genutzt) */
.ref-card {
  background: #101010;
  border-radius: 18px;
  border: 1px solid #262626;
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ref-title {
  font-size: 14px;
  font-weight: 600;
}

.ref-meta {
  font-size: 12px;
  color: #999;
}

.ref-text {
  font-size: 13px;
  color: #ccc;
  line-height: 1.5;
}

/* =======================================
   FORMULAR / KONFIGURATOR
======================================= */

.form-shell {
  margin-top: 26px;
  background: #242424;
  border-radius: 24px;
  padding: 50px 18px 50px;
  border: 1px solid #1c1c1c;
  box-shadow: 0 18px 50px rgba(0,0,0,0.7);
}

.wizard-wrapper {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.progress-wrapper {
  width: 260px;
  margin: 0 auto 30px;
  text-align: center;
}

.progress-label {
  font-size: 12px;
  margin-bottom: 8px;
  color: #aaa;
}

.progress-bar {
  position: relative;
  height: 4px;
  background: #333;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: #f7c948;
  transition: width 0.35s ease;
}

.progress-percent {
  margin-top: 8px;
  font-size: 12px;
  color: #f7c948;
}

.step {
  display: none;
  animation: fadeIn 0.3s ease;
}

.step.active {
  display: block;
}

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

.question {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 26px;
}

.options-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 10px;
}

.option-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #171717;
  border-radius: 14px;
  border: 1px solid #222;
  padding: 24px 14px 18px;
  cursor: pointer;
  transition: transform 0.15s ease,
              box-shadow 0.15s ease,
              border-color 0.15s ease,
              background 0.15s ease;
  min-height: 200px;
  flex: 0 1 200px;
  max-width: 260px;
}

.option-card img {
  max-width: 100%;
  height: 120px;
  object-fit: contain;
  margin-bottom: 12px;
}

.option-card span {
  font-size: 14px;
  color: #eee;
}

.option-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
  border-color: #444;
}

.option-card.selected {
  border-color: #f7c948;
  background: #151515;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.7);
}

.check-circle {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #f7c948;
  background: #f7c948;
  color: #000;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.option-card.selected .check-circle {
  opacity: 1;
  transform: scale(1);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

label {
  font-size: 13px;
  color: #ccc;
  display: block;
  margin-bottom: 4px;
}

input, textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #333;
  background: #050505;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus {
  border-color: #f7c948;
  box-shadow: 0 0 0 1px rgba(247,201,72,0.4);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.nav-buttons {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.btn {
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: #f7c948;
  color: #000;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(247,201,72,0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(247,201,72,0.45);
}

.btn-secondary {
  background: transparent;
  border: 1px solid #333;
  color: #aaa;
}

.btn-secondary:hover {
  background: #111;
}

.hint {
  margin-top: 10px;
  font-size: 11px;
  color: #777;
  text-align: center;
  width: 100%;
  display: block;
}

/* =======================================
   FAQ
======================================= */

.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #222;
  padding: 10px 0;
}

.faq-item:first-child {
  border-top: 1px solid #222;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  color: #f1f1f1;
  font-size: 17px;
  font-weight: 600;
  padding: 16px 6px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 16px;
}

.faq-question span:first-child {
  flex: 1;
}

.faq-question:hover {
  color: #fff;
}

.faq-toggle-icon {
  font-size: 20px;
  color: #f7c948;
  flex-shrink: 0;
  transition: transform .2s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height .25s ease, opacity .25s ease, transform .25s ease;
}

.faq-answer p {
  font-size: 14px;
  font-weight: 400;
  color: #ccc;
  line-height: 1.6;
  padding: 0 4px 14px 4px;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  opacity: 1;
  transform: translateY(0);
}

.faq-item.open .faq-toggle-icon {
  transform: rotate(45deg);
}

/* =======================================
   FOOTER
======================================= */

.footer {
  font-size: 11px;
  color: #666;
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #171717;
}

/* =======================================
   RESPONSIVE BREAKPOINTS
======================================= */

/* Referenzen & Grid-Anpassungen */
@media (max-width: 900px) {
  .refs-grid,
  .refs-9grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .refs-grid,
  .refs-9grid {
    grid-template-columns: 1fr;
  }
}

/* MOBILE NAV + HEADER / HERO */
@media (max-width: 800px) {

  .site-header-inner {
    padding: 18px 16px;
  }

  /* NAV-Container */
  .main-nav {
    position: relative;
    width: 100%;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;   /* Logo zentrieren */
    margin-bottom: 16px;
  }

  /* Logo wirklich mittig */
  .nav-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .nav-logo img {
    height: 100px; /* Mobile-Logo größer */
  }

  /* Burger rechts */
  .nav-toggle {
    display: block;
    position: absolute;
    right: 16px;
    top: 18px;
    z-index: 20;
  }

  /* Mobile-Menü vollbreit & animiert */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    background: rgba(10,10,10,0.96);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 26px 0;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    z-index: 15;
  }

  .nav-links.nav-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links a {
    font-size: 18px;
    font-weight: 500;
    width: 100%;
    text-align: center;
    padding: 6px 0;
    transition: 0.2s ease;
  }

  .nav-links a:hover {
    color: #f7c948;
    transform: scale(1.06);
  }

  /* Hero-Content zentriert + Button sichtbar */
  .header-hero {
    text-align: center;
    margin-top: 40px;
    max-width: 100%;
  }

  .header-hero-title {
    font-size: 26px;
  }

  .header-hero-subtitle {
    font-size: 15px;
  }

  .pulse-btn {
    margin: 12px auto 0;
    display: inline-flex;
  }
}