/**
 * faq.css — FAQ-spezifische Overrides & Komponenten
 * Lädt NACH style.css + widgets.css → überschreibt gezielt.
 * Fonts kommen aus global.css (Astro-Bundle, @fontsource).
 */

/* ── Blau-Theming Service-Bar ───────────────────────────────── */
/* style.css setzt .band{background:var(--rolle-primaer)} — wir
   setzen --rolle-primaer in tokens.css auf #0a6fa0, aber zur
   Sicherheit direkt hier auch: */
.band {
  background: #0a6fa0 !important;
}
.band a,
.band nav a {
  color: #ffffff !important;
}

/* Logo: Haupt-Site-Verhalten beibehalten (Overlap mit blauer Band) */

/* ── Seiten-Container ────────────────────────────────────────── */
.faq-main {
  max-width: 1120px;
  margin-inline: auto;
  padding: 2.5rem 1.5rem 5rem;
  min-height: 60vh;
}

/* ── SearchHero ──────────────────────────────────────────────── */
.faq-hero {
  background: #f0f6fb;
  border: 1.5px solid #E5E3DD;
  border-radius: 16px;
  box-shadow: 6px 6px 0 0 #E5E3DD;
  padding: 3.5rem 1.5rem;
  margin-block-end: 2.5rem;
  text-align: center;
}

.faq-hero__eyebrow {
  display: inline-block;
  background: #0a6fa0;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25em 0.9em;
  border-radius: 999px;
  margin-block-end: 1rem;
}

.faq-hero__title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.15;
}

.faq-hero__sub {
  color: #555;
  font-size: 1.05rem;
  margin: 0 0 2rem;
}

/* Search-Button im Hero */
.faq-hero__search {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: min(520px, 100%);
  background: #fff;
  border: 1.5px solid #E5E3DD;
  border-radius: 999px;
  box-shadow: 3px 3px 0 0 #E5E3DD;
  padding: 0.75rem 1.25rem;
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.faq-hero__search:hover {
  transform: translateY(-3px);
  box-shadow: 6px 6px 0 0 #E5E3DD;
}

.faq-hero__search-label {
  flex: 1;
  text-align: left;
  color: #888;
}

.faq-hero__search-kbd {
  font-size: 0.8rem;
  background: #f8f8f8;
  border: 1px solid #E5E3DD;
  border-radius: 6px;
  padding: 0.1em 0.5em;
  color: #888;
}

@media (max-width: 600px) {
  .faq-hero { padding: 2.5rem 1rem; }
  .faq-hero__search-kbd { display: none; }
}

/* ── KB-Kacheln (Themenwelten) ───────────────────────────────── */
.kb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.kb-tile {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  background: #fff;
  border: 1.5px solid #E5E3DD;
  border-radius: 16px;
  box-shadow: 6px 6px 0 0 #E5E3DD;
  text-decoration: none;
  color: #000;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  height: 100%;
}

.kb-tile:hover {
  transform: translateY(-3px);
  box-shadow: 9px 9px 0 0 #E5E3DD;
}

.kb-tile__icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.kb-tile__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0;
}

.kb-tile__desc {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
  flex: 1;
  margin: 0;
}

.kb-tile__count {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.82rem;
  font-weight: 600;
  color: #888;
  background: #f8f8f8;
  border: 1px solid #E5E3DD;
  padding: 0.25em 0.75em;
  border-radius: 999px;
  margin-top: 0.5rem;
}

/* ── Newsletter (.fnl) — eigenständige Section vor dem Footer ─── */
/* widgets.css setzt margin-top:-40px (Overlap inside .fuss),
   hier für FAQ-Struktur korrigieren */
.fnl { margin-top: 3rem; margin-bottom: 0; }
.fnl__card { width: 100%; margin-left: 0; border-radius: 16px; }
/* Anmelden-Button: blau statt gelb */
.fnl__btn { background: #0a6fa0; color: #fff; border-radius: 8px; }
.fnl__btn:hover { background: #085e88; }

/* ── Burger-Linien: tokens.css setzt --rolle-text:#fff (für blaue Band),
   style.css nutzt var(--rolle-text) als Burger-Farbe → wäre weiß auf weißem Header */
.kopf .burger i { background: #000; }

/* ── Sticky-Logo: Flieger-Größe fixieren ────────────────────── */
/* global.css setzt img { height: auto } → überschreibt height="44" Attribut */
.kopf--scrolled .logo .logo__flieger { width: 44px; height: 44px; }

/* ── Header-Suche (desktop verbergen, mobil zeigen) ─────────── */
.search-open-btn--hdr-faq { display: none; }
@media (max-width: 1024px) {
  .search-open-btn--hdr-faq {
    display: flex;
    align-items: center;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
    order: 3;
  }
}

/* ── Mega-Menu: 4-Spalten KB-Kacheln ────────────────────────── */
.mega-kb-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.1rem 1.1rem 1.25rem;
  border-radius: 12px;
  text-decoration: none;
  color: #000;
  transition: background 0.15s ease;
}
.mega-kb-card:hover {
  background: #f0f6fb;
  text-decoration: none;
}
.mega-kb-card__icon { font-size: 2rem; line-height: 1; margin-bottom: 0.25rem; }
.mega-kb-card__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
}
.mega-kb-card__desc {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.45;
  margin: 0;
}

/* ── Footer: 5 Spalten ───────────────────────────────────────── */
/* widgets.css hat repeat(4,1fr) — wir haben 5 Elemente */
.fuss .band-raster { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1024px) { .fuss .band-raster { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .fuss .band-raster { grid-template-columns: 1fr; } }

/* ── Breadcrumb ──────────────────────────────────────────────── */
.breadcrumb { margin-block-end: 1.5rem; }
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: #888;
}
.breadcrumb li:not(:last-child)::after {
  content: '›';
  margin-inline-start: 0.5rem;
}
.breadcrumb a { text-decoration: none; color: #888; }
.breadcrumb a:hover { color: #0a6fa0; }
.breadcrumb li[aria-current='page'] { color: #000; font-weight: 500; }
