/* =======================================
   BOVOTRADE – Redesign Stylesheet
   (Ersetzt oder erweitert dein bestehendes style.css)
   ======================================= */

html,body{margin:0;padding:0;background:#000;color:#eaf6ff;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Inter,Arial,sans-serif}
img{max-width:100%;height:auto;display:block}
a{color:#bffcf0;text-decoration:none}
a:hover{text-decoration:underline}

/* Header / Navigation */
.site-header{position:sticky;top:0;z-index:50;background:rgba(0,0,0,.75);backdrop-filter:saturate(160%) blur(8px);border-bottom:1px solid rgba(255,255,255,.06)}
.nav-wrap{max-width:1100px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;padding:12px 16px}
.nav{}
.nav-list{display:flex;gap:18px;align-items:center;margin:0;padding:0;list-style:none}
.nav-list a{padding:8px 10px;border-radius:8px}
.nav-list a:hover{background:rgba(255,255,255,.06)}
.btn-link{background:#00ffcc;color:#06231e;padding:8px 12px;border-radius:8px;text-decoration:none;box-shadow:0 10px 26px rgba(0,255,204,.2)}
.btn-link:hover{filter:brightness(1.05);text-decoration:none}

.nav-toggle{display:none;flex-direction:column;gap:4px;background:transparent;border:0;padding:8px;margin-left:auto}
.nav-toggle-bar{width:22px;height:2px;background:#eaf6ff;display:block}

/* Footer */
.site-footer{margin-top:56px;border-top:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg, rgba(0,255,204,.05), rgba(0,0,0,0))}
.foot-grid{display:flex;gap:22px;align-items:center;justify-content:space-between;padding:18px 16px}
.foot-brand p{opacity:.8;margin:.4rem 0 0}
.foot-nav{display:flex;gap:14px;flex-wrap:wrap}
.copy{text-align:center;opacity:.7;padding:10px 0 20px}

/* ===== BOVOTRADE Landing Add-On ===== */
:root {
  --bov-bg:#000;
  --bov-ink:#f5feff;
  --bov-primary:#00ffcc;
  --bov-ink-dim:#cfeeed;
  --bov-glass:rgba(255,255,255,.06);
}
.bov-container{max-width:1100px;margin:0 auto;padding:0 16px}
.bov-section{padding:72px 0}
.bov-section--glass{background:linear-gradient(180deg, rgba(0,255,204,.06), transparent)}

.bov-eyebrow{font-size:.85rem;letter-spacing:.18em;text-transform:uppercase;opacity:.8;margin-bottom:6px}
.bov-headline{font-size:2.6rem;line-height:1.12;margin:0 0 10px}
.bov-headline-sm{font-size:1.6rem;margin:0 0 8px}
.bov-grad{background:linear-gradient(90deg,#00ffcc,#a7fff0);-webkit-background-clip:text;background-clip:text;color:transparent}
.bov-sub{color:var(--bov-ink-dim);max-width:560px}

.bov-cta-row{display:flex;gap:14px;align-items:center;margin:18px 0 8px}
.bov-btn{display:inline-flex;align-items:center;gap:8px;padding:12px 18px;border-radius:10px;
  font-weight:700;text-decoration:none;transition:.2s ease}
.bov-btn--primary{background:var(--bov-primary);color:#08201c;box-shadow:0 10px 30px rgba(0,255,204,.2)}
.bov-btn--primary:hover{filter:brightness(1.08);transform:translateY(-1px)}
.bov-btn--lg{padding:16px 26px;font-size:1.05rem}
.bov-btn--ghost{border:1px solid rgba(255,255,255,.14);color:var(--bov-ink);background:rgba(255,255,255,.02)}
.bov-btn--ghost:hover{background:rgba(255,255,255,.08)}

.bov-metrics{display:flex;gap:18px;margin-top:8px;opacity:.9;padding:0}
.bov-metrics li{list-style:none}

.bov-hero{position:relative;padding:68px 0 36px;overflow:hidden;
  background:
    radial-gradient(900px 380px at 85% -10%, rgba(0,255,204,.15), transparent 60%),
    radial-gradient(600px 300px at 10% 100%, rgba(0,180,255,.10), transparent 60%)}
.bov-hero__grid{display:grid;grid-template-columns:1.1fr .9fr;gap:44px;align-items:center}
.bov-mockup{background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.12);border-radius:16px;padding:14px;box-shadow:0 20px 60px rgba(0,0,0,.55)}
.bov-hero__visual img{display:block;width:100%;height:auto}

.bov-trustbar{display:flex;align-items:center;justify-content:center;gap:22px;padding:14px 10px;margin-top:22px;opacity:.9;flex-wrap:wrap}
.bov-trustbar__logos{display:flex;gap:18px;align-items:center;opacity:.85}

.bov-title{font-size:1.4rem;margin-bottom:18px}
.bov-grid{display:grid;gap:18px}
.bov-grid--3{grid-template-columns:repeat(3,1fr)}
.bov-card{background:var(--bov-glass);border:1px solid rgba(255,255,255,.10);border-radius:14px;padding:18px;
  box-shadow:0 10px 30px rgba(0,0,0,.35)}
.bov-card__ico{font-size:22px;margin-bottom:6px;opacity:.9}

.bov-split{display:grid;grid-template-columns:1.1fr .9fr;gap:24px;align-items:center}
.bov-list{margin:0 0 12px 0;padding-left:18px}
.bov-link{display:inline-block;margin-top:6px}
.bov-preview{background:var(--bov-glass);border:1px solid rgba(255,255,255,.10);border-radius:14px;padding:14px;text-align:center}
.bov-preview img{max-width:360px;width:100%;height:auto}

.bov-quote{background:var(--bov-glass);border:1px solid rgba(255,255,255,.10);border-radius:12px;padding:16px;margin:0}
.bov-quote span{display:block;opacity:.7;margin-top:6px}

.bov-cta-final{background:linear-gradient(180deg, rgba(0,255,204,.08), rgba(0,0,0,0))}
.bov-cta-final__wrap{display:flex;align-items:center;justify-content:space-between;gap:18px}

/* Responsive */
@media (max-width: 992px){
  .bov-hero__grid,.bov-split{grid-template-columns:1fr}
  .bov-headline{font-size:2.2rem}
  .bov-grid--3{grid-template-columns:1fr 1fr}
  .nav-toggle{display:flex}
  .nav-list{position:absolute;right:16px;top:56px;flex-direction:column;background:#0b1313;border:1px solid rgba(255,255,255,.08);padding:10px;border-radius:12px;display:none}
  .nav-list.is-open{display:flex}
}
@media (max-width: 600px){
  .bov-grid--3{grid-template-columns:1fr}
  .bov-cta-row{flex-wrap:wrap}
}

/* ==== NAVIGATION FIX (works with header.php markup) ==== */
.navbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 22px;
  background:#000;
  position:sticky;
  top:0;
  z-index:100;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.nav-logo-img{height:36px;display:block}

.nav-links{
  list-style:none;
  display:flex;
  gap:24px;
  margin:0;
  padding:0;
}

.nav-links li{margin:0}

.nav-links a{
  color:#eaf6ff;
  text-decoration:none;
  font-weight:600;
  padding:8px 6px;
  border-radius:8px;
  transition:background .2s ease, color .2s ease;
}

.nav-links a:hover,
.nav-links a.active{color:#00ffcc;}

/* Burger */
.nav-toggle{display:none;cursor:pointer}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after{
  display:block;background:#eaf6ff;height:3px;width:26px;border-radius:2px;position:relative
}
.nav-toggle span::before,
.nav-toggle span::after{content:"";position:absolute;left:0}
.nav-toggle span::before{top:-8px}
.nav-toggle span::after{top:8px}

/* Mobile */
@media (max-width: 768px){
  .nav-toggle{display:block}
  .nav-links{
    position:absolute;
    top:64px; right:16px;
    background:#0b1313;
    border:1px solid rgba(255,255,255,.12);
    border-radius:12px;
    padding:12px;
    display:none;
    flex-direction:column;
    gap:12px;
    min-width:180px;
  }
  .nav-links.open{display:flex}
}



/* === Footer Logo Fix === */
.foot-brand img {
  height: 40px;      /* kompakte Höhe im Footer */
  width: auto;       /* Verhältnis bleibt korrekt */
  display: block;
  margin-bottom: 6px;
}


/* === Bybit Logo Size Fix (70% smaller) === */
.bybit-logo {
  max-height: 24px !important; /* vorher ca. 40px, jetzt ~70% kleiner */
  width: auto !important;
  display: block;
  margin-bottom: 4px;
}


/* ==== Compat widgets – final pack ==== */
.exchanges-section{ margin-top:8px; }
.section-title{ margin:0 0 10px; font-size:1.1rem; letter-spacing:.02em; opacity:.92; }

.exchange-row.grid{ display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; align-items:stretch; margin:14px 0; }
@media (max-width:980px){ .exchange-row.grid{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:680px){ .exchange-row.grid{ grid-template-columns:1fr; } }

.exchange-card{
  position:relative;
  padding:8px 9px;
  border-radius:12px;
  background:rgba(255,255,255,.15) !important;
  border:1px solid rgba(255,255,255,.25) !important;
  display:flex; align-items:center; justify-content:center;
  text-decoration:none; color:inherit; overflow:hidden;
  box-shadow:0 5px 16px rgba(0,0,0,.28);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.exchange-card:hover{ transform:translateY(-2px); border-color:rgba(255,255,255,.35) !important; box-shadow:0 10px 26px rgba(0,0,0,.40); }
.exchange-card::after{ content:""; position:absolute; top:-25%; left:-160%; width:60%; height:150%; transform:rotate(20deg); background:linear-gradient(90deg,rgba(255,255,255,0) 0%, rgba(255,255,255,.28) 50%, rgba(255,255,255,0) 100%); transition:left .6s ease; pointer-events:none; mix-blend-mode:screen; }
.exchange-card:hover::after{ left:130%; }

/* brand-specific compact heights (halved) */
.bybit-card  { min-height:65px  !important; }
.gateio-card { min-height:110px !important; }
.kucoin-card { min-height:110px !important; }

/* logos (halved) */
.logo-img{ width:auto !important; max-width:92% !important; display:block; object-fit:contain; }
.bybit-logo  { max-height:30px !important; }
.gateio-logo { max-height:100px !important; }
.kucoin-logo { max-height:100px !important; }

@media (max-width:680px){
  .gateio-card,.kucoin-card{ min-height:90px !important; }
  .gateio-logo,.kucoin-logo{ max-height:55px !important; }
}

/* high-contrast safety */
:root[data-contrast="high"] .exchange-card{
  background:rgba(255,255,255,.06) !important;
  border-color:rgba(255,255,255,.24) !important;
}

/* small fallback: hide stray legacy elements right after the section */
#compat-section + p,
#compat-section + div:not(.exchanges-section):not(.exchange-row){ display:none !important; }



/* === Bovobot: stronger image hover zoom for better readability === */
@media (hover:hover){
  .bovobot-previews .bov-preview,
  .bov-fig{
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
  }
  .bovobot-previews .bov-preview img,
  .bov-fig img{
    transition: transform .35s ease, filter .35s ease;
    transform-origin: center center;
    will-change: transform;
  }
  .bovobot-previews .bov-preview:hover img,
  .bov-fig:hover img{
    transform: scale(2); /* x2 for better details */
  }
}



/* === FORCE SCI‑FI BACKGROUND (kill any image backgrounds) === */
html, body { 
  background-image: none !important; 
  background:
    radial-gradient(1200px 520px at 85% -10%, color-mix(in oklab, #00e0ff 18%, transparent) 0 60%, transparent 70%),
    radial-gradient(900px 420px at 10% 110%, color-mix(in oklab, #00ffcc 14%, transparent) 0 60%, transparent 70%),
    linear-gradient(180deg, #041826 0%, #041018 35%, #01080f 100%) !important;
  background-attachment: fixed, fixed, fixed !important;
}
main, .hero, .bov-hero, .hero-knowledge, .knowledge-main, .download-main, .page-bg, .page, .site-wrapper{
  background-image: none !important;
}

/* === SWITCH from image-zoom to CONTAINER GROW (Preview + Figure) === */
@media (hover:hover){
  .bovobot-previews .bov-preview,
  .bov-fig{
    position: relative;
    transform-origin: center center;
    transition: transform .35s ease, box-shadow .35s ease;
    will-change: transform;
    cursor: zoom-in;
    z-index: 0;
  }
  /* stop the old rule that zoomed the IMG itself */
  .bovobot-previews .bov-preview img,
  .bov-fig img{
    transform: none !important;
    transition: none;
  }
  .bovobot-previews .bov-preview:hover,
  .bov-fig:hover{
    transform: scale(1.65); /* grow whole widget */
    z-index: 4;
    box-shadow: 0 20px 60px rgba(0,0,0,.55);
  }
  .bovobot-previews .bov-preview:focus-within,
  .bov-fig:focus-within{
    transform: scale(1.65);
    z-index: 4;
    box-shadow: 0 20px 60px rgba(0,0,0,.55);
  }
}

@media (prefers-reduced-motion: reduce){
  .bovobot-previews .bov-preview,
  .bov-fig{ transition: none !important; }
}

/* === Einheitliche Widget-Boxen (fix) === */
.bovobot-previews .bov-preview,
.bov-fig {
  width: 420px;
  height: 260px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
}

.bovobot-previews .bov-preview img,
.bov-fig img {
  max-width: 100%;
  max-height: 80%;
  object-fit: contain;
  display: block;
}

.bovobot-previews .bov-preview figcaption,
.bov-fig figcaption {
  font-size: 0.9rem;
  color: #cfeeed;
  margin-top: 6px;
  text-align: center;
  line-height: 1.3;
}

/* === Hover-Effekt stärker + Schärfere Screenshots === */
.bovobot-previews .bov-preview,
.bov-fig {
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.bovobot-previews .bov-preview:hover,
.bov-fig:hover {
  transform: scale(1.08);
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 20px 48px rgba(0,0,0,.55);
}

.bovobot-previews .bov-preview img,
.bov-fig img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* === Extra starkes Hover-Zoomen === */
.bovobot-previews .bov-preview:hover,
.bov-fig:hover {
  transform: scale(2.0);
  border-color: rgba(255,255,255,.25);
  box-shadow: 0 40px 90px rgba(0,0,0,.75);
  z-index: 10;
}

/* === Spezielles Widget: Trading Settings extra groß beim Hover === */
.bov-fig.trading-settings:hover {
  transform: scale(2.5);
  border-color: rgba(0,255,204,.35);
  box-shadow: 0 50px 120px rgba(0,0,0,.8);
  z-index: 20;
}

/* === Trading Settings Widget: größere Grundgröße + schärfere Darstellung === */
.bov-fig.trading-settings {
  width: 600px;
  height: 400px;
}

.bov-fig.trading-settings img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  backface-visibility: hidden;
  transform: translateZ(0);
}


/* === GUIDE LAYOUT (guide.php) === */
.guide-grid{display:grid;grid-template-columns:280px 1fr;gap:24px;align-items:start}
@media (max-width: 980px){.guide-grid{grid-template-columns:1fr}}

.guide-sidebar{position:sticky;top:84px}
.guide-tools{display:grid;gap:10px;position:sticky;top:84px}
.guide-search-input{
  width:100%;padding:10px 12px;border-radius:10px;border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);color:#eaf6ff;outline:0
}
.guide-search-input::placeholder{color:#9fc9c5}
.guide-search-count{font-size:.9rem;opacity:.8}

.toc summary{cursor:pointer;font-weight:700;margin:.3rem 0}
.toc-list{margin:0;padding-left:1.1rem}
.toc-list a{color:#cfeeed}
.toc-group{margin-top:.4rem}

.guide-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px}

.guide-content{display:block}
.guide-section{margin-bottom:26px}
.entry{background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08);border-radius:14px;padding:16px;margin-bottom:16px}
.entry.gloss{padding:14px}
.entry-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap}
.entry-title{margin:0 0 6px;font-size:1.2rem}
.entry-body :where(p,ul,ol,figure){margin:0 0 .7rem}
.entry-body img{display:block;width:100%;height:auto}
.glossary-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media (max-width: 800px){.glossary-grid{grid-template-columns:1fr}}

.tag-list{list-style:none;display:flex;gap:6px;margin:0;padding:0}
.tag{font-size:.8rem;padding:.16rem .5rem;border-radius:999px;border:1px solid rgba(255,255,255,.20);background:rgba(255,255,255,.06);color:#cfeeed}

.copy-link{font-size:.9rem;padding:6px 8px;border-radius:8px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.03);cursor:pointer}
.copy-link:hover{background:rgba(255,255,255,.08)}

.to-top{position:fixed;right:16px;bottom:16px;opacity:0;pointer-events:none;transition:.2s;z-index:30;
  border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.08);color:#eaf6ff;border-radius:10px;padding:10px}
.to-top.show{opacity:1;pointer-events:auto}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}


/* === Illustrated image + text layout === */
.illustrated{
  display:grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap:18px;
  align-items:start;
  margin-bottom:1rem;
}
.illu-media img{width:100%;height:auto;border-radius:12px;border:1px solid rgba(255,255,255,.14)}
@media (max-width: 980px){
  .illustrated{grid-template-columns:1fr}
}
/* Clean, readable copy */
.prose{line-height:1.6}
.prose p{margin:0 0 .7rem}
.prose strong{font-weight:700}
.prose em{opacity:.95}
.prose ul{margin:.4rem 0 .7rem .9rem}
.prose li{margin:.2rem 0}
/* Definition grid for parameter explanations (optional) */
.param-grid{
  display:grid;
  grid-template-columns: 1fr 2fr;
  gap:.5rem .9rem;
  margin:.6rem 0;
}
.param-grid dt{
  font-weight:600;opacity:.95
}
.param-grid dd{
  margin:0;opacity:.9
}
@media (max-width: 800px){
  .param-grid{grid-template-columns:1fr}
}


/* === FAQ tabs === */
.faq-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 6px}
.faq-tab{padding:.44rem .7rem;border-radius:10px;border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.05);color:#eaf6ff;cursor:pointer}
.faq-tab.active{background:rgba(255,255,255,.18)}

/* Disable expand animation */
.faq-card .faq-a{transition:none}

/* Slightly denser layout */
.faq-acc{row-gap:16px}


/* === FAQ page: Sidebar darf Inhalte nicht überdecken === */
body.faq-page .guide-sidebar,
body.faq-page .guide-tools {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
}


/* === GUIDE: prevent TOC overlap on mobile & enforce order === */
.guide-grid{grid-template-areas:'sidebar content'}
.guide-sidebar{grid-area:sidebar}
.guide-content{grid-area:content}
@media (max-width:980px){
  .guide-grid{grid-template-columns:1fr;grid-template-areas:'sidebar' 'content'}
  .guide-sidebar,.guide-tools{position:static !important;top:auto !important;z-index:auto !important}
}

/* === Bybit Available Label === */
.bybit-card::before {
  content: "Available";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #66ff66;
  background: rgba(102,255,102,.12);
  border: 1px solid rgba(102,255,102,.35);
  pointer-events: none;
  z-index: 1;
  transition: all .3s ease;
}
.bybit-card:hover::before {
  color: #ccffcc;
  background: rgba(102,255,102,.25);
  border-color: rgba(102,255,102,.5);
  box-shadow: 0 0 8px rgba(102,255,102,.6);
}

/* === Coming Soon (kräftiges Orange) === */
.gateio-card::before,
.kucoin-card::before {
  content: "Coming Soon";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #ff9900;
  background: rgba(255,153,0,.15);
  border: 1px solid rgba(255,153,0,.45);
  pointer-events: none;
  z-index: 1;
  transition: all .3s ease;
}
.gateio-card:hover::before,
.kucoin-card:hover::before {
  color: #ffb84d;
  background: rgba(255,153,0,.25);
  border-color: rgba(255,153,0,.65);
  box-shadow: 0 0 10px rgba(255,153,0,.7);
}

/* === Pulse Animation for Labels === */
@keyframes pulseGlow {
  0%   { box-shadow: 0 0 4px rgba(255,255,255,.2); }
  50%  { box-shadow: 0 0 12px rgba(255,255,255,.6); }
  100% { box-shadow: 0 0 4px rgba(255,255,255,.2); }
}

.bybit-card::before {
  animation: pulseGlow 2.5s infinite ease-in-out;
}

.gateio-card::before,
.kucoin-card::before {
  animation: pulseGlow 2.5s infinite ease-in-out;
}


/* === GUIDE: kompakte & responsive Widgets + mobiles TOC-Verhalten === */

/* 1) Verzeichnis/Content als Grid: Cards kompakt & responsive */
.guide-content{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
/* Kompaktere Cards */
.guide-content .entry{
  padding: 12px 14px;
  border-radius: 12px;
  margin: 0;                 /* Abstand kommt vom Grid-gap */
  box-shadow: 0 8px 22px rgba(0,0,0,.28);
}
.guide-content .entry .entry-title{ font-size: 1.05rem; margin: 0 0 .4rem; }
.guide-content .entry .entry-body{ font-size: .95rem; line-height: 1.5; }
.guide-content .entry .tag-list{ gap: 5px }

/* 2) Sidebar/Inhaltsverzeichnis: Desktop sticky, Mobile normal und korrekt gestapelt */
.guide-grid{ grid-template-areas: 'sidebar content'; }
.guide-sidebar{ grid-area: sidebar; }
.guide-content{ grid-area: content; }

/* Sticky nur auf breiten Screens */
@media (min-width: 981px){
  .guide-sidebar, .guide-tools{
    position: sticky;
    top: 84px;
    z-index: 3;
  }
}

/* Auf schmalen Screens: Sidebar NICHT sticky und Reihenfolge fix: erst TOC, dann Content */
@media (max-width: 980px){
  .guide-grid{ grid-template-columns: 1fr; grid-template-areas: 'sidebar' 'content'; }
  .guide-sidebar, .guide-tools{
    position: static !important;
    top: auto !important;
    z-index: auto !important;
  }
  /* Sicherheit: Widgets dürfen Sidebar nicht überlappen */
  .guide-content .entry{
    position: relative;
    z-index: 1;
    transform: none !important;
    box-shadow: 0 6px 18px rgba(0,0,0,.22);
  }
}

/* 3) Optional: sehr kleine Displays etwas enger */
@media (max-width: 540px){
  .guide-content{
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .guide-content .entry{ padding: 11px 12px; border-radius: 11px; }
}


/* === GUIDE WIDGET/IMAGE FIXES — 2025-09-25 ===
   Scope: only inside the Guide (main.knowledge-main)
   Goal: keep images/widgets narrow, fit card width, limit hover zoom
   --------------------------------------------------------------- */

.knowledge-main .entry img{
  width:100%;
  height:auto;
  max-height:260px;
  object-fit:contain;
  border-radius:10px;
}

.knowledge-main .bov-fig,
.knowledge-main .bovobot-previews .bov-preview{
  width:100%;
  max-width:360px;
  aspect-ratio:16/10;
  height:auto;
  margin:12px auto;
}

.knowledge-main .bov-fig.trading-settings{
  max-width:440px;
  aspect-ratio:3/2;
}

/* So that hover zooms don't explode out of cards */
@media (hover:hover){
  .knowledge-main .bov-fig:hover img,
  .knowledge-main .bovobot-previews .bov-preview:hover img{
    transform:scale(1.06);
  }
}

/* Mobile tighter */
@media (max-width:680px){
  .knowledge-main .entry img{ max-height:200px; }
  .knowledge-main .bov-fig,
  .knowledge-main .bovobot-previews .bov-preview{ max-width:300px; }
}


/* === GUIDE Feinschliff: Hero & Tag-Bubbles — 2025-09-25 ==================== */
.knowledge-main .bov-hero__visual .bov-fig{
  max-width:520px;
  aspect-ratio:16/9;
  margin:0 auto;
}
@media (max-width:1100px){
  .knowledge-main .bov-hero__visual{ display:none; }
}
.knowledge-main .bov-card{ overflow:hidden; }
.knowledge-main .tag-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  max-height:96px;
  overflow:auto;
}
.knowledge-main .tag{
  padding:6px 10px;
  font-size:.82rem;
  white-space:nowrap;
}
.knowledge-main .guide-content{
  max-width:1200px;
  margin-inline:auto;
}
.knowledge-main .guide-grid{
  grid-template-columns:280px minmax(0,1fr);
}


/* === GUIDE Tag-Bubbles: keine Scrollbars, natürlicher Umbruch — 2025-09-25 === */
.knowledge-main .tag-list{
  max-height: none;
  overflow: visible;
  row-gap: 6px;
}
/* etwas kompaktere Tags, damit mehr pro Zeile passt */
.knowledge-main .tag{
  padding:5px 9px;
  font-size:.8rem;
}


/* === GUIDE Layout-Update: Glossar ohne Lücke, Hero-Order — 2025-09-25 === */

/* 1) Hero: Chart zuerst, Text darunter (auch Desktop konsistent) */
.knowledge-main .bov-hero__grid{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
}
.knowledge-main .bov-hero__visual{ order:1; }
.knowledge-main .bov-hero__grid > div:first-child{ order:2; }

/* 2) Content: Sektionen untereinander, Karten füllen mehrspaltig -> keine Lücke rechts vom TOC */
.knowledge-main .guide-content{ display:block; }
.knowledge-main .guide-section{ margin-bottom:26px; }
.knowledge-main .guide-section .guide-cards{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap:12px;
}
.knowledge-main .guide-section .guide-cards .entry{ break-inside: avoid; }

@media (max-width:900px){
  .knowledge-main .guide-section .guide-cards{
    grid-template-columns: 1fr;
  }
}


/* === HERO-CHART MOBILE FIX — 2025-09-25 ====================== */
/* Chart bei schmalem Viewport NICHT ausblenden, sondern skaliert anzeigen */
@media (max-width:1100px){
  .knowledge-main .bov-hero__visual{ 
    display:block !important;
  }
  .knowledge-main .bov-hero__visual .bov-fig{
    width:100%;
    max-width:100%;
    aspect-ratio:16/9;
    margin:0 auto;
  }
  .knowledge-main .bov-hero__visual .bov-fig img{
    width:100%;
    height:auto;
    transform:none !important; /* kein Hover-Zoom einkalkuliert */
  }
}


/* === HERO-ORDER UPDATE — Text & Schnellstart ÜBER dem Chart (global) — 2025-09-25 === */
.knowledge-main .bov-hero__grid{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
}
/* Textblock zuerst, Chart darunter */
.knowledge-main .bov-hero__grid > div:first-child{ order:1; }  /* Text */
.knowledge-main .bov-hero__visual{ order:2; }                  /* Chart */


/* === HERO LAYOUT RESET — chart right, text left on desktop; stack on mobile === */
/* Desktop: two columns */
@media (min-width: 1100px){
  .knowledge-main .bov-hero__grid{
    display:grid;
    grid-template-columns: 1fr 560px;
    align-items: start;
    gap: 22px;
  }
  .knowledge-main .bov-hero__grid > div:first-child,
  .knowledge-main .bov-hero__visual{
    order: initial !important;
  }
}
/* Mobile: stack, text above chart */
@media (max-width: 1099.98px){
  .knowledge-main .bov-hero__grid{
    display:grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .knowledge-main .bov-hero__grid > div:first-child{ order: 1 !important; }
  .knowledge-main .bov-hero__visual{ order: 2 !important; }
}

/* Features: keep directly under chart, with spacing below so nothing collides */
.knowledge-main .hero-features-wrap{ display:flex; justify-content:center; }
.knowledge-main .hero-features{ 
  display:flex; gap:12px; flex-wrap:wrap; justify-content:center; 
  margin: 10px auto 0; 
}
.knowledge-main .bov-hero{ margin-bottom: 24px; }


/* === HERO like image 2: chart below, features inside widget — 2025-09-25 === */
.knowledge-main .bov-hero__grid{
  display:grid;
  grid-template-columns: 1fr;   /* single column: text first, chart below */
  gap: 18px;
}
.knowledge-main .bov-hero__visual{ order: 2; }
.knowledge-main .bov-hero__visual .bov-mockup{
  max-width: 1200px;
  margin: 0 auto;
}
/* features live INSIDE the mockup, directly under the chart */
.knowledge-main .hero-features-wrap.in-mockup{
  padding: 8px 18px 2px;
}
.knowledge-main .hero-features{
  display:block;
  margin: 0;         /* use mockup padding */
}
/* keep sidebar bullets visible; no extra duplicate styles here */


/* === HERO features: horizontal row under chart — 2025-09-25 === */
.knowledge-main .hero-features-wrap.in-mockup{ padding: 10px 18px 14px; }
.knowledge-main .hero-features{
  display: flex !important;
  gap: 14px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
.knowledge-main .hero-features li{
  list-style: none;
  white-space: nowrap;
}

/* On very narrow screens, allow wrapping with a bit smaller gap */
@media (max-width: 640px){
  .knowledge-main .hero-features{ gap: 10px; }
}


/* === HERO feature *widgets* (3 mini-cards), centered under chart — 2025-09-25 === */
.knowledge-main .hero-features-wrap.in-mockup{
  padding: 14px 18px 18px;
}
.knowledge-main .hero-features{
  display:flex !important;
  justify-content:center;        /* centered under chart */
  align-items:center;
  gap: 14px 16px;                /* row gap, col gap */
  flex-wrap:wrap;
  margin: 8px auto 0;            /* a bit lower under the chart */
  list-style:none;
  padding:0;
}

/* Each item becomes a small widget card */
.knowledge-main .hero-features li{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  white-space:nowrap;
}

/* subtle hover */
@media (hover:hover){
  .knowledge-main .hero-features li{ transition: transform .18s ease, box-shadow .18s ease; }
  .knowledge-main .hero-features li:hover{
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0,0,0,.35);
  }
}

/* Mobile: keep nice spacing and allow wrapping */
@media (max-width:640px){
  .knowledge-main .hero-features{ gap:10px 12px; }
  .knowledge-main .hero-features li{ padding:9px 12px; border-radius:12px; }
}


/* === Spacing between chart and Tutorials + hover glow/shiny — 2025-09-25 === */

/* More breathing room below hero area */
.knowledge-main .bov-hero{ margin-bottom: 56px; }

/* Feature mini-cards: glow & shiny sweep on hover */
.knowledge-main .hero-features li{
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,.25), inset 0 0 0 1px rgba(255,255,255,.10);
}

/* subtle outer glow shadow on hover */
@media (hover:hover){
  .knowledge-main .hero-features li:hover{
    box-shadow: 0 14px 34px rgba(0,180,160,.35), 0 0 0 1px rgba(0,255,220,.30) inset;
  }
  /* shiny sweep */
  .knowledge-main .hero-features li::after{
    content: "";
    position: absolute;
    top: -30%;
    left: -120%;
    width: 60%;
    height: 160%;
    transform: rotate(22deg);
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.18) 50%, rgba(255,255,255,0) 100%);
    transition: left .45s ease;
    pointer-events: none;
  }
  .knowledge-main .hero-features li:hover::after{
    left: 130%;
  }
}
