/* ZEUS-NETZWERK V68.6.8.99 · FOUNDATION / MOBILE UX */

:root{
  --v99-bg:#0b141e;
  --v99-surface:#142130;
  --v99-surface-2:#192838;
  --v99-border:rgba(212,174,83,.32);
  --v99-gold:#e0bd68;
  --v99-text:#f4f7fb;
  --v99-muted:#b7c4d1;
}

html,body{max-width:100%;overflow-x:hidden}
*,*::before,*::after{box-sizing:border-box}
img,video,canvas,svg{max-width:100%}

#view,
#view > *,
.layout-panel,
.command-panel,
.content-stage,
.market-stage,
.v66-shell,
.v66-grid,
.v66-stack,
.v66-panel,
.v66-panel-body,
.v66-market-layout,
.v66-market-main,
.v66-market-results,
.acard,
.request-row{
  min-width:0;
}

.page-heading h1,
.v66-hero h1,
.v66-panel h2,
.v66-panel h3,
.trade-product-title h3{
  overflow-wrap:anywhere;
}

.v66-kpi strong,
.stat strong,
[class*="metric"] strong,
[class*="kpi"] strong{
  font-variant-numeric:tabular-nums;
}

.v99-mobile-topbar,
.v99-mobile-drawer,
.v99-drawer-backdrop,
.v99-bottom-nav{
  display:none;
}

.v99-info-page{
  width:min(1120px,calc(100% - 32px));
  margin:32px auto 64px;
  color:var(--v99-text);
}

