/* Social Europe Desk — Einreichungsportal (docs/design/SCREENS.md §7).
   Nur Tokens aus tokens.css; Buttons, Wordmark, Status-Pills wie in style.css. */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--surface-page); color: var(--text); font-family: var(--font);
  font-size: var(--fs-ui); line-height: 1.5; -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--accent); }
a:hover { color: var(--se-red-hover); }
button { font-family: inherit; cursor: pointer; color: inherit; }
button:disabled { cursor: default; }
input, textarea, select { font-family: inherit; color: var(--text); }
:focus-visible { outline: 2px solid var(--se-black); outline-offset: 2px; }
[hidden] { display: none !important; }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Leiste und Fuß ---------- */
.pt-bar {
  height: 64px; padding: 0 40px; background: var(--surface-bar); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.wordmark { display: flex; align-items: baseline; gap: 10px; text-decoration: none; white-space: nowrap; }
.wordmark .wm { font-size: 24px; font-weight: 800; color: var(--accent); letter-spacing: -0.01em; }
.wordmark .wd { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.pt-guide { font-size: 15px; font-weight: 500; color: var(--text); text-decoration: none; white-space: nowrap; }
.pt-guide .short { display: none; }
.pt-guide:hover { color: var(--accent); }
.pt-foot {
  margin-top: auto; border-top: 1px solid var(--border); padding: 24px 40px; display: flex; gap: 24px; flex-wrap: wrap;
  justify-content: center;
}
.pt-foot a { font-size: var(--fs-meta); color: var(--text-muted); text-decoration: none; }
.pt-foot a:hover { color: var(--text); }

/* ---------- Seite ---------- */
.pt-page { width: 100%; max-width: 768px; margin: 0 auto; padding: 56px 24px 64px; display: flex; flex-direction: column; gap: 40px; }
.pt-boot { color: var(--text-muted); text-align: center; }
.pt-head { display: flex; flex-direction: column; gap: 10px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.pt-head h1 { margin: 0; font-size: var(--fs-h1); line-height: var(--lh-tight); font-weight: 800; letter-spacing: -0.02em; }
.pt-head .lead { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text-secondary); }
.pt-meta { font-size: var(--fs-meta); color: var(--text-muted); }

/* Karte (wie TriageCard: 1px gray-200, Radius 4, 28×32) */
.pt-card { border: 1px solid var(--border); border-radius: var(--r); padding: 28px 32px; display: flex; flex-direction: column; gap: 20px; background: var(--se-white); }
.pt-card h2 { margin: 0; font-size: 20px; font-weight: 800; }
.pt-card p { margin: 0; }

/* Abschnitte des Formulars */
.pt-form { display: flex; flex-direction: column; gap: 48px; }
.pt-sec { display: flex; flex-direction: column; gap: 20px; border-top: 1px solid var(--se-black); padding-top: 20px; }
.pt-sec-h { display: flex; align-items: baseline; gap: 12px; }
.pt-sec-h .n { font-size: 13px; font-weight: 800; color: var(--accent); }
.pt-sec-h h2 { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.pt-sec > p.pt-help { margin: -8px 0 0; }

/* Felder */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field > .lbl { font-size: 15px; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--text-muted); }
.pt-help { font-size: var(--fs-meta); color: var(--text-muted); line-height: 1.5; }
.pt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.in {
  height: var(--h-btn); padding: 0 12px; border: 1px solid var(--border-control); border-radius: var(--r-input);
  font-size: 16px; background: var(--se-white); width: 100%; transition: border-color var(--t);
}
textarea.in { height: auto; min-height: 128px; padding: 10px 12px; line-height: 1.55; resize: vertical; }
.in:focus { border-color: var(--se-black); outline: none; }
.in:focus-visible { outline: 2px solid var(--se-black); outline-offset: 2px; }
.in[readonly] { background: var(--se-beige); color: var(--text-secondary); }
.in.code { font-size: 24px; letter-spacing: 0.4em; font-weight: 700; max-width: 220px; text-align: center; }
.field.bad .in { border-color: var(--tint-attention-text); }
.err { font-size: 14px; color: var(--tint-attention-text); font-weight: 600; }
.counter { font-size: 13px; color: var(--text-muted); align-self: flex-end; }
.counter.bad { color: var(--tint-attention-text); font-weight: 700; }
.pt-inline { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.pt-inline .in { flex: 1 1 260px; }
.honey { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Checkboxen */
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--se-black); flex: none; }
.check .licence { display: block; margin-top: 6px; font-size: 14px; line-height: 1.55; color: var(--text-secondary); }
.check.bad { color: var(--tint-attention-text); }

/* Buttons (wie style.css) */
.btn {
  height: var(--h-btn); padding: 0 18px; border-radius: var(--r); border: 1px solid transparent; background: transparent;
  font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  white-space: nowrap; transition: background var(--t), border-color var(--t), color var(--t); text-decoration: none; color: var(--text);
}
.btn.primary { background: var(--accent); color: var(--se-white); border-color: var(--accent); }
.btn.primary:hover { background: var(--se-red-hover); border-color: var(--se-red-hover); }
.btn.primary:active { background: var(--se-red-active); }
.btn.dark { background: var(--se-black); color: var(--se-white); border-color: var(--se-black); }
.btn.secondary { background: var(--se-white); border-color: var(--se-black); }
.btn.secondary:hover { background: var(--desk-gray-100); }
.btn.quiet { background: var(--se-white); border-color: var(--border-control); }
.btn.quiet:hover { background: var(--desk-gray-100); }
.btn.tertiary { color: var(--text-secondary); font-weight: 500; font-size: 14px; padding: 0 8px; height: var(--h-btn-sm); }
.btn.tertiary:hover { background: var(--desk-gray-100); color: var(--text); }
.btn.tertiary.danger { color: var(--tint-attention-text); }
.btn:disabled { opacity: 0.5; }
.btn .i { width: 16px; height: 16px; }

/* Segmented control */
.seg { display: inline-flex; padding: 3px; background: var(--desk-gray-100); border-radius: var(--r-pill); align-self: flex-start; }
.seg button {
  height: 36px; padding: 0 16px; border: 0; background: transparent; border-radius: var(--r-pill); font-size: 14px; font-weight: 500;
  color: var(--text-secondary); transition: background var(--t), color var(--t);
}
.seg button[aria-checked="true"] { background: var(--se-black); color: var(--se-white); font-weight: 700; }

/* Radiogruppe (Keep / Update) */
.radios { display: flex; flex-direction: column; gap: 10px; }
.radios label { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.radios input { width: 18px; height: 18px; margin: 0; accent-color: var(--se-black); }

/* Drop zone + Datei-Chip (COMPONENTS DropZone) */
.dropzone {
  background: var(--se-beige); border: 1.5px dashed var(--border-control); border-radius: var(--r); padding: 20px 24px;
  display: flex; align-items: center; gap: 16px; transition: border-color var(--t);
}
.dropzone.drag { border-color: var(--se-black); }
.dz-icon {
  width: 48px; height: 48px; background: var(--se-white); border-radius: var(--r); display: flex; align-items: center;
  justify-content: center; color: var(--accent); flex: none;
}
.dz-text { flex-grow: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dz-title { font-size: 17px; font-weight: 700; }
.dz-hint { font-size: 15px; color: var(--text-muted); }
.dropzone .btn { flex: none; }
.filechip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--border); }
.filechip .ext { background: var(--se-black); color: var(--se-white); font-size: 11px; font-weight: 800; border-radius: 2px; padding: 3px 7px; letter-spacing: 0.06em; text-transform: uppercase; }
.filechip .name { flex: 1; font-size: 15px; font-weight: 600; min-width: 120px; overflow-wrap: anywhere; }
.files { display: flex; flex-direction: column; }

/* Autorenblock */
.author { border: 1px solid var(--border); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.author-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.author-h h3 { margin: 0; font-size: 17px; font-weight: 700; }
.photo-row { display: flex; gap: 16px; align-items: center; }
.avatar-lg {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--desk-gray-100); flex: none;
  display: flex; align-items: center; justify-content: center; color: var(--accent); font-weight: 700; font-size: 20px;
}
.photo-row .dropzone { flex: 1; padding: 14px 18px; }
.results { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--r); }
.results button {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--border);
  background: var(--se-white); text-align: left; font-size: 15px; font-weight: 600;
}
.results button:last-child { border-bottom: 0; }
.results button:hover { background: var(--se-beige); }
.results img, .results .ini { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--desk-gray-100); flex: none; }
.results .ini { display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--accent); }
.results .none { padding: 12px 14px; font-size: 14px; color: var(--text-muted); }

