* { box-sizing: border-box; }
body { font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; margin: 0; background: #f3f5f8; color: #1c2733; }
.container { max-width: 900px; margin: 0 auto; padding: 16px; }
header.topbar { background: #10365c; color: #fff; padding: 12px 0; }
header.topbar .container { display: flex; align-items: center; justify-content: space-between; padding-top: 0; padding-bottom: 0; }
header.topbar a { color: #fff; text-decoration: none; margin-left: 16px; font-size: 15px; }
header.topbar .brand { font-weight: 700; font-size: 17px; }
h1 { font-size: 22px; } h2 { font-size: 17px; margin-top: 28px; }
.card { background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.08); margin-bottom: 16px; }
label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 4px; }
input[type=text], input[type=email], input[type=password], input[type=tel] {
  width: 100%; padding: 10px; border: 1px solid #c6cfd9; border-radius: 6px; font-size: 15px;
}
.zeile { display: flex; gap: 12px; } .zeile > div { flex: 1; }
.btn { display: inline-block; background: #10365c; color: #fff; border: 0; padding: 11px 20px; border-radius: 7px;
  font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn.gruen { background: #1e7d43; } .btn.grau { background: #6b7a89; } .btn.rot { background: #b03030; }
.btn.gross { width: 100%; padding: 14px; font-size: 17px; }
.hinweis { background: #fff8e1; border: 1px solid #e8d48a; border-radius: 8px; padding: 12px 14px; font-size: 14px; }
.meldung { background: #e3f2e8; border: 1px solid #9fceb0; border-radius: 8px; padding: 12px 14px; margin-bottom: 14px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #e3e8ee; font-size: 14px; }
.status { padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.status.offen { background: #fdecd0; color: #8a5a00; }
.status.unterschrieben { background: #d9f0e1; color: #196b3c; }
.seitenbild { width: 100%; border: 1px solid #d7dee6; border-radius: 6px; margin-bottom: 10px; display: block; }
.sigpad { border: 2px dashed #9fb0c1; border-radius: 8px; background: #fbfdff; width: 100%; touch-action: none; }
.sig-tools { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.klein { font-size: 13px; color: #55707e; }
.check { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0; font-size: 14px; }
.check input { margin-top: 3px; width: 18px; height: 18px; }
.linkbox { background: #eef3f8; border: 1px solid #c9d6e2; border-radius: 6px; padding: 10px; font-family: monospace; font-size: 13px; word-break: break-all; }
.aktionen { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.kontaktzeile { display: flex; align-items: center; gap: 14px; margin: 6px 0; font-size: 14px; }
.kontaktzeile span:first-child { width: 100px; font-weight: 600; }
details summary { cursor: pointer; font-weight: 600; margin: 14px 0 6px; }
.bestandzeile { display: flex; gap: 8px; margin-bottom: 6px; }
.bestandzeile input { flex: 1; }
@media (max-width: 600px) { .zeile { flex-direction: column; gap: 0; } }

/* ===== Kundenseite (Unterschrift-Wizard) ===== */
.signwrap { max-width: 720px; margin: 0 auto; }
.sign-header { text-align: center; padding: 18px 0 6px; }
.sign-brand { font-size: 26px; font-weight: 800; letter-spacing: 3px; color: #10365c; }
.steps { display: flex; justify-content: center; gap: 6px; margin: 14px 0 20px; }
.step { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #8a99a8; padding: 6px 12px; border-radius: 20px; background: #e8edf3; }
.step span { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: #c2cdd8; color: #fff; font-size: 12px; font-weight: 700; }
.step.aktiv { background: #10365c; color: #fff; }
.step.aktiv span { background: #fff; color: #10365c; }
.step.erledigt span { background: #1e7d43; }
.teil-liste { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.teil { background: #f2f6fa; border-radius: 8px; padding: 12px 14px; font-size: 15px; }
.teil span { display: block; font-size: 13px; color: #55707e; font-weight: 400; margin-top: 2px; }
.datenblock { border: 1px solid #dfe6ee; border-radius: 8px; overflow: hidden; margin: 10px 0; }
.datenblock > div { display: flex; padding: 9px 12px; font-size: 14px; border-bottom: 1px solid #eef2f6; }
.datenblock > div:last-child { border-bottom: 0; }
.datenblock span { width: 110px; flex-shrink: 0; font-weight: 600; color: #55707e; }
details.doc { border: 1px solid #dfe6ee; border-radius: 10px; margin: 10px 0; background: #fff; }
details.doc summary { padding: 14px; font-size: 16px; font-weight: 700; list-style: none; position: relative; }
details.doc summary::after { content: "▾"; position: absolute; right: 14px; color: #8a99a8; transition: transform .2s; }
details.doc[open] summary::after { transform: rotate(180deg); }
.doc-sub { display: block; font-size: 13px; font-weight: 400; color: #55707e; margin-top: 2px; }
.doc-text { padding: 0 14px 14px; }
.doc-text p { font-size: 15px; line-height: 1.55; }
.doc-text h3 { font-size: 15px; margin: 18px 0 6px; color: #10365c; }
.doc-text .parteien { background: #f2f6fa; border-radius: 8px; padding: 12px; }
.stickybar { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid #dfe6ee;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 10px; justify-content: space-between; z-index: 50; }
.stickybar .btn.gruen { flex: 1; max-width: 480px; margin-left: auto; padding: 14px; font-size: 16px; }
.lightbox { display: none; position: fixed; inset: 0; background: rgba(10,20,30,.92); z-index: 100; flex-direction: column; }
.lightbox.offen { display: flex; }
.lightbox-kopf { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; }
.lightbox-inhalt { flex: 1; overflow: auto; padding: 0 10px 20px; -webkit-overflow-scrolling: touch; }
.lightbox-inhalt img { width: 100%; max-width: 900px; display: block; margin: 0 auto 12px; border-radius: 4px; background: #fff; }
