:root {
  color-scheme: light;
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #f1f4f9;
  --border: #dfe4ee;
  --text: #0f172a;
  --text-2: #475569;
  --muted: #64748b;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #e8efff;
  --accent: #06b6d4;
  --dark: #0b0c2f;
  --dark-2: #1e1f4b;
  --good: #15803d;
  --good-soft: #e7f6ec;
  --warn: #92400e;
  --warn-soft: #fef6e4;
  --crit: #b91c1c;
  --crit-soft: #fdecec;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 10px 30px rgba(15, 23, 42, .08);
  --radius: 16px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0a0b1f;
    --surface: #13152e;
    --surface-2: #1a1d3a;
    --border: #2a2e52;
    --text: #eef1f8;
    --text-2: #c0c6d8;
    --muted: #8f97b0;
    --primary: #4f86f7;
    --primary-hover: #6d9bf9;
    --primary-soft: #1b2650;
    --good: #4ade80;
    --good-soft: #10291c;
    --warn: #fbbf24;
    --warn-soft: #2d2410;
    --crit: #f87171;
    --crit-soft: #331618;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .3);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text); font: 16px/1.55 var(--font);
}
main { flex: 1; }
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .75rem; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 720px; }

/* Header / Footer */
.site-header { background: var(--dark); color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 64px; }
.brand img { display: block; height: 32px; width: auto; filter: brightness(0) invert(1); }
.brand-tag {
  display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px;
  background: rgba(255, 255, 255, .1); color: #fff; font-weight: 600; font-size: .9rem; text-decoration: none;
}
.site-footer { margin-top: 3rem; padding: 1.5rem 0; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; }
.site-footer a { color: var(--text-2); }
.site-footer nav a { margin-left: 1rem; }
.site-footer nav a:first-child { margin-left: 0; }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 60%, #1e3a8a 100%);
  color: #fff; text-align: center; padding: 3rem 0 5.5rem;
}
.hero h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); letter-spacing: -.02em; }
.hero .lead { color: #cbd5f5; font-size: 1.1rem; max-width: 560px; margin: 0 auto 1.25rem; }
.badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.badges li { padding: .3rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: .85rem; }
.badges li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.hero + .container { margin-top: -3.5rem; }
.page { padding-top: 2rem; }

/* Tabs */
.tabs { display: flex; gap: .25rem; padding: .3rem; background: var(--surface); border-radius: 14px 14px 0 0; border: 1px solid var(--border); border-bottom: 0; }
.tab {
  flex: 1; padding: .7rem 1rem; border: 0; border-radius: 10px; background: transparent; color: var(--text-2);
  font: 600 1rem var(--font); cursor: pointer;
}
.tab:hover { background: var(--surface-2); }
.tab.active { background: var(--primary-soft); color: var(--primary); }
.tabs + .card { border-top-left-radius: 0; border-top-right-radius: 0; }

/* Card */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.5rem;
}
@media (min-width: 640px) { .card { padding: 2rem; } }
.intro { color: var(--text-2); }

/* Formulare */
.field { margin-bottom: 1.1rem; }
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=password], textarea, select {
  width: 100%; padding: .7rem .85rem; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--text); font: inherit;
}
textarea { resize: vertical; min-height: 96px; }
input:focus, textarea:focus, select:focus, .dropzone:focus-visible, .btn:focus-visible, .tab:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary);
}
.grid-2, .grid-3 { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: 1fr 1fr 1.2fr; } }
.hint { font-size: .85rem; color: var(--muted); margin: .35rem 0 .9rem; }
.center { text-align: center; }
.muted { color: var(--muted); }
.check { display: flex; align-items: center; gap: .5rem; font-weight: 500; margin-bottom: 1rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 2.75rem; }
.pw-wrap .icon-btn { position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); }
.link { color: var(--primary); cursor: pointer; text-decoration: underline; display: inline; font-weight: 600; font-size: inherit; margin: 0; }

/* Dropzone */
.dropzone {
  border: 2px dashed var(--border); border-radius: 14px; padding: 1.75rem 1rem; text-align: center;
  background: var(--surface-2); cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--primary); background: var(--primary-soft); }
.dropzone p { margin: 0; }
.dropzone .hint { margin: .3rem 0 0; }
.dz-icon {
  width: 48px; height: 48px; margin: 0 auto .6rem; display: grid; place-items: center; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 1.3rem;
}

