/* HV Nord Umsatzmeldung – Farben aus dem Papierbogen, Schrift wird vom Theme geerbt. */
.hvn-abf {
	--hvn-primary: #07335b;   /* Dunkelblau (Überschriften) */
	--hvn-accent: #34ad92;    /* Grün (Logo) */
	--hvn-ist-bg: #e9f8f5;    /* Kasten Abschlussjahr */
	--hvn-ist-line: #b3e6dc;
	--hvn-prog-bg: #eef2f7;   /* Kasten Erwartungsjahr */
	--hvn-prog-line: #dbe2eb;
	--hvn-error: #c8102e;
	--hvn-plus: #1a7f37;
	--hvn-text: #1d2733;
	--hvn-muted: #5d6b7a;
	--hvn-line: #d5dce4;
	--hvn-bg: #f4f6f9;
	--hvn-card: #ffffff;
	--hvn-radius: 8px;
	max-width: 880px;
	margin: 0 auto;
	color: var(--hvn-text);
	font-family: inherit;
	line-height: 1.5;
}
.hvn-abf *, .hvn-abf *::before, .hvn-abf *::after { box-sizing: border-box; }
.hvn-abf [hidden] { display: none !important; }


/* Fortschritt */
.hvn-progress { list-style: none; display: flex; gap: .5rem; padding: 0; margin: 0 0 1.5rem; }
.hvn-progress li { flex: 1; display: flex; align-items: center; gap: .6rem; padding: .7rem .8rem; background: var(--hvn-bg); border-radius: var(--hvn-radius); border-bottom: 3px solid var(--hvn-line); color: var(--hvn-muted); font-size: .95rem; margin: 0; }
.hvn-js .hvn-progress li { cursor: pointer; }
.hvn-progress span { display: inline-flex; align-items: center; justify-content: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: #fff; border: 2px solid var(--hvn-line); font-weight: 700; flex: none; }
.hvn-progress em { font-style: normal; font-weight: 600; }
.hvn-progress li.is-active { border-bottom-color: var(--hvn-accent); color: var(--hvn-primary); }
.hvn-progress li.is-active span { border-color: var(--hvn-accent); background: var(--hvn-accent); color: #fff; }
.hvn-progress li.is-done span { border-color: var(--hvn-accent); color: var(--hvn-accent); font-size: 0; }
.hvn-progress li.is-done span::after { content: "✓"; font-size: .9rem; }

/* Formular */
.hvn-form fieldset { border: 1px solid var(--hvn-line); border-radius: var(--hvn-radius); background: var(--hvn-card); padding: 1.5rem; margin: 0 0 1rem; min-width: 0; }
.hvn-form legend { font-size: 1.3rem; font-weight: 700; color: var(--hvn-primary); padding: 0 .4rem; margin-left: -.4rem; }
.hvn-form legend small { font-size: .7em; font-weight: 400; color: var(--hvn-muted); }
.hvn-sub { display: flex; align-items: center; gap: .6rem; margin: 1.75rem 0 .9rem; font-size: 1rem; color: var(--hvn-primary); text-transform: uppercase; letter-spacing: .04em; }
.hvn-no { display: inline-flex; align-items: center; justify-content: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--hvn-accent); color: #fff; font-size: .9rem; flex: none; }
.hvn-grid { display: grid; grid-template-columns: 1fr; gap: 1rem 1.25rem; }
.hvn-mt { margin-top: 1rem; }
/* Mitarbeiter & Flächen: unterschiedlich lange Beschriftungen – Eingabefelder bündig auf einer Linie. */
.hvn-grid-5, .hvn-grid-5 + .hvn-grid-3 { align-items: end; }
@media (min-width: 640px) {
	.hvn-grid { grid-template-columns: 1fr 1fr; }
	.hvn-grid-3 { grid-template-columns: repeat(3, 1fr); }
	.hvn-grid-5 { grid-template-columns: repeat(5, 1fr); }
	.hvn-grid-addr { grid-template-columns: 1fr 2fr; }
	.hvn-wide { grid-column: 1 / -1; }
}
.hvn-field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.hvn-label { font-weight: 600; font-size: .95rem; }
.hvn-label abbr { color: var(--hvn-error); text-decoration: none; border: 0; }
.hvn-form input[type=text], .hvn-form input[type=email], .hvn-form select, .hvn-form textarea {
	width: 100%; font: inherit; font-size: 16px; color: var(--hvn-text); background: #fff;
	border: 1px solid #b7c2ce; border-radius: 6px; padding: .65rem .8rem; min-height: 46px; margin: 0;
	transition: border-color .15s, box-shadow .15s;
}
.hvn-form input:focus, .hvn-form select:focus, .hvn-form textarea:focus {
	outline: none; border-color: var(--hvn-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hvn-accent) 35%, transparent);
}
.hvn-affix { display: flex; align-items: stretch; }
.hvn-affix input { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; text-align: right; font-variant-numeric: tabular-nums; min-width: 0; }
.hvn-affix span { display: flex; align-items: center; padding: 0 .8rem; background: var(--hvn-bg); border: 1px solid #b7c2ce; border-left: 0; border-radius: 0 6px 6px 0; color: var(--hvn-muted); font-weight: 600; white-space: nowrap; }
.hvn-hint { font-size: .85rem; color: var(--hvn-muted); }

.hvn-radios { display: flex; flex-wrap: wrap; gap: .5rem; }
.hvn-radio { display: flex; align-items: center; gap: .5rem; padding: .6rem .9rem; border: 1px solid #b7c2ce; border-radius: 6px; cursor: pointer; background: #fff; flex: 1 1 auto; margin: 0; }
.hvn-radio:has(input:checked) { border-color: var(--hvn-accent); background: var(--hvn-ist-bg); }
.hvn-radio input { accent-color: var(--hvn-accent); margin: 0; width: 1.1rem; height: 1.1rem; }

/* Umsatz – zwei Kästen wie auf dem Bogen */
.hvn-hint-box { background: var(--hvn-bg); border-left: 4px solid var(--hvn-accent); padding: .8rem 1rem; margin: 0 0 1.25rem; border-radius: 0 6px 6px 0; }
.hvn-umsatz { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .hvn-umsatz { grid-template-columns: 1fr 1fr; } }
.hvn-umsatz-card { border-radius: var(--hvn-radius); padding: 1.1rem; display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.hvn-card-ist { background: var(--hvn-ist-bg); border: 1px solid var(--hvn-ist-line); }
.hvn-card-prog { background: var(--hvn-prog-bg); border: 1px solid var(--hvn-prog-line); }
.hvn-year { font-size: 1.7rem; font-weight: 800; line-height: 1; }
.hvn-card-ist .hvn-year { color: #1f8f78; }
.hvn-card-prog .hvn-year { color: var(--hvn-primary); }
.hvn-year small { display: block; font-size: .8rem; font-weight: 700; color: var(--hvn-primary); margin-top: .35rem; }
.hvn-field.hvn-sum { border-top: 2px solid var(--hvn-ist-line); padding-top: .75rem; }
.hvn-card-prog .hvn-field.hvn-sum { border-top-color: var(--hvn-prog-line); }
.hvn-sum .hvn-label { text-transform: uppercase; letter-spacing: .05em; font-size: .85rem; color: var(--hvn-primary); }
.hvn-sum input { font-weight: 700; }
.hvn-delta { font-weight: 700; font-size: 1rem; min-height: 1.5em; }
.hvn-delta.is-plus { color: var(--hvn-plus); }
.hvn-delta.is-minus { color: var(--hvn-error); }

/* Stammdaten */
.hvn-stamm { padding-top: .25rem; }
.hvn-stamm .hvn-sub:first-child { margin-top: .5rem; }

.hvn-consent { margin: 1.5rem 0 0; padding: 1.1rem 1.2rem; border: 1px solid var(--hvn-ist-line); background: var(--hvn-ist-bg); border-radius: var(--hvn-radius); font-size: .92rem; }
.hvn-consent h4 { margin: 0 0 .5rem; font-size: 1rem; color: var(--hvn-primary); }
.hvn-consent h4 abbr { color: var(--hvn-error); text-decoration: none; border: 0; }
.hvn-consent p { margin: 0 0 .6rem; max-width: 70ch; }
.hvn-consent .hvn-consent-small { color: var(--hvn-muted); font-size: .85rem; }
.hvn-consent label { display: inline-flex; gap: .6rem; align-items: center; cursor: pointer; font-weight: 700; color: var(--hvn-primary); margin-top: .2rem; padding: .5rem .9rem; background: #fff; border: 1px solid #b7c2ce; border-radius: 6px; }
.hvn-consent label:has(input:checked) { border-color: var(--hvn-accent); }
.hvn-consent input { width: 1.2rem; height: 1.2rem; accent-color: var(--hvn-accent); flex: none; margin: 0; }
.hvn-consent .hvn-err { display: block; margin-top: .4rem; }
.hvn-consent a { color: var(--hvn-primary); }

/* Buttons */
.hvn-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.hvn-btn { font: inherit; font-weight: 700; font-size: 1rem; border: 2px solid var(--hvn-primary); background: var(--hvn-primary); color: #fff; padding: .75rem 1.6rem; border-radius: 6px; cursor: pointer; text-decoration: none; display: inline-block; min-height: 48px; }
.hvn-btn:hover { filter: brightness(1.15); color: #fff; }
.hvn-btn:focus-visible { outline: 3px solid var(--hvn-accent); outline-offset: 2px; }
.hvn-btn-ghost { background: #fff; color: var(--hvn-primary); }
.hvn-btn-ghost:hover { background: var(--hvn-bg); color: var(--hvn-primary); filter: none; }
.hvn-btn-submit { background: var(--hvn-accent); border-color: var(--hvn-accent); color: var(--hvn-primary); }
.hvn-btn-submit:hover { color: var(--hvn-primary); filter: brightness(1.06); }

/* Meldungen */
.hvn-err { color: var(--hvn-error); font-size: .85rem; font-weight: 600; }
.hvn-has-error input, .hvn-has-error select, .hvn-has-error textarea, .hvn-has-error .hvn-radio { border-color: var(--hvn-error) !important; }
.hvn-error-box { background: #fdecee; border: 1px solid var(--hvn-error); color: #7a0b1c; padding: .8rem 1rem; border-radius: 6px; margin-bottom: 1rem; }
.hvn-notice { background: var(--hvn-bg); border: 1px solid var(--hvn-line); padding: .9rem 1rem; border-radius: 6px; margin-bottom: 1rem; }
.hvn-success { text-align: center; padding: 2.5rem 1.5rem; border: 1px solid var(--hvn-line); border-radius: var(--hvn-radius); background: var(--hvn-card); }
.hvn-success-icon { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; background: var(--hvn-accent); color: #fff; font-size: 2rem; display: flex; align-items: center; justify-content: center; }
.hvn-success h3 { color: var(--hvn-primary); margin: 0 0 .5rem; }
/* Übersicht nach dem Absenden */
.hvn-overview { margin-top: 1.25rem; border: 1px solid var(--hvn-line); border-radius: var(--hvn-radius); background: var(--hvn-card); padding: 1.5rem; }
.hvn-overview h3 { margin: 0 0 1rem; color: var(--hvn-primary); font-size: 1.2rem; }
.hvn-overview section + section { margin-top: 1.25rem; }
.hvn-overview h4 { margin: 0 0 .4rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--hvn-primary); border-bottom: 2px solid var(--hvn-ist-line); padding-bottom: .35rem; }
.hvn-overview dl { margin: 0; }
.hvn-overview dl > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--hvn-bg); }
.hvn-overview dt { color: var(--hvn-muted); font-size: .92rem; }
.hvn-overview dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media (max-width: 479px) { .hvn-overview dl > div { grid-template-columns: 1fr; gap: .1rem; } .hvn-overview { padding: 1.1rem; } }
.hvn-required-note { font-size: .85rem; color: var(--hvn-muted); }
.hvn-hp { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }

/* Ohne JS sind alle Schritte sichtbar; mit JS nur der aktive. */
.hvn-abf:not(.hvn-js) .hvn-nav [data-hvn-next], .hvn-abf:not(.hvn-js) .hvn-nav [data-hvn-prev] { display: none; }
.hvn-hgv-only.is-hidden { display: none; }

@media (max-width: 639px) {
	.hvn-progress em { display: none; }
	.hvn-progress li { justify-content: center; }
	.hvn-form fieldset { padding: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) { .hvn-abf * { transition: none !important; } }
