:root {
  --paper: #faf9f6;
  --surface: #ffffff;
  --ink: #17383c;
  --muted: #526e62;
  --line: #cbd8ce;
  --green: #214940;
  --soft-green: #edf2eb;
  --rose: #a24f62;
  --soft-rose: #f5e9e9;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", system-ui, sans-serif; font-size: 16px; line-height: 1.6; }
a { color: inherit; text-underline-offset: 4px; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--rose); outline-offset: 4px; }
[hidden] { display: none !important; }
.skip-link { position: absolute; top: 8px; left: 8px; padding: 12px 20px; background: var(--surface); z-index: 5; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.page-header, main, .page-footer { width: min(960px, calc(100% - 48px)); margin-inline: auto; }
.page-header { min-height: 100px; display: flex; justify-content: space-between; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { text-decoration: none; font-size: 24px; font-weight: 800; letter-spacing: -1px; }
.brand span { color: var(--rose); }
.back-link { font-size: 14px; font-weight: 700; }
.back-link span { margin-left: 8px; }
.intro { max-width: 760px; padding-block: 56px 24px; }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--rose); margin: 0 0 20px; }
h1 { font-size: clamp(40px, 6.5vw, 64px); font-weight: 800; line-height: 1.06; letter-spacing: -.055em; margin: 0 0 24px; }
h1 em { font-family: "DM Serif Display", Georgia, serif; color: var(--rose); font-weight: 400; letter-spacing: -.035em; }
.lead { max-width: 660px; color: var(--muted); font-size: 19px; line-height: 1.7; margin: 0 0 28px; }
.privacy-note { background: var(--soft-green); border-left: 3px solid var(--green); padding: 20px 24px; }
.privacy-note p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px 0 28px; }
.toolbar p { font-size: 14px; margin: 0; font-weight: 700; }
.toolbar p span { color: var(--muted); font-weight: 400; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 12px; padding: 12px 22px; border: 1px solid var(--green); border-radius: 6px; background: var(--green); color: white; font-size: 14px; line-height: 1.5; font-weight: 700; cursor: pointer; }
.button:hover { background: var(--ink); }
.button-secondary { background: var(--surface); color: var(--green); }
.button-secondary:hover { background: var(--soft-green); }
.card-section { border-top: 1px solid var(--line); padding: 32px 0 36px; }
.section-heading { display: flex; align-items: baseline; gap: 20px; margin-bottom: 24px; }
.section-number { font-size: 12px; color: var(--rose); font-weight: 800; letter-spacing: .08em; }
h2 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.035em; line-height: 1.3; }
.section-help { margin: 8px 0 0; max-width: 700px; color: var(--muted); font-size: 14px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.field { display: flex; min-width: 0; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-size: 14px; font-weight: 700; }
.field label span { color: var(--muted); font-weight: 400; }
input, textarea, select { width: 100%; min-width: 0; border: 1px solid #8da79a; border-radius: 4px; background: var(--surface); color: var(--ink); padding: 12px 14px; line-height: 1.5; }
input, select { min-height: 50px; }
textarea { resize: vertical; min-height: 88px; }
input::placeholder, textarea::placeholder { color: #62756b; opacity: 1; }
small { font-size: 13px; color: var(--muted); line-height: 1.6; }
.next-step { min-width: 0; margin: 0 0 24px; padding: 20px 24px 4px; border: 1px solid var(--line); }
.next-step legend { padding: 0 8px; font-size: 14px; font-weight: 800; color: var(--green); }
.finish-note { border-top: 1px solid var(--line); padding: 24px 0; font-size: 14px; }
.finish-note p { max-width: 720px; margin: 6px 0 0; color: var(--muted); }
.save-section { padding: 28px 32px 20px; background: var(--soft-green); margin: 12px 0 48px; }
.save-section > p { max-width: 760px; color: var(--muted); font-size: 14px; }
.bottom-actions, .confirm-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin-top: 24px; }
.reset-button { min-height: 48px; padding: 10px 4px; border: 0; background: transparent; color: var(--rose); text-decoration: underline; text-underline-offset: 4px; font-size: 14px; font-weight: 700; cursor: pointer; }
.reset-confirmation { padding: 20px 24px; margin-top: 24px; border: 1px solid var(--rose); background: var(--soft-rose); }
.reset-confirmation p { font-size: 14px; margin: 8px 0 0; }
.status { min-height: 24px; margin-bottom: 0; }
.page-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; padding: 0 0 40px; font-size: 13px; color: var(--muted); }
.page-footer span { margin-left: auto; }
.print-heading, .print-value { display: none; }
.no-script { padding: 20px 24px; border: 1px solid var(--rose); font-size: 14px; }
.sample-card {
  max-width: 760px;
  padding: clamp(20px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.sample-card-heading {
  padding-bottom: 20px;
}
.sample-card-heading p {
  margin: 4px 0 0;
  color: var(--muted);
}
.sample-card dl {
  margin: 0;
}
.sample-card dl > div {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.sample-card dt {
  font-weight: 800;
}
.sample-card dd {
  margin: 4px 0 0;
  color: var(--muted);
}
.sample-card dl .sample-card-tip {
  margin-top: 4px;
  padding: 18px 20px;
  border: 0;
  border-radius: 10px;
  background: var(--soft-green);
}
.sample-card-actions {
  margin-bottom: 42px;
}
.sample-card-actions .button {
  border-radius: 999px;
  text-decoration: none;
}
@media (max-width: 660px) {
  .page-header, main, .page-footer { width: calc(100% - 32px); }
  .page-header { min-height: 80px; gap: 16px; }
  .brand { font-size: 22px; }
  .back-link { font-size: 12px; }
  .intro { padding-top: 36px; }
  .lead { font-size: 17px; }
  .privacy-note { padding: 16px 20px; }
  .toolbar { align-items: stretch; flex-direction: column; gap: 16px; }
  .field-grid, .check-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .section-heading { gap: 12px; }
  h2 { font-size: 23px; }
  .next-step { padding: 16px 16px 0; }
  .save-section { padding: 24px 20px; }
  .bottom-actions, .confirm-actions { align-items: stretch; flex-direction: column; gap: 8px; }
  .reset-button { align-self: flex-start; }
  .reset-confirmation { padding: 16px; }
  .page-footer span { width: 100%; margin-left: 0; }
}
@media print {
  @page { margin: 16mm; }
  body { background: white; color: #111; font-family: Arial, sans-serif; font-size: 10pt; line-height: 1.4; }
  .screen-only, .page-header, .skip-link, .no-script { display: none !important; }
  main { width: auto; margin: 0; }
  .print-heading { display: block; border-bottom: 2px solid #333; padding-bottom: 10pt; margin-bottom: 8pt; }
  .print-heading strong { font-size: 18pt; }
  .print-heading p { margin: 4pt 0 0; font-size: 10pt; }
  .card-section { border-color: #aaa; padding: 14pt 0 8pt; }
  .section-heading { break-after: avoid; margin-bottom: 12pt; gap: 10pt; }
  .section-number, .section-help, small, .field label span { color: #444; }
  h2 { font-size: 13pt; letter-spacing: 0; }
  .section-help { font-size: 9pt; margin-top: 4pt; }
  .field { margin-bottom: 10pt; gap: 4pt; }
  .field label { font-size: 9pt; break-after: avoid; }
  .field-grid { grid-template-columns: 1fr 1fr; gap: 0 18pt; }
  .check-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12pt; }
  .servicekaart-ready [data-card-field] { display: none; }
  .servicekaart-ready .print-value { display: block; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; font-size: 10pt; line-height: 1.45; }
  .next-step { break-inside: avoid; padding: 8pt 10pt 0; margin-bottom: 12pt; border-color: #bbb; }
  .next-step legend { font-size: 10pt; color: #111; }
  small { font-size: 8pt; }
  .finish-note { padding: 12pt 0 0; font-size: 9pt; break-inside: avoid; }
  .finish-note p { color: #444; }
  input, textarea, select { border-color: #aaa; font-size: 10pt; }
}
