/* === ALAB Premium FAQ - Modern CSS with Gold Gradient === */

/* Root Variables */
:root {
  /* Gold Color Palette */
  --gold-primary: #E6C23C;
  --gold-light: #E5C44D;
  --gold-bright: #F3D663;
  --gold-dark: #D4A62A;
  
  /* Text Colors */
  --text-primary: #0e2a3b;
  --text-secondary: #5c6b78;
  --text-muted: #8898aa;
  --text-on-gold: #ffffff;
  
  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f4f8;
  --bg-hover: rgba(230, 194, 60, 0.05);
  
  /* Borders & Shadows */
  --border-light: #e7ecf3;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --shadow-gold: 0 8px 32px rgba(230, 194, 60, 0.25);
  
  /* Animation */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Section Container */
#alab-faq-premium {
  position: relative;
  padding: 40px 20px;
  overflow: hidden;
  min-height: 100vh;
}

/* Floating Icons Background */
.floating-icons-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.floating-icon {
  position: absolute;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-bright));
  border-radius: 20px;
  opacity: 0.1;
  animation: float-diagonal 20s infinite linear;
}

@keyframes float-diagonal {
  from {
    transform: translate(-100px, -100px) rotate(0deg);
  }
  to {
    transform: translate(calc(100vw + 100px), calc(100vh + 100px)) rotate(360deg);
  }
}

/* Main Container */
.faq-container {
  max-width: 100%;
  width: 100%;
  padding: 0 40px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: start;
}

/* Sidebar */
.faq-sidebar {
  position: sticky;
  top: 20px;
  padding: 24px 20px;
  background: var(--bg-primary);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

/* Main Content */
.faq-main {
  min-height: 100vh;
}

/* Header Section */
.faq-header {
  text-align: center;
  margin-bottom: 40px;
}

.header-badge {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-bright));
  color: var(--text-on-gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 100px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-gold);
}

.faq-title {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
}

.title-highlight {
  display: block;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.faq-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0 auto 20px;
}


/* Category Tabs */
.category-tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-align: left;
  position: relative;
}

.tab-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.tab-btn.active {
  background: linear-gradient(135deg, rgba(229, 196, 77, 0.15), rgba(243, 214, 99, 0.15));
  color: var(--gold-dark);
}

.tab-btn.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-bright));
  border-radius: 0 4px 4px 0;
}

.tab-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.tab-btn span {
  flex: 1;
}

.tab-count {
  padding: 3px 10px;
  background: var(--bg-secondary);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: auto;
}

.tab-btn.active .tab-count {
  background: rgba(230, 194, 60, 0.3);
  color: var(--gold-dark);
}

/* Stats Cards */
.stats-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 0;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: 10px;
  transition: all 0.3s var(--ease);
  border: 1px solid var(--border-light);
}

.stat-card:hover {
  background: rgba(230, 194, 60, 0.05);
  border-color: var(--gold-light);
}

.stat-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.stat-icon svg {
  width: 100%;
  height: 100%;
}

.stat-number {
  font-size: 1.1rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-bright));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 2px;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  line-height: 1.2;
}

.stat-content {
  flex: 1;
}

/* FAQ Grid */
.faq-grid {
  display: grid;
  gap: 12px;
  padding-top: 10px;
}

/* FAQ Item */
.faq-item {
  background: var(--bg-primary);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all 0.4s var(--ease);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Answer CTA */
.answer-cta {
  margin-top: 24px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-bright));
  color: var(--text-on-gold);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 12px;
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 16px rgba(230, 194, 60, 0.2);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(230, 194, 60, 0.3);
}

.cta-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.arrow-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.cta-button:hover .arrow-icon {
  transform: translateX(4px);
}

.faq-item.expanded {
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-light);
}

/* FAQ Question */
.faq-question {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(229, 196, 77, 0.1), rgba(243, 214, 99, 0.1));
  border-radius: 8px;
}

.faq-icon svg {
  width: 18px;
  height: 18px;
}

