/* Förderportal – übernimmt Schrift und Grundfarben vom Theme.
   Akzentfarbe, Button-Rundung und Überschriften-Schrift setzt portal.js automatisch. */
.fp-portal {
	--fp-accent: #2f7d4a;
	--fp-on-accent: #fff;
	--fp-ink: #1d1d1b;
	--fp-muted: rgba(29, 29, 27, .6);
	--fp-line: rgba(29, 29, 27, .1);
	--fp-soft: #f5f5f3;
	--fp-card: #fff;
	--fp-ok: #2f7d4a;
	--fp-warn: #b45309;
	--fp-err: #b42318;
	--fp-radius: 8px;
	--fp-r: 14px;
	--fp-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 24px rgba(0, 0, 0, .05);
	--fp-heading-font: inherit;
	--fp-heading-weight: 700;
	--fp-tint: color-mix(in srgb, var(--fp-accent) 8%, #fff);
	max-width: 860px;
	margin: 0 auto;
	font-size: 1rem;
	line-height: 1.55;
	color: inherit;
}
.fp-portal *, .fp-portal *::before, .fp-portal *::after { box-sizing: border-box; }
.fp-portal p { margin: 0 0 .6em; }
.fp-portal a { color: var(--fp-accent); }
.fp-muted { color: var(--fp-muted); }
.fp-small { font-size: .875em; }
.fp-icon { flex: 0 0 auto; vertical-align: -3px; }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }
.fp-eyebrow { display: block; font-size: .75em; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fp-muted); margin: 0 0 2px !important; }