/* Autorenbox wie auf der Website (.abox-mock in style.css) */
.abox-mock { padding: 20px; background: var(--se-beige); border: 1px solid var(--border); border-radius: var(--r); }
.abox-l { margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px dotted var(--border-control); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; display: flex; justify-content: space-between; gap: 12px; }
.abox-l button { border: 0; background: transparent; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); padding: 0; }
.abox-l button:hover { color: var(--text); }
.abox-body { display: flex; gap: 16px; align-items: flex-start; }
.abox-text { flex: 1; min-width: 0; }
.abox-n { margin: 0 0 6px; color: var(--accent); font-size: 16px; font-weight: 600; }
.abox-bio { font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.abox-bio p { margin: 0 0 8px; }

/* Hinweise */
.notice { border-radius: var(--r); padding: 14px 16px; font-size: 15px; display: flex; flex-direction: column; gap: 6px; }
.notice.attention { background: var(--tint-attention-bg); color: var(--tint-attention-text); }
.notice.info { background: var(--tint-info-bg); color: var(--tint-info-text); }
.notice ul { margin: 0; padding-left: 20px; }
.notice a { color: inherit; font-weight: 600; }
.notice b { font-weight: 700; }

/* Status-Pill */
.status {
  display: inline-flex; align-items: center; gap: 6px; height: var(--h-status); padding: 0 10px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 700; background: var(--tint-neutral-bg); color: var(--tint-neutral-text); align-self: flex-start;
}
.status.ready { background: var(--tint-success-bg); color: var(--tint-success-text); }
.status .i { width: 14px; height: 14px; stroke-width: 2.2; }

/* Fuß des Formulars */
.pt-submit { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.pt-submit-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; width: 100%; }
.pt-submit-row .grow { flex-grow: 1; }

/* Bestätigung */
.pt-done { display: flex; flex-direction: column; gap: 16px; }
.pt-done .ref { font-size: 15px; color: var(--text-secondary); }
.pt-done .ref b { color: var(--text); }
.pt-steps { margin: 0; padding-left: 20px; font-size: 17px; line-height: 1.6; color: var(--text-secondary); display: flex; flex-direction: column; gap: 6px; }

/* Dialog */
.scrim { position: fixed; inset: 0; background: var(--scrim); display: grid; place-items: center; padding: 16px; z-index: 50; }
.dialog { background: var(--se-white); border-radius: var(--r); box-shadow: var(--shadow-dialog); padding: 28px; max-width: 460px; width: 100%; display: flex; flex-direction: column; gap: 14px; }
.dialog h2 { margin: 0; font-size: 20px; font-weight: 800; }
.dialog p { margin: 0; color: var(--text-secondary); }
.dialog .acts { display: flex; justify-content: flex-end; gap: 12px; margin-top: 8px; }

/* ---------- Mobil ---------- */
@media (max-width: 767px) {
  .pt-bar { height: 56px; padding: 0 16px; }
  .wordmark .wm { font-size: 20px; }
  .pt-guide { font-size: 14px; }
  .pt-page { padding: 28px 16px 48px; gap: 32px; }
  .pt-card { padding: 20px 16px; }
  .pt-row { grid-template-columns: 1fr; }
  .author { padding: 18px 16px; }
  .dropzone { flex-wrap: wrap; padding: 16px; }
  .dropzone .btn, .pt-submit .btn.primary, .pt-card .btn { width: 100%; }
  .photo-row { align-items: flex-start; flex-direction: column; }
  .photo-row .dropzone { width: 100%; }
  .pt-foot { padding: 20px 16px; }
  .seg { align-self: stretch; }
  .seg button { flex: 1; padding: 0 6px; font-size: 13px; white-space: nowrap; }
  .wordmark { gap: 8px; }
  .wordmark .wd { font-size: 11px; letter-spacing: 0.12em; }
  .pt-guide .long { display: none; }
  .pt-guide .short { display: inline; }
}

/* Ergänzungen: Überschrift der Bestätigung, Autorenliste */
.pt-h1 { margin: 0; font-size: var(--fs-h1); line-height: var(--lh-tight); font-weight: 800; letter-spacing: -0.02em; }
.pt-lead { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text-secondary); }
.pt-sec-list { display: flex; flex-direction: column; gap: 16px; }
/* Runde 2: Revisionsbitte des Editors */
.pt-request { background: var(--se-beige); border-radius: var(--r); padding: 20px 24px; white-space: pre-wrap; font-size: 16px; line-height: 1.65; color: var(--text); overflow-wrap: anywhere; }
.status.info { background: var(--tint-info-bg); color: var(--tint-info-text); }
