/* Öffentliche Seite „Daten sicher senden“ (verschlüsselter Datenversand).
   Gestaltung „Klar“ wie die Firmen-Webseite: heller Grund, schwarze Knöpfe ohne Rundung,
   Signalrot nur als Akzent. Schriften als lokale Kopie (SIL OFL, static/fonts/druckerei-website/).
   Die Seite läuft mit strenger Content-Security-Policy: keine Inline-Stile, nichts von Dritten. */

@font-face{
  font-family:"Schibsted Grotesk"; font-style:normal; font-weight:400 900; font-display:swap;
  src:url("../fonts/druckerei-website/schibsted-grotesk-latin-ext.woff2") format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face{
  font-family:"Schibsted Grotesk"; font-style:normal; font-weight:400 900; font-display:swap;
  src:url("../fonts/druckerei-website/schibsted-grotesk-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:"Instrument Sans"; font-style:normal; font-weight:400 700; font-display:swap;
  src:url("../fonts/druckerei-website/instrument-sans-latin-ext.woff2") format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face{
  font-family:"Instrument Sans"; font-style:normal; font-weight:400 700; font-display:swap;
  src:url("../fonts/druckerei-website/instrument-sans-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root{
  --rot:#e2001a;
  --schwarz:#101114;
  --weiss:#fcfcfb;
  --flaeche:#f2f2f0;
  --linie:#e2e3e0;
  --linie-feld:#c9cbc7;
  --text:#101114;
  --text-mut:#5f6167;
  --gruen:#1f7a3d;
  --display:"Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body:"Instrument Sans", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after{ box-sizing:border-box; }
[hidden]{ display:none !important; }
body{
  margin:0;
  font-family:var(--body);
  font-size:16.5px; line-height:1.6;
  color:var(--text); background:var(--weiss);
  -webkit-font-smoothing:antialiased;
}
a{ color:inherit; text-underline-offset:3px; }
h1, h2{ margin:0; }
p{ margin:0 0 1em; }
:focus-visible{ outline:2px solid var(--schwarz); outline-offset:2px; }

.inhalt{ max-width:808px; margin:0 auto; padding-left:24px; padding-right:24px; }

/* ---------- Firmenkopf ---------- */
.kopf{ border-bottom:1px solid var(--linie); }
.kopf .inhalt{ padding-top:22px; padding-bottom:20px; }
.firma-name{ font-family:var(--display); font-weight:600; font-size:20px; letter-spacing:-.01em; margin:0; }
.firma-zeile{ font-size:14px; color:var(--text-mut); margin:2px 0 0; }

/* ---------- Seitenkopf ---------- */
.haupt{ padding-top:56px; padding-bottom:72px; }
.kicker{
  display:flex; align-items:flex-start; gap:8px;
  font-size:13px; font-weight:500; letter-spacing:.1em; text-transform:uppercase;
  color:var(--text-mut); margin:0 0 14px;
}
.kicker::before{ content:""; width:7px; height:7px; border-radius:50%; background:var(--rot); flex:none; margin-top:.5em; }
.display{
  font-family:var(--display); font-weight:600;
  font-size:clamp(38px, 6.4vw, 64px);
  letter-spacing:-.02em; line-height:1.05; margin-bottom:22px;
}
.einleitung{ max-width:60ch; color:var(--text); margin-bottom:36px; }

/* ---------- Formular ---------- */
.formular-raster{ display:grid; grid-template-columns:1fr 1fr; gap:18px 20px; }
.feld{ display:flex; flex-direction:column; gap:6px; min-width:0; }
.feld--voll{ grid-column:1 / -1; }
.feld label{ font-size:12.5px; font-weight:500; text-transform:uppercase; letter-spacing:.08em; color:var(--text-mut); }
.feld input, .feld textarea{
  font-family:var(--body); font-size:16px; color:var(--text);
  padding:0 14px; height:48px; border:1px solid var(--linie-feld); background:#fff;
  border-radius:0; appearance:none; -webkit-appearance:none; width:100%;
}
.feld textarea{ min-height:96px; height:auto; padding:12px 14px; resize:vertical; }
.feld input:focus, .feld textarea:focus{ outline:2px solid var(--schwarz); outline-offset:-1px; border-color:var(--schwarz); }
.feld input:disabled, .feld textarea:disabled{ background:var(--flaeche); color:var(--text-mut); }
.pflicht{ color:var(--rot); }
.freiwillig{ text-transform:none; letter-spacing:0; font-weight:400; }
.extra-feld{ position:absolute; left:-9999px; width:1px; height:1px; opacity:0; overflow:hidden; }

/* ---------- Dateien ---------- */
.dateien{ margin-top:32px; }
.zwischentitel{ font-family:var(--display); font-weight:600; font-size:22px; letter-spacing:-.01em; margin-bottom:12px; }
.ablage{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px;
  text-align:center; cursor:pointer;
  padding:34px 20px; background:var(--flaeche); border:1px dashed #a9aba6;
}
.ablage:hover, .ablage--aktiv{ border-color:var(--schwarz); border-style:solid; background:#ecece9; }
.ablage-titel{ font-weight:500; }
.ablage-titel u{ text-decoration-color:var(--rot); text-decoration-thickness:2px; }
.ablage-info{ font-size:13.5px; color:var(--text-mut); }
.datei-eingabe{ position:absolute; width:1px; height:1px; opacity:0; overflow:hidden; }
.datei-eingabe:focus-visible + .ablage{ outline:2px solid var(--schwarz); outline-offset:2px; }

.liste{ list-style:none; margin:14px 0 0; padding:0; border-top:1px solid var(--linie); }
.liste:empty{ display:none; }
.liste li{
  display:grid; grid-template-columns:1fr auto; align-items:center; gap:4px 14px;
  padding:12px 0; border-bottom:1px solid var(--linie);
}
.datei-name{ font-weight:500; overflow-wrap:anywhere; }
.datei-info{ font-size:13.5px; color:var(--text-mut); }
.datei-info--fehler{ color:var(--rot); }
.datei-info--ok{ color:var(--gruen); }
.datei-pruefsumme{
  font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size:12px; line-height:1.4; color:var(--text-mut); margin-top:2px;
  word-break:break-all; overflow-wrap:anywhere;
}
.datei-pruefsumme--wartet{ font-family:var(--body); font-size:13px; }
.datei-zeile{ grid-column:1 / -1; }
.liste progress{ grid-column:1 / -1; width:100%; height:6px; appearance:none; -webkit-appearance:none; border:0; background:var(--linie); }
.liste progress::-webkit-progress-bar{ background:var(--linie); }
.liste progress::-webkit-progress-value{ background:var(--schwarz); }
.liste progress::-moz-progress-bar{ background:var(--schwarz); }
.liste li.fertig progress::-webkit-progress-value{ background:var(--gruen); }
.liste li.fertig progress::-moz-progress-bar{ background:var(--gruen); }
.liste li.fehler progress::-webkit-progress-value{ background:var(--rot); }
.liste li.fehler progress::-moz-progress-bar{ background:var(--rot); }

/* ---------- Knöpfe ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  height:50px; padding:0 28px;
  font-family:var(--body); font-weight:500; font-size:16px; text-decoration:none;
  background:var(--schwarz); color:#fff; border:1px solid var(--schwarz); border-radius:0;
  white-space:nowrap; cursor:pointer;
  transition:background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover{ background:var(--rot); border-color:var(--rot); color:#fff; }
.btn:disabled{ background:#8a8c91; border-color:#8a8c91; cursor:not-allowed; }
.btn--kontur{ background:transparent; color:var(--schwarz); }
.btn--kontur:hover{ background:var(--schwarz); border-color:var(--schwarz); color:#fff; }
.btn--klein{ height:36px; padding:0 14px; font-size:14px; }
.btn-reihe{ display:flex; gap:12px; flex-wrap:wrap; margin-top:24px; }

/* ---------- Hinweise ---------- */
.datenschutz-hinweis{ font-size:13.5px; color:var(--text-mut); margin:20px 0 0; max-width:70ch; }
.hinweis{ padding:14px 16px; border-left:3px solid var(--schwarz); background:var(--flaeche); margin:20px 0; }
.hinweis--fehler{ border-left-color:var(--rot); }
.hinweis--ok{ border-left-color:var(--gruen); }
.bestaetigung{ font-family:var(--display); font-weight:600; font-size:clamp(24px, 3.6vw, 32px); line-height:1.2; letter-spacing:-.01em; margin-bottom:16px; }

/* Ohne laufendes Skript (sehr alter Browser, Skript blockiert) erscheint der Hinweis nach
   kurzer Zeit von selbst; das Skript setzt .ds-js und steuert ihn dann selbst. */
.ohne-skript{ visibility:hidden; animation:ds-zeigen 0s linear 4s forwards; }
.ds-js .ohne-skript{ display:none; }
@keyframes ds-zeigen{ to{ visibility:visible; } }

/* ---------- Upload-Link (Seite eines Perso-Auftrags) ---------- */
.fuer{ margin-bottom:28px; }
.fuer-firma{ color:var(--text-mut); }
.bereits{ margin-bottom:36px; }
.gueltig-hinweis{ font-size:14.5px; margin:20px 0 0; max-width:70ch; }

/* ---------- Fuß ---------- */
.fuss{ border-top:1px solid var(--linie); }
.fuss .inhalt{ padding-top:20px; padding-bottom:28px; font-size:13.5px; color:var(--text-mut); }

@media (max-width:640px){
  .haupt{ padding-top:36px; padding-bottom:48px; }
  .formular-raster{ grid-template-columns:1fr; }
  .btn{ width:100%; }
  .btn--klein{ width:auto; }
  .btn-reihe{ flex-direction:column; gap:10px; }
}
@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; }
}