/* Hinweise */
.fp-box { border: 1px solid var(--fp-line); border-radius: var(--fp-r); padding: 14px 18px; margin: 0 0 16px; background: var(--fp-card); }
.fp-box p:last-child { margin-bottom: 0; }
.fp-success { border-color: color-mix(in srgb, var(--fp-ok) 35%, transparent); background: color-mix(in srgb, var(--fp-ok) 7%, #fff); }
.fp-error { border-color: color-mix(in srgb, var(--fp-err) 35%, transparent); background: color-mix(in srgb, var(--fp-err) 6%, #fff); }
.fp-empty { text-align: center; padding: 32px; }

/* Buttons */
.fp-btn {
	display: inline-flex; align-items: center; gap: 7px; justify-content: center;
	background: var(--fp-accent); color: var(--fp-on-accent) !important; border: 0; border-radius: var(--fp-radius);
	padding: 10px 18px; font: inherit; font-weight: 600; font-size: .95em; line-height: 1.2; cursor: pointer; text-decoration: none !important;
	transition: filter .15s, transform .15s;
}
.fp-btn:hover { filter: brightness(.93); }
.fp-btn:active { transform: translateY(1px); }
.fp-btn-sm { padding: 7px 13px; font-size: .86em; }
.fp-btn-ghost { background: transparent; color: var(--fp-accent) !important; box-shadow: inset 0 0 0 1.5px currentColor; }
.fp-btn-ghost:hover { background: var(--fp-tint); filter: none; }
.fp-btn-danger { background: var(--fp-err); color: #fff !important; }
.fp-btn[disabled] { opacity: .45; cursor: default; }
.fp-x { background: none; border: 0; padding: 4px; margin: -4px 0; color: var(--fp-muted); cursor: pointer; border-radius: 6px; line-height: 0; }
.fp-x:hover { color: var(--fp-err); background: color-mix(in srgb, var(--fp-err) 8%, #fff); }
.fp-inline { display: inline; margin: 0; }

/* Anmeldung */
.fp-login { max-width: 440px; margin: 0 auto 24px; padding: 28px; box-shadow: var(--fp-shadow); border: 0; }
.fp-login h2 { margin: 0 0 .4em; font-size: 1.4em; font-family: var(--fp-heading-font); font-weight: var(--fp-heading-weight); color: var(--fp-ink); }
.fp-login form p { margin-bottom: 14px; }
.fp-login label { display: block; font-weight: 600; margin-bottom: 4px; font-size: .92em; }
.fp-login input[type=text], .fp-login input[type=password] {
	width: 100%; padding: 11px 13px; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); border-radius: min(var(--fp-radius), 10px); font-size: 1rem; background: #fff;
}
.fp-login input[type=text]:focus, .fp-login input[type=password]:focus { outline: 2px solid color-mix(in srgb, var(--fp-accent) 45%, transparent); border-color: var(--fp-accent); }
.fp-login .login-remember label { font-weight: normal; display: inline; }
.fp-login input[type=submit] {
	background: var(--fp-accent); color: var(--fp-on-accent); border: 0; border-radius: var(--fp-radius); padding: 12px 22px;
	font-size: 1rem; font-weight: 600; cursor: pointer; width: 100%;
}

/* Begrüßung */
.fp-welcome {
	display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap;
	padding: 22px 24px; margin: 0 0 18px; border-radius: var(--fp-r);
	background: linear-gradient(135deg, var(--fp-tint), var(--fp-soft));
}
.fp-welcome > div { flex: 1 1 320px; }
.fp-welcome-title { margin: 0 0 4px !important; font-size: 1.55em; line-height: 1.25; font-family: var(--fp-heading-font); font-weight: var(--fp-heading-weight); color: var(--fp-ink); }
.fp-welcome p:last-child { margin: 0; }

/* Karte pro Vorhaben */
.fp-card { background: var(--fp-card); border-radius: var(--fp-r); margin: 0 0 22px; box-shadow: var(--fp-shadow); border: 1px solid var(--fp-line); overflow: hidden; }
.fp-card-head {
	list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px;
	padding: 18px 52px 18px 22px; position: relative; border-top: 4px solid var(--fp-accent);
}
.fp-card-head::-webkit-details-marker { display: none; }
.fp-card-head::after {
	content: ""; position: absolute; right: 24px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
	border: solid var(--fp-muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s;
}
.fp-card[open] > .fp-card-head::after { transform: rotate(-135deg); margin-top: -2px; }
.fp-card[open] > .fp-card-head { border-bottom: 1px solid var(--fp-line); }
.fp-st-card-abgeschlossen .fp-card-head { border-top-color: var(--fp-ok); }
.fp-st-card-abgelehnt .fp-card-head { border-top-color: var(--fp-err); }
.fp-card-titles { min-width: 0; flex: 1 1 280px; }
.fp-card-title { display: block; font-family: var(--fp-heading-font); font-weight: var(--fp-heading-weight); font-size: 1.25em; line-height: 1.3; color: var(--fp-ink); }
.fp-card-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.fp-stat { background: var(--fp-soft); border-radius: 99px; padding: 4px 12px; font-size: .85em; color: var(--fp-muted); white-space: nowrap; }
.fp-stat b { color: var(--fp-ink); font-size: 1.05em; }
.fp-card-body { padding: 20px 22px 22px; }
.fp-card-body.has-aside { display: grid; gap: 28px; }
@media (min-width: 900px) {
	.fp-portal:has(.has-aside) { max-width: 1120px; }
	.fp-card-body.has-aside { grid-template-columns: minmax(0, 1fr) 330px; }
	.fp-aside { border-left: 1px solid var(--fp-line); padding-left: 26px; }
}
.fp-main > :first-child { margin-top: 0; }

.fp-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .82em; font-weight: 600; background: var(--fp-soft); white-space: nowrap; }
.fp-st-nachreichen { background: #fef3c7; color: #92400e; }
.fp-st-abgeschlossen { background: color-mix(in srgb, var(--fp-ok) 14%, #fff); color: var(--fp-ok); }
.fp-st-abgelehnt { background: #fee4e2; color: var(--fp-err); }
.fp-new { font-style: normal; display: inline-block; background: #d63638; color: #fff; font-size: .7em; font-weight: 700; padding: 0 8px; border-radius: 99px; line-height: 19px; vertical-align: 2px; letter-spacing: .02em; }

.fp-note { border-left: 4px solid var(--fp-warn); background: #fffbeb; padding: 12px 16px; border-radius: 10px; margin: 0 0 18px; }
.fp-note p { margin: 4px 0 0 !important; }

/* Aktueller Schritt */
.fp-now {
	display: flex; gap: 18px; align-items: flex-start;
	border: 1px solid color-mix(in srgb, var(--fp-accent) 22%, transparent); background: var(--fp-tint);
	border-radius: var(--fp-r); padding: 18px 20px; margin: 0 0 8px;
}
.fp-now.is-you { border-color: var(--fp-accent); box-shadow: inset 4px 0 0 var(--fp-accent); }
.fp-now.is-finished { border-color: color-mix(in srgb, var(--fp-ok) 35%, transparent); background: color-mix(in srgb, var(--fp-ok) 7%, #fff); }
.fp-now.is-stopped { border-color: color-mix(in srgb, var(--fp-err) 30%, transparent); background: color-mix(in srgb, var(--fp-err) 5%, #fff); }
.fp-now p { margin: 6px 0 0; }
.fp-now-body { flex: 1; min-width: 0; }
.fp-now-icon { flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--fp-ok); color: #fff; display: flex; align-items: center; justify-content: center; }
.fp-now-icon .fp-icon { width: 24px; height: 24px; }
.fp-ring {
	--p: 0; flex: 0 0 64px; height: 64px; border-radius: 50%;
	background: conic-gradient(var(--fp-accent) calc(var(--p) * 1%), color-mix(in srgb, var(--fp-accent) 15%, #fff) 0);
	display: flex; align-items: center; justify-content: center;
}
.fp-ring span { width: 50px; height: 50px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-size: .78em; color: var(--fp-muted); }
.fp-ring b { font-size: 1.45em; color: var(--fp-ink); margin-right: 1px; }
.fp-now-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.fp-now-label { font-size: .75em; text-transform: uppercase; letter-spacing: .08em; color: var(--fp-muted); font-weight: 600; }
.fp-now-title { font-size: 1.25em; font-weight: var(--fp-heading-weight); font-family: var(--fp-heading-font); margin-top: 2px; line-height: 1.3; color: var(--fp-ink); }
.fp-now-note { background: #fff; border-radius: 10px; padding: 8px 12px; font-size: .92em; border: 1px solid var(--fp-line); }
.fp-now-next { color: var(--fp-muted); }
@media (max-width: 520px) { .fp-now { flex-direction: column; gap: 12px; } }

.fp-who { display: inline-block; font-size: .74em; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: rgba(29, 29, 27, .06); color: var(--fp-muted); white-space: nowrap; vertical-align: 1px; }
.fp-who.is-you { background: var(--fp-accent); color: var(--fp-on-accent); }

/* Abschnitte */
.fp-section { margin-top: 26px; }
.fp-h3 { display: flex; align-items: center; gap: 8px; font-size: 1.08em; margin: 0 0 12px !important; font-family: var(--fp-heading-font); font-weight: var(--fp-heading-weight); color: var(--fp-ink); }
.fp-h3 .fp-icon { color: var(--fp-accent); }

/* Dateityp-Kennzeichen */
.fp-ft { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 22px; padding: 0 5px; border-radius: 5px; font-size: .66em; font-weight: 700; letter-spacing: .03em; color: #fff; background: #6b7280; }
.fp-ft-pdf { background: #c2410c; }
.fp-ft-img { background: #0f766e; }
.fp-ft-doc { background: #1d4ed8; }
.fp-ft-xls { background: #15803d; }

/* Von Ihrem Energieberater */
.fp-doclist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fp-doc { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 14px; border: 1px solid var(--fp-line); border-radius: 12px; background: #fff; }
.fp-doc .fp-ft { min-width: 44px; height: 30px; font-size: .72em; }
.fp-doc.is-new { border-color: color-mix(in srgb, var(--fp-accent) 45%, transparent); background: var(--fp-tint); }
.fp-doc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fp-doc-cat { font-size: .74em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fp-accent); }
.fp-doc-name { font-weight: 600; color: var(--fp-ink) !important; text-decoration: none; overflow-wrap: anywhere; }
.fp-doc-meta { font-size: .82em; color: var(--fp-muted); }
.fp-doc-note { font-size: .86em; margin-top: 2px; }
@media (max-width: 520px) { .fp-doc { flex-wrap: wrap; } .fp-doc .fp-btn span { display: none; } }

/* Fortschritt + Checkliste */
.fp-progress-row { display: flex; align-items: center; gap: 12px; margin: -2px 0 8px; }
.fp-progress { flex: 1; height: 8px; background: var(--fp-soft); border-radius: 99px; overflow: hidden; }
.fp-progress-bar { height: 100%; background: var(--fp-accent); border-radius: 99px; transition: width .4s; }
.fp-progress-row .fp-small { color: var(--fp-muted); white-space: nowrap; }
.fp-checklist { list-style: none; margin: 0; padding: 0; }
.fp-item { border-top: 1px solid var(--fp-line); padding: 13px 0; margin: 0; }
.fp-item:first-child { border-top: 0; }
.fp-item-head { display: flex; align-items: center; gap: 12px; font-weight: 600; flex-wrap: wrap; }
.fp-item-label { flex: 1 1 200px; min-width: 0; color: var(--fp-ink); }
.is-done .fp-item-label { color: inherit; }
.fp-check { flex: 0 0 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(29, 29, 27, .2); position: relative; }
.is-done .fp-check { background: var(--fp-ok); border-color: var(--fp-ok); }
.is-done .fp-check::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.is-extra .fp-check { border-style: dashed; }
.fp-files { list-style: none; margin: 8px 0 0 34px; padding: 0; font-size: .92em; display: grid; gap: 4px; }
.fp-files li { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.fp-file-name { color: inherit !important; overflow-wrap: anywhere; }
a.fp-file-name:hover { color: var(--fp-accent) !important; }
.fp-file-meta { font-size: .9em; }

/* Upload-Knopf je Punkt */
.fp-upload { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.fp-file { position: relative; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; padding: 6px 12px; border-radius: 99px; font-size: .86em; font-weight: 600;
	color: var(--fp-accent); background: var(--fp-tint); border: 1px solid color-mix(in srgb, var(--fp-accent) 25%, transparent); max-width: 260px; transition: background .15s; }
.fp-file:hover { background: color-mix(in srgb, var(--fp-accent) 14%, #fff); }
.fp-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.fp-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-file:focus-within { outline: 2px solid var(--fp-accent); outline-offset: 2px; }
.fp-file.has-files { background: var(--fp-accent); color: var(--fp-on-accent); }
.is-open .fp-file { background: var(--fp-accent); color: var(--fp-on-accent); border-color: transparent; }
.is-open .fp-file:hover { filter: brightness(.93); }
.fp-js .fp-upload .fp-btn { display: none; }
.fp-upload.busy .fp-file { opacity: .7; pointer-events: none; }

/* Zeitleiste */
.fp-timeline { list-style: none; margin: 0; padding: 0; }
.fp-tl-item { position: relative; display: flex; gap: 12px; margin: 0; padding: 0 0 16px; }
.fp-tl-item::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--fp-line); }
.fp-tl-item:last-child { padding-bottom: 0; }
.fp-tl-item:last-child::before { display: none; }
.fp-tl-item.is-done::before { background: var(--fp-accent); }
.fp-tl-dot { flex: 0 0 28px; height: 28px; border-radius: 50%; border: 2px solid var(--fp-line); background: #fff; display: flex; align-items: center; justify-content: center; font-size: .78em; font-weight: 700; color: var(--fp-muted); position: relative; z-index: 1; }
.is-done .fp-tl-dot { background: var(--fp-accent); border-color: var(--fp-accent); }
.is-done .fp-tl-dot::after { content: ""; width: 6px; height: 11px; border: solid var(--fp-on-accent); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.is-current .fp-tl-dot { border-color: var(--fp-accent); color: var(--fp-accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--fp-accent) 16%, transparent); }
.fp-tl-body { flex: 1; min-width: 0; padding-top: 3px; }
.fp-tl-head { display: flex; flex-wrap: wrap; gap: 3px 8px; align-items: baseline; }
.fp-tl-title { font-weight: 600; color: var(--fp-ink); line-height: 1.35; }
.is-next .fp-tl-title { color: var(--fp-muted); font-weight: 500; }
.fp-tl-text { margin: 3px 0 0 !important; font-size: .88em; color: var(--fp-muted); }
.is-current .fp-tl-text { color: inherit; }
.fp-tl-meta { margin: 2px 0 0 !important; font-size: .8em; color: var(--fp-muted); }
.fp-tl-now { color: var(--fp-accent); font-weight: 700; }
.fp-tl-note { margin: 5px 0 0 !important; font-size: .84em; background: var(--fp-soft); border-radius: 8px; padding: 5px 9px; }

/* Ansprechpartner + Fußnote */
.fp-contact { display: flex; gap: 14px; align-items: center; padding: 16px 20px; border-radius: var(--fp-r); background: var(--fp-soft); margin: 0 0 14px; }
.fp-contact-icon { flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--fp-ink); color: #fff; display: flex; align-items: center; justify-content: center; }
.fp-contact p { margin: 0 !important; }
.fp-contact-name { font-weight: 700; color: var(--fp-ink); }
.fp-contact-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.fp-contact-links a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.fp-footnote { margin-top: 6px; }

/* ---------------- Verwaltung ---------------- */
.fp-portal.fp-wide { max-width: 1160px; }
.fp-m-bar { display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: center; border-bottom: 1px solid var(--fp-line); margin: 0 0 20px; }
.fp-m-bar a { text-decoration: none; color: var(--fp-ink); padding: 10px 0; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 600; }
.fp-m-bar a.is-active { border-color: var(--fp-accent); color: var(--fp-accent); }
.fp-m-bar-right { margin-left: auto; display: flex; gap: 18px; }
.fp-m-bar-right a { font-weight: 400; color: var(--fp-muted); }
.fp-count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 99px; background: #d63638; color: #fff; font-size: .72em; text-align: center; line-height: 20px; vertical-align: 1px; }

.fp-m-tools { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.fp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fp-chip { text-decoration: none; color: var(--fp-ink) !important; border: 1px solid var(--fp-line); border-radius: 99px; padding: 6px 13px; font-size: .88em; background: #fff; }
.fp-chip span { color: var(--fp-muted); margin-left: 2px; }
.fp-chip.is-active { background: var(--fp-ink); border-color: var(--fp-ink); color: #fff !important; }
.fp-chip.is-active span { color: rgba(255, 255, 255, .7); }
.fp-chip.has-new:not(.is-active) { border-color: #d63638; }
.fp-search input { padding: 9px 14px; border: 1px solid var(--fp-line); border-radius: 99px; min-width: 260px; font-size: .92em; background: #fff; }

.fp-m-list { border-radius: var(--fp-r); overflow: hidden; background: #fff; box-shadow: var(--fp-shadow); border: 1px solid var(--fp-line); }
.fp-m-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 14px; padding: 14px 18px; border-top: 1px solid var(--fp-line); text-decoration: none; color: inherit !important; align-items: center; }
.fp-m-row:first-child { border-top: 0; }
a.fp-m-row:hover { background: var(--fp-soft); }
.fp-m-row.is-new { box-shadow: inset 3px 0 0 #d63638; }
.fp-m-main strong { color: var(--fp-ink); }
.fp-m-head { font-size: .74em; text-transform: uppercase; letter-spacing: .07em; color: var(--fp-muted); background: var(--fp-soft); padding-top: 9px; padding-bottom: 9px; font-weight: 600; }
@media (max-width: 760px) {
	.fp-m-head { display: none; }
	.fp-m-row { grid-template-columns: 1fr 1fr; }
	.fp-m-main { grid-column: 1 / -1; }
	.fp-m-date { grid-column: 1 / -1; color: var(--fp-muted); }
	.fp-m-bar-right { margin-left: 0; }
	.fp-search, .fp-search input { width: 100%; min-width: 0; }
}

.fp-m-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.fp-m-title h2 { margin: 0 0 4px; font-family: var(--fp-heading-font); font-weight: var(--fp-heading-weight); font-size: 1.6em; color: var(--fp-ink); }
.fp-m-title p { margin: 0; }
.fp-m-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .fp-m-grid { grid-template-columns: 1fr; } }

.fp-panel { background: #fff; border: 1px solid var(--fp-line); border-radius: var(--fp-r); padding: 18px 20px; margin: 0 0 20px; box-shadow: var(--fp-shadow); }
.fp-panel h2, .fp-panel h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 1.1em; font-family: var(--fp-heading-font); font-weight: var(--fp-heading-weight); color: var(--fp-ink); }
.fp-panel h3 .fp-icon { color: var(--fp-accent); }
.fp-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.fp-panel-head h3 { margin: 0; }
.fp-narrow { max-width: 660px; }

.fp-form fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.fp-form legend { font-weight: 700; margin-bottom: 8px; padding: 0; color: var(--fp-ink); }
.fp-field { display: block; margin: 0 0 12px; font-weight: 600; font-size: .9em; }
.fp-field .fp-muted { font-weight: 400; }
.fp-field input, .fp-field select, .fp-field textarea {
	display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
	border-radius: min(var(--fp-radius), 10px); font: inherit; font-weight: 400; font-size: 1rem; background: #fff; color: inherit;
}
.fp-field input:focus, .fp-field select:focus, .fp-field textarea:focus { outline: 2px solid color-mix(in srgb, var(--fp-accent) 45%, transparent); outline-offset: 0; border-color: var(--fp-accent); }
.fp-mono { font-family: ui-monospace, Menlo, Consolas, monospace !important; font-size: .85rem !important; }
.fp-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .fp-row2 { grid-template-columns: 1fr; } }
.fp-check-label { display: flex; gap: 8px; align-items: center; font-size: .92em; margin: 0 0 12px; }
.fp-align-end { align-self: end; margin-bottom: 22px; }
.fp-seg { display: inline-flex; border: 1px solid var(--fp-line); border-radius: 99px; padding: 3px; margin-bottom: 12px; gap: 2px; }
.fp-seg label { padding: 6px 15px; border-radius: 99px; cursor: pointer; font-size: .92em; }
.fp-seg input { position: absolute; opacity: 0; pointer-events: none; }
.fp-seg label:has(input:checked) { background: var(--fp-ink); color: #fff; }
.fp-seg label:has(input:disabled) { opacity: .45; cursor: default; }
.fp-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; }
.fp-actions .fp-check-label { margin: 0 auto 0 0; }

/* Bereitstellen */
.fp-doclist-admin { margin-bottom: 16px; }
.fp-doclist-admin .fp-doc { padding: 10px 12px; }
.fp-ok-text { color: var(--fp-ok); display: inline-flex; align-items: center; gap: 3px; }
.fp-ok-text .fp-icon { width: 14px; height: 14px; }
.fp-share-form { border-top: 1px solid var(--fp-line); padding-top: 14px; }
.fp-dropzone {
	position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 18px; margin: 0 0 12px;
	border: 2px dashed color-mix(in srgb, var(--fp-accent) 35%, transparent); border-radius: 12px; background: var(--fp-tint);
	color: var(--fp-accent); font-weight: 600; cursor: pointer; text-align: center;
}
.fp-dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.fp-dropzone.has-files { border-style: solid; }

/* Schritte auswählen */
.fp-steps-edit { list-style: none; margin: 0 0 6px; padding: 0; }
.fp-steps-edit li { margin: 0; position: relative; }
.fp-steps-edit li::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: -4px; width: 2px; background: var(--fp-line); }
.fp-steps-edit li:last-child::before { display: none; }
.fp-steps-edit li.is-done::before { background: var(--fp-accent); }
.fp-steps-edit label { display: flex; gap: 10px; padding: 6px 8px 6px 0; cursor: pointer; border-radius: 8px; }
.fp-steps-edit label:hover .fp-se-title { text-decoration: underline; }
.fp-steps-edit input { position: absolute; opacity: 0; }
.fp-se-dot { flex: 0 0 24px; height: 24px; border-radius: 50%; border: 2px solid var(--fp-line); background: #fff; position: relative; z-index: 1; }
.is-done .fp-se-dot { background: var(--fp-accent); border-color: var(--fp-accent); }
.is-done .fp-se-dot::after { content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid var(--fp-on-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.fp-steps-edit input:checked + .fp-se-dot { border-color: var(--fp-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--fp-accent) 20%, transparent); background: #fff; }
.fp-steps-edit input:checked + .fp-se-dot::after { content: ""; position: absolute; inset: 4px; border: 0; transform: none; border-radius: 50%; background: var(--fp-accent); }
.fp-steps-edit input:focus-visible + .fp-se-dot { outline: 2px solid var(--fp-accent); outline-offset: 2px; }
.fp-se-body { flex: 1; min-width: 0; padding-top: 2px; }
.fp-se-title { font-weight: 600; color: var(--fp-ink); }
.fp-steps-edit li:not(.is-done):not(.is-current) .fp-se-title { font-weight: 400; }
.fp-se-meta, .fp-se-note { display: block; font-size: .8em; color: var(--fp-muted); }
.fp-se-note { font-style: italic; }

.fp-more > summary { cursor: pointer; list-style: none; }
.fp-more > summary::-webkit-details-marker { display: none; }
.fp-more > summary h3 { display: inline-flex; margin: 0; }
.fp-more > summary::after { content: " ▾"; color: var(--fp-muted); }
.fp-more[open] > summary { margin-bottom: 14px; }
details.fp-more:not(.fp-panel) { margin-top: 14px; border-top: 1px solid var(--fp-line); padding-top: 12px; font-size: .92em; color: var(--fp-accent); }
details.fp-more:not(.fp-panel)[open] { color: inherit; }
.fp-upload-admin select { padding: 7px 8px; border-radius: 8px; border: 1px solid var(--fp-line); max-width: 100%; }
.fp-danger-zone h3 { color: var(--fp-err) !important; }
.fp-m-docs-list .fp-files { margin-left: 34px; }
.fp-preview-banner { background: var(--fp-ink); color: #fff; padding: 9px 16px; border-radius: var(--fp-r) var(--fp-r) 0 0; font-size: .9em; }
.fp-preview { border: 2px dashed var(--fp-line); border-top: 0; border-radius: 0 0 var(--fp-r) var(--fp-r); padding: 18px; background: var(--fp-soft); }
.fp-preview .fp-card { margin: 0; }

/* Kleine Bildschirme: weniger Rand, mehr Platz für Inhalt */
@media (max-width: 560px) {
	.fp-welcome { padding: 16px 16px; }
	.fp-welcome-title { font-size: 1.3em; }
	.fp-card-head { padding: 14px 40px 14px 16px; }
	.fp-card-head::after { right: 18px; }
	.fp-card-body { padding: 14px 14px 16px; }
	.fp-now { padding: 14px; flex-direction: row; gap: 12px; }
	.fp-ring { flex-basis: 48px; height: 48px; }
	.fp-ring span { width: 38px; height: 38px; font-size: .7em; }
	.fp-ring b { font-size: 1.25em; }
	.fp-now-title { font-size: 1.12em; }
	.fp-doc { padding: 10px; gap: 10px; flex-wrap: nowrap; }
	.fp-doc .fp-ft { min-width: 38px; height: 26px; }
	.fp-files { margin-left: 0; }
	.fp-contact { padding: 14px; }
}
