/* Gesuchs-App – öffentlicher Teil im Look der Website (weiss/schwarz/senfgelb) */
@font-face { font-family: "Outfit"; font-weight: 400; font-display: swap; src: url("fonts/outfit-400.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 500; font-display: swap; src: url("fonts/outfit-500.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 700; font-display: swap; src: url("fonts/outfit-700.woff2") format("woff2"); }

:root { --ink: #000; --paper: #fff; --accent: #e1bf41; --accent-soft: #f6efd2; --grey: #f3f3f1; --line: #cfcbbf; --muted: #555; --danger: #b3261e; --ok: #1f6f3a; --gutter: clamp(16px, 5vw, 64px); }
* { box-sizing: border-box; }
body { margin: 0; background: var(--grey); color: var(--ink); font: 400 17px/1.5 "Outfit", "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0 0 .8em; }
.container { width: min(100% - 2 * var(--gutter), 1160px); margin-inline: auto; }
.narrow { max-width: 720px; padding-block: 48px 80px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 10; }
.muted { color: var(--muted); }
.hint { font-size: .85rem; color: var(--muted); font-weight: 400; }
.center { text-align: center; }
.eyebrow { font-size: .78rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .8em; }

/* Kopf/Fuss */
.site-header { background: var(--paper); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.site-logo img { width: clamp(120px, 14vw, 170px); }
.back-link { font-weight: 500; text-decoration: none; font-size: .95rem; }
.back-link:hover { text-decoration: underline; }
.site-footer { background: var(--ink); color: var(--paper); padding-block: 32px; font-size: .9rem; }
.site-footer a { color: var(--paper); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.site-footer__links { display: flex; gap: 20px; flex-wrap: wrap; }

/* Einleitung */
.intro { background: var(--paper); padding-block: clamp(24px, 5vw, 64px) clamp(32px, 5vw, 64px); }
.intro h1 { font-size: clamp(2rem, 4vw + .5rem, 3.4rem); letter-spacing: -.02em; max-width: 16ch; }
.lead { font-size: 1.12em; max-width: 60ch; margin-top: 18px; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; padding-block: 40px 28px; }
.page-head h1 { font-size: clamp(1.8rem, 3vw + .6rem, 2.8rem); }

/* Layout */
.layout { display: grid; gap: 28px; padding-block: 32px 80px; align-items: start; }
@media (min-width: 960px) { .layout { grid-template-columns: minmax(0, 1fr) 340px; } .aside { position: sticky; top: 24px; } }
.card { background: var(--paper); padding: clamp(20px, 3vw, 36px); border: 1px solid #e3e0d6; }
.stack > * + * { margin-top: 20px; }

/* Formulare */
.form { display: grid; gap: 18px; }
.grid-2 { display: grid; gap: 18px 20px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: span 2; } }
.field { display: grid; gap: 6px; margin: 0; border: 0; padding: 0; min-width: 0; }
.field legend, .field > label { font-weight: 500; font-size: .95rem; padding: 0; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input:not([type]), select, textarea {
	width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #a9a598; background: var(--paper); color: var(--ink); border-radius: 0; min-height: 48px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--accent); outline-offset: 0; border-color: var(--ink); }
[aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }
input[type=file] { font: inherit; font-size: .95rem; padding: 12px; border: 1px dashed #a9a598; background: #fbfaf6; width: 100%; }
.field-error { color: var(--danger); font-size: .9rem; font-weight: 500; margin: 2px 0 0; }
.choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.choice label, .radios label { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 2px solid #d9d5c8; cursor: pointer; font-weight: 500; background: var(--paper); }
.choice label:has(input:checked), .radios label:has(input:checked) { border-color: var(--ink); background: var(--accent-soft); }
.choice input, .radios input { accent-color: var(--ink); width: 18px; height: 18px; }
.radios { display: flex; gap: 10px; flex-wrap: wrap; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ok-tag { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; font-size: .8rem; color: var(--ok); font-weight: 700; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .6em; padding: .85em 1.3em; background: var(--accent); color: var(--ink); border: 2px solid var(--accent); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; min-height: 48px; }
.button:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.button--large { font-size: 1.1rem; padding: 1em 1.5em; }
.button--block { width: 100%; }
.button--ghost { background: var(--paper); border-color: var(--ink); }
.button[disabled] { opacity: .6; cursor: wait; }
.linkbtn { background: none; border: 0; padding: 4px; font: inherit; font-size: .9rem; color: var(--danger); text-decoration: underline; cursor: pointer; }

.alert { padding: 14px 18px; border-left: 6px solid var(--ok); background: #e8f3ec; margin-bottom: 18px; }
.alert--error { border-color: var(--danger); background: #fbeaea; }

/* Gesuchsformular-Abschnitte */
.fsec { padding: 0; }
.fsec__head { display: flex; gap: 16px; align-items: flex-start; padding: clamp(18px, 3vw, 28px) clamp(18px, 3vw, 32px) 0; }
.fsec__head h2 { font-size: 1.25rem; }
.fsec__head p { margin: 4px 0 0; }
.fsec__no { flex: none; display: grid; place-items: center; width: 36px; height: 36px; background: var(--accent); font-weight: 700; }
.fsec__body { padding: 20px clamp(18px, 3vw, 32px) clamp(20px, 3vw, 32px); display: grid; gap: 18px; }
.submit-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.uploaded { margin-bottom: 20px; }
.doclist { list-style: none; margin: 12px 0 0; padding: 0; }
.doclist li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid #ebe8df; }

/* Seitenleiste */
.aside { display: grid; gap: 16px; }
.box { background: var(--paper); padding: 22px; border-top: 4px solid var(--accent); }
.box__title { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; margin-bottom: 12px; }
.checklist { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.checklist li { padding: 8px 0 8px 26px; border-top: 1px solid #ebe8df; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 2px; font-weight: 700; }
.steps { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.steps li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 8px 0; color: var(--muted); }
.steps li strong { color: var(--ink); }
.steps__no { display: grid; place-items: center; width: 26px; height: 26px; border: 2px solid #c9c5b8; font-weight: 700; font-size: .85rem; }
.steps li.is-done .steps__no { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.steps li.is-active .steps__no { background: var(--accent); border-color: var(--accent); color: var(--ink); }

/* Status */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: .85rem; font-weight: 700; background: var(--grey); }
.tone-sky { background: #e3f0fa; color: #0b4f7a; } .tone-indigo { background: #e7e8fb; color: #2f3590; } .tone-amber { background: #fbf1d2; color: #6d4c00; }
.tone-rose { background: #fbe4e4; color: #8a1c1c; } .tone-emerald { background: #dcf1e4; color: #145b31; } .tone-neutral { background: #ecebe6; color: #333; }
.timeline { list-style: none; margin: 24px 0; padding: 0; }
.timeline li { display: flex; gap: 14px; align-items: center; padding: 10px 0; color: var(--muted); }
.timeline__dot { display: grid; place-items: center; width: 36px; height: 36px; border: 2px solid #d4d0c3; background: var(--paper); flex: none; }
.timeline li.is-done { color: var(--ink); } .timeline li.is-done .timeline__dot { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.timeline li.is-current { color: var(--ink); } .timeline li.is-current .timeline__dot { border-color: currentColor; }
.plainlist { padding-left: 1.2em; }
.success { text-align: center; }
.success__icon { color: var(--ok); display: flex; justify-content: center; margin-bottom: 12px; }
.success h1 { font-size: clamp(1.6rem, 2vw + 1rem, 2.2rem); margin-bottom: 12px; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-soft); padding: 8px 14px; font-size: .9rem; margin-top: 12px; }
.checklist li.is-off { color: var(--muted); opacity: .6; }
.checklist li.is-off::before { content: "–"; }
.field-note { align-self: end; margin: 0 0 12px; }

.tone-violet { background: #efe6fa; color: #5b2a86; }

[hidden] { display: none !important; }
