:root {
  color-scheme: dark;
  --bg: #06070a;
  --surface: #101218;
  --surface-2: #171a22;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f8fafc;
  --muted: #9da4b3;
  --orange: #f7931e;
  --orange-2: #ffb258;
  --blue: #38bdf8;
  --danger: #fb7185;
  --success: #34d399;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 2%, rgba(247, 147, 30, 0.12), transparent 27rem),
    radial-gradient(circle at 10% 35%, rgba(56, 189, 248, 0.06), transparent 26rem),
    var(--bg);
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.topbar {
  height: 76px;
  padding: 0 clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 7, 10, 0.88);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.08em;
}

.brand-logo {
  display: block;
  width: 176px;
  height: auto;
  max-height: 48px;
  object-fit: contain;
}

.back-link, .secure-label {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.back-link:hover { color: var(--orange-2); }

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  padding: clamp(70px, 10vw, 132px) 0 66px;
  max-width: 850px;
}

.eyebrow, .step {
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.hero h1 {
  margin: 18px 0 22px;
  font-size: clamp(48px, 7vw, 84px);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero h1 span { color: var(--orange); }
.hero > p { color: var(--muted); font-size: clamp(17px, 2vw, 20px); line-height: 1.65; max-width: 720px; }

.trust-row { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 28px; }
.trust-row span { color: #d9dde6; font-size: 13px; }
.trust-row span::before { content: "✓"; color: var(--success); font-weight: 800; margin-right: 8px; }

.panel, .transfers-section, .download-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(22, 24, 31, 0.96), rgba(12, 14, 19, 0.98));
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.32);
}

.panel { border-radius: 24px; padding: clamp(24px, 5vw, 54px); }

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 30px;
}

.section-heading h2, .result h2 {
  margin: 8px 0 0;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.035em;
}

.limit-note {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  padding: 9px 13px;
  font-size: 12px;
  white-space: nowrap;
}

.dropzone {
  min-height: 236px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed rgba(247, 147, 30, 0.48);
  border-radius: 18px;
  background: rgba(247, 147, 30, 0.035);
  cursor: pointer;
  text-align: center;
  transition: 160ms ease;
}

.dropzone:hover, .dropzone.dragging {
  border-color: var(--orange);
  background: rgba(247, 147, 30, 0.08);
  transform: translateY(-1px);
}

.dropzone input { position: absolute; opacity: 0; pointer-events: none; }
.dropzone strong { font-size: 20px; }
.dropzone > span:not(.upload-icon) { color: var(--muted); }
.dropzone small { color: #747b89; margin-top: 8px; }

.upload-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 7px;
  border-radius: 16px;
  color: var(--orange);
  background: rgba(247, 147, 30, 0.13);
  font-size: 29px;
}

