/* ============================================================
   convert.nexhub.dev – Widget-Styles
   Basis: nexhub.css (gleiches Design, Akzent in Teal umgefärbt).
   Hier die Konverter-Bausteine im selben Token-System.
   ============================================================ */

.container-narrow { max-width: 720px; }

/* ---- Kompaktes Hero, damit der Konverter sofort sichtbar ist ---- */
.hero-compact { min-height: auto; padding: 116px 24px 24px; }
.hero-compact .hero-logo { margin-bottom: 16px; }
.hero-compact .hero-logo img { width: 72px; height: 72px; }
.hero-compact .hero-title { margin-bottom: 14px; }
.hero-compact .hero-sub { margin-left: auto; margin-right: auto; }

.section-converter { padding-top: 8px; scroll-margin-top: 90px; }
#features { scroll-margin-top: 80px; }

/* ---- Shell um Dropzone + Liste – als klarer Fokuspunkt ---- */
.convert-shell {
  background: linear-gradient(180deg, rgba(45,212,191,0.05), rgba(22,27,34,0.6));
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 70px rgba(0,0,0,0.45), 0 0 0 1px rgba(45,212,191,0.04),
              inset 0 1px 0 rgba(255,255,255,0.03);
}

/* ---- Dropzone ---- */
.dropzone {
  border: 2px dashed var(--border-hover);
  border-radius: var(--radius);
  background: rgba(45,212,191,0.04);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease), transform .08s var(--ease);
  outline: none;
}
.dropzone:hover, .dropzone:focus-visible { border-color: var(--gold); background: rgba(45,212,191,0.08); }
.dropzone.drag { border-color: var(--gold); background: rgba(45,212,191,0.14); transform: scale(1.01); }
.dz-icon { color: var(--gold); font-size: 30px; line-height: 1; }
.dz-icon i { filter: drop-shadow(0 0 14px var(--gold-glow)); }
.dz-title { font-size: 18px; font-weight: 700; margin: 12px 0 2px; color: var(--text); }
.dz-or { margin: 0; color: var(--text-2); }
.dz-or .link { color: var(--gold); font-weight: 600; }
.dz-hint { margin: 14px 0 0; font-size: 13px; color: var(--text-3); }
.dz-hint i { color: var(--gold); opacity: .8; }

/* ---- Toolbar (Qualität + Aktionen) ---- */
.convert-toolbar {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin-top: 18px; padding: 16px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.tb-quality { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 220px; }
.tb-quality label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.tb-quality label i { color: var(--gold); }
.tb-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- Select (einheitlich) ---- */
.select-wrap { position: relative; }
.select-wrap::after {
  content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
  font-size: 11px; color: var(--text-2); pointer-events: none;
}
select {
  width: 100%; appearance: none; -webkit-appearance: none;
  background: var(--bg-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 32px 10px 13px; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: border-color .15s;
}
select:hover { border-color: var(--border-hover); }
select:focus-visible { outline: none; border-color: var(--gold); }

/* ---- Dateiliste ---- */
.file-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.file-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color .15s;
}
.file-card[data-state="done"] { border-color: rgba(45,212,191,0.4); }
.file-card[data-state="error"] { border-color: rgba(248,81,73,0.45); }

.fc-head { display: flex; align-items: center; gap: 12px; }
.fc-icon {
  width: 40px; height: 40px; flex: none; border-radius: 10px;
  display: grid; place-items: center; font-size: 17px;
  background: var(--gold-dim); color: var(--gold);
}
.fc-meta { min-width: 0; flex: 1; }
.fc-name { font-weight: 600; color: var(--text); word-break: break-all; line-height: 1.3; font-size: 14px; }
.fc-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; text-transform: capitalize; }
.fc-target { flex: none; width: 130px; }
.fc-target .select-wrap select { padding-top: 9px; padding-bottom: 9px; }

.icon-btn {
  background: transparent; border: 1px solid var(--border); color: var(--text-2);
  border-radius: 9px; width: 34px; height: 34px; flex: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px;
  transition: color .15s, border-color .15s, background .15s;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-hover); background: var(--bg-card-hover); }
.icon-btn.danger:hover { color: #ff6b63; border-color: rgba(248,81,73,0.5); background: rgba(248,81,73,0.08); }

/* Statuszeile pro Datei */
.fc-status { margin-top: 0; max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .25s var(--ease), opacity .2s var(--ease), margin-top .2s var(--ease); }
.file-card.show-status .fc-status { max-height: 120px; opacity: 1; margin-top: 14px; }

.fc-progress { display: flex; align-items: center; gap: 12px; }
.progress-bar { flex: 1; height: 8px; background: var(--bg-3); border-radius: var(--radius-full);
  overflow: hidden; border: 1px solid var(--border); }
.progress-fill { height: 100%; width: 0%; border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--gold-soft), var(--gold), var(--bronze));
  box-shadow: 0 0 12px var(--gold-glow); transition: width .3s var(--ease); }
.fc-pct { font-size: 12px; color: var(--text-2); min-width: 64px; text-align: right; font-variant-numeric: tabular-nums; }

.fc-result { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fc-ok { display: inline-flex; align-items: center; gap: 8px; color: #2dd4bf; font-weight: 700; font-size: 14px; }
.fc-expiry { font-size: 12px; color: var(--text-3); }
.fc-download { padding: 9px 18px !important; font-size: 14px; }
.fc-error-msg { color: #ffb3ae; font-size: 13px; display: inline-flex; align-items: center; gap: 8px; }

.btn .fa-solid { font-size: 0.95em; }

/* ---- Globaler Fehler ---- */
.error-box {
  margin-top: 16px; padding: 12px 14px; border-radius: 10px;
  background: rgba(248,81,73,0.08); border: 1px solid rgba(248,81,73,0.5);
  color: #ffb3ae; font-size: 14px; text-align: center;
}

/* ---- Features ---- */
.feature-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---- Legal (Datenschutz / Impressum) ---- */
.legal-wrap { max-width: 800px; }
.legal-card { background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px; }
.legal-card h1 { margin-top: 0; }
.legal-card h2 { margin-top: 28px; font-size: 20px; color: var(--text);
  padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.legal-card h3 { margin-top: 20px; font-size: 16px; color: var(--text); }
.legal-card p, .legal-card li { color: var(--text-2); }
.legal-card strong { color: var(--text); }
.legal-card a { color: var(--gold); word-break: break-all; }
.legal-card ul { padding-left: 20px; }
.legal-card li { margin: 6px 0; }
.legal-card address { font-style: normal; color: var(--text); line-height: 1.7; }

@media (max-width: 620px) {
  .fc-target { width: 110px; }
  .convert-toolbar { flex-direction: column; align-items: stretch; }
  .tb-actions .btn { flex: 1; justify-content: center; }
}

.hidden { display: none !important; }
