:root { color-scheme: light; }
body { margin: 0; background: #f7f6f3; color: #1d1d1f; font: 16px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
main { max-width: 620px; margin: 0 auto; padding: 48px 20px 80px; }
h1 { font-size: 28px; line-height: 1.2; margin: 0 0 10px; }
nav { font-size: 14px; margin-bottom: 26px; }
a { color: #6d1fd1; }
.card { background: #fff; border: 1px solid #e3e0da; border-radius: 16px; padding: 22px 24px; margin: 20px 0; }
label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 4px; }
label small { font-weight: 400; color: #6b6b70; }
input, select, textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 10px 12px; border: 1px solid #cfcac2; border-radius: 10px; background: #fff; }
textarea { min-height: 80px; }
.radio { display: flex; gap: 8px; align-items: center; font-weight: 400; margin: 6px 0; }
.radio input { width: auto; }
.big-btn { display: inline-block; margin-top: 20px; background: #b3261e; color: #fff; border: none; font: inherit; font-weight: 700; font-size: 17px; padding: 14px 26px; border-radius: 12px; cursor: pointer; }
.big-btn.primary { background: #6d1fd1; }
.big-btn:disabled { opacity: 0.55; cursor: default; }
.muted { color: #6b6b70; font-size: 14px; }
.error { color: #b3261e; font-weight: 600; }
.hidden { display: none !important; }
.ok { border-color: #3a8a4a; background: #f1faf2; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 12px 0; }
dt { color: #6b6b70; }
dd { margin: 0; }
.brandline { font-weight: 800; letter-spacing: 0.12em; font-size: 13px; color: #6d1fd1; margin-bottom: 8px; }
fieldset { border: none; padding: 0; margin: 0; }
legend { font-weight: 600; font-size: 14px; margin: 14px 0 4px; }
#effective-date { margin-top: 6px; max-width: 220px; }
.print-btn { margin-top: 14px; background: #fff; color: #1d1d1f; border: 1px solid #cfcac2; border-radius: 10px; padding: 10px 16px; font: inherit; cursor: pointer; }
@media print { .print-btn, .no-print { display: none !important; } body { background: #fff; } .card { border: none; } }
/* Installierte App (Homescreen): Platz fuer die Statusleiste und ein Weg zurueck in den Kundenbereich */
.app-back { display: none; }
@media (display-mode: standalone) {
  main { padding-top: max(48px, calc(env(safe-area-inset-top) + 20px)); }
  /* Statusleiste ist durchsichtig mit weisser Schrift: dunkler Streifen dahinter, damit Uhrzeit & Co. lesbar sind */
  body::before { content: ''; position: fixed; top: 0; left: 0; right: 0; z-index: 10; height: env(safe-area-inset-top); background: #1d1d1f; }
  .app-back { display: inline-block; margin-bottom: 18px; font-size: 15px; font-weight: 600; text-decoration: none; }
}