.faq-question h3 {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.expand-btn {
  width: 22px;
  height: 22px;
  background: transparent;
  border: 1.5px solid var(--border-light);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s var(--ease);
}

.expand-icon {
  position: relative;
  width: 14px;
  height: 14px;
}

.expand-icon::before,
.expand-icon::after {
  content: '';
  position: absolute;
  background: var(--gold-primary);
  border-radius: 2px;
  transition: all 0.4s var(--ease);
}

.expand-icon::before {
  width: 14px;
  height: 2px;
  top: 6px;
  left: 0;
}

.expand-icon::after {
  width: 2px;
  height: 14px;
  top: 0;
  left: 6px;
}

.faq-item.expanded .expand-btn {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-bright));
  border-color: transparent;
  transform: rotate(45deg);
}

.faq-item.expanded .expand-icon::before,
.faq-item.expanded .expand-icon::after {
  background: var(--text-on-gold);
}

/* FAQ Answer */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s var(--ease);
}

.faq-item.expanded .faq-answer {
  max-height: 2000px;
}

.answer-content {
  padding: 0 16px 16px 56px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}

.answer-content p {
  margin-bottom: 16px;
  line-height: 1.7;
}

.answer-content ul {
  list-style: none;
  margin: 16px 0;
}

.answer-content ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
}

.answer-content ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold-primary);
  font-weight: bold;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.feature-item {
  padding: 18px;
  background: var(--bg-secondary);
  border-radius: 14px;
  border: 1px solid var(--border-light);
  transition: all 0.3s var(--ease);
}

.feature-item:hover {
  background: rgba(230, 194, 60, 0.05);
  border-color: var(--gold-light);
  transform: translateY(-2px);
}

.feature-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  display: block;
}

/* Process Steps */
.process-steps {
  margin: 20px 0;
}

.process-step {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-bright));
  color: var(--text-on-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Comparison Table */
.comparison-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.comparison-item {
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: 16px;
  border: 2px solid var(--border-light);
  transition: all 0.3s var(--ease);
}

.comparison-item:hover {
  border-color: var(--gold-light);
  box-shadow: var(--shadow-sm);
}

.comparison-icon {
  width: 28px;
  height: 28px;
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.benefit-card {
  padding: 20px;
  background: linear-gradient(135deg, rgba(229, 196, 77, 0.05), rgba(243, 214, 99, 0.05));
  border-radius: 16px;
  border: 1px solid var(--gold-light);
}

/* No Results Message */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 40px;
  background: var(--bg-secondary);
  border-radius: 24px;
  border: 2px dashed var(--border-light);
}

.no-results-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  opacity: 0.6;
}

.no-results-icon svg {
  width: 100%;
  height: 100%;
}

.no-results h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.no-results p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}


/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 1400px) {
  .faq-container {
    padding: 0 40px;
    grid-template-columns: 300px 1fr;
    gap: 40px;
  }
}

@media (max-width: 1200px) {
  .faq-container {
    padding: 0 30px;
    grid-template-columns: 280px 1fr;
    gap: 30px;
  }
  
  .faq-sidebar {
    padding: 20px 16px;
  }
  
  .contact-cta {
    padding: 30px;
  }
}

@media (max-width: 968px) {
  .faq-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .faq-sidebar {
    position: relative;
    top: 0;
  }
  
  .stats-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  #alab-faq-premium {
    padding: 40px 16px;
  }
  
  .faq-sidebar {
    padding: 20px;
  }
  
  .stats-cards {
    grid-template-columns: 1fr;
  }
  
  .category-tabs {
    gap: 6px;
  }
  
  .tab-btn {
    padding: 12px 14px;
    font-size: 0.85rem;
  }
  
  .contact-cta {
    grid-template-columns: 1fr;
    padding: 40px;
  }
  
  .answer-content {
    padding: 0 24px 24px 24px;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .comparison-table {
    grid-template-columns: 1fr;
  }
}


/* ======================================================
   ALAB FAQ – EXTRA COMPACT MOBILE
   ====================================================== */

