/* Alle Fahrschulen Verzeichnis: Frontend. Farben über CSS Variablen anpassbar. */
.afs, .afs-form, .afs-dashboard, .afs-notice {
	--afs-accent: #0b5cad;
	--afs-accent-dark: #084a8c;
	--afs-bg: #f4f7fb;
	--afs-border: #dde4ed;
	--afs-text: #1c2530;
	--afs-muted: #5b6673;
	--afs-ok: #1a7f37;
	--afs-err: #b42318;
	--afs-radius: 14px;
	--afs-shadow: 0 1px 2px rgba(16, 38, 66, .06), 0 4px 14px rgba(16, 38, 66, .06);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--afs-text);
	box-sizing: border-box;
	line-height: 1.5;
}
.afs *, .afs-form *, .afs-dashboard * { box-sizing: border-box; }
.afs h1, .afs h2, .afs h3 { font-family: inherit; }

/* Farbtöne (Karten, Tiles, Avatare) */
.afs-tone-0 { --t: #0b5cad; --tl: #e6f0fb; }
.afs-tone-1 { --t: #e8710a; --tl: #fdf0e2; }
.afs-tone-2 { --t: #1a8f4c; --tl: #e4f5ec; }
.afs-tone-3 { --t: #7b3fbf; --tl: #f0e8fa; }
.afs-tone-4 { --t: #0e8a8a; --tl: #e0f4f4; }
.afs-tone-5 { --t: #d6336c; --tl: #fce8ef; }
/* Farbgruppen (Klassen, Filter) */
.afs-g-moto { --g: #c85e00; --gl: #fdf0e2; --gb: #f3c99b; }
.afs-g-pkw  { --g: #0b5cad; --gl: #e6f0fb; --gb: #a9c9ec; }
.afs-g-lkw  { --g: #14783f; --gl: #e4f5ec; --gb: #9cd4b3; }
.afs-g-bus  { --g: #6b32aa; --gl: #f0e8fa; --gb: #c9ade8; }
.afs-g-land { --g: #0a7676; --gl: #e0f4f4; --gb: #94d3d3; }
.afs-g-leist { --g: #3f4f9e; --gl: #e9ecfa; --gb: #b5bff0; }
.afs-g-more { --g: #46525f; --gl: #eef1f4; --gb: #c9d1da; }

.afs-i { flex: none; vertical-align: -0.2em; }

/* Buttons */
.afs-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid var(--afs-border); background: #fff; color: var(--afs-text); border-radius: 999px; font: inherit; font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer; transition: box-shadow .15s, border-color .15s, transform .15s; }
.afs-btn:hover { border-color: var(--afs-accent); box-shadow: var(--afs-shadow); color: var(--afs-text); }
.afs-btn:focus-visible, .afs a:focus-visible, .afs input:focus-visible, .afs select:focus-visible, .afs-pill input:focus-visible + span { outline: 3px solid #f5b400; outline-offset: 2px; }
.afs-btn-primary { background: var(--afs-accent); border-color: var(--afs-accent); color: #fff; }
.afs-btn-primary:hover { background: var(--afs-accent-dark); border-color: var(--afs-accent-dark); color: #fff; }

/* Bundesland Kacheln */
.afs-tiles { list-style: none; margin: 16px 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.afs-tile { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "i n" "i c"; column-gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--afs-radius); background: var(--tl); border: 1px solid transparent; text-decoration: none; color: var(--afs-text); transition: transform .15s, box-shadow .15s, border-color .15s; }
.afs-tile:hover { transform: translateY(-2px); box-shadow: var(--afs-shadow); border-color: var(--t); color: var(--afs-text); }
.afs-tile-ico { grid-area: i; width: 46px; height: 46px; border-radius: 12px; background: var(--t); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.05rem; letter-spacing: .03em; }
.afs-tile-name { grid-area: n; font-weight: 700; line-height: 1.2; }
.afs-tile-count { grid-area: c; font-size: 13px; color: var(--afs-muted); }

/* Filter */
.afs-intro { color: var(--afs-muted); font-size: 1.05rem; }
.afs-filter { background: linear-gradient(180deg, #fff 0%, var(--afs-bg) 100%); border: 1px solid var(--afs-border); border-radius: var(--afs-radius); padding: 18px; margin: 16px 0; box-shadow: var(--afs-shadow); }
.afs-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 10px; }
.afs-row > .afs-field { flex: 1 1 220px; }
.afs-field-small { flex: 0 1 170px !important; }
.afs-field { display: block; margin: 0 0 6px; }
.afs-label, .afs-field > label { display: block; font-size: 13px; font-weight: 700; color: var(--afs-muted); margin-bottom: 5px; letter-spacing: .02em; }
.afs-input { position: relative; display: block; }
.afs-input > .afs-i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--afs-muted); pointer-events: none; }
.afs-input input, .afs-input select { width: 100%; height: 44px; padding: 0 12px 0 38px; border: 1px solid var(--afs-border); border-radius: 10px; font: inherit; background: #fff; color: var(--afs-text); }
.afs-input input:focus, .afs-input select:focus { border-color: var(--afs-accent); }
.afs-pills { border: 0; margin: 10px 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.afs-pills legend { font-size: 13px; font-weight: 700; color: var(--afs-muted); padding: 0; margin-bottom: 6px; width: 100%; letter-spacing: .02em; }
.afs-pill { cursor: pointer; }
.afs-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.afs-pill span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--gb); background: #fff; color: var(--g); font-size: 14px; font-weight: 600; transition: background .12s, color .12s; }
.afs-pill:hover span { background: var(--gl); }
.afs-pill input:checked + span { background: var(--g); color: #fff; border-color: var(--g); }
.afs-actions { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }

/* Ergebnisse */
.afs-results-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.afs-count { font-weight: 700; font-size: 1.05rem; }
.afs-view-toggle { display: inline-flex; gap: 6px; }
.afs-view-toggle .afs-btn { padding: 7px 16px; }
.afs-view.is-active { background: var(--afs-accent); color: #fff; border-color: var(--afs-accent); }
.afs-layout { display: grid; grid-template-columns: 1fr; gap: 16px; }
.afs-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.afs-list.is-loading { opacity: .5; }
.afs-card { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--afs-border); border-top: 4px solid var(--t, var(--afs-accent)); border-radius: var(--afs-radius); padding: 16px; background: #fff; box-shadow: var(--afs-shadow); transition: transform .15s, box-shadow .15s; }
.afs-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(16,38,66,.08), 0 10px 24px rgba(16,38,66,.10); }
.afs-card-head { display: flex; gap: 12px; align-items: flex-start; }
.afs-avatar { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--tl, #e6f0fb); color: var(--t, #0b5cad); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; }
.afs-avatar.has-logo { background: #fff; border: 1px solid var(--afs-border); overflow: hidden; padding: 3px; }
.afs-avatar img { width: 100%; height: 100%; object-fit: contain; display: block; }
.afs-avatar-lg { width: 64px; height: 64px; border-radius: 16px; font-size: 1.7rem; background: var(--t); color: #fff; }
.afs-card-headtext { min-width: 0; }
.afs-card-title { margin: 0; font-size: 1.05rem; line-height: 1.3; overflow-wrap: anywhere; }
.afs-card-title a { text-decoration: none; color: var(--afs-text); }
.afs-card-title a:hover { color: var(--t, var(--afs-accent)); }
.afs-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; background: #e4f5ec; color: var(--afs-ok); border-radius: 999px; padding: 2px 10px; margin-top: 4px; }
.afs-line { display: flex; gap: 8px; margin: 0; color: var(--afs-muted); font-size: 14px; }
.afs-line .afs-i { margin-top: 3px; color: var(--t, var(--afs-accent)); }
.afs-dist { font-weight: 700; color: var(--afs-text); white-space: nowrap; background: var(--afs-bg); border-radius: 999px; padding: 0 8px; margin-left: 4px; }
.afs-klassen { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.afs-kl { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; background: var(--gl); color: var(--g); font-size: 13px; font-weight: 700; border: 1px solid var(--gb); margin: 0; }
.afs-klassen-lg .afs-kl { font-size: 14px; padding: 5px 14px; }
.afs-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.afs-act { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; background: var(--afs-bg); color: var(--afs-text); }
.afs-act:hover { background: var(--tl, #e6f0fb); color: var(--t, var(--afs-accent)); }
.afs-act-tel { background: var(--t, var(--afs-accent)); color: #fff; }
.afs-act-tel:hover { background: var(--t, var(--afs-accent)); color: #fff; filter: brightness(.92); }
.afs-act-more { margin-left: auto; background: transparent; color: var(--t, var(--afs-accent)); }
.afs-empty { padding: 28px; text-align: center; background: var(--afs-bg); border-radius: var(--afs-radius); grid-column: 1 / -1; }
.afs-more-btn { display: flex; margin: 20px auto; }
.afs-list-wrap.is-compact .afs-list { grid-template-columns: 1fr; }
@media (min-width: 1000px) {
	.afs-layout:has(.afs-map-wrap:not([hidden])) { grid-template-columns: minmax(300px, 440px) 1fr; }
	.afs-map-wrap { position: sticky; top: 16px; align-self: start; }
}

/* Orte, Seitenzahlen */
.afs-chips { list-style: none; margin: 8px 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.afs-chips a, .afs-chips span { display: inline-block; padding: 6px 14px; border: 1px solid var(--afs-border); border-radius: 999px; text-decoration: none; font-size: 14px; background: #fff; color: var(--afs-text); }
.afs-chips a:hover { border-color: var(--afs-accent); color: var(--afs-accent); background: var(--afs-bg); }
.afs-chips a span { border: 0; padding: 0; color: var(--afs-muted); background: none; margin-left: 4px; }
.afs-orte-nav { box-sizing: border-box; padding: 20px 24px 8px; margin: 0 0 20px; background: #fff; border: 1px solid var(--afs-border); border-radius: 12px; }
.afs-orte-nav .afs-orte-h:first-of-type { margin-top: 12px; }
.afs-orte summary { cursor: pointer; font-weight: 700; margin: 8px 0; }
.afs-orte-h { margin: 22px 0 10px; font-size: 18px; line-height: 1.3; }
.afs-orte-top { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.afs-orte-top a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--afs-border); border-left: 4px solid var(--afs-accent); border-radius: 12px; background: #fff; text-decoration: none; color: var(--afs-text); transition: box-shadow .15s, transform .15s; }
.afs-orte-top a:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .09); transform: translateY(-1px); }
.afs-orte-top strong { font-size: 16px; line-height: 1.3; }
.afs-orte-top span { font-size: 13px; color: var(--afs-muted); }
.afs-orte-az { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 8px 0; }
.afs-orte-az a { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; border: 1px solid var(--afs-border); border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 14px; color: var(--afs-text); }
.afs-orte-az a:hover { border-color: var(--afs-accent); color: var(--afs-accent); background: var(--afs-bg); }
.afs-orte-groups { columns: 4 200px; column-gap: 32px; padding: 0 4px 8px; }
.afs-orte-grp { margin: 0 0 18px; scroll-margin-top: 60px; }
.afs-orte-grp h4 { margin: 0 0 6px; padding-bottom: 4px; border-bottom: 2px solid var(--afs-accent); font-size: 18px; color: var(--afs-accent); break-after: avoid; }
.afs-orte-grp ul { list-style: none; margin: 0; padding: 0; }
.afs-orte-grp li { break-inside: avoid; }
.afs-orte-grp a { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; text-decoration: none; font-size: 14px; color: var(--afs-text); }
.afs-orte-grp a:hover { color: var(--afs-accent); }
.afs-orte-grp a span { color: var(--afs-muted); font-size: 12px; }
.afs-pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 20px 0; justify-content: center; }
.afs-pagination a, .afs-pagination span { display: inline-block; min-width: 40px; text-align: center; padding: 8px 12px; border: 1px solid var(--afs-border); border-radius: 10px; text-decoration: none; }
.afs-pagination .current, .afs-pagination [aria-current] { background: var(--afs-accent); color: #fff; border-color: var(--afs-accent); }
.afs-gap { padding: 7px 4px; }

/* Karte */
.afs-map { position: relative; height: var(--afs-map-h, 420px); border: 1px solid var(--afs-border); border-radius: var(--afs-radius); overflow: hidden; background: linear-gradient(135deg, #e6f0fb, #eef7f0); }
.afs-map-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; text-align: center; font-size: 14px; color: var(--afs-muted); }
.afs-map-consent[hidden], .afs-map-canvas[hidden] { display: none; }
.afs-map-canvas { position: absolute; inset: 0; }
.afs-cluster { background: var(--afs-accent, #0b5cad); color: #fff; border: 3px solid rgba(255,255,255,.85); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.35); }

/* Einzelseite */
.single-fahrschule .uk-article-meta, .single-fahrschule .uk-pagination { display: none !important; }
.afs-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 14px; font-size: 14px; color: var(--afs-muted); }
.afs-breadcrumbs a { color: var(--afs-muted); }
.afs-breadcrumbs li + li::before { content: "›"; margin-right: 6px; }
.afs-hero { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 20px; border-radius: var(--afs-radius); background: linear-gradient(120deg, var(--tl) 0%, #fff 70%); border: 1px solid var(--afs-border); border-left: 6px solid var(--t); box-shadow: var(--afs-shadow); margin-bottom: 22px; }
.afs-hero-info { display: flex; gap: 16px; align-items: center; min-width: 0; }
.afs-hero-info .afs-logo { width: 72px; height: 72px; object-fit: contain; border-radius: 12px; background: #fff; border: 1px solid var(--afs-border); }
.afs-hero-addr { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 6px; font-size: 1.05rem; font-weight: 600; }
.afs-hero-addr .afs-i { color: var(--t); margin-top: 3px; }
.afs-hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.afs-hero-badges .afs-badge { margin: 0; }
.afs-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.afs-hero-actions .afs-btn-primary { background: var(--t); border-color: var(--t); }
.afs-open { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.afs-open.is-open { background: #e4f5ec; color: var(--afs-ok); }
.afs-open.is-closed { background: #eef1f4; color: var(--afs-muted); }
.afs-single-grid { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: start; }
@media (min-width: 900px) { .afs-single-grid { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); } }
.afs-card-box, .afs-box { background: #fff; border: 1px solid var(--afs-border); border-radius: var(--afs-radius); padding: 18px 20px; margin-bottom: 18px; box-shadow: var(--afs-shadow); }
.afs-h { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 1.1rem; line-height: 1.2; }
.afs-h .afs-i { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--tl, #e6f0fb); color: var(--t, var(--afs-accent)); }
.afs-lead { font-size: 1.1rem; margin-top: 0; }
.afs-card-box p:last-child { margin-bottom: 0; }
.afs-hint { background: #fffaf0; border-style: dashed; border-color: #f0d9a8; }
.afs-claimbox { background: linear-gradient(135deg, var(--t, #0b5cad), #08376a); color: #fff; border: 0; }
.afs-claimbox .afs-h { color: #fff; }
.afs-claimbox .afs-h .afs-i { background: rgba(255,255,255,.18); color: #fff; }
.afs-claimbox .afs-btn { background: #fff; color: var(--afs-text); border-color: #fff; }
.afs-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.afs-info { display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.afs-ico { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--tl); color: var(--t); display: flex; align-items: center; justify-content: center; }
.afs-info-text { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.afs-info-text small { color: var(--afs-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.afs-info-text address { font-style: normal; }
.afs-info-text a { color: var(--t); font-weight: 600; text-decoration: none; }
.afs-info-text a:hover { text-decoration: underline; }
.afs-socials { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.afs-soc { width: 40px; height: 40px; border-radius: 50%; background: var(--afs-bg); color: var(--afs-text); display: flex; align-items: center; justify-content: center; transition: background .15s, color .15s; }
.afs-soc:hover { background: var(--t); color: #fff; }
.afs-hours-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.afs-hours-table th, .afs-hours-table td { text-align: left; padding: 6px 8px; border: 0; border-bottom: 1px solid var(--afs-border); }
.afs-hours-table tr:last-child th, .afs-hours-table tr:last-child td { border-bottom: 0; }
.afs-hours-table .is-today { background: var(--tl); font-weight: 700; }
.afs-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.afs-gallery img { width: 100%; height: auto; border-radius: 10px; display: block; }
.afs-list-plain { margin: 0; padding-left: 20px; }
.afs-removal { font-size: 13px; color: var(--afs-muted); }
.afs-nearby { margin-top: 12px; }
.afs-nearby .afs-h { margin-bottom: 14px; }

/* Formulare */
.afs-form fieldset { border: 1px solid var(--afs-border); border-radius: var(--afs-radius); padding: 14px 18px 8px; margin: 0 0 18px; background: #fff; }
.afs-form legend { font-weight: 700; padding: 0 8px; }
.afs-form .afs-field > label { font-size: 14px; color: var(--afs-text); }
.afs-form .afs-field input[type=text], .afs-form .afs-field input[type=email], .afs-form .afs-field input[type=url], .afs-form .afs-field input[type=tel], .afs-form .afs-field select, .afs-form .afs-field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--afs-border); border-radius: 10px; font: inherit; background: #fff; }
.afs-form .afs-check, .afs-form .afs-radio { margin: 6px 0; }
.afs-form .afs-checks { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-bottom: 8px; }
.afs-form .afs-checks label { display: inline-flex; gap: 6px; align-items: center; }
.afs-hours-form th { text-align: left; font-weight: 600; padding-right: 12px; }
.afs-hours-form td, .afs-hours-form th { padding: 3px 0; border: 0; }
.afs-proof[hidden] { display: none; }
.afs-notice { padding: 14px 18px; border-radius: var(--afs-radius); background: var(--afs-bg); border: 1px solid var(--afs-border); margin: 12px 0; }
.afs-notice.afs-ok { background: #e9f6ec; border-color: #9ad3ab; }
.afs-notice.afs-err { background: #fdecea; border-color: #f3b5ae; color: var(--afs-err); }
.afs-warn { color: var(--afs-err); font-weight: 700; }
.afs-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.afs-tab { padding: 7px 14px; border: 1px solid var(--afs-border); border-radius: 999px; text-decoration: none; }
.afs-tab.is-active { background: var(--afs-accent); color: #fff; border-color: var(--afs-accent); }
.afs-statlist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.afs-statlist li { background: var(--afs-bg); border-radius: 12px; padding: 12px; font-size: 14px; }
.afs-statlist strong { display: block; font-size: 1.6rem; }
.afs-inline { display: flex; flex-wrap: wrap; gap: 8px; }
.afs-hp { position: absolute !important; left: -9999px !important; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Bewertungen */
.afs-stars { --afs-fill: 0%; display: inline-block; position: relative; width: 5.4em; height: 1em; font-size: 15px; line-height: 1; vertical-align: -2px; background: linear-gradient(90deg, #f5a623 var(--afs-fill), #d5dbe3 var(--afs-fill)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='108' height='20' viewBox='0 0 108 20'%3E%3Cg fill='%23000'%3E%3Cpath id='s' d='M10 1l2.6 5.8 6.4.7-4.8 4.3 1.4 6.2L10 14.8 4.4 18l1.4-6.2L1 7.5l6.4-.7z'/%3E%3Cuse href='%23s' x='21.5'/%3E%3Cuse href='%23s' x='43'/%3E%3Cuse href='%23s' x='64.5'/%3E%3Cuse href='%23s' x='86'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='108' height='20' viewBox='0 0 108 20'%3E%3Cg fill='%23000'%3E%3Cpath id='s' d='M10 1l2.6 5.8 6.4.7-4.8 4.3 1.4 6.2L10 14.8 4.4 18l1.4-6.2L1 7.5l6.4-.7z'/%3E%3Cuse href='%23s' x='21.5'/%3E%3Cuse href='%23s' x='43'/%3E%3Cuse href='%23s' x='64.5'/%3E%3Cuse href='%23s' x='86'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
.afs-stars.is-lg { font-size: 22px; }
.afs-rating-badge { display: inline-flex; gap: 6px; align-items: center; color: inherit; text-decoration: none; font-size: 14px; }
.afs-rating-badge span { color: var(--afs-muted, #5b6573); }
.afs-rev-sum { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
.afs-rev-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.afs-rev { border: 1px solid var(--afs-border); border-radius: var(--afs-radius); padding: 12px 16px; background: #fff; }
.afs-rev-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.afs-rev-head time { margin-left: auto; font-size: 13px; color: var(--afs-muted, #5b6573); }
.afs-rev p { margin: 8px 0 0; }
.afs-rev-formtitle { margin: 18px 0 8px; font-size: 18px; }
.afs-rate { border: 0; padding: 0; margin: 0 0 12px; }
.afs-rate legend { font-weight: 700; padding: 0; margin-bottom: 4px; }
.afs-rate-stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.afs-rate-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.afs-rate-stars label { cursor: pointer; width: 38px; height: 38px; background: #d5dbe3; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1l2.6 5.8 6.4.7-4.8 4.3 1.4 6.2L10 14.8 4.4 18l1.4-6.2L1 7.5l6.4-.7z'/%3E%3C/svg%3E") center / 80% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1l2.6 5.8 6.4.7-4.8 4.3 1.4 6.2L10 14.8 4.4 18l1.4-6.2L1 7.5l6.4-.7z'/%3E%3C/svg%3E") center / 80% no-repeat; }
.afs-rate-stars input:checked ~ label, .afs-rate-stars label:hover, .afs-rate-stars label:hover ~ label { background: #f5a623; }
.afs-rate-stars input:focus-visible + label { outline: 3px solid #f5b400; outline-offset: 2px; }
.afs-reviews textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--afs-border); border-radius: 10px; font: inherit; }
.afs-small { font-size: 13px; color: var(--afs-muted, #5b6573); }
.screen-reader-text { position: absolute; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }

/* SEO Texte und FAQ */
.afs-seotext { margin: 32px 0 0; padding: 20px 22px; border: 1px solid var(--afs-border); border-radius: var(--afs-radius); background: #fff; }
.afs-seotext h2 { margin: 0 0 10px; font-size: 22px; }
.afs-seotext p { margin: 0 0 10px; }
.afs-faq { display: grid; gap: 10px; }
.afs-faq details { border: 1px solid var(--afs-border); border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s, background .15s; }
.afs-faq details:hover { border-color: var(--t, var(--afs-accent)); }
.afs-faq details[open] { border-color: var(--t, var(--afs-accent)); background: var(--tl, #f4f8fc); box-shadow: var(--afs-shadow); }
.afs-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; font-weight: 600; line-height: 1.35; }
.afs-faq summary::-webkit-details-marker { display: none; }
.afs-faq summary::after { content: ""; flex: 0 0 26px; height: 26px; border-radius: 50%; background: color-mix(in srgb, var(--t, #0b5cad) 12%, #fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .2s; }
.afs-faq details[open] summary::after { transform: rotate(45deg); }
.afs-faq summary:focus-visible { outline: 3px solid #f5b400; outline-offset: 2px; border-radius: 12px; }
.afs-faq details > p { margin: 0; padding: 0 16px 16px; line-height: 1.6; }

/* Kompakter Filter */
.afs-filter { padding: 16px; }
.afs-filter-main { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.1fr) minmax(0, .8fr) minmax(0, 1.3fr) auto; gap: 12px; align-items: end; }
.afs-filter-main .afs-field { margin: 0; }
.afs-f-go .afs-btn { height: 44px; justify-content: center; padding: 0 22px; }
.afs-filter-bar { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 18px; margin-top: 12px; }
.afs-linkbtn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; border: 0; background: none; color: var(--afs-accent); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.afs-linkbtn:hover { text-decoration: underline; }
.afs-more { flex: 1 1 100%; }
.afs-more > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 6px 14px; border: 1px solid var(--afs-border); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; }
.afs-more > summary::-webkit-details-marker { display: none; }
.afs-more > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.afs-more[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.afs-count-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--afs-accent); color: #fff; font-size: 12px; }
.afs-more-body { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--afs-border); border-radius: 12px; background: #fff; display: grid; gap: 14px; }
.afs-more-body .afs-pills { margin: 0; }
.afs-pills-groups { display: grid; gap: 8px; }
.afs-pgroup { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.afs-pgroup-label { flex: 0 0 74px; font-size: 13px; color: var(--afs-muted); font-weight: 600; }
.afs-sortline { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.afs-sortline select { height: 38px; padding: 0 10px; border: 1px solid var(--afs-border); border-radius: 10px; font: inherit; background: #fff; }
.afs-more-body .afs-actions { padding-top: 4px; }
@media (max-width: 900px) {
	.afs-filter-main { grid-template-columns: 1fr 1fr; }
	.afs-f-q, .afs-f-go { grid-column: 1 / -1; }
	.afs-f-go .afs-btn { width: 100%; }
}
@media (max-width: 520px) {
	.afs-filter-main { grid-template-columns: 1fr; }
	.afs-pgroup-label { flex-basis: 100%; }
}

/* Filter: Feinschliff */
.afs-input .afs-locate-in { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--afs-accent); cursor: pointer; }
.afs-input .afs-locate-in:hover { background: color-mix(in srgb, var(--afs-accent) 12%, #fff); }
.afs-f-near .afs-input input { padding-right: 44px; }
.afs-filter-bar { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--afs-border); }
.afs-more > summary { gap: 8px; padding: 8px 16px; border: 1px solid var(--afs-border); border-radius: 10px; background: #fff; color: var(--afs-text); transition: border-color .15s, box-shadow .15s; }
.afs-more > summary:hover { border-color: var(--afs-accent); box-shadow: var(--afs-shadow); }
.afs-more[open] > summary { border-color: var(--afs-accent); color: var(--afs-accent); }
.afs-more > summary svg { flex: 0 0 auto; }
.afs-more > summary::after { margin-left: 4px; }
.afs-contactbox{margin-top:12px}
.afs-contactbox .afs-form{display:grid;gap:10px}

/* Verzeichnis: Filter links, Ergebnisse rechts, volle Breite */
@media (min-width: 1000px) {
	.afs-directory { display: grid; grid-template-columns: 320px minmax(0, 1fr); column-gap: 24px; align-items: start; width: min(1400px, calc(100vw - 64px)); position: relative; left: 50%; transform: translateX(-50%); }
	.afs-directory > .afs-intro, .afs-directory > .afs-seotext { grid-column: 1 / -1; }
	.afs-directory > .afs-intro { grid-row: 1; }
	.afs-directory > .afs-nav { grid-column: 2; grid-row: 4; margin-top: 24px; min-width: 0; }
	.afs-directory > .afs-filter { grid-column: 1; grid-row: 2 / span 3; margin: 0; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
	.afs-directory > .afs-results-head { grid-column: 2; grid-row: 2; margin-top: 0; }
	.afs-directory > .afs-layout { grid-column: 2; grid-row: 3; }
	.afs-directory .afs-filter-main { grid-template-columns: 1fr; gap: 10px; }
	.afs-directory .afs-f-go .afs-btn { width: 100%; justify-content: center; }
	.afs-directory .afs-filter-bar { margin-top: 12px; padding-top: 12px; }
	.afs-directory .afs-more > summary { display: none; }
	.afs-directory .afs-more-body { margin-top: 0; padding: 0; border: 0; background: transparent; }
	.afs-directory .afs-pgroup-label { flex-basis: 100%; }
	.afs-directory .afs-list { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
	.afs-directory > .afs-seotext { margin-top: 24px; }
}
.afs-locate.is-busy { opacity: .5; pointer-events: none; }
@media (min-width: 1000px) {
	.afs-directory-text { width: min(1400px, calc(100vw - 64px)); position: relative; left: 50%; transform: translateX(-50%); margin-top: 24px; }
}

/* Karten-Popup: Link gut sichtbar */
.leaflet-popup-content .afs-popup-link { display: inline-block; margin-top: 6px; font-weight: 600; color: #0b57b8; text-decoration: underline; }
.leaflet-popup-content strong a { color: inherit; text-decoration: underline; }

/* Verzeichnis: Zusatzhöhe des Filters geht an die letzte Zeile, keine Lücke über der Liste */
@media (min-width: 1000px) {
	.afs-directory { grid-template-rows: auto auto auto minmax(0, 1fr); align-content: start; }
	.afs-directory > .afs-filter { align-self: start; }
	.afs-directory .afs-filter-main { align-content: start; }
	.afs-directory .afs-f-go { margin-bottom: 4px; }
}
