/* ====================================================================== */
/* BF6 – Additive Theme-Layer (auf Basis von styles.css)                  */
/* Alles ist auf body.bf6 gescoped, damit nichts global kollidiert.       */
/* ====================================================================== */

/* ---------------------------------------------------------------------- */
/* 0) Theme-Variablen (optional)                                          */
/* ---------------------------------------------------------------------- */
:root {
  --bf6-primary: #00d1ff;   /* HUD-Cyan */
  --bf6-accent:  #ff6a00;   /* Orange Akzent */
}

/* Optionales Keyart / Hintergrund */
body.bf6 {
  background:
    linear-gradient(180deg, rgba(10,14,18,.6), rgba(10,14,18,.85)),
    url("/assets/bf6/background.png") center / cover fixed no-repeat,
    var(--bg, #0b1016);
}

/* ---------------------------------------------------------------------- */
/* 1) Container-Ausrichtung (keine Breitenkonflikte mit styles.css)       */
/*    -> Wir ändern NICHT die .container-Logik, nur optionale Variablen.  */
/* ---------------------------------------------------------------------- */
body.bf6 {
  --container-max: 1760px;    /* kannst du anpassen */
  --container-pad: 16px;      /* Fallback, falls styles.css das nutzt */
  --header-h: 72px;
  --footer-h: 64px;
  overflow-x: hidden;         /* Safety gegen subpixel overflow */
}

/* Header/Footer nutzen dieselbe Containerbreite wie der Content */
body.bf6 .site-header .container,
body.bf6 .site-footer .container {
  width: min(var(--container-max), 100% - 2 * var(--container-pad));
  margin-inline: auto;
}

/* Abstand, wenn Header/Footer fixed sind (nur falls nötig) */
body.bf6.bf6-has-fixed-bars {
  padding-top: var(--header-h);
  padding-bottom: var(--footer-h);
}

/* ---------------------------------------------------------------------- */
/* 2) HERO: 3 Spalten EXAKT wie der Bereich darunter                      */
/*    – Ohne Hintergrundboxen, nur Ausrichtung                            */
/* ---------------------------------------------------------------------- */
body.bf6 .hero-wide .hero-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 380px; /* Desktop-Startwerte */
  gap: 1.25rem;
  justify-items: stretch;
  align-items: center;
}

/* Breakpoints analog zu deinem unteren Grid */
@media (min-width: 1280px){
  body.bf6 .hero-wide .hero-grid {
    grid-template-columns: 300px minmax(0, 1fr) 420px;
  }
}
@media (min-width: 1600px){
  body.bf6 .hero-wide .hero-grid {
    grid-template-columns: 340px minmax(0, 1fr) 480px;
  }
}
@media (max-width: 900px){
  body.bf6 .hero-wide .hero-grid {
    grid-template-columns: 1fr;
  }
}

/* Hero-Items: volle Spaltenbreite, OHNE Panel-Optik */
body.bf6 .hero-wide .hero-grid > .panel {
  width: 100%;
  min-width: 0;             /* wichtig für korrektes Schrumpfen */
  box-sizing: border-box;

  /* Optik im Hero neutralisieren, unten bleibt Panel-Optik bestehen */
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  border-radius: 0;
  padding: 0;
}

/* Ausrichtung innen */
body.bf6 .hero-wide .hero-grid .hero-center { 
  display: flex; justify-content: center; align-items: center; 
}
body.bf6 .hero-wide .hero-grid .hero-right  { text-align: right; }
@media (max-width: 900px){
  body.bf6 .hero-wide .hero-grid .hero-center { justify-content: flex-start; }
  body.bf6 .hero-wide .hero-grid .hero-right  { text-align: left; }
}

/* ---------------------------------------------------------------------- */
/* 3) Attachments – 2 Spalten (links Cards, rechts Tabs)                  */
/* ---------------------------------------------------------------------- */
body.bf6 .attachments-section .attachments-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;  /* 2/3 – 1/3 */
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 1200px){
  body.bf6 .attachments-section .attachments-layout {
    grid-template-columns: 1fr;
  }
}

/* Linke Seite: Cards-Grid */
body.bf6 .attachments-section .attachments-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

/* Rechte Seite: sticky Tabs */
body.bf6 .attachments-section .attachments-side {
  position: sticky;
  top: calc(var(--header-h, 72px) + 16px);
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Segmented-Controls (Tabs) */
body.bf6 .segmented {
  display: inline-flex;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 4px;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(4px);
}

body.bf6 .segmented-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 8px 14px;
  font: inherit;
  color: var(--text-muted, #aeb6c2);
  border-radius: 999px;
  cursor: pointer;
  transition: transform .12s ease, background-color .12s ease, color .12s ease;
}
body.bf6 .segmented-btn.is-active {
  background: rgba(255,255,255,.08);
  color: #fff;
  transform: translateY(-1px);
}

/* Tab-Container */
body.bf6 .tab-contents {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(0,0,0,.25);
  padding: 16px;
}
body.bf6 .tab-content[hidden] { display: none; }
body.bf6 .tab-content.is-active { display: block; }
body.bf6 .tab-title { margin: 0 0 10px 0; font-size: 1.1rem; }

/* Konfig-Liste (sichtbar im rechten Tab; die unsichtbare #cfgList bleibt Quelle) */
body.bf6 .config-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
body.bf6 .config-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  font-size: .95rem;
}

/* ---------------------------------------------------------------------- */
/* 4) Attachment-Details / Chips / Effects                                */
/* ---------------------------------------------------------------------- */
body.bf6 .att-details {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: .75rem;
  padding: .75rem;
  background: rgba(0,0,0,.2);
}
body.bf6 .att-details-header {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  margin-bottom: .5rem;
}
body.bf6 .chips { display: flex; gap: .5rem; align-items: center; }
body.bf6 .chip {
  display: inline-block; font-size: .85rem; padding: .15rem .5rem;
  border-radius: .5rem; background: rgba(255,255,255,.08);
}
body.bf6 .chip.base { background: rgba(94,234,212,.15); color: #a7f3d0; }

body.bf6 .att-effects { margin-top: .75rem; }
body.bf6 .att-effects-title { font-weight: 700; margin-bottom: .35rem; }
body.bf6 .att-effects ul { margin: 0; padding-left: 1.1rem; }
body.bf6 .att-effects li.good { color: #34d399; }
body.bf6 .att-effects li.bad  { color: #f87171; }

/* ---------------------------------------------------------------------- */
/* 5) Kleine Utilitys                                                      */
/* ---------------------------------------------------------------------- */
body.bf6 .muted { color: var(--text-muted, #9aa5b1); }
body.bf6 .warn  { color: #ffb74d; }