/* leichtes Safety-Net: kein Seitwärts-Scroll im FAQ-Bereich */
#alab-faq-premium{ position:relative; overflow-x: clip; }
@supports not (overflow: clip){ #alab-faq-premium{ overflow-x: hidden; } }

/* ===== ≤ 768px ===== */
@media (max-width: 768px){
  /* Container/Gassen */
  #alab-faq-premium{ padding: 28px 14px; }
  #alab-faq-premium .faq-container{ padding: 0 8px; gap: 18px; }

  /* Header deutlich kompakter */
  #alab-faq-premium .faq-header{ margin-bottom: 18px; }
  #alab-faq-premium .header-badge{
    padding: 4px 10px; font-size: .7rem; margin-bottom: 8px; box-shadow: var(--shadow-sm);
  }
  #alab-faq-premium .faq-title{ font-size: 1.35rem; margin-bottom: 6px; line-height: 1.15; }
  /* Highlight nicht in eigene Zeile -> spart Höhe */
  #alab-faq-premium .title-highlight{ display: inline; }
  #alab-faq-premium .faq-subtitle{ font-size: .82rem; margin-bottom: 10px; }

  /* Sidebar/Stats/Tabs */
  #alab-faq-premium .faq-sidebar{
    padding: 14px 12px; border-radius: 12px; box-shadow: var(--shadow-sm);
  }
  #alab-faq-premium .category-tabs{ gap: 4px; margin-bottom: 12px; }
  #alab-faq-premium .tab-btn{
    padding: 8px 10px; font-size: .8rem; border-radius: 8px; gap: 8px;
  }
  #alab-faq-premium .tab-icon{ width: 14px; height: 14px; }
  #alab-faq-premium .tab-count{ padding: 2px 8px; font-size: .7rem; }
  #alab-faq-premium .tab-btn.active::before{ width: 3px; }

  #alab-faq-premium .stats-cards{ gap: 8px; }
  #alab-faq-premium .stat-card{ padding: 10px; border-radius: 8px; }
  #alab-faq-premium .stat-icon{ width: 24px; height: 24px; }
  #alab-faq-premium .stat-number{ font-size: 1rem; }
  #alab-faq-premium .stat-label{ font-size: .68rem; }

  /* FAQ Liste/Karten */
  #alab-faq-premium .faq-grid{ gap: 10px; padding-top: 6px; }
  #alab-faq-premium .faq-item{
    border-radius: 12px; box-shadow: var(--shadow-sm);
  }

  /* Fragezeile */
  #alab-faq-premium .faq-question{
    padding: 10px 12px; gap: 10px;
  }
  #alab-faq-premium .faq-icon{ width: 22px; height: 22px; border-radius: 6px; }
  #alab-faq-premium .faq-icon svg{ width: 16px; height: 16px; }
  #alab-faq-premium .faq-question h3{ font-size: .95rem; }
  #alab-faq-premium .expand-btn{ width: 20px; height: 20px; }
  #alab-faq-premium .expand-icon{ width: 12px; height: 12px; }
  #alab-faq-premium .expand-icon::before{ width: 12px; top: 5px; }
  #alab-faq-premium .expand-icon::after{ height: 12px; left: 5px; }

  /* Antwortblock */
  #alab-faq-premium .answer-content{
    padding: 0 12px 12px 40px; font-size: .83rem; line-height: 1.45;
  }
  #alab-faq-premium .answer-content p{ margin-bottom: 10px; line-height: 1.55; }
  #alab-faq-premium .answer-content ul{ margin: 10px 0; }
  #alab-faq-premium .answer-content ul li{ padding-left: 18px; margin-bottom: 8px; }
  #alab-faq-premium .answer-cta{ margin-top: 14px; }
  #alab-faq-premium .cta-button{ padding: 10px 14px; font-size: .85rem; border-radius: 10px; }

  /* Feature/Comparison/Process (optional kompakter) */
  #alab-faq-premium .feature-grid,
  #alab-faq-premium .comparison-table{ gap: 12px; }
  #alab-faq-premium .feature-item,
  #alab-faq-premium .comparison-item{ padding: 12px; border-radius: 10px; }
  #alab-faq-premium .feature-icon{ width: 26px; height: 26px; margin-bottom: 8px; }

  #alab-faq-premium .process-steps{ margin: 12px 0; }
  #alab-faq-premium .process-step{ gap: 10px; margin-bottom: 12px; }
  #alab-faq-premium .step-number{ width: 34px; height: 34px; font-size: .9rem; }

  /* „Keine Ergebnisse“ kompakter */
  #alab-faq-premium .no-results{ padding: 28px 16px; border-radius: 14px; }
  #alab-faq-premium .no-results-icon{ width: 56px; height: 56px; margin-bottom: 12px; }
  #alab-faq-premium .no-results h3{ font-size: 1.1rem; margin-bottom: 8px; }
  #alab-faq-premium .no-results p{ font-size: .95rem; margin-bottom: 12px; }
}

