/* CI Schiertz & Lämmer: Blau #1476DC / #0E5AA8, Anthrazit #343434, Roboto Condensed */
@font-face { font-family: "Roboto Condensed"; font-weight: 300; font-style: normal; font-display: swap; src: url("fonts/roboto-condensed-300.woff2") format("woff2"); }
@font-face { font-family: "Roboto Condensed"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/roboto-condensed-400.woff2") format("woff2"); }
@font-face { font-family: "Roboto Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/roboto-condensed-700.woff2") format("woff2"); }

:root {
  --brand: #1476dc;
  --brand-dark: #0e5aa8;
  --anthracite: #343434;
  --bg: var(--brand-dark);
  --card: #ffffff;
  --text: #343434;
  --muted: #666977;
  --line: #dcdde2;
  --soft: #f2f3f5;
  --accent: #1476dc;
  --accent-hover: #0e5aa8;
  --accent-soft: rgba(20, 118, 220, .08);
  --danger: #c62828;
  --warn-bg: #fff6e5;
  --warn: #8a5300;
  --ok: #1476dc;
  --radius: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --card: #2b2b2b;
    --text: #ececec;
    --muted: #a3a5ae;
    --line: #454545;
    --soft: #383838;
    --accent: #4a9aec;
    --accent-hover: #74b2f1;
    --accent-soft: rgba(74, 154, 236, .14);
    --warn-bg: #3d2c0a;
    --warn: #f3c46b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --card: #2b2b2b; --text: #ececec; --muted: #a3a5ae; --line: #454545; --soft: #383838;
  --accent: #4a9aec; --accent-hover: #74b2f1; --accent-soft: rgba(74, 154, 236, .14); --warn-bg: #3d2c0a; --warn: #f3c46b;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font: 16px/1.5 "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  display: flex; flex-direction: column; min-height: 100vh;
}

.bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 80% at 90% 10%, rgba(255, 255, 255, .14) 0%, transparent 60%),
    radial-gradient(60% 70% at 0% 100%, rgba(0, 0, 0, .18) 0%, transparent 60%),
    linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
}
/* Großes „&“ als ruhiges Markenelement */
.bg::after {
  content: "&";
  position: absolute; right: -2vw; bottom: -18vh;
  font: 300 min(90vh, 70vw)/1 "Roboto Condensed", sans-serif;
  color: rgba(255, 255, 255, .07);
  pointer-events: none;
}

.topbar { background: var(--anthracite); padding: 10px 28px; }
.brand { display: inline-flex; align-items: center; gap: 16px; color: #fff; text-decoration: none; }
.brand-logo { display: block; width: 131px; height: 60px; }
.brand-name { font-weight: 300; font-size: 18px; letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .75); padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .25); }

.footer { margin-top: auto; padding: 16px 28px; font-size: 14px; color: rgba(255, 255, 255, .8); display: flex; gap: 18px; flex-wrap: wrap; }
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }

.stage { padding: 40px 28px 48px; display: flex; }

.card {
  width: 100%; max-width: 380px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.card.center { text-align: center; }
.card h1 { font-size: 28px; font-weight: 400; line-height: 1.2; margin: 0 0 6px; }
.card h2 { font-size: 24px; font-weight: 400; margin: 12px 0 4px; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
em.muted { font-style: normal; font-weight: 400; }
.eyebrow { margin: 0 0 4px; font-size: 13px; color: var(--accent); font-weight: 600; word-break: break-all; }

/* Dropzone */
.dropzone {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 18px;
  border: 2px dashed var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone:focus-visible { border-color: var(--accent); background: var(--accent-soft); outline: none; }
.dz-plus {
  flex: none; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 26px; line-height: 1;
}
.dropzone.compact { padding: 12px 14px; }
.dropzone.compact .dz-plus { width: 32px; height: 32px; font-size: 20px; }

.drop-overlay {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  background: rgba(14, 90, 168, .9);
  color: #fff; font-size: 28px; font-weight: 700;
  opacity: 0; pointer-events: none; transition: opacity .15s;
}
.drop-overlay > div { border: 3px dashed rgba(255,255,255,.8); border-radius: 24px; padding: 48px 64px; }
.drop-overlay.show { opacity: 1; }

/* Dateiliste */
.files { list-style: none; margin: 12px 0 0; padding: 0; max-height: 220px; overflow-y: auto; }
.file { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--soft); }
.file-icon {
  flex: none; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--soft); color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .03em;
}
.file-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.file-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.icon-btn {
  flex: none; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  border: 0; background: transparent; color: var(--muted);
  font-size: 18px; cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: var(--soft); color: var(--text); }

/* Formular */
.field { display: block; margin: 14px 0 0; padding: 0; border: 0; }
.field > span, .field > legend { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; padding: 0; }
input[type="email"], input[type="text"], input[type="password"], textarea {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); color: var(--text);
  font: inherit; resize: vertical;
}
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }

.segmented { display: flex; background: var(--soft); border-radius: 10px; padding: 3px; }
.segmented label { flex: 1; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  display: block; text-align: center; padding: 7px 4px; border-radius: 8px;
  font-size: 13px; cursor: pointer; color: var(--muted); font-weight: 500;
}
.segmented input:checked + span { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.segmented input:focus-visible + span { outline: 2px solid var(--accent); }

.check { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--soft); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.ghost { border-color: transparent; color: var(--muted); margin-top: 12px; }
.btn.block { display: flex; width: 100%; margin-top: 20px; padding: 14px; font-size: 16px; }

.error { color: var(--danger); font-size: 14px; margin: 14px 0 0; }
.notice { background: var(--warn-bg); color: var(--warn); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 16px 0 0; }
.notice.ok { background: var(--accent-soft); color: var(--accent); text-align: center; }

.message {
  margin: 16px 0 0; padding: 12px 14px;
  background: var(--soft); border-radius: 12px;
  white-space: pre-wrap; word-break: break-word;
}

/* Fortschritt */
.ring {
  --p: 0;
  width: 132px; height: 132px; margin: 8px auto 0; border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--soft) 0);
  transition: background .2s;
}
.ring span {
  display: grid; place-items: center; width: 110px; height: 110px; border-radius: 50%;
  background: var(--card); font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums;
}

/* Ergebnis */
.state { text-align: center; padding: 12px 0; }
.state-icon {
  width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 50%;
  display: grid; place-items: center; font-size: 30px;
  background: var(--soft);
}
.state-icon.ok { background: var(--ok); color: #fff; }
.linkbox { display: flex; gap: 8px; margin-top: 18px; }
.linkbox input { flex: 1; min-width: 0; font-size: 13px; }

@media (max-width: 560px) {
  .topbar { padding: 8px 16px; }
  .brand-logo { width: 105px; height: 48px; }
  .brand-name { font-size: 15px; padding-left: 12px; }
  .footer { padding: 12px 16px; }
  .stage { padding: 4px 16px 32px; }
  .card { max-width: none; padding: 20px; }
}
.center { text-align: center; }