/* Dateilisten */
.file-list { list-style: none; padding: 0; margin: .75rem 0 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.file-item { display: flex; align-items: center; gap: .65rem; padding: .6rem .8rem; border-top: 1px solid var(--border); }
.file-item:first-child { border-top: 0; }
.file-icon { font-size: 1.2rem; flex: none; }
.file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { color: var(--muted); font-size: .85rem; flex: none; }
.file-list.received { margin-bottom: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .65rem 1.15rem;
  border-radius: 10px; border: 1px solid transparent; font: 600 .95rem var(--font); cursor: pointer;
  text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn-secondary { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger-ghost { background: transparent; color: var(--crit); border-color: transparent; }
.btn-danger-ghost:hover { background: var(--crit-soft); }
.btn-lg { padding: .9rem 1.4rem; font-size: 1.05rem; }
.btn-sm { padding: .4rem .75rem; font-size: .85rem; }
.btn-block { width: 100%; }
.icon-btn {
  width: 34px; height: 34px; flex: none; border: 0; border-radius: 8px; background: transparent; color: var(--muted);
  font-size: 1.15rem; cursor: pointer; display: inline-grid; place-items: center;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }

/* Links */
.link-field { display: flex; gap: .5rem; margin-bottom: .75rem; }
.link-input { font-family: var(--mono) !important; font-size: .85rem !important; background: var(--surface-2) !important; min-width: 0; }
@media (max-width: 480px) { .link-field { flex-direction: column; } }

/* Fortschritt */
.progress { margin: .5rem 0 1rem; }
.progress-track { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--border); }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width .2s; }
.progress-text { display: block; font-size: .85rem; color: var(--muted); margin-top: .35rem; }

/* Hinweise */
.alert { padding: .8rem 1rem; border-radius: 10px; font-size: .92rem; margin: .5rem 0 1rem; }
.alert-err { background: var(--crit-soft); color: var(--crit); }
.alert-warn { background: var(--warn-soft); color: var(--warn); }

/* Zustände */
.center-state { text-align: center; padding: 1.5rem 0; }
.center-state.compact { padding: 0 0 1.25rem; }
.center-state .btn { margin-top: .75rem; }
.state-icon { font-size: 2.4rem; margin-bottom: .5rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 700; color: var(--primary); margin-bottom: .3rem; }
.spinner {
  width: 36px; height: 36px; margin: 0 auto 1rem; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--primary); animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.success-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.25rem; }
.success-head h1, .success-head h2 { font-size: 1.3rem; margin-bottom: .2rem; }
.success-head p { margin: 0; }
.success-icon {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--good-soft); color: var(--good); font-weight: 700; font-size: 1.3rem;
}
.success-icon.big { width: 64px; height: 64px; font-size: 1.8rem; margin: 0 auto 1rem; }
.step-title { display: flex; align-items: center; gap: .5rem; margin-top: 1.25rem; font-size: 1rem; }
.step-no {
  width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff; font-size: .8rem;
  display: inline-grid; place-items: center; flex: none;
}

/* Nachricht */
.message-box { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 1rem; overflow: hidden; }
.message-head { display: flex; justify-content: space-between; align-items: center; padding: .4rem .5rem .4rem .9rem; background: var(--surface-2); font-weight: 600; font-size: .9rem; }
.message-text { margin: 0; padding: .9rem; white-space: pre-wrap; word-break: break-word; font: .95rem/1.5 var(--mono); max-height: 50vh; overflow: auto; }
.meta-line { margin-bottom: .75rem; }

/* Auf diesem Gerät / Postfach */
.mine { margin-top: 2rem; }
.section-title { font-size: 1.35rem; margin-bottom: 1rem; }
.section-title.center { text-align: center; }
.sub-title { font-size: 1rem; margin: 1rem 0 .5rem; }
.mine-list, .submissions { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.mine-item, .submission {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: .7rem .9rem;
}
.mine-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.mine-item.gone { opacity: .6; }
.mine-main { min-width: 0; overflow-wrap: anywhere; }
.mine-actions { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.item-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; }
.item-body { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--border); }
.list-head { display: flex; justify-content: space-between; align-items: center; margin-top: 1.25rem; }
.empty { padding: 1rem 0; }

/* So funktioniert's */
.how { margin-top: 3.5rem; }
.steps { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; }
.step p { color: var(--text-2); margin: 0; font-size: .95rem; }
.step-icon { font-size: 1.6rem; margin-bottom: .5rem; }
.usecases { display: grid; gap: 1rem; margin-top: 1rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .usecases { grid-template-columns: 1fr 1fr; } }
.usecase { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; }
.usecase ul { margin: 0; padding-left: 1.2rem; color: var(--text-2); }
.usecase li { margin-bottom: .35rem; }
.tech { margin-top: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.4rem; }
.tech summary { cursor: pointer; font-weight: 600; }
.tech ul { margin: .75rem 0 0; padding-left: 1.2rem; color: var(--text-2); font-size: .93rem; }
.tech li { margin-bottom: .35rem; }
.cta { margin-top: 2rem; text-align: center; padding: 1.75rem 1rem; border-radius: var(--radius); background: var(--primary-soft); }

/* Datenschutz-Text */
.prose h2 { margin-top: 1.5rem; font-size: 1.15rem; }
.prose p, .prose li { color: var(--text-2); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; transition: .25s;
  background: var(--dark); color: #fff; padding: .65rem 1.1rem; border-radius: 10px; box-shadow: var(--shadow);
  z-index: 50; font-weight: 500; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-err { background: var(--crit); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
