:root {
  --yellow: #FAB510;
  --navy: #17263C;
  --ink: #243247;
  --muted: #6b7484;
  --line: #e3e5e9;
  --bg: #ffffff;
  --ok: #1c7c54;
  --err: #b3261e;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(23, 38, 60, .12);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  font-family: "Inter Tight", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff url("/assets/triangles.svg") center / cover fixed no-repeat;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .raleway {
  font-family: Raleway, "Inter Tight", system-ui, sans-serif;
  color: var(--navy);
  letter-spacing: -.01em;
}

a { color: var(--navy); }

.wrap {
  width: min(100% - 32px, 520px);
  margin: 0 auto;
  padding: 28px 0 56px;
}

.brand {
  display: flex;
  justify-content: center;
  margin: 8px 0 26px;
}

.brand img {
  width: min(260px, 70vw);
  height: auto;
  display: block;
}

.card {
  background: rgba(255, 255, 255, .93);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 26px;
  backdrop-filter: blur(6px);
}

.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--yellow);
  border-radius: 6px;
  padding: 4px 8px;
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(28px, 6vw, 36px);
  line-height: 1.1;
  margin: 0 0 10px;
}

.lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 6px;
}

.field { margin-bottom: 14px; }

input[type=text], input[type=tel], input[type=email] {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 13px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(23, 38, 60, .1);
}

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 18px 0 20px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.consent input { margin-top: 2px; accent-color: var(--navy); width: 18px; height: 18px; flex: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 14px 18px;
  font: 700 16px/1 "Inter Tight", system-ui, sans-serif;
  color: var(--navy);
  background: var(--yellow);
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s, box-shadow .12s, background .12s;
}

.btn:hover { background: #ffc22e; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: default; }

.btn.secondary {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line);
  font-weight: 600;
}

.btn.secondary:hover { background: #f7f7f8; }

.hint {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.error {
  display: none;
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fdf0ef;
  color: var(--err);
  font-size: 14px;
  line-height: 1.45;
}

.error.show { display: block; }

.steps { list-style: none; margin: 6px 0 0; padding: 0; }

.steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f1f3;
  font-size: 15px;
  color: var(--muted);
}

.steps li:last-child { border-bottom: 0; }

.steps .dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #d8dbe1;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: transparent;
  transition: all .2s;
}

.steps li.active { color: var(--navy); font-weight: 600; }
.steps li.active .dot { border-color: var(--navy); border-right-color: transparent; animation: spin .8s linear infinite; }
.steps li.done { color: var(--navy); }
.steps li.done .dot { border-color: var(--yellow); background: var(--yellow); color: var(--navy); }

@keyframes spin { to { transform: rotate(360deg); } }

.progress-note {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.cred {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: #fff;
}

.cred .role {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.cred .login {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  word-break: break-all;
}

.copy {
  margin-top: 8px;
  border: 0;
  background: #f2f3f5;
  color: var(--navy);
  border-radius: 8px;
  padding: 7px 10px;
  font: 600 12.5px/1 "Inter Tight", sans-serif;
  cursor: pointer;
}

.copy:hover { background: #e9eaee; }

.pass {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 4px 0 18px;
}

.pass .label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.pass .value { font-size: 18px; font-weight: 700; letter-spacing: .02em; font-family: "Inter Tight", monospace; }

.pass .copy { background: rgba(255,255,255,.12); color: #fff; }
.pass .copy:hover { background: rgba(255,255,255,.2); }

.field-hint { margin: 5px 0 0; font-size: 12px; line-height: 1.4; color: var(--muted); }

.section-title {
  font-family: Raleway, system-ui, sans-serif;
  font-size: 16px;
  color: var(--navy);
  margin: 24px 0 10px;
}

.downloads { display: grid; gap: 9px; margin: 0 0 4px; }
.app-dl {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 13px;
  text-decoration: none;
  background: #fff;
  color: var(--navy);
}
.app-dl:hover { border-color: var(--navy); }
.app-dl img { width: 44px; height: 44px; border-radius: 10px; flex: none; }
.app-dl-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.app-dl-text b { font-size: 15px; }
.app-dl-text small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-dl .arrow { margin-left: auto; font-size: 22px; line-height: 1; color: var(--navy); }

.save-card { margin: 0 0 18px; }

.ticket-tile {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 20px 0 0;
  padding: 15px 16px;
  border-radius: 12px;
  background: var(--yellow);
  color: var(--navy);
  text-decoration: none;
  font-size: 14px;
  transition: background .12s;
}
.ticket-tile b { font-weight: 700; }
.ticket-tile .arrow { margin-left: auto; font-size: 18px; line-height: 1; }
.ticket-tile:hover { background: #ffc22e; }

.note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 18px;
}

.note b { color: var(--navy); }

.badge-ok {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer {
  margin-top: 22px;
  text-align: center;
  font-size: 11.5px;
  color: #98a0ad;
  line-height: 1.6;
}

.admin { width: min(100% - 32px, 1100px); }
.admin .card { padding: 22px; }
.admin table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line); }
.admin td { padding: 9px 8px; border-bottom: 1px solid #f1f2f4; vertical-align: top; }
.admin tr:hover td { background: #fafafb; }
.st { display: inline-block; padding: 3px 7px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.st.fertig { background: #e5f3eb; color: var(--ok); }
.st.laeuft { background: #fff4d6; color: #8a5a00; }
.st.fehler { background: #fdeceb; color: var(--err); }
.st.neu { background: #eef0f3; color: var(--muted); }
.dots { display: flex; gap: 3px; flex-wrap: wrap; }
.dots span { width: 16px; height: 16px; border-radius: 4px; background: #e9eaee; font-size: 9px; display: grid; place-items: center; color: #8a93a3; }
.dots span.ok { background: var(--yellow); color: var(--navy); font-weight: 700; }
.dots span.err { background: #f5c6c3; color: var(--err); font-weight: 700; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.actions button { border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 5px 8px; font: 600 11px/1 "Inter Tight", sans-serif; color: var(--navy); cursor: pointer; }
.actions button:hover { background: #f4f5f7; }
.errmsg { color: var(--err); font-size: 11px; max-width: 260px; word-break: break-word; }
.muted { color: var(--muted); }

@media (max-width: 420px) {
  .row { grid-template-columns: 1fr; gap: 0; }
  .card { padding: 22px 18px; }
  .wrap { padding-top: 18px; }
}
