/* =========================================================================
   share.nexhub.dev - Redesign 2026
   Eigenständiges Stylesheet (keine Abhängigkeit von nexhub.css).
   Akzent: Violett/Indigo.
   ========================================================================= */

:root {
  --bg:        #08070e;
  --bg-2:      #0d0b16;
  --panel:     rgba(22, 19, 34, 0.66);
  --panel-2:   rgba(28, 24, 44, 0.55);
  --stroke:    rgba(255, 255, 255, 0.08);
  --stroke-2:  rgba(255, 255, 255, 0.14);
  --txt:       #ece9f6;
  --txt-dim:   #a39db5;
  --txt-faint: #736d89;

  --acc:       #a78bfa;
  --acc-2:     #8b5cf6;
  --acc-3:     #818cf8;
  --acc-soft:  rgba(167, 139, 250, 0.14);
  --grad:      linear-gradient(120deg, #a78bfa 0%, #8b5cf6 50%, #6366f1 100%);
  --grad-soft: linear-gradient(120deg, rgba(167,139,250,.18), rgba(99,102,241,.10));

  --danger:    #f87171;
  --ok:        #34d399;
  --warn:      #fbbf24;

  --radius:    20px;
  --radius-sm: 13px;
  --shadow:    0 24px 60px -24px rgba(0, 0, 0, 0.78);
  --maxw:      1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--txt); line-height: 1.6; min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(167, 139, 250, 0.3); color: #fff; }

/* ---- Hintergrund --------------------------------------------------------- */
.bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: var(--bg); }
.bg::before { content: ""; position: absolute; inset: -50%;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.blob.b1 { width: 620px; height: 620px; top: -240px; left: -160px; background: radial-gradient(circle, rgba(139,92,246,0.55), transparent 65%); animation: drift1 22s ease-in-out infinite; }
.blob.b2 { width: 560px; height: 560px; top: -120px; right: -180px; background: radial-gradient(circle, rgba(99,102,241,0.42), transparent 65%); animation: drift2 26s ease-in-out infinite; }
.blob.b3 { width: 520px; height: 520px; bottom: -260px; left: 30%; background: radial-gradient(circle, rgba(167,139,250,0.30), transparent 65%); animation: drift1 30s ease-in-out infinite reverse; }
@keyframes drift1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(60px, 40px); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-50px, 30px); } }

/* ---- Layout -------------------------------------------------------------- */
.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.section { padding: 92px 0; position: relative; }
.hidden { display: none !important; }

/* ---- Navbar -------------------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(8, 7, 14, 0.72); backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--stroke); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.02em; font-size: 1.16rem; }
.brand img { width: 30px; height: 30px; }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { color: var(--txt-dim); font-size: .93rem; font-weight: 500; padding: 8px 13px; border-radius: 10px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--txt); background: rgba(255,255,255,0.05); }
.nav-links a i { margin-right: 6px; font-size: .85em; opacity: .8; }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 11px; background: var(--grad); color: #fff; font-weight: 700; font-size: .9rem; box-shadow: 0 8px 24px -8px rgba(139,92,246,.6); transition: transform .2s, box-shadow .2s; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(139,92,246,.7); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.burger { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid var(--stroke); border-radius: 11px; background: var(--panel); }
.burger span { width: 18px; height: 2px; background: var(--txt); border-radius: 2px; transition: .25s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Hero ---------------------------------------------------------------- */
.hero { padding: 70px 0 34px; text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px; border-radius: 999px; background: var(--panel); border: 1px solid var(--stroke); font-size: .82rem; color: var(--txt-dim); font-weight: 500; margin-bottom: 26px; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 4px rgba(167,139,250,.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(167,139,250,0); } }
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 850; margin-bottom: 22px; }
.hero h1 .g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { font-size: clamp(1.02rem, 2vw, 1.24rem); color: var(--txt-dim); max-width: 660px; margin: 0 auto 30px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.float-chips { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin-top: 40px; }
.chip { padding: 7px 14px; border-radius: 10px; background: var(--panel); border: 1px solid var(--stroke); font-size: .82rem; color: var(--txt-dim); font-weight: 600; }
.chip i { color: var(--acc); margin-right: 7px; }

/* ---- Buttons ------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 24px; border-radius: 13px; font-weight: 700; font-size: .96rem; border: 1px solid transparent; transition: transform .18s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 30px -12px rgba(139,92,246,.7); }
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 18px 38px -12px rgba(139,92,246,.8); }
.btn-ghost { background: var(--panel); border-color: var(--stroke-2); color: var(--txt); }
.btn-ghost:hover:not(:disabled) { background: rgba(255,255,255,0.06); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 15px; font-size: .86rem; border-radius: 10px; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.04); border: 1px solid var(--stroke); color: var(--txt-dim); transition: .2s; flex-shrink: 0; }
.icon-btn:hover { color: var(--danger); border-color: rgba(248,113,113,.4); }

/* ---- Panel --------------------------------------------------------------- */
.panel { position: relative; background: var(--panel); border: 1px solid var(--stroke); border-radius: var(--radius); backdrop-filter: blur(18px) saturate(130%); box-shadow: var(--shadow); }
.panel-pad { padding: clamp(20px, 4vw, 34px); }
.glow-edge::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(167,139,250,.5), transparent 40%, transparent 60%, rgba(99,102,241,.4)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }

