/* ==============================
   FAQ Styles – Flapclub 2.0 (clean/professional wie config_bag)
   - Inter
   - #fff / #111 / neutrale Grautöne
   - kantig (keine Rundungen)
   - keine Gold-/Braun-Akzente
============================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root{
  --bg: #fff;
  --text: #111;
  --muted: #666;
  --muted2: #777;
  --line: #e6e6e6;
  --line2: #f0f0f0;
  --surface: #fafafa;
  --surface2: #f6f6f6;
  --focus: #111;
}

html, body{
  height: 100%;
}

body{
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  margin: 0;
}


/* Wrapper */
.page-wrapper{
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main{ flex: 1; }

main.faq-main{
  position: relative;
  z-index: 1;
}


.faq-main{
  max-width: 900px;
  margin: 0 auto;                 /* wichtig: kein 3.2rem nach oben */
  padding: 80px 1.25rem 3.5rem;   /* ✅ top padding hier rein */
}

@media (max-width: 900px){
  .faq-main{
    padding-top: 72px;            /* ✅ mobile headerhöhe */
  }
}

/* Header */
.faq-header{
  margin-bottom: 2.2rem;
  text-align: center;
}

.faq-header h1{
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 0.6rem;
}

.faq-header p{
  font-size: 0.98rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

/* Search */
.faq-search{
  margin-top: 1.3rem;
}

.faq-search input{
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0;                 /* kantig */
  border: 1px solid var(--line);
  font-size: 1rem;
  background: #fff;
  color: var(--text);
  outline: none;
}

.faq-search input:focus{
  border-color: var(--focus);
  box-shadow: 0 0 0 2px rgba(17,17,17,0.10);
}

/* Section titles */
.faq-section-title{
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 2.2rem 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.01em;
}

/* FAQ items */
.faq-item{
  margin: 0;
  border-bottom: 1px solid var(--line2);
  padding: 0.9rem 0;
}

/* Question row */
.faq-question{
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  line-height: 1.35;
  margin: 0;
  user-select: none;
  position: relative;
  padding-right: 1.5rem; /* Platz für Pfeil */
}

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

/* Pfeil rechts */
.faq-question::after{
  content: "›";
  position: absolute;
  right: 0;
  top: 0.05rem;
  font-size: 1.25rem;
  color: var(--muted2);
  transform: rotate(0deg);
  transition: transform .18s ease, color .18s ease;
}

.faq-question.open::after{
  transform: rotate(90deg);
  color: var(--text);
}

/* Lucide Icons */
.faq-question svg.lucide{
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  color: var(--text);
  stroke-width: 1.5;
}

/* Answer */
.faq-answer{
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
  will-change: max-height;
}

.faq-question.open + .faq-answer{
  margin-top: 0.65rem;
  max-height: 3000px; /* genug Luft, damit nichts abgeschnitten wird */
}


.faq-answer p{
  font-size: 0.98rem;
  line-height: 1.65;
  color: #222;
  margin: 0 0 0.75rem;
}

.faq-answer p:last-child{
  margin-bottom: 0;
}

.faq-answer a{
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-answer a:hover{
  color: #000;
}

.faq-question i[data-lucide]{
  display: inline-flex;
  align-items: center;
}


/* Badge list (FAQ) */
.badge-explanation-list{
  list-style: none;
  padding-left: 0;
  margin: 0.9rem 0 0;
}

.badge-explanation-list li{
  padding: 0.75rem 0;
  border-top: 1px solid var(--line2);
}

.badge-explanation-list li:first-child{
  border-top: none;
}

.badge-explanation-list div:first-child{
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.98rem;
  color: var(--text);
  font-weight: 500;
}

.badge-explanation-list i{
  min-width: 22px;
  text-align: center;
  font-size: 1.05rem;
  color: var(--text); /* keine Goldfarbe */
}

.badge-desc{
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
  margin-left: 2rem;
  margin-top: 0.25rem;
}

/* Footnote */
.faq-footnote{
  font-size: 0.85rem;
  color: #888;
  text-align: center;
  margin-top: 2rem;
}

/* Footer (falls nicht global) */
footer{
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--muted);
}

/* Scroll-to-top (optional: falls du es im global nicht stylst) */
#scrollTopBtn{
  border-radius: 0;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

/* ✅ Notification Panel Mobile (dein Block bleibt – nur neutraler Schatten) */
@media (max-width: 768px){
  #notification-panel{
    left: 0 !important;
    right: auto !important;
    transform: translateX(-100%) !important;
    width: 70vw !important;
    top: 72px !important;
    max-height: 70vh !important;
    border-radius: 0 !important;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.12);
    border-right: 1px solid var(--line);
    border-left: none !important;
    background: #fff;
  }

  #notification-panel.visible{
    transform: translateX(0) !important;
  }
}
