/* Antrag-Engine — Demo-Theme. Akzentfarbe kommt per CSS-Variable aus der Form-Config. */

:root {
  --accent: #1f6f54;
  --accent-dark: #16523e;
  --ink: #18211e;
  --muted: #5c6b65;
  --line: #dde5e1;
  --bg: #f4f7f5;
  --card: #ffffff;
  --danger: #b3261e;
  --warn-bg: #fff6e6;
  --warn-bd: #e7b65a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 40, 32, .06), 0 8px 24px rgba(16, 40, 32, .06);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

a { color: var(--accent-dark); }

.wrap { width: 100%; max-width: 920px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); flex: none; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-weight: 700; font-size: 16px; }
.brand-tag { font-size: 12px; color: var(--muted); }
.demo-badge { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-dark); background: #e7f1ec; border: 1px solid #cfe3da; padding: 4px 9px; border-radius: 999px; }

.main { padding: 32px 20px 56px; }

/* Hero / Landing */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }
.eyebrow { text-transform: uppercase; letter-spacing: .06em; font-size: 12px; font-weight: 700; color: var(--accent-dark); margin: 0 0 8px; }
.hero h1 { font-size: 32px; line-height: 1.15; margin: 0 0 14px; }
.lead { font-size: 17px; color: #34433d; margin: 0 0 22px; }
.hero-note { font-size: 12.5px; color: var(--muted); margin-top: 16px; max-width: 46ch; }
.hero-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.hero-card h2 { font-size: 15px; margin: 0 0 12px; }
.ticklist { list-style: none; margin: 0 0 18px; padding: 0; }
.ticklist li { position: relative; padding-left: 26px; margin-bottom: 9px; font-size: 14px; }
.ticklist li::before { content: "✓"; position: absolute; left: 0; top: -1px; color: var(--accent); font-weight: 800; }
.steps-preview { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 11.5px; color: var(--muted); background: #eef3f0; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-weight: 600; border-radius: 10px; padding: 11px 18px; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--accent-dark); border-color: var(--line); }
.btn-ghost:hover { background: #eef3f0; }

/* Progress steps */
.wizard { max-width: 760px; margin: 0 auto; }
.progress ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 4px; padding: 0; margin: 0 0 22px; counter-reset: step; }
.progress .step { font-size: 12.5px; }
.progress .step a, .progress .step > span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px 6px 7px; border-radius: 999px; color: var(--muted); text-decoration: none; border: 1px solid transparent; }
.progress .step a:hover { background: #eef3f0; }
.step-num { width: 22px; height: 22px; border-radius: 999px; background: #e2e9e5; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex: none; }
.step-done .step-num { background: var(--accent); color: #fff; }
.step-current .step-num { background: var(--accent-dark); color: #fff; box-shadow: 0 0 0 3px #d7e7e0; }
.step-current .step-title { color: var(--ink); font-weight: 600; }

/* Card */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.step-counter { font-size: 12.5px; color: var(--muted); margin: 0 0 4px; }
.card-title { font-size: 23px; margin: 0 0 6px; }
.card-desc { color: #34433d; margin: 0 0 20px; }

/* Fields */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.cols-2 { grid-column: 1 / -1; }
.field label, .choice legend { font-weight: 600; font-size: 14px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=date], .field select, .field textarea {
  font: inherit; width: 100%; padding: 11px 12px; border: 1px solid #c8d3ce; border-radius: 10px; background: #fff; color: var(--ink);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px #d7e7e0; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .suffix { position: absolute; right: 12px; color: var(--muted); font-size: 14px; pointer-events: none; }
.input-wrap input { padding-right: 34px; }
.help { font-size: 12.5px; color: var(--muted); margin: 0; }
.error { font-size: 12.5px; color: var(--danger); font-weight: 600; margin: 0; }
.req { color: var(--danger); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }

/* Choice (radio / checkboxgroup) */
.choice { border: none; margin: 0; padding: 0; }
.choice-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #c8d3ce; border-radius: 10px; padding: 9px 13px; cursor: pointer; background: #fff; font-size: 14px; }
.pill:has(input:checked) { border-color: var(--accent); background: #eef6f2; box-shadow: 0 0 0 2px #d7e7e0; }
.pill input { accent-color: var(--accent); }

/* Single checkbox (consent) */
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; cursor: pointer; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }

/* File */
.filelist { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-direction: column; gap: 6px; }
.filelist li { display: flex; align-items: center; gap: 10px; background: #eef3f0; border: 1px solid var(--line); border-radius: 9px; padding: 7px 11px; font-size: 13px; }
.file-name { font-weight: 600; }
.file-size { color: var(--muted); margin-left: auto; }
.link-danger { background: none; border: none; color: var(--danger); font: inherit; cursor: pointer; text-decoration: underline; padding: 0; }
.field-heading { grid-column: 1 / -1; margin: 8px 0 0; font-size: 16px; }

/* Notices */
.notice { grid-column: 1 / -1; border-radius: 10px; padding: 12px 14px; font-size: 13.5px; margin: 0 0 4px; border: 1px solid; }
.notice-info { background: #eef5fb; border-color: #bcd6ee; color: #1c4e80; }
.notice-warning { background: var(--warn-bg); border-color: var(--warn-bd); color: #8a5a12; }
.notice-success { background: #ecf7f1; border-color: #b6dcc8; color: var(--accent-dark); }

/* Actions */
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }

/* Review */
.review-group { margin: 0 0 8px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.review-head { display: flex; align-items: baseline; justify-content: space-between; }
.review-group h2 { font-size: 15px; margin: 0 0 10px; }
.link { color: var(--accent-dark); font-size: 13px; font-weight: 600; }
.review-list { margin: 0; }
.review-row { display: grid; grid-template-columns: 42% 1fr; gap: 12px; padding: 4px 0; font-size: 14px; }
.review-row dt { color: var(--muted); }
.review-row dd { margin: 0; }

/* Success */
.success-card { text-align: center; }
.success-icon { width: 56px; height: 56px; border-radius: 999px; background: #ecf7f1; color: var(--accent); font-size: 30px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; border: 2px solid #bfe0d0; }
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 22px 0; }
.summary-details { text-align: left; margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.summary-details summary { cursor: pointer; font-weight: 600; color: var(--accent-dark); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--card); }
.footer-inner { padding: 22px 20px; font-size: 13px; color: var(--muted); }
.footer-inner p { margin: 0 0 4px; }
.muted { color: var(--muted); font-size: 12px; }

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .review-row { grid-template-columns: 1fr; gap: 2px; }
  .hero h1 { font-size: 26px; }
}