.file-selection {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.selection-summary, .selection-file {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.selection-summary { color: var(--orange-2); background: rgba(255, 255, 255, 0.025); }
.selection-file:last-child { border-bottom: 0; }
.selection-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selection-file small, .selection-summary span { color: var(--muted); white-space: nowrap; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.form-grid label, .unlock-form label { display: grid; gap: 9px; }
.form-grid label > span, .unlock-form label > span { font-size: 13px; font-weight: 700; color: #d8dce4; }
.form-grid em { color: #747b89; font-size: 11px; font-style: normal; font-weight: 500; }
.form-grid .wide { grid-column: 1 / -1; }

input, select, textarea {
  width: 100%;
  color: var(--text);
  background: #090b0f;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 13px 14px;
  outline: none;
  transition: border-color 150ms, box-shadow 150ms;
}

textarea { resize: vertical; min-height: 96px; }
input:focus, select:focus, textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(247, 147, 30, 0.12); }

.primary-button, .secondary-button, .danger-button, .icon-button {
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  font-weight: 750;
  transition: transform 140ms, opacity 140ms, background 140ms;
}

.primary-button {
  margin-top: 28px;
  padding: 15px 22px;
  color: #111;
  background: linear-gradient(135deg, var(--orange-2), var(--orange));
  box-shadow: 0 14px 34px rgba(247, 147, 30, 0.18);
}

.primary-button:hover, .secondary-button:hover, .danger-button:hover, .icon-button:hover { transform: translateY(-1px); }
button:disabled { opacity: 0.55; cursor: wait; transform: none !important; }

.secondary-button { padding: 12px 16px; color: var(--text); background: #292e3a; }
.secondary-button.small { padding: 9px 12px; font-size: 12px; }
.danger-button { padding: 9px 12px; color: #fecdd3; background: rgba(251, 113, 133, 0.12); font-size: 12px; }
.icon-button { width: 38px; height: 38px; color: var(--text); background: #222630; font-size: 18px; }
.text-button { padding: 0; color: var(--orange-2); background: none; border: 0; cursor: pointer; }

.progress-area { margin-top: 24px; }
.progress-copy { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 13px; }
.progress-copy b { color: var(--text); }
.progress-track { height: 7px; margin-top: 10px; overflow: hidden; border-radius: 99px; background: #07080b; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), var(--orange-2)); transition: width 120ms linear; }

.notice { margin-top: 18px; padding: 13px 15px; border-radius: 10px; font-size: 14px; }
.notice.error { color: #fecdd3; background: rgba(251, 113, 133, 0.1); border: 1px solid rgba(251, 113, 133, 0.22); }

.result { display: grid; gap: 22px; }
.result p { color: var(--muted); }
.success-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; color: #07130f; background: var(--success); font-size: 26px; font-weight: 900; }
.copy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }

.transfers-section { margin-top: 28px; padding: clamp(24px, 4vw, 42px); border-radius: 22px; }
.transfer-list { display: grid; gap: 10px; }
.transfer-card { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.025); }
.transfer-title-row { display: flex; align-items: center; gap: 10px; }
.transfer-title-row h3 { margin: 0; font-size: 16px; }
.status { padding: 4px 7px; border-radius: 999px; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.status.active { color: #a7f3d0; background: rgba(52, 211, 153, 0.11); }
.status.draft { color: #cbd5e1; background: rgba(148, 163, 184, 0.12); }
.transfer-meta { display: flex; flex-wrap: wrap; gap: 8px 15px; margin-top: 9px; color: var(--muted); font-size: 12px; }
.transfer-actions { display: flex; gap: 8px; flex-shrink: 0; }
.empty-state { display: grid; gap: 8px; place-items: center; padding: 38px; color: var(--muted); border: 1px dashed var(--line); border-radius: 14px; text-align: center; }
.empty-state b { color: var(--text); }
.error-text { color: #fecdd3; }

footer { padding: 50px 20px 32px; color: #6f7581; text-align: center; font-size: 12px; }
footer b { color: #a6acb8; }

.public-main { width: min(720px, calc(100% - 36px)); min-height: calc(100vh - 160px); display: grid; align-content: center; padding: 70px 0; }
.download-card { border-radius: 24px; padding: clamp(28px, 7vw, 58px); text-align: center; }
.download-symbol { display: grid; place-items: center; width: 66px; height: 66px; margin: 0 auto 26px; border-radius: 20px; color: #14100b; background: linear-gradient(145deg, var(--orange-2), var(--orange)); font-size: 34px; font-weight: 800; }
.download-card h1 { margin: 13px 0; font-size: clamp(31px, 6vw, 48px); letter-spacing: -0.04em; line-height: 1.05; overflow-wrap: anywhere; }
.public-message { max-width: 540px; margin: 16px auto; color: var(--muted); line-height: 1.6; white-space: pre-wrap; }
.public-message.visible { display: block; }
.expiry { margin: 20px 0 28px; color: var(--orange-2); font-size: 13px; }
.public-files { display: grid; gap: 10px; margin-top: 28px; text-align: left; }
.public-file { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px; color: var(--text); text-decoration: none; border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 255, 255, 0.025); transition: border-color 140ms, transform 140ms; }
.public-file:hover { transform: translateY(-1px); border-color: rgba(247, 147, 30, 0.55); }
.public-file > div { min-width: 0; display: grid; gap: 5px; }
.public-file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.public-file small { color: var(--muted); }
.public-file b { color: var(--orange-2); white-space: nowrap; font-size: 13px; }
.unlock-form { display: grid; gap: 0; max-width: 430px; margin: 28px auto 0; text-align: left; }
.unlock-form .primary-button { width: 100%; }
.public-note { max-width: 600px; margin: 20px auto 0; color: #737986; font-size: 12px; line-height: 1.6; text-align: center; }
.expired-card .download-symbol { color: #2a0e14; background: var(--danger); }

[hidden] { display: none !important; }

@media (max-width: 720px) {
  .topbar { height: 66px; padding: 0 18px; }
  .brand-logo { width: 145px; max-height: 40px; }
  .back-link { font-size: 0; }
  .back-link::after { content: "Zurück"; font-size: 13px; }
  main { width: min(100% - 28px, 1120px); }
  .hero { padding: 64px 0 44px; }
  .hero h1 { font-size: clamp(42px, 13vw, 64px); }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  .section-heading { align-items: center; }
  .limit-note { display: none; }
  .dropzone { min-height: 210px; }
  .transfer-card { align-items: flex-start; flex-direction: column; }
  .transfer-actions { width: 100%; }
  .transfer-actions button { flex: 1; }
  .copy-row { grid-template-columns: 1fr; }
  .public-file { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
