/* Straßentrödel: Seite mit Karte und Anmeldung, im Design der Website (Dorfbrett). */
.st {
	--st-bg: var(--wp--preset--color--bg, #e7ede1);
	--st-surface: var(--wp--preset--color--surface, #fff);
	--st-surface-2: var(--wp--preset--color--surface-2, #eef2ea);
	--st-ink: var(--wp--preset--color--ink, #122018);
	--st-muted: var(--wp--preset--color--muted, #3e4b42);
	--st-line: var(--wp--preset--color--line, #c5cfbf);
	--st-field: var(--hf-field, #85928a);
	--st-green: var(--wp--preset--color--green, #2f5a1f);
	--st-green-ink: var(--hf-green-ink, #2f5a1f);
	--st-green-soft: var(--wp--preset--color--green-soft, #e3f0c8);
	--st-lime: var(--wp--preset--color--green-bright, #c7e27a);
	--st-on-green: var(--hf-on-ink, #fff);
	--st-red: var(--hf-red-ink, #b0281f);
	--st-red-soft: var(--wp--preset--color--red-soft, #f8dcd6);
	--st-blue: var(--hf-blue-ink, #0d6f82);
	--st-blue-soft: var(--wp--preset--color--blue-soft, #d4eef2);
	--st-focus: var(--hf-focus, #0d6f82);
	--st-card: var(--hf-card, 0 1px 2px rgba(18, 32, 24, .06), 0 14px 32px -22px rgba(18, 32, 24, .45));
	--map-bg: #e9eee3; --map-land: #dce6cf; --map-road: #fff; --map-water: #8fc3cf; --map-track: #c3bba0; --map-path: #b3bdab; --map-label: #4a574e;
	display: grid; gap: clamp(28px, 4vw, 48px); margin-block: 8px 24px; color: var(--st-ink);
}
:root[data-theme="dark"] .st { --map-bg: #142019; --map-land: #1b2a20; --map-road: #3a4c3f; --map-water: #2f6f7c; --map-track: #4e5440; --map-path: #3f4d42; --map-label: #b6c6b4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .st { --map-bg: #142019; --map-land: #1b2a20; --map-road: #3a4c3f; --map-water: #2f6f7c; --map-track: #4e5440; --map-path: #3f4d42; --map-label: #b6c6b4; } }
.st h2 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem); margin: 0; }
.st h3 { margin: 0; }
.st p { margin: 0; }
.st :focus-visible { outline: 3px solid var(--st-focus); outline-offset: 2px; }
.st-preview { padding: 12px 16px; border-radius: 14px; background: var(--st-blue-soft); color: var(--st-ink); font-size: .95rem; }
.st-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--st-green); color: var(--st-on-green) !important; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; transition: transform .12s ease-out; }
.st-btn:active { transform: scale(.97); }
.st-btn-line { background: transparent; color: var(--st-ink) !important; box-shadow: inset 0 0 0 2px var(--st-line); }
.st-btn-line:hover { box-shadow: inset 0 0 0 2px var(--st-green); }
.st-tag { display: inline-flex; padding: 4px 12px; border-radius: 999px; background: var(--st-red-soft); color: var(--st-red); font-weight: 700; font-size: .9rem; }
.st-tag-ok { background: var(--st-green-soft); color: var(--st-green-ink); }

.st-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 32px; align-items: end; padding-top: clamp(12px, 3vw, 32px); }
.st-kicker { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--st-green-soft); color: var(--st-green-ink); font-weight: 700; font-size: .92rem; margin-bottom: 16px !important; }
.st-title { font-size: clamp(2.6rem, 1.4rem + 5vw, 5.4rem); line-height: .98; font-weight: 850; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.st-title em { font-style: normal; color: var(--st-red); }
.st-lead { margin-top: 18px !important; font-size: 1.15rem; max-width: 38rem; color: var(--st-muted); }
.st-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px !important; }
.st-ticket { background: var(--st-surface); border-radius: 20px; padding: 26px 22px 20px; box-shadow: var(--st-card); position: relative; overflow: hidden; display: grid; gap: 10px; }
.st-ticket::before { content: ""; position: absolute; inset: 0 0 auto; height: 8px; background: repeating-linear-gradient(90deg, var(--st-red) 0 22px, transparent 22px 30px, var(--st-lime) 30px 52px, transparent 52px 60px); }
.st-ticket strong { font-size: 1.1rem; }
.st-ticket dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.st-ticket dt { color: var(--st-muted); font-size: .92rem; }
.st-ticket dd { margin: 0; font-weight: 700; }

.st-sec { display: grid; gap: 18px; scroll-margin-top: 90px; }
.st-sec-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.st-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: st; }
.st-steps li { background: var(--st-surface); border-radius: 16px; padding: 18px 20px; box-shadow: var(--st-card); counter-increment: st; display: grid; gap: 6px; align-content: start; }
.st-steps li::before { content: counter(st); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--st-green); color: var(--st-on-green); font-weight: 800; margin-bottom: 4px; }
.st-steps h3 { font-size: 1.1rem; }
.st-steps p { color: var(--st-muted); font-size: .97rem; }
.st-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.st-notes > div { border-radius: 16px; padding: 16px 18px; background: var(--st-surface-2); display: grid; gap: 4px; }
.st-notes p { color: var(--st-muted); font-size: .97rem; }

.st-mapbox { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.st-map { position: relative; background: var(--map-bg); border-radius: 20px; overflow: hidden; box-shadow: var(--st-card); min-height: 320px; }
.st-map svg { display: block; width: 100%; height: auto; max-height: 78vh; touch-action: none; }
.st-map-load { padding: 24px; color: var(--st-muted); }
.st-map .m-bg { fill: var(--map-bg); }
.st-map .m-land { fill: var(--map-land); }
.st-map .m-water { fill: none; stroke: var(--map-water); stroke-width: 3; }
.st-map .m-r1 { fill: none; stroke: var(--map-road); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.st-map .m-r2 { fill: none; stroke: var(--map-road); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.st-map .m-r3 { fill: none; stroke: var(--map-road); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.st-map .m-r4 { fill: none; stroke: var(--map-road); stroke-width: 2.5; }
.st-map .m-r5 { fill: none; stroke: var(--map-track); stroke-width: 2; stroke-dasharray: 6 4; }
.st-map .m-r6 { fill: none; stroke: var(--map-path); stroke-width: 1.4; stroke-dasharray: 3 3; }
.st-map .m-lab { font: 600 13px var(--wp--preset--font-family--archivo, sans-serif); fill: var(--map-label); text-anchor: middle; dominant-baseline: middle; paint-order: stroke; stroke: var(--map-bg); stroke-width: 4px; pointer-events: none; }
.st-pin { cursor: pointer; }
.st-pin circle { fill: var(--st-red); stroke: var(--map-bg); stroke-width: 3; }
.st-pin.dim { cursor: default; }
.st-pin.dim circle { fill: var(--map-path); }
.st-pin.sel circle { fill: var(--st-green); }
.st-pin text { font: 800 11px sans-serif; fill: #fff; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.st-pin:hover circle, .st-pin:focus circle { stroke: var(--st-ink); }
.st-pin:focus { outline: none; }
.st-zoom { position: absolute; right: 12px; top: 12px; display: grid; gap: 6px; }
.st-zoom button { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--st-surface); color: var(--st-ink); box-shadow: var(--st-card); font-size: 22px; font-weight: 700; cursor: pointer; }
.st-pop { position: absolute; z-index: 3; width: min(280px, calc(100% - 24px)); background: var(--st-surface); color: var(--st-ink); border-radius: 14px; box-shadow: var(--st-card), 0 0 0 1px var(--st-line); padding: 12px 34px 12px 14px; font-size: .95rem; transform: translate(-50%, calc(-100% - 16px)); display: grid; gap: 2px; }
.st-pop strong { font-size: 1.02rem; }
.st-pop button { position: absolute; right: 6px; top: 4px; border: 0; background: none; font-size: 22px; cursor: pointer; color: var(--st-muted); }
.st-side { background: var(--st-surface); border-radius: 20px; box-shadow: var(--st-card); padding: 16px; display: grid; gap: 12px; max-height: 78vh; grid-template-rows: auto auto minmax(0, 1fr); }
.st-search { width: 100%; min-height: 46px; border-radius: 12px; border: 2px solid var(--st-line); background: var(--st-surface); color: var(--st-ink); padding: 0 14px; font: inherit; }
.st-search:focus { border-color: var(--st-green); outline: none; }
.st-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.st-chip { border: 0; border-radius: 999px; padding: 7px 12px; background: var(--st-surface-2); color: var(--st-ink); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.st-chip[aria-pressed="true"] { background: var(--st-ink); color: var(--st-surface); }
.st-list { list-style: none; margin: 0; padding: 0; overflow: auto; display: grid; gap: 2px; align-content: start; min-height: 0; }
.st-list button { width: 100%; text-align: left; border: 0; background: none; color: var(--st-ink); font: inherit; padding: 10px; border-radius: 12px; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 2px 10px; cursor: pointer; }
.st-list button:hover, .st-list button[aria-current="true"] { background: var(--st-surface-2); }
.st-no { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 50%; background: var(--st-red); color: #fff; font-size: 11px; font-weight: 800; }
.st-list .st-no { grid-row: span 2; }
.st-ad { font-weight: 700; }
.st-of { font-size: .88rem; color: var(--st-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-empty { padding: 10px; color: var(--st-muted); }
.st-count { color: var(--st-muted); }
.st-osm { font-size: .85rem; color: var(--st-muted); }

.st-formgrid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.st-card { background: var(--st-surface); border-radius: 20px; box-shadow: var(--st-card); padding: clamp(18px, 3vw, 28px); display: grid; gap: 10px; }
.st-card h3 { font-size: 1.1rem; }
.st-aside { display: grid; gap: 14px; }
.st-bank { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .97rem; }
.st-bank dt { color: var(--st-muted); }
.st-bank dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.st-form { display: grid; gap: 20px; }
.st-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; min-width: 0; }
.st-form legend { font-weight: 800; font-size: 1.15rem; margin-bottom: 4px; padding: 0; }
.st-f { display: grid; gap: 6px; min-width: 0; margin: 0; }
.st-f label, .st-lab { font-weight: 600; font-size: .97rem; }
.st-f small, .st-small { color: var(--st-muted); font-size: .88rem; }
.st-optional { font-weight: 400; color: var(--st-muted); font-size: .85rem; }
.st-addr { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 12px; }
.st-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
/* Alle Eingabefelder gleich: unabhängig davon, welche Feldtypen das Theme gestaltet. */
.st-form input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]), .st-form select, .st-form textarea {
	box-sizing: border-box; width: 100%; min-height: 50px; height: auto; margin: 0; padding: 12px 14px;
	font: inherit; font-size: 1rem; line-height: 1.35; color: var(--st-ink); background: var(--st-surface);
	border: 2px solid var(--st-field); border-radius: 12px; box-shadow: none; appearance: none;
}
.st-form select { padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.st-form textarea { min-height: 96px; resize: vertical; }
.st-form input:not([type="radio"]):not([type="checkbox"]):focus, .st-form select:focus, .st-form textarea:focus { outline: none; border-color: var(--st-green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--st-lime) 55%, transparent); }
.st-form .hfv-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.st-two, .st-addr { align-items: start; }
.st-err { color: var(--st-red); font-size: .9rem; font-weight: 600; }
.st-req { color: var(--st-red); }
.st-form [aria-invalid="true"] { border-color: var(--st-red) !important; }
.st-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.st-opts .st-opt { position: relative; font-size: 1rem; color: var(--st-ink); }
.st-opts .st-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.st-opts .st-opt span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--st-field); background: var(--st-surface); font-weight: 600; }
.st-opts .st-opt input:checked + span { border-color: var(--st-green); background: var(--st-green-soft); color: var(--st-green-ink); box-shadow: inset 0 0 0 1px var(--st-green); }
.st-opts .st-opt input:focus-visible + span { outline: 3px solid var(--st-focus); outline-offset: 2px; }
.st-own-amount { max-width: 200px; }
.st-checks { display: grid; gap: 10px; }
.st-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: .97rem; }
.st-check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--st-green); flex: none; }
.st-submit { min-height: 56px; font-size: 1.05rem; width: 100%; }
.st-submit[aria-busy="true"] { opacity: .75; }
.st-notice { padding: 14px 16px; border-radius: 14px; background: var(--st-red-soft); }
.st-notice ul { margin: 6px 0 0; padding-left: 1.2em; }
.st-done { display: grid; gap: 12px; }
.st-done h3 { font-size: 1.5rem; }
.st-closed { gap: 8px; }
.st-big { font-size: 1.25rem; font-weight: 700; }

@media (max-width: 960px) {
	.st-hero, .st-mapbox, .st-formgrid { grid-template-columns: 1fr; }
	.st-side { max-height: 420px; }
}
@media (max-width: 640px) {
	.st-steps, .st-notes, .st-two { grid-template-columns: 1fr; }
	.st-addr { grid-template-columns: minmax(0, 1fr) 96px; }
}
@media (prefers-reduced-motion: reduce) { .st-btn { transition: none; } }

/* Versteckte Felder (z. B. „Straße eintragen“) bleiben versteckt, auch wenn das Feld als Raster gestaltet ist. */
.st [hidden], .hfv-st [hidden] { display: none !important; }

/* Anmeldeschluss so breit wie die Spalte rechts, Konto in einer Zeile je Angabe. */
.st-sec-h-form { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 8px 24px; align-items: center; }
.st-tag-close { justify-content: center; text-align: center; padding: 8px 14px; }
.st-bank { font-size: .95rem; }
.st-bank dd { overflow-wrap: normal; white-space: nowrap; }
@media (max-width: 960px) {
	.st-sec-h-form { grid-template-columns: 1fr; }
	.st-tag-close { justify-self: start; }
}
@media (max-width: 420px) { .st-bank dd { white-space: normal; } }
