/* HirschTransfer – Refined Dark Theme for B2B Print Industry */
@font-face { font-family: 'Gotham'; src: url('/fonts/Gotham-Light.otf') format('opentype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gotham'; src: url('/fonts/Gotham-Book.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gotham'; src: url('/fonts/Gotham-BookIta.otf') format('opentype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Gotham'; src: url('/fonts/Gotham-Bold.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --bg: #0c0c0e;
  --bg-gradient: linear-gradient(168deg, #0c0c0e 0%, #12121a 50%, #0f1014 100%);
  --surface: #17171c;
  --surface-elevated: #1e1e25;
  --surface-hover: #22222b;
  --border: #2a2a35;
  --border-subtle: #1f1f28;
  --text: #f0f0f2;
  --text-secondary: #9a9ab0;
  --text-muted: #5c5c72;
  --accent: #34c0eb;
  --accent-light: #5cd0f0;
  --accent-hover: #2ba8cf;
  --accent-glow: rgba(52, 192, 235, 0.12);
  --accent-subtle: rgba(52, 192, 235, 0.06);
  --success: #3ecf6e;
  --success-bg: rgba(62, 207, 110, 0.08);
  --error: #ef4444;
  --error-bg: rgba(239, 68, 68, 0.08);
  --orange: #f59e0b;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.35), 0 2px 6px rgba(0,0,0,0.2);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.4), 0 4px 12px rgba(0,0,0,0.25);
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Gotham', -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Dot grid canvas sits behind everything */
#dotGrid { z-index: 0; }

/* Layout */
.container {
  width: 100%;
  max-width: 580px;
  padding: 0 24px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Logo */
.logo-area {
  text-align: center;
  padding: 52px 0 28px;
  position: relative;
}

.logo-area img {
  height: 140px;
  width: auto;
  filter: brightness(1.05);
  transition: filter var(--transition);
}

.logo-area img:hover {
  filter: brightness(1.15);
}

.intern-link {
  position: absolute;
  top: 52px;
  right: 0;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  padding: 7px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  transition: all var(--transition);
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.intern-link::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c5c72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'%3E%3C/path%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: background-image var(--transition);
}

.intern-link {
  background: var(--surface);
}

.intern-link:hover {
  color: var(--text-secondary);
  border-color: var(--border);
  background: var(--surface-elevated);
}

.intern-link:hover::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a9ab0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'%3E%3C/path%3E%3C/svg%3E");
}

/* Page Title (über der Card) */
.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.page-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 24px;
}

/* Upload Card */
.upload-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

/* Subtle top accent line on cards */
.upload-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  opacity: 0.5;
}

.upload-card h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  color: var(--text);
  text-align: center;
}

.upload-card .subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 28px;
  font-weight: 400;
  text-align: center;
}

/* Drop Zone */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 44px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 28px;
  background: var(--accent-subtle);
  position: relative;
}

.drop-zone {
  animation: dropzonePulse 3s ease-in-out infinite;
}

@keyframes dropzonePulse {
  0%, 100% { box-shadow: 0 0 0 0 transparent; border-color: var(--border); }
  50% { box-shadow: 0 0 30px rgba(52, 192, 235, 0.15), inset 0 0 20px rgba(52, 192, 235, 0.05); border-color: rgba(52, 192, 235, 0.5); }
}

.drop-zone:hover, .drop-zone.dragover {
  animation: none;
  border-color: var(--accent);
  background: var(--accent-glow);
}

.drop-zone.dragover {
  transform: scale(1.01);
  box-shadow: inset 0 0 30px rgba(52, 192, 235, 0.06);
}

.drop-zone-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drop-zone-icon svg {
  width: 32px;
  height: 32px;
}

.drop-zone-text {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
  letter-spacing: 0.03em;
}

.drop-zone-hint {
  font-size: 13px;
  color: var(--text-secondary);
}

.drop-zone-hint a {
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}

.drop-zone-hint a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* File List */
.file-list {
  list-style: none;
  margin-bottom: 24px;
}

.file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  font-size: 13px;
  transition: border-color var(--transition);
}

.file-list li:hover {
  border-color: var(--border);
}

.file-list .file-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.file-list .file-name::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  min-width: 18px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a9ab0' stroke-width='1.5'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3C/svg%3E");
}

/* PDF */
.file-list .file-icon-pdf::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='1.5'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M9 15h6' stroke-linecap='round'/%3E%3Cpath d='M9 11h6' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Bilder */
.file-list .file-icon-image::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334c0eb' stroke-width='1.5'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E");
}

/* Word */
.file-list .file-icon-word::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b6cb0' stroke-width='1.5'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M8 13l2 5 2-5 2 5 2-5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Excel */
.file-list .file-icon-excel::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338a169' stroke-width='1.5'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M8 18V12h8v6M12 12v6M8 15h8' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Ordner */
.file-list .file-icon-folder::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='1.5'%3E%3Cpath d='M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
}

/* ZIP */
.file-list .file-icon-zip::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a9ab0' stroke-width='1.5'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Crect x='10' y='12' width='4' height='6' rx='1'/%3E%3Cpath d='M12 12v-2'/%3E%3C/svg%3E");
}