.v99-info-page-head{
  padding:28px 30px;
  border:1px solid var(--v99-border);
  border-radius:20px;
  background:linear-gradient(145deg,#172534,#101b27);
  box-shadow:0 18px 48px rgba(0,0,0,.28);
}

.v99-info-page-head h1{
  margin:6px 0 10px;
  font-size:clamp(30px,4vw,48px);
}

.v99-info-page-head p{
  margin:0;
  max-width:800px;
  color:var(--v99-muted);
  line-height:1.65;
}

.v99-kicker{
  display:inline-block;
  color:var(--v99-gold);
  font-size:12px;
  font-weight:900;
  letter-spacing:.14em;
}

.v99-info-body{
  display:grid;
  gap:14px;
  margin-top:18px;
}

.v99-info-card,
.v99-info-row,
.v99-info-kv,
.v99-info-text{
  border:1px solid rgba(255,255,255,.09);
  border-radius:15px;
  background:#152333;
}

.v99-info-card{padding:20px}
.v99-info-row{padding:14px 16px}
.v99-info-text{
  margin:0;
  padding:15px 17px;
  line-height:1.7;
  color:#e9eef4;
}

.v99-info-heading{
  margin:8px 0 12px;
  color:#fff;
}

.v99-info-date{display:block;margin:0 0 10px;color:var(--v99-gold)}
.v99-info-list{display:grid;gap:12px}
.v99-info-kv{display:flex;gap:14px;justify-content:space-between;padding:13px 15px}
.v99-info-kv strong{text-transform:capitalize;color:var(--v99-gold)}
.v99-info-kv span{text-align:right;color:var(--v99-text)}
.v99-info-error{margin-top:18px;padding:18px;border:1px solid rgba(255,130,130,.35);border-radius:15px;background:rgba(120,25,25,.18)}

.v99-accepted-flow{
  grid-column:1/-1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  width:100%;
  margin-top:10px;
  padding:14px 16px;
  border:1px solid rgba(107,207,145,.32);
  border-radius:14px;
  background:rgba(37,116,76,.14);
}

.v99-accepted-flow div{display:grid;gap:4px}
.v99-accepted-flow strong{font-size:15px;color:#dff7e7}
.v99-accepted-flow span{font-size:13px;color:#c0d4c8}
.v99-accepted-flow a{
  flex:0 0 auto;
  min-height:42px;
  display:inline-flex;
  align-items:center;
  padding:0 14px;
  border-radius:11px;
  border:1px solid rgba(224,189,104,.45);
  color:#f8e3a9;
  text-decoration:none;
  font-weight:800;
}

.v99-tools-launcher{
  width:min(1180px,100%);
  margin:24px auto 8px;
  padding:20px;
  border:1px solid var(--v99-border);
  border-radius:18px;
  background:linear-gradient(145deg,#172535,#111c28);
}

.v99-tools-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:12px;
  margin-bottom:14px;
}

.v99-tools-head h2{margin:4px 0 0}
.v99-tools-head small{color:var(--v99-muted)}
.v99-tools-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.v99-tools-grid a{
  display:grid;
  gap:5px;
  min-height:76px;
  padding:14px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:14px;
  background:#1a2939;
  color:var(--v99-text);
  text-decoration:none;
}
.v99-tools-grid a strong{color:#fff}
.v99-tools-grid a span{font-size:13px;color:var(--v99-muted)}

@media (max-width:900px){
  html{scroll-padding-top:74px}
  body{
    background:var(--v99-bg)!important;
    color:var(--v99-text)!important;
    padding-top:64px!important;
    padding-bottom:76px!important;
  }

  html.v99-menu-open,
  html.v99-menu-open body{overflow:hidden!important}

  /* ältere mobile Layer ausblenden, falls V94 noch eingebunden ist */
  .v94-mobile-topbar,
  .v94-mobile-drawer,
  .v94-mobile-backdrop,
  .v94-bottom-nav{
    display:none!important;
  }

  /* native Desktop-Kopf auf Mobilgeräten nicht zusätzlich anzeigen */
  body>header.nav,
  body>.nav,
  .site-header,
  .desktop-header{
    display:none!important;
  }

  .v99-mobile-topbar{
    position:fixed;
    z-index:10040;
    inset:0 0 auto 0;
    height:64px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:8px 12px;
    border-bottom:1px solid rgba(224,189,104,.28);
    background:rgba(12,22,32,.97);
    backdrop-filter:blur(15px);
    box-shadow:0 8px 24px rgba(0,0,0,.3);
  }

  .v99-brand{
    display:flex;
    align-items:center;
    gap:9px;
    min-width:0;
    color:var(--v99-text);
    text-decoration:none;
  }

  .v99-brand-mark{
    width:42px;height:42px;
    display:grid;place-items:center;
    border:1px solid rgba(224,189,104,.55);
    border-radius:12px;
    color:var(--v99-gold);
    background:#172534;
    font-size:22px;
    font-weight:900;
  }

  .v99-brand>span:last-child{display:grid;line-height:1}
  .v99-brand strong{font-size:16px;letter-spacing:.08em}
  .v99-brand small{margin-top:4px;color:var(--v99-muted);font-size:9px;letter-spacing:.16em}

  .v99-top-actions{display:flex;align-items:center;gap:8px}

  .v99-auth{
    min-height:46px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0 14px;
    border:1px solid rgba(224,189,104,.5);
    border-radius:12px;
    background:#1a2a3b;
    color:#ffeab7;
    text-decoration:none;
    font-size:14px;
    font-weight:850;
  }

  .v99-auth.connected{
    border-color:rgba(105,206,146,.42);
    color:#dff7e7;
  }

  .v99-menu-toggle{
    width:48px;height:48px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:5px;
    margin:0;
    padding:0;
    border:1px solid rgba(255,255,255,.14);
    border-radius:12px;
    background:#192838;
  }

  .v99-menu-toggle span{
    width:21px;height:2px;
    border-radius:4px;
    background:#f2f5f8;
  }

  .v99-drawer-backdrop{
    position:fixed;
    z-index:10041;
    inset:0;
    display:block;
    margin:0;
    padding:0;
    border:0;
    opacity:0;
    pointer-events:none;
    background:rgba(0,0,0,.65);
    transition:opacity .18s ease;
  }

  .v99-drawer-backdrop.open{
    opacity:1;
    pointer-events:auto;
  }

  .v99-mobile-drawer{
    position:fixed;
    z-index:10042;
    inset:0 0 0 auto;
    width:min(88vw,380px);
    display:flex;
    flex-direction:column;
    overflow:auto;
    transform:translateX(105%);
    transition:transform .2s ease;
    border-left:1px solid rgba(224,189,104,.28);
    background:#101c29;
    box-shadow:-24px 0 50px rgba(0,0,0,.45);
  }

  .v99-mobile-drawer.open{transform:translateX(0)}

  .v99-drawer-head{
    position:sticky;
    top:0;
    z-index:2;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:16px;
    border-bottom:1px solid rgba(255,255,255,.08);
    background:#142130;
  }

  .v99-drawer-head>div{display:grid;gap:4px}
  .v99-drawer-head strong{font-size:16px;color:#fff}
  .v99-drawer-head small{color:var(--v99-muted)}

  .v99-drawer-close{
    width:48px;height:48px;
    border:1px solid rgba(255,255,255,.13);
    border-radius:12px;
    background:#1b2b3c;
    color:#fff;
    font-size:27px;
  }

  .v99-drawer-nav{padding:10px 12px 28px}
  .v99-drawer-nav section{padding:8px 0 14px}
  .v99-drawer-nav h3{
    margin:0 8px 8px;
    color:var(--v99-gold);
    font-size:11px;
    letter-spacing:.12em;
    text-transform:uppercase;
  }

  .v99-drawer-nav a{
    min-height:52px;
    display:flex;
    align-items:center;
    gap:12px;
    margin:4px 0;
    padding:8px 12px;
    border:1px solid transparent;
    border-radius:13px;
    color:#eaf0f6;
    text-decoration:none;
    font-weight:750;
  }

  .v99-drawer-nav a>span{
    width:31px;
    flex:0 0 31px;
    display:grid;
    place-items:center;
    color:var(--v99-gold);
    font-size:18px;
  }

  .v99-drawer-nav a.active{
    border-color:rgba(224,189,104,.35);
    background:#1c2d3e;
    color:#fff;
  }

  .v99-bottom-nav{
    position:fixed;
    z-index:10039;
    inset:auto 0 0 0;
    height:68px;
    display:grid;
    grid-template-columns:repeat(5,1fr);
    border-top:1px solid rgba(224,189,104,.22);
    background:rgba(12,22,32,.98);
    box-shadow:0 -8px 26px rgba(0,0,0,.35);
  }

  .v99-bottom-nav a,
  .v99-bottom-nav button{
    min-width:0;
    min-height:58px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    margin:0;
    padding:5px 2px;
    border:0;
    border-radius:0;
    background:transparent;
    color:#b8c5d2;
    text-decoration:none;
  }

  .v99-bottom-nav span{font-size:21px;line-height:1}
  .v99-bottom-nav small{font-size:10px;font-weight:800}
  .v99-bottom-nav .active{color:#f1d182}
  .v99-bottom-main span{
    width:38px;height:38px;
    display:grid;place-items:center;
    margin-top:-15px;
    border:1px solid rgba(224,189,104,.55);
    border-radius:14px;
    background:#1e3042;
    color:#f1d182;
    box-shadow:0 8px 18px rgba(0,0,0,.32);
  }

  #view{
    width:100%!important;
    max-width:100%!important;
    padding-left:12px!important;
    padding-right:12px!important;
  }

  #view>.wrap,
  #view>.v66-shell,
  #view>section{
    width:100%!important;
    max-width:100%!important;
  }

  .page-heading,
  .v66-hero,
  .layout-panel,
  .command-panel,
  .content-stage,
  .market-stage,
  .v66-panel,
  .acard,
  .request-row{
    border-color:rgba(255,255,255,.10)!important;
    background:#142130!important;
    box-shadow:0 9px 24px rgba(0,0,0,.22)!important;
  }

  .page-heading,
  .v66-hero{
    padding:20px 16px!important;
    border-radius:17px!important;
  }

  h1,.page-heading h1,.v66-hero h1{
    font-size:clamp(26px,8vw,36px)!important;
    line-height:1.08!important;
  }

  h2{font-size:22px!important}
  h3{font-size:18px!important}

  p,li,.muted,small{
    line-height:1.5;
  }

  .muted,
  .page-heading p,
  .v66-hero p,
  .v66-panel small{
    color:#bcc9d5!important;
  }

  button,
  a.btn,
  .btn,
  input[type="button"],
  input[type="submit"],
  .a-card-actions button,
  .a-card-actions a,
  .request-actions button{
    min-height:48px!important;
    min-width:48px;
    font-size:15px!important;
    touch-action:manipulation;
  }

  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea{
    min-height:48px!important;
    width:100%;
    max-width:100%;
    font-size:16px!important;
    border-radius:12px!important;
  }

  textarea{min-height:110px!important}

  .v66-grid,
  .v66-kpis,
  .v66-market-layout,
  .dashboard-grid,
  .dialog-grid,
  .edit-grid,
  .trade-form-grid,
  .city-options-grid,
  .v66-project-form,
  .v99-tools-grid{
    grid-template-columns:1fr!important;
  }

  .v66-kpis{
    gap:9px!important;
  }

  .v66-kpi{
    min-height:86px;
    padding:14px!important;
    background:#192838!important;
  }

  .v66-kpi strong{
    font-size:24px!important;
    line-height:1.1!important;
    color:#fff!important;
  }

  .v66-kpi span{font-size:13px!important;color:#c4d0db!important}

  .v66-market-toolbar,
  .a-card-actions,
  .manage-actions,
  .request-actions,
  .dialog-actions,
  .form-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:9px!important;
  }

  .v66-market-search{width:100%!important}

  .v66-quick-chips{
    display:flex!important;
    gap:8px!important;
    overflow-x:auto;
    padding-bottom:5px;
    scrollbar-width:thin;
  }

  .v66-quick-chips>*{
    flex:0 0 auto;
    min-height:44px!important;
  }

  .trade-city-list,
  .a-meta-grid,
  .a-quick-grid{
    grid-template-columns:1fr!important;
  }

  .trade-card-image img,
  .v66-product-visual img{
    width:100%;
    height:auto;
    max-height:340px;
    object-fit:contain;
  }

  .request-row{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:12px!important;
    padding:16px!important;
  }

  .request-status{justify-self:start}

  .v99-accepted-flow{
    display:grid;
    grid-template-columns:1fr;
    align-items:stretch;
  }

  .v99-accepted-flow a{
    width:100%;
    min-height:48px;
    justify-content:center;
  }

  .v99-info-page{
    width:100%;
    margin:8px 0 24px;
  }

  .v99-info-page-head{padding:20px 16px}
  .v99-info-card{padding:16px}
  .v99-info-kv{display:grid;gap:5px}
  .v99-info-kv span{text-align:left}

  .v99-tools-launcher{
    margin:18px 0 8px;
    padding:16px;
  }

  .v99-tools-grid a{
    min-height:72px;
  }

  table{
    min-width:680px;
  }

  .table-wrap,
  [style*="overflow:auto"],
  [style*="overflow: auto"]{
    max-width:100%;
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch;
  }

  dialog,
  .modal,
  .trade-dialog,
  [role="dialog"]{
    max-width:calc(100vw - 18px)!important;
    max-height:calc(100dvh - 24px)!important;
  }
}

@media (max-width:390px){
  .v99-auth{padding:0 10px;font-size:13px}
  .v99-brand strong{font-size:14px}
  .v99-brand small{font-size:8px}
  .v99-mobile-drawer{width:94vw}
  #view{padding-left:9px!important;padding-right:9px!important}
}