/* ---- Tool ---------------------------------------------------------------- */
.tool-wrap { width: min(100% - 40px, 760px); margin-inline: auto; }
.dropzone { border: 2px dashed var(--stroke-2); border-radius: var(--radius); padding: 46px 24px; text-align: center; cursor: pointer; transition: border-color .25s, background .25s, transform .25s; background: rgba(255,255,255,0.015); }
.dropzone:hover, .dropzone.drag { border-color: var(--acc); background: var(--acc-soft); }
.dropzone.drag { transform: scale(1.01); }
.dz-ic { width: 66px; height: 66px; border-radius: 18px; margin: 0 auto 18px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--stroke); color: var(--acc); font-size: 1.7rem; }
.dz-title { font-size: 1.16rem; font-weight: 700; }
.dz-or { color: var(--txt-dim); font-size: .94rem; margin-top: 8px; }
.dz-or .lnk { color: var(--acc); font-weight: 700; cursor: pointer; }
.dz-hint { color: var(--txt-faint); font-size: .82rem; margin-top: 14px; }

.picked { margin-top: 22px; }
.picked-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.picked-sum { font-weight: 650; font-size: .95rem; color: var(--txt); }
.file-list { display: flex; flex-direction: column; gap: 9px; max-height: 320px; overflow-y: auto; padding-right: 4px; }
.file-list::-webkit-scrollbar { width: 8px; }
.file-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 8px; }
.frow { display: flex; align-items: center; gap: 12px; padding: 11px 13px; background: var(--panel-2); border: 1px solid var(--stroke); border-radius: var(--radius-sm); }
.frow .fic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--grad-soft); color: var(--acc); flex-shrink: 0; }
.frow .fmeta { flex: 1; min-width: 0; }
.frow .fname { font-size: .9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frow .fsize { font-size: .78rem; color: var(--txt-faint); margin-top: 1px; }

.opts { margin-top: 18px; padding: 18px; border-radius: var(--radius-sm); background: var(--panel-2); border: 1px solid var(--stroke); }
.opts label { font-size: .8rem; font-weight: 700; color: var(--txt-dim); display: flex; align-items: center; gap: 8px; }
.opts label i { color: var(--acc); }
.opt-hint-inline { color: var(--txt-faint); font-weight: 500; }
.select { position: relative; margin-top: 9px; }
.select select { width: 100%; appearance: none; background: var(--bg-2); border: 1px solid var(--stroke-2); color: var(--txt); padding: 11px 38px 11px 14px; border-radius: 11px; font-size: .92rem; font-weight: 600; cursor: pointer; transition: border-color .2s; }
.select select:focus { outline: none; border-color: var(--acc); }
.select::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--txt-faint); font-size: .72rem; }
.opt-hint { color: var(--txt-faint); font-size: .8rem; margin-top: 10px; display: flex; gap: 8px; }
.opt-hint i { color: var(--acc); margin-top: 2px; }