.file-list .file-size {
  color: var(--text-muted);
  white-space: nowrap;
  margin-right: 12px;
  font-size: 12px;
}

.file-list .file-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all var(--transition);
}

.file-list .file-remove:hover {
  color: var(--error);
  background: var(--error-bg);
}

/* Formular */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  padding: 11px 16px;
  font-family: inherit;
  transition: all var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group .required::after {
  content: ' *';
  color: var(--accent);
}

/* Form Row (nebeneinander) */
.form-row {
  display: flex;
  gap: 14px;
}
.form-row .form-group { flex: 1; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 8px rgba(52, 192, 235, 0.25);
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  box-shadow: 0 4px 14px rgba(52, 192, 235, 0.35);
  transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-secondary {
  background: var(--surface-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--text-muted);
}

/* Progress */
.progress-section {
  display: none;
  margin-bottom: 24px;
}

.progress-section.active { display: block; }

.progress-bar-track {
  width: 100%;
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  width: 0%;
  transition: width 0.3s ease;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
}

.progress-cancel {
  background: none;
  border: none;
  color: var(--error);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 0;
  font-family: inherit;
  transition: opacity var(--transition);
}

.progress-cancel:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Success */
.success-section {
  display: none;
  text-align: center;
  padding: 48px 24px;
}

.success-section.active { display: block; }

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--success), #2ba854);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(62, 207, 110, 0.2);
}

.success-icon svg {
  width: 32px;
  height: 32px;
  fill: white;
}

.success-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.success-text {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* Error */
.error-message {
  display: none;
  background: var(--error-bg);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--error);
  font-size: 14px;
  margin-bottom: 16px;
  font-weight: 500;
}

.error-message.active { display: block; }

/* Footer */
.footer {
  text-align: center;
  padding: 36px 24px;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: auto;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 1;
}

.footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

.footer a:hover {
  color: var(--accent-light);
}

/* Download Page */
.download-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.download-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  opacity: 0.5;
}

.download-file-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: var(--accent-glow);
  border: 1px solid rgba(52, 192, 235, 0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-file-icon svg {
  width: 28px;
  height: 28px;
}

.download-file-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
  word-break: break-all;
}

.download-file-meta {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 28px;
}

.download-file-list {
  list-style: none;
  margin-bottom: 28px;
  text-align: left;
}

.download-file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  transition: border-color var(--transition);
}

.download-file-list li:hover {
  border-color: var(--border);
}

.download-file-list li::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-right: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c5c72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'%3E%3C/path%3E%3Cpolyline points='14 2 14 8 20 8'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.download-file-list .name {
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.download-file-list .size {
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
  margin-left: 12px;
}

/* Expired */
.expired-card {
  text-align: center;
  padding: 64px 36px;
}

.expired-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.expired-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--text-muted);
  fill: none;
}

.expired-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.expired-text {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

/* Link Box */
.link-box {
  display: flex;
  gap: 8px;
  margin: 20px 0;
}

.link-box input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 12px 14px;
  font-size: 13px;
  font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', monospace;
  transition: border-color var(--transition);
}

.link-box input:focus {
  outline: none;
  border-color: var(--accent);
}

.btn-copy {
  padding: 12px 20px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: all var(--transition);
  box-shadow: 0 2px 6px rgba(52, 192, 235, 0.2);
}

.btn-copy:hover {
  background: var(--accent-hover);
  box-shadow: 0 3px 10px rgba(52, 192, 235, 0.3);
}

/* Hidden helper */
.hidden { display: none !important; }

/* Responsive */
/* Kompakte Ansicht für niedrige Bildschirme (Laptops) */
@media (max-height: 900px) {
  .logo-area { padding: 20px 0 12px; }
  .logo-area img { height: 70px; }
  .page-title { font-size: 22px; margin-bottom: 4px; }
  .page-subtitle { font-size: 13px; margin-bottom: 16px; }
  .upload-card { padding: 24px 32px; }
  .upload-card .subtitle { margin-bottom: 16px; }
  .drop-zone { padding: 28px 20px; margin-bottom: 20px; }
  .drop-zone-icon { width: 48px; height: 48px; margin-bottom: 10px; }
  .drop-zone-icon svg, .drop-zone-icon i { width: 24px !important; height: 24px !important; }
  .form-group { margin-bottom: 12px; }
  .form-group input, .form-group textarea { padding: 9px 14px; font-size: 14px; }
  .form-group textarea { min-height: 60px; }
  .form-row { display: flex; gap: 12px; }
  .form-row .form-group { flex: 1; }
  .footer { padding: 20px; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .upload-card { padding: 28px 20px; }
  .drop-zone { padding: 32px 16px; }
  .logo-area { padding: 32px 0 20px; }
  .logo-area img { height: 80px; }
  .download-card { padding: 28px 20px; }
  .download-file-list .name { max-width: 200px; }
  .intern-link { top: 32px; }
  .expired-card { padding: 48px 20px; }
  .form-row { flex-direction: column; gap: 0; }
}

@media (max-width: 380px) {
  .link-box {
    flex-direction: column;
  }
  .link-box input {
    font-size: 12px;
  }
}
