/* ── Grundlayout ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #1a2942;
  --navy-light:  #22375a;
  --blue:        #2563eb;
  --blue-hover:  #1d4ed8;
  --blue-light:  #eff6ff;
  --text:        #1e293b;
  --text-muted:  #64748b;
  --bg:          #f0f4f8;
  --surface:     #ffffff;
  --border:      #e2e8f0;
  --success:     #10b981;
  --success-bg:  #ecfdf5;
  --error:       #ef4444;
  --error-bg:    #fef2f2;
  --radius:      10px;
  --shadow:      0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
}

html { font-size: 16px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

/* ── Header ── */
.header {
  background: var(--navy);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.header-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .92;
}

.header-divider {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,.2);
}

.header-title {
  color: rgba(255,255,255,.85);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .3px;
}

.header-badge {
  margin-left: auto;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.15);
  letter-spacing: .5px;
  text-transform: uppercase;
  font-weight: 600;
}

/* ── Main ── */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 48px 24px 64px;
}

/* ── Card ── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 560px;
}

.card-header {
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--border);
}

.card-header h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-header p {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 14px;
}

.card-body { padding: 28px 32px; }

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: .2px;
}

.form-group label .optional {
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 4px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
  font-family: 'Courier New', monospace;
  font-size: 13px;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
  cursor: pointer;
}

.expiry-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.expiry-row select { flex: 1; }

.custom-hours {
  display: none;
  flex: 0 0 120px;
}

.custom-hours.visible { display: block; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: background .15s, transform .1s, box-shadow .15s;
  text-decoration: none;
  letter-spacing: .2px;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  width: 100%;
  padding: 13px;
}

.btn-primary:hover { background: var(--blue-hover); box-shadow: 0 4px 12px rgba(37,99,235,.3); }

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover { background: var(--border); }

.btn-copy {
  background: var(--navy);
  color: #fff;
  flex: 0 0 auto;
  padding: 11px 18px;
}

.btn-copy:hover { background: var(--navy-light); }

/* ── Alerts ── */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alert-error { background: var(--error-bg); color: #b91c1c; border: 1px solid #fecaca; }
.alert-success { background: var(--success-bg); color: #065f46; border: 1px solid #a7f3d0; }
.alert-info { background: var(--blue-light); color: #1e40af; border: 1px solid #bfdbfe; }

/* ── Link-Box ── */
.link-box {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.link-box code {
  flex: 1;
  font-size: 13px;
  word-break: break-all;
  color: var(--navy);
  font-family: 'Courier New', monospace;
}

/* ── Passwort-Anzeige ── */
.password-display {
  background: #0f1923;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 20px;
  position: relative;
}

.password-display pre {
  color: #7ee787;
  font-family: 'Courier New', monospace;
  font-size: 15px;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0;
  user-select: all;
}

.password-label {
  font-size: 11px;
  color: #485e74;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-weight: 600;
}

.pw-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── Burn-Info ── */
.burn-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #fef9ec;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  font-size: 13px;
  color: #92400e;
  margin-bottom: 20px;
}

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

/* ── Meta-Info ── */
.meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta span { display: flex; align-items: center; gap: 6px; }

/* ── Icon ── */
.icon { display: inline-block; width: 20px; height: 20px; flex-shrink: 0; }

/* ── Footer ── */
.footer {
  background: var(--navy);
  padding: 16px 32px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,.4);
  letter-spacing: .3px;
}

.footer a { color: rgba(255,255,255,.55); text-decoration: none; }
.footer a:hover { color: rgba(255,255,255,.8); }

/* ── Responsive ── */
@media (max-width: 600px) {
  .header { padding: 0 16px; }
  .header-badge { display: none; }
  main { padding: 24px 16px 48px; }
  .card-header, .card-body { padding: 20px; }
  .link-box { flex-direction: column; align-items: stretch; }
  .btn-copy { width: 100%; }
}

/* ── Kopiert-Feedback ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.copy-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: #fff;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  animation: fadeInUp .2s ease;
  pointer-events: none;
  z-index: 999;
}