/* ===== ≤ 480px (XS) – noch straffer ===== */
@media (max-width: 480px){
  #alab-faq-premium{ font-size: .9rem; line-height: 1.4; padding: 24px 12px; }
  #alab-faq-premium .faq-container{ padding: 0; gap: 14px; }

  #alab-faq-premium .faq-title{ font-size: 1.25rem; }
  #alab-faq-premium .faq-subtitle{ font-size: .8rem; }

  #alab-faq-premium .faq-sidebar{ padding: 12px 10px; border-radius: 10px; }
  #alab-faq-premium .tab-btn{ padding: 7px 9px; font-size: .78rem; }

  #alab-faq-premium .faq-question{ padding: 9px 10px; gap: 8px; }
  #alab-faq-premium .faq-icon{ width: 20px; height: 20px; }
  #alab-faq-premium .faq-question h3{ font-size: .9rem; }
  #alab-faq-premium .expand-btn{ width: 18px; height: 18px; }

  #alab-faq-premium .faq-item{ border-radius: 10px; }
  #alab-faq-premium .answer-content{ padding: 0 10px 10px 36px; font-size: .82rem; }

  #alab-faq-premium .cta-button{ padding: 9px 12px; font-size: .82rem; }
}


/* FAQ-Karte unten bündig – nur mobil */
@media (max-width: 768px){
  /* jegliche Mindesthöhen deaktivieren */
  #alab-faq-premium,
  #alab-faq-premium .faq-main,
  #alab-faq-premium .faq-sidebar{
    min-height: auto !important;
    height: auto !important;
  }

  /* untere Innenabstände & Margins straffen */
  #alab-faq-premium .faq-sidebar{
    padding-bottom: 12px !important;   /* vorher höher */
  }
  #alab-faq-premium .faq-header{ margin-bottom: 12px !important; }
  #alab-faq-premium .category-tabs{ margin-bottom: 0 !important; }
  #alab-faq-premium .stats-cards{ margin-bottom: 0 !important; }

  /* innerhalb der Sidebar: letzter Block ohne Außenabstand */
  #alab-faq-premium .faq-sidebar > *:last-child{
    margin-bottom: 0 !important;
  }

  /* Sicherheitsnetz: die FAQ-Liste selbst ohne Extra-Abstand unten */
  #alab-faq-premium .faq-grid{ padding-bottom: 0 !important; }
}


/* HARD-FIX: FAQ auf Mobile immer sichtbar machen */
@media (max-width: 768px) {
  #alab-faq-premium .faq-container {
    display: block !important;      /* nicht mehr Grid/Flex-Tricks */
  }

  #alab-faq-premium .faq-sidebar,
  #alab-faq-premium .faq-main {
    width: 100% !important;
    position: static !important;
  }

  #alab-faq-premium .faq-main {
    margin-top: 16px;
  }

  /* FAQ-Karten selber */
  #alab-faq-premium .faq-grid {
    display: block !important;
  }

  #alab-faq-premium .faq-item {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
  }
}
