/* =========================================================================
   convert.nexhub.dev - Redesign 2026
   Eigenständiges Stylesheet (keine Abhängigkeit von nexhub.css).
   Akzent: Cyan/Teal.
   ========================================================================= */

:root {
  --bg:        #07090e;
  --bg-2:      #0b0e16;
  --panel:     rgba(18, 23, 34, 0.66);
  --panel-2:   rgba(24, 30, 44, 0.55);
  --stroke:    rgba(255, 255, 255, 0.08);
  --stroke-2:  rgba(255, 255, 255, 0.14);
  --txt:       #e8edf6;
  --txt-dim:   #99a3b5;
  --txt-faint: #6b7689;

  --acc:       #2dd4bf;
  --acc-2:     #22d3ee;
  --acc-3:     #38bdf8;
  --acc-soft:  rgba(45, 212, 191, 0.14);
  --grad:      linear-gradient(120deg, #22d3ee 0%, #2dd4bf 50%, #34d399 100%);
  --grad-soft: linear-gradient(120deg, rgba(34,211,238,.18), rgba(45,212,191,.10));

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

  --radius:    20px;
  --radius-sm: 13px;
  --shadow:    0 24px 60px -24px rgba(0, 0, 0, 0.75);
  --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(45, 212, 191, 0.3); color: #fff; }

/* ---- Hintergrund-Effekte ------------------------------------------------- */
.bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: var(--bg); }
.bg::before { /* feines Punktraster */
  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(34,211,238,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(52,211,153,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(56,189,248,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, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(8, 10, 15, 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: #04211d; font-weight: 700; font-size: .9rem; box-shadow: 0 8px 24px -8px rgba(45,212,191,.6); transition: transform .2s, box-shadow .2s; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(45,212,191,.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; position: relative; }
.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(--ok); box-shadow: 0 0 0 4px rgba(52,211,153,.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(52,211,153,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: 640px; 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; letter-spacing: .01em; }
.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, border-color .2s; white-space: nowrap; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }
.btn-primary { background: var(--grad); color: #04211d; box-shadow: 0 12px 30px -12px rgba(45,212,191,.7); }
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 18px 38px -12px rgba(45,212,191,.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: 38px; height: 38px; 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; }
.icon-btn:hover { color: var(--txt); background: rgba(255,255,255,0.08); }
.icon-btn.danger:hover { color: var(--danger); border-color: rgba(248,113,113,.4); }

/* ---- Glas-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(22px, 4vw, 40px); }
.glow-edge::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, rgba(45,212,191,.5), transparent 40%, transparent 60%, rgba(34,211,238,.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: Converter ----------------------------------------------------- */
.tool-wrap { width: min(100% - 40px, 880px); margin-inline: auto; }
.tool-head { text-align: center; margin-bottom: 26px; }
.tool-head .kicker { color: var(--acc); font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; }
.tool-head h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -.03em; margin-top: 10px; font-weight: 800; }

.dropzone { border: 2px dashed var(--stroke-2); border-radius: var(--radius); padding: 48px 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-sub { color: var(--txt-dim); font-size: .92rem; margin-top: 6px; }
.dz-sub .lnk { color: var(--acc); font-weight: 700; cursor: pointer; }
.dz-hint { color: var(--txt-faint); font-size: .82rem; margin-top: 14px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin-top: 22px; padding: 18px; border-radius: var(--radius-sm);
  background: var(--panel-2); border: 1px solid var(--stroke); }
.field { display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 150px; }
.field label { font-size: .76rem; font-weight: 700; color: var(--txt-dim); text-transform: uppercase; letter-spacing: .08em; }
.select { position: relative; }
.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; }
.toolbar .actions { display: flex; gap: 10px; }

.file-list { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.fcard { background: var(--panel-2); border: 1px solid var(--stroke); border-radius: var(--radius-sm); padding: 15px 16px; transition: border-color .2s; }
.fcard[data-state="done"] { border-color: rgba(52,211,153,.4); }
.fcard[data-state="error"] { border-color: rgba(248,113,113,.4); }
.fc-head { display: flex; align-items: center; gap: 13px; }
.fc-ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-soft); color: var(--acc); font-size: 1.1rem; flex-shrink: 0; }
.fc-meta { flex: 1; min-width: 0; }
.fc-name { font-weight: 650; font-size: .96rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-sub { color: var(--txt-faint); font-size: .8rem; margin-top: 2px; }
.fc-target { width: 130px; flex-shrink: 0; }
.fc-target .select select { padding: 9px 34px 9px 12px; font-size: .86rem; }
.fc-body { margin-top: 13px; }
.fc-body:empty { display: none; }

.bar { height: 8px; 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%; } }
.fc-prog { display: flex; align-items: center; gap: 12px; }
.fc-prog .bar { flex: 1; }
.fc-pct { font-size: .82rem; color: var(--txt-dim); font-variant-numeric: tabular-nums; min-width: 78px; text-align: right; }
.fc-result { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fc-ok { color: var(--ok); font-weight: 700; font-size: .9rem; }
.fc-ok i { margin-right: 6px; }
.fc-exp { color: var(--txt-faint); font-size: .82rem; font-variant-numeric: tabular-nums; }
.fc-result .btn { margin-left: auto; }
.fc-err { color: var(--danger); font-size: .88rem; }
.fc-err i { margin-right: 7px; }

.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; }

/* ---- YouTube-Panel (durch "nhyt" freigeschaltet) ------------------------- */
.yt-wrap { width: min(100% - 40px, 880px); margin: 0 auto 0; }
.yt-panel { border-color: rgba(248,113,113,.28); }
.yt-panel .glow-edge::before { background: linear-gradient(140deg, rgba(255,80,80,.55), transparent 45%, transparent 60%, rgba(255,0,60,.4)); }
.yt-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.yt-logo { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, #ff0033, #cc0000); color: #fff; font-size: 1.5rem; flex-shrink: 0; box-shadow: 0 8px 24px -8px rgba(255,0,40,.6); }
.yt-head h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.yt-head .badge { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #ff5a6e; background: rgba(255,40,70,.12); border: 1px solid rgba(255,40,70,.3); padding: 3px 9px; border-radius: 7px; margin-left: auto; }
.yt-desc { color: var(--txt-dim); font-size: .94rem; margin-bottom: 20px; }
.yt-url { display: flex; gap: 10px; }
.yt-url input { flex: 1; background: var(--bg-2); border: 1px solid var(--stroke-2); color: var(--txt); padding: 14px 16px; border-radius: 12px; font-size: .95rem; transition: border-color .2s; }
.yt-url input:focus { outline: none; border-color: #ff5a6e; }
.yt-opts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; }
.yt-foot { margin-top: 18px; }
.yt-note { color: var(--txt-faint); font-size: .8rem; margin-top: 14px; display: flex; gap: 8px; }
.yt-note i { color: var(--warn); margin-top: 2px; }
.yt-result { margin-top: 18px; }

/* ---- Toast --------------------------------------------------------------- */
.toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(20px); z-index: 100;
  background: rgba(15,18,26,.95); border: 1px solid rgba(255,40,70,.4); color: var(--txt); padding: 14px 22px; border-radius: 14px;
  display: flex; align-items: center; gap: 12px; font-weight: 600; box-shadow: 0 20px 50px -16px rgba(0,0,0,.8); opacity: 0; pointer-events: none; transition: .35s; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast i { color: #ff5a6e; font-size: 1.2rem; }

/* ---- Formate-Sektion ----------------------------------------------------- */
.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); }

.fmt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fmt-card { background: var(--panel); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 26px; }
.fmt-card .fic { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 16px; background: var(--grad-soft); color: var(--acc); }
.fmt-card h3 { font-size: 1.18rem; font-weight: 750; margin-bottom: 6px; }
.fmt-card p { color: var(--txt-faint); font-size: .86rem; margin-bottom: 16px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { font-size: .76rem; font-weight: 700; padding: 5px 10px; border-radius: 8px; background: rgba(255,255,255,0.05); border: 1px solid var(--stroke); color: var(--txt-dim); letter-spacing: .02em; }

/* ---- Features-Bento ------------------------------------------------------ */
.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(45,212,191,.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-Animation (robust: Inhalt ist IMMER sichtbar) ---------------- */
/* Kein opacity:0 als Grundzustand -> wenn JS/Animation ausfällt, bleibt alles
   sichtbar. Die Einblendung ist reine Verschönerung. */
.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; } }

/* ---- Legal-Seiten -------------------------------------------------------- */
.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; color: var(--txt); }
.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) {
  .fmt-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-card.wide { grid-column: span 2; }
}
@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,10,15,.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; }
  .toolbar .field { min-width: 100%; }
  .fc-head { flex-wrap: wrap; }
  .fc-target { width: 100%; }
}
@media (max-width: 480px) {
  .bento { grid-template-columns: 1fr; }
  .bento-card.wide { grid-column: span 1; }
  .yt-url { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
