/* unterseite.css - Angepasst an das Corporate Design von fleissig-bau.de */
.fb-subpage {
  font-family: 'Arial', sans-serif;
  color: #e2e8f0;
  background-color: #0b1829; /* Exaktes Dunkelblau der Hauptseite */
  line-height: 1.65;
  padding-bottom: 40px; /* Zusätzlicher Abstand nach unten vor dem Footer */
  border-bottom: 4px solid #d61f26; /* Saubere rote CD-Trennlinie zum Footer */
}

/* --- HERO BEREICH --- */
.fb-subpage .fb-hero {
  position: relative;
  min-height: 520px;
  padding: 80px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #0b1829;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-bottom: 4px solid #d61f26; /* Rote CD-Trennlinie wie unter dem Header */
}

.fb-subpage .fb-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(11, 24, 41, 0.78), rgba(11, 24, 41, 0.88));
  z-index: 1;
}

.fb-subpage .fb-hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
}

.fb-subpage .fb-hero h1 {
  font-size: 2.7rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.fb-subpage .fb-hero p {
  font-size: 1.2rem;
  color: #e2e8f0;
  margin-bottom: 34px;
}

.fb-subpage .fb-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* --- BUTTONS IM CD-STIL --- */
.fb-subpage .fb-cta {
  display: inline-block;
  padding: 14px 28px;
  background-color: #d61f26; /* Signalrot wie Header-Button */
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  border: 2px solid #d61f26;
  box-shadow: 0 4px 14px rgba(214, 31, 38, 0.35);
  transition: all 0.25s ease;
}

.fb-subpage .fb-cta:hover {
  background-color: #b5171d;
  border-color: #b5171d;
  transform: translateY(-2px);
}

.fb-subpage .fb-cta-outline {
  background-color: rgba(19, 35, 56, 0.85);
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: none;
}

.fb-subpage .fb-cta-outline:hover {
  background-color: #ffffff;
  color: #0b1829;
}

/* --- SEKTIONEN (Wechsel zwischen Tiefblau & Karten-Marineblau wie auf Referenzen) --- */
.fb-subpage .fb-section {
  padding: 75px 20px;
}

.fb-subpage .fb-section-light {
  background-color: #0f1f34; /* Leicht helleres Marineblau zur klaren Trennung */
  border-top: 1px solid #1e3554;
  border-bottom: 1px solid #1e3554;
}

.fb-subpage .fb-section-white {
  background-color: #0b1829; /* Haupt-Hintergrundfarbe */
}

.fb-subpage .fb-container {
  max-width: 1200px;
  margin: 0 auto;
}

.fb-subpage .fb-section-title {
  text-align: center;
  font-size: 2.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.fb-subpage .fb-section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #cbd5e1;
  max-width: 720px;
  margin: 0 auto 48px auto;
}

/* --- SEKTION 1: SYSTEM-ÜBERSICHT (Dunkelblaue Karten mit roter Oberkante) --- */
.fb-subpage .fb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.fb-subpage .fb-card {
  background-color: #132338; /* Exakter Farbton der Referenz-Boxen */
  padding: 30px 24px;
  border-radius: 6px;
  border: 1px solid #1f3858;
  border-top: 4px solid #d61f26;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.fb-card-img {
  margin-top: auto; /* Schiebt NUR das Bild ganz nach unten */
  display: block;   /* Verhindert einen kleinen weißen Rand unter dem Bild */
  width: 100%;      /* Optional: Bild auf volle Breite der Karte skalieren */
  margin-top: 20px;
}

.fb-subpage .fb-card:hover {
  transform: translateY(-5px);
  border-color: #d61f26;
}

.fb-subpage .fb-card h3 {
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: 12px;
}

.fb-subpage .fb-card p {
  font-size: 1rem;
  color: #cbd5e1;
  margin: 0;
}

/* --- SEKTION 2: ABLAUF & QUALITÄTSSICHERUNG --- */
.fb-subpage .fb-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.fb-subpage .fb-step {
  background-color: #132338;
  border: 1px solid #1f3858;
  border-radius: 6px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.fb-subpage .fb-step-number {
  width: 44px;
  height: 44px;
  background-color: #d61f26; /* Rote Nummerierung als starker Blickfang */
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.15rem;
}

.fb-subpage .fb-step-text h3 {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 8px;
}

.fb-subpage .fb-step-text p {
  font-size: 0.98rem;
  color: #cbd5e1;
  margin: 0;
}

/* --- SEKTION 3: B2B VORTEILE --- */
.fb-subpage .fb-b2b-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 960px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
}

.fb-subpage .fb-b2b-list li {
  background-color: #132338;
  border: 1px solid #1f3858;
  border-left: 4px solid #d61f26;
  padding: 20px 22px;
  border-radius: 6px;
  color: #cbd5e1;
  font-size: 1.02rem;
}

.fb-subpage .fb-b2b-list strong {
  color: #ffffff;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 6px;
}

/* --- SEKTION 4: ABSCHLUSS-CTA-BANNER --- */
.fb-subpage .fb-cta-banner {
  background: linear-gradient(135deg, #132338 0%, #0b1829 100%);
  border-top: 4px solid #d61f26;
  border-bottom: 4px solid #d61f26;
  color: #ffffff;
  padding: 70px 20px;
  text-align: center;
}

/* --- SEKTION 4: ABSCHLUSS-CTA-BANNER (Elegante, hervorgehobene Box) --- */
.fb-subpage .fb-cta-banner {
  background-color: #0b1829;
  padding: 50px 20px;
  text-align: center;
}

.fb-subpage .fb-cta-banner .fb-container {
  background: linear-gradient(135deg, #162b46 0%, #1d3658 100%);
  border: 1px solid #2d4c77;
  border-radius: 10px;
  padding: 55px 30px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.fb-subpage .fb-cta-banner h2 {
  font-size: 2.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
}

.fb-subpage .fb-cta-banner p {
  font-size: 1.15rem;
  color: #e2e8f0;
  max-width: 680px;
  margin: 0 auto 30px auto;
}

/* Der Haupt-Button strahlt jetzt wieder in Signalrot auf dem helleren Marineblau */
.fb-subpage .fb-cta-banner .fb-cta {
  background-color: #d61f26;
  border-color: #d61f26;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(214, 31, 38, 0.4);
}

.fb-subpage .fb-cta-banner .fb-cta:hover {
  background-color: #b5171d;
  border-color: #b5171d;
}


/* --- SEKTION: REGIONALE STANDORTE (Klickbare Stadt-Karten im CD) --- */
.fb-subpage .fb-region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}

.fb-subpage .fb-region-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #132338;
  border: 1px solid #1f3858;
  border-bottom: 4px solid #d61f26;
  border-radius: 6px;
  padding: 24px 20px;
  text-decoration: none;
  color: #e2e8f0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.fb-subpage .fb-region-card:hover {
  transform: translateY(-5px);
  background-color: #182c46;
  border-color: #d61f26;
}

.fb-subpage .fb-region-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #f87171;
  margin-bottom: 8px;
}

.fb-subpage .fb-region-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px 0;
}

