/* filetransfer – Stylesheet angelehnt an die SN-Verlage-CI */

:root {
  --accent: #4c8df6;
  --accent-dark: #3b7de8;
  --accent-bg: #eef5ff;
  --border: #dfe2e6;
  --border2: #d8dce2;
  --bar: #5b5b5d;
  --btn: #343a43;
  --btn-hover: #252a31;
  --ink: #1f2328;
  --muted: #666;
  --bg: #f4f5f7;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.container {
  max-width: 900px;
  margin: 28px auto;
  padding: 30px 32px;
  background: #fff;
  border-top: 5px solid var(--bar);
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 22px;
}
.topbar .brand { font-weight: 600; letter-spacing: .2px; }
.topnav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 18px;
  font-size: 14px;
}
.topnav a:hover { color: var(--accent); }

h1 { font-size: 20px; margin: 0 0 22px; }

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
}
.section-icon {
  width: 25px;
  height: 25px;
  color: var(--accent);
  padding: 10px;
  border-radius: 50%;
  background: var(--accent-bg);
  flex: 0 0 auto;
}

.form-section {
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 20px 22px 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .025);
  margin-bottom: 22px;
}

label { display: block; font-size: 15px; margin-bottom: 6px; }
label.mt { margin-top: 16px; }

input, select, textarea {
  width: 100%;
  height: 52px;
  font-size: 15px;
  padding: 9px 12px;
  border: 1px solid var(--border2);
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(76, 141, 246, .15);
}

.help-text { color: var(--muted); font-size: 13px; line-height: 1.65; margin: 6px 0 0; }

.btn {
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 16px;
  border: 0;
  border-radius: 5px;
  background: var(--btn);
  color: #fff;
  cursor: pointer;
  padding: 0 24px;
  text-decoration: none;
  letter-spacing: .2px;
}
.btn:hover { background: var(--btn-hover); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-small { height: 40px; font-size: 14px; padding: 0 14px; }

.linkbtn {
  background: none;
  border: 0;
  color: var(--accent);
  cursor: pointer;
  padding: 0;
  font: inherit;
  text-decoration: underline;
}

.actions { margin-top: 20px; }

/* Dropzone */
.dropzone {
  border: 2px dashed var(--border2);
  border-radius: 7px;
  padding: 30px 20px;
  text-align: center;
  color: var(--muted);
  transition: border-color .15s, background .15s;
  cursor: pointer;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--accent); background: var(--accent-bg); }
.dropzone-icon { width: 48px; height: 48px; color: var(--accent); margin-bottom: 8px; }
.dropzone p { margin: 4px 0; }

/* Dateiliste */
.filelist { list-style: none; margin: 16px 0 0; padding: 0; }
.filelist li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 5px;
  margin-bottom: 8px;
  background: #fff;
}
.filelist .fname { flex: 1 1 auto; word-break: break-all; }
.filelist .fmeta { color: var(--muted); font-size: 13px; white-space: nowrap; }
.filelist .remove {
  background: none;
  border: 0;
  color: #b00020;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

/* Fortschritt */
.progress-wrap { margin-top: 18px; }
.progress { height: 12px; background: var(--accent-bg); border-radius: 6px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: var(--accent); transition: width .15s; }

/* Flash / Hinweise */
.flash {
  border-radius: 5px;
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 14px;
  border: 1px solid var(--border);
  background: #f8f9fb;
}
.flash-error { border-color: #f2c2c2; background: #fdf3f3; color: #a11227; }
.flash-success { border-color: #bfe3cd; background: #f2fbf6; color: #177245; }
.flash-info { border-color: #cdddf6; background: #f3f8ff; color: #24507f; }

/* Ergebnis / Link */
.result { margin-top: 22px; }
.linkbox {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin: 10px 0 6px;
}
.linkbox input {
  height: 52px;
  font-size: 14px;
  background: #f8f9fb;
}

.login-wrap { max-width: 420px; margin: 0 auto; }
.login-wrap form { margin-top: 18px; }

@media (max-width: 700px) {
  .container { margin: 10px auto; padding: 22px 16px; }
  .filelist li { flex-wrap: wrap; }
  .linkbox { flex-direction: column; }
}