.tier-note { margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: var(--acc-soft); border: 1px solid rgba(167,139,250,.28); font-size: .9rem; color: var(--txt); }
.tier-note.bad { background: rgba(248,113,113,.12); border-color: rgba(248,113,113,.35); color: #fecaca; }
.tier-note strong { color: var(--acc); }
.tier-note.bad strong { color: #fecaca; }

.bar { height: 9px; border-radius: 999px; background: rgba(255,255,255,0.07); overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: inherit; transition: width .3s ease; }
.bar.indet > i { width: 35% !important; animation: indet 1.1s ease-in-out infinite; }
@keyframes indet { 0% { margin-left: -35%; } 100% { margin-left: 100%; } }
.prog { margin-top: 22px; }
.prog-text { text-align: center; color: var(--txt-dim); font-size: .9rem; margin-top: 12px; }

.result { margin-top: 6px; text-align: center; }
.result-ok { color: var(--ok); font-weight: 750; font-size: 1.1rem; margin-bottom: 18px; }
.result-ok i { margin-right: 8px; }
.link-row { display: flex; gap: 10px; }
.link-row input { flex: 1; background: var(--bg-2); border: 1px solid var(--stroke-2); color: var(--txt); padding: 13px 15px; border-radius: 12px; font-size: .92rem; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.link-row input:focus { outline: none; border-color: var(--acc); }
.result-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: center; margin-top: 18px; color: var(--txt-dim); font-size: .9rem; }
.result-meta i { color: var(--acc); margin-right: 6px; }
.result-meta .s { color: var(--txt); font-weight: 700; }
.result-actions { display: flex; gap: 10px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }

.flash { margin-top: 16px; padding: 13px 16px; border-radius: 12px; background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.35); color: #fecaca; font-size: .9rem; }
.flash i { margin-right: 8px; }

/* ---- Tiers-Übersicht ----------------------------------------------------- */
.tiers { margin-top: 24px; }
.tiers-title { display: flex; align-items: center; gap: 9px; justify-content: center; color: var(--txt-dim); font-size: .86rem; font-weight: 600; margin-bottom: 14px; }
.tiers-title i { color: var(--acc); }
.tiers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tier { display: flex; flex-direction: column; gap: 5px; text-align: center; padding: 14px 10px; border-radius: var(--radius-sm); background: var(--panel); border: 1px solid var(--stroke); }
.tier .tsz { display: block; font-size: .82rem; color: var(--txt-faint); }
.tier .ttm { display: block; font-size: 1.02rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- Sektionen ----------------------------------------------------------- */
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.sec-head .kicker { color: var(--acc); font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; }
.sec-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); letter-spacing: -.03em; margin: 12px 0; font-weight: 820; }
.sec-head h2 .g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sec-head p { color: var(--txt-dim); }

.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.bento-card { position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 28px; transition: border-color .25s, transform .25s; }
.bento-card:hover { border-color: var(--stroke-2); transform: translateY(-3px); }
.bento-card .spot { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; pointer-events: none; background: radial-gradient(420px circle at var(--mx,50%) var(--my,50%), rgba(167,139,250,.12), transparent 60%); }
.bento-card:hover .spot { opacity: 1; }
.bento-card.wide { grid-column: span 2; }
.bento-ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; font-size: 1.25rem; margin-bottom: 16px; background: var(--grad-soft); color: var(--acc); }
.bento-card h3 { font-size: 1.16rem; font-weight: 750; margin-bottom: 8px; letter-spacing: -.01em; }
.bento-card p { color: var(--txt-dim); font-size: .92rem; }

/* ---- Footer -------------------------------------------------------------- */
.footer { border-top: 1px solid var(--stroke); padding: 48px 0 40px; margin-top: 30px; }
.footer-in { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: flex-start; }
.footer .brand { margin-bottom: 10px; }
.footer-left p { color: var(--txt-faint); font-size: .88rem; max-width: 280px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--txt-dim); font-size: .9rem; transition: color .2s; }
.footer-links a:hover { color: var(--acc); }
.footer-copy { width: 100%; border-top: 1px solid var(--stroke); margin-top: 34px; padding-top: 22px; color: var(--txt-faint); font-size: .84rem; text-align: center; }

/* ---- Reveal (robust: Inhalt ist IMMER sichtbar) -------------------------- */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .6s both cubic-bezier(.2, .7, .2, 1); }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---- Download-Seite ------------------------------------------------------ */
.dlpage { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 40px 0; }
.dlcard { width: min(100% - 40px, 520px); text-align: center; }
.dl-ic { width: 76px; height: 76px; border-radius: 20px; margin: 0 auto 22px; display: grid; place-items: center; font-size: 2rem; background: var(--grad-soft); color: var(--acc); }
.dlcard h1 { font-size: 1.7rem; letter-spacing: -.02em; margin-bottom: 8px; }
.dlcard .muted { color: var(--txt-dim); margin-bottom: 22px; }
.dl-meta { display: flex; flex-direction: column; gap: 9px; align-items: center; color: var(--txt-dim); font-size: .92rem; margin-bottom: 24px; }
.dl-meta i { color: var(--acc); margin-right: 6px; }
.dl-meta .s { color: var(--txt); font-weight: 700; }
.dl-expiry { color: var(--txt-faint); font-size: .86rem; margin-top: 16px; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.1); border-top-color: var(--acc); margin: 0 auto 18px; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Legal --------------------------------------------------------------- */
.legal { max-width: 820px; margin: 0 auto; padding: 40px 0 20px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.03em; margin-bottom: 10px; }
.legal h1 .g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.legal .lead { color: var(--txt-dim); margin-bottom: 30px; }
.legal h2 { font-size: 1.3rem; margin: 30px 0 10px; font-weight: 750; }
.legal h3 { font-size: 1.05rem; margin: 20px 0 8px; font-weight: 700; }
.legal p, .legal li { color: var(--txt-dim); margin-bottom: 10px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--acc); }
.legal .card { background: var(--panel); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 26px 28px; margin-bottom: 18px; }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 860px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .nav-links { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px 20px 22px; background: rgba(8,7,14,.96); backdrop-filter: blur(16px); border-bottom: 1px solid var(--stroke); transform: translateY(-130%); transition: transform .3s; }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px; border-radius: 10px; }
  .nav .nav-cta { display: none; }
  .burger { display: flex; }
  .section { padding: 64px 0; }
  .tiers-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) { .bento { grid-template-columns: 1fr; } .bento-card.wide { grid-column: span 1; } .link-row { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; scroll-behavior: auto; } .reveal { opacity: 1; transform: none; } }