.fb-subpage .fb-region-card p {
  font-size: 0.95rem;
  color: #cbd5e1;
  margin: 0 0 18px 0;
}

.fb-subpage .fb-region-link {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.fb-subpage .fb-region-card:hover .fb-region-link {
  color: #f87171;
}


/* --- SEKTION: FAQ AKKORDEON IM CD-STIL --- */
.fb-subpage .fb-faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fb-subpage .fb-faq-item {
  background-color: #132338;
  border: 1px solid #1f3858;
  border-left: 4px solid #d61f26;
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.fb-subpage .fb-faq-item[open] {
  border-color: #d61f26;
}

.fb-subpage .fb-faq-question {
  padding: 20px 24px;
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background-color 0.2s ease;
}

.fb-subpage .fb-faq-question::-webkit-details-marker {
  display: none;
}

.fb-subpage .fb-faq-question:hover {
  background-color: #182c46;
}

.fb-subpage .fb-faq-question::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 700;
  color: #d61f26;
  line-height: 1;
  transition: transform 0.25s ease;
}

.fb-subpage .fb-faq-item[open] .fb-faq-question::after {
  content: "−";
}

.fb-subpage .fb-faq-answer {
  padding: 0 24px 22px 24px;
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.65;
  border-top: 1px solid #1f3858;
  padding-top: 16px;
}

.fb-subpage .fb-faq-answer p {
  margin: 0;
}

.fb-subpage .fb-faq-answer a {
  color: #f87171;
  font-weight: 700;
  text-decoration: underline;
}

/* --- REFERENZPROJEKTE DRESDEN (1103 x 323 px Panorama-Karten) --- */
.fb-subpage .fb-ref-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.fb-subpage .fb-ref-card {
  background-color: #132338;
  border: 1px solid #1f3858;
  border-top: 4px solid #d61f26;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.fb-subpage .fb-ref-banner-wrap {
  width: 100%;
  max-width: 1103px;
  margin: 0 auto;
  aspect-ratio: 1103 / 323;
  overflow: hidden;
  background-color: #0b1829;
  border-bottom: 1px solid #1f3858;
}

.fb-subpage .fb-ref-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.fb-subpage .fb-ref-card:hover .fb-ref-banner {
  transform: scale(1.02);
}

.fb-subpage .fb-ref-body {
  padding: 28px 32px;
}

.fb-subpage .fb-ref-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.fb-subpage .fb-ref-tag {
  background-color: rgba(214, 31, 38, 0.16);
  color: #f87171;
  border: 1px solid rgba(214, 31, 38, 0.4);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fb-subpage .fb-ref-body h3 {
  font-size: 1.45rem;
  color: #ffffff;
  margin: 0 0 10px 0;
}

.fb-subpage .fb-ref-body p {
  color: #cbd5e1;
  font-size: 1.02rem;
  margin: 0;
}

@media (max-width: 768px) {
  .fb-subpage .fb-ref-banner-wrap {
    aspect-ratio: 16 / 7; /* Etwas höher auf Smartphones für bessere Sichtbarkeit */
  }
  .fb-subpage .fb-ref-body {
    padding: 22px 20px;
  }
}


/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
  .fb-subpage .fb-hero {
    min-height: 440px;
    padding: 60px 16px;
  }

  .fb-subpage .fb-hero h1 {
    font-size: 2rem;
  }

  .fb-subpage .fb-b2b-list {
    grid-template-columns: 1fr;
  }
}
