/**
 * Synapsenbrenner - Modul highlightseite, Gestaltung (HL-B1, 12.10.2026).
 * Ergaenzt ortsseite.css (Hero, Steckbrief, Zahlenband, Galerie, FAQ, Stockwerke) um die Teile, die
 * nur das Highlight hat. Werte aus dem Entwurf (bauplan/highlights/entwurf/vorlage.html, Abschnitt
 * „Highlight-Seitentyp"), Klassen sb-hls-* unter .sb-hls (FRONTEND-REGELN.md 2 und 5.3).
 */

.sb-hls {
	--sb-hls-ampel-gruen: var(--sb-mint, #77c49b);
	--sb-hls-ampel-grau: #d6d2c6;
	--sb-hls-ampel-rot: #d9785a;
}

/* ---------- Hero (HL1, HL16) ---------- */
.sb-hls .sb-hls-krumen ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 14px; padding: 0; font-size: 14px; color: #bfe0d3; }
.sb-hls .sb-hls-krumen li { margin: 0; }
.sb-hls .sb-hls-krumen li + li::before { content: "›"; margin-right: 6px; color: var(--sb-mint, #77c49b); }
.sb-hls .sb-hls-krumen a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.sb-hls .sb-hls-krumen a:hover { border-bottom-color: var(--sb-gelb, #e5de00); }
.sb-hls .sb-hls-typ { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font: 700 12.5px/1 var(--sb-schrift-titel, Montserrat, sans-serif); letter-spacing: .14em; text-transform: uppercase; color: var(--sb-gelb, #e5de00); }
.sb-hls .sb-hls-typ-icon { width: 20px; height: 20px; color: var(--sb-gelb, #e5de00); }
.sb-hls .sb-hls-auch { margin: -6px 0 12px; color: #bfe0d3; font-size: 15px; }
.sb-hls .sb-hls-gefuehl { font: 600 clamp(19px, 2vw, 23px)/1.4 var(--sb-schrift-titel, Montserrat, sans-serif); color: #fff; margin: 0 0 18px; max-width: 560px; }
.sb-hls .sb-hls-fakten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 24px 0; border-top: 1px solid rgba(255, 255, 255, .18); }
.sb-hls .sb-hls-fakten > div { display: grid; grid-template-columns: 24px 1fr; column-gap: 10px; align-items: start; padding: 12px 14px 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.sb-hls .sb-hls-fakt-icon { grid-row: span 2; color: var(--sb-mint, #77c49b); width: 22px; height: 22px; margin-top: 2px; }
.sb-hls .sb-hls-fakten dt { font: 700 11px/1.3 var(--sb-schrift-titel, Montserrat, sans-serif); letter-spacing: .12em; text-transform: uppercase; color: var(--sb-mint, #77c49b); }
.sb-hls .sb-hls-fakten dd { margin: 2px 0 0; font-weight: 700; font-size: 16.5px; color: #fff; line-height: 1.35; }
@media (max-width: 480px) { .sb-hls .sb-hls-fakten { grid-template-columns: 1fr; } }
.sb-hls .sb-hls-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.sb-hls .sb-hls-knopf-hell { color: #fff; display: inline-flex; gap: 8px; align-items: center; }
.sb-hls .sb-hls-knopf-icon { width: 18px; height: 18px; }
.sb-hls .sb-hls-kartenkachel a { display: block; position: relative; width: 100%; height: 100%; background: #e8e2d0; }
.sb-hls .sb-hls-minikarte { display: block; width: 100%; height: 100%; }
.sb-hls .sb-hls-kartenkachel span { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; background: rgba(2, 28, 30, .78); color: #fff; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 4px 10px; }
.sb-hls .sb-hls-kartenkachel span svg { width: 16px; height: 16px; }

/* ---------- Steckbrief (HL3, HL19, HL33) ---------- */
.sb-hls .sb-hls-steckbrief .sb-hls-dt-text { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.sb-hls .sb-hls-steckbrief dd ul { margin: 4px 0 0; padding-left: 18px; }
.sb-hls .sb-hls-steckbrief dd li { margin: 0 0 2px; }
.sb-hls .sb-hls-preis { display: inline; background: linear-gradient(transparent 45%, #fff27a 45%); padding: 0 3px; font-weight: inherit; color: inherit; }
.sb-hls .sb-hls-info { position: relative; width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid currentColor; background: none; color: var(--sb-text-2, #4b5563); font: 700 10.5px/1 var(--sb-schrift-text, "Source Sans 3", sans-serif); display: inline-grid; place-items: center; cursor: help; padding: 0; margin-left: 2px; text-transform: none; letter-spacing: 0; }
.sb-hls .sb-hls-info:hover::after, .sb-hls .sb-hls-info:focus::after { content: attr(data-sb-hls-tipp); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); width: 230px; background: var(--sb-petrol-900, #021c1e); color: #fff; font: 400 13.5px/1.45 var(--sb-schrift-text, "Source Sans 3", sans-serif); padding: 10px 12px; border-radius: 10px; z-index: 20; text-align: left; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.sb-hls .sb-hls-qk { display: inline-flex; gap: 3px; margin-left: 8px; vertical-align: middle; font: 600 10.5px/1 var(--sb-schrift-text, "Source Sans 3", sans-serif); letter-spacing: 0; text-transform: none; }
.sb-hls .sb-hls-qk a { color: var(--sb-text-2, #4b5563); background: var(--sb-grau-100, #f2f0eb); border-radius: 4px; padding: 3px 5px; text-decoration: none; }
.sb-hls .sb-basis-sektion--tief .sb-hls-qk a, .sb-hls .sb-hls-zahlenband .sb-hls-qk a { color: #cfe3dc; background: rgba(255, 255, 255, .12); }

/* ---------- Zahlenband als Trenner (HL2, HL18) ---------- */
.sb-hls .sb-hls-zahlenband .sb-ortsseite-zahl dd { font-size: clamp(28px, 3.1vw, 42px); white-space: nowrap; }
.sb-hls .sb-hls-zahlenband .sb-ortsseite-zahl dt { font-size: 15px; }
.sb-hls .sb-hls-zahlen-fuss { position: relative; z-index: 2; text-align: right; margin: 14px 0 0; }
@media (max-width: 600px) { .sb-hls .sb-hls-zahlenband .sb-ortsseite-zahl dd { white-space: normal; font-size: 28px; } }

/* ---------- Gemeinsam ---------- */
.sb-hls .sb-hls-einleitung { font-size: 18px; line-height: 1.6; max-width: 820px; margin: 0 0 22px; }
.sb-hls .sb-basis-sektion--tief .sb-hls-einleitung { color: #d5e6e0; }
.sb-hls .sb-hls-klein { font-size: 13.5px; color: var(--sb-text-2, #4b5563); margin: 6px 0 12px; }
.sb-hls .sb-basis-sektion--tief .sb-hls-klein { color: #a9c7bf; }

/* ---------- Lage (HL4, HL21, HL39) ---------- */
.sb-hls .sb-hls-lage-raster { display: grid; grid-template-columns: 1.45fr 1fr; gap: 36px; align-items: start; }
.sb-hls .sb-hls-lage-raster--ohne-karte { grid-template-columns: minmax(0, 640px); }
@media (max-width: 980px) { .sb-hls .sb-hls-lage-raster { grid-template-columns: minmax(0, 1fr); } }
.sb-hls .sb-hls-karte { min-height: 300px; min-width: 0; }
.sb-hls .sb-hls-anreise h3 { margin-top: 0; }
.sb-hls .sb-hls-distanzen { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 8px; }
.sb-hls .sb-hls-distanzen li { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; background: var(--sb-weiss, #fff); border: 1px solid var(--sb-grau-200, #e5e7eb); border-radius: var(--sb-radius-s, 12px); padding: 10px 12px; font-size: 15px; margin: 0; }
.sb-hls .sb-hls-distanz-icon { width: 22px; height: 22px; color: var(--sb-petrol-700, #004445); }
.sb-hls .sb-hls-distanzen b { font-family: var(--sb-schrift-titel, Montserrat, sans-serif); color: var(--sb-petrol-900, #021c1e); }
.sb-hls .sb-hls-distanzen small { display: block; color: var(--sb-text-2, #4b5563); font-size: 13px; }
.sb-hls .sb-hls-km { font: 800 18px var(--sb-schrift-titel, Montserrat, sans-serif); color: var(--sb-petrol-700, #004445); text-align: right; white-space: nowrap; }
.sb-hls .sb-hls-koordinate { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.sb-hls .sb-hls-koordinate .sb-basis-knopf { display: inline-flex; gap: 6px; align-items: center; color: var(--sb-petrol-700, #004445); }
.sb-hls .sb-hls-koordinate [hidden] { display: none; }
/* Fokus-Nadel des Highlights in der Parkkarte: gelb, groesser, pulsierender Ring (HL39) */
.sb-hls .sb-ortskarten-nadel.sb-ortskarten-nadel--fokus { width: 40px; height: 40px; background: var(--sb-gelb, #e5de00); border: 3px solid var(--sb-petrol-900, #021c1e); z-index: 6; animation: sb-hls-fokus 1.8s ease-out infinite; }
.sb-hls .sb-ortskarten-nadel.sb-ortskarten-nadel--fokus svg { fill: var(--sb-petrol-900, #021c1e); width: 20px; height: 20px; }
@keyframes sb-hls-fokus { 0% { box-shadow: 0 0 0 0 rgba(229, 222, 0, .75), 0 4px 14px rgba(0, 0, 0, .3); } 70% { box-shadow: 0 0 0 18px rgba(229, 222, 0, 0), 0 4px 14px rgba(0, 0, 0, .3); } 100% { box-shadow: 0 0 0 0 rgba(229, 222, 0, 0), 0 4px 14px rgba(0, 0, 0, .3); } }
@media (prefers-reduced-motion: reduce) { .sb-hls .sb-ortskarten-nadel.sb-ortskarten-nadel--fokus { animation: none; box-shadow: 0 0 0 8px rgba(229, 222, 0, .35); } }

/* ---------- Besuch im Monat (HL5, HL24) ---------- */
.sb-hls .sb-hls-monate { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; margin: 6px 0 22px; }
@media (max-width: 700px) { .sb-hls .sb-hls-monate { grid-template-columns: repeat(6, 1fr); } }
.sb-hls .sb-hls-monat { border: 0; border-radius: 10px; padding: 10px 0 8px; font: 800 14px var(--sb-schrift-titel, Montserrat, sans-serif); color: var(--sb-petrol-900, #021c1e); cursor: pointer; position: relative; background: var(--sb-hls-ampel-grau); }
.sb-hls .sb-hls-monat--gruen { background: var(--sb-hls-ampel-gruen); }
.sb-hls .sb-hls-monat--rot { background: var(--sb-hls-ampel-rot); }
.sb-hls .sb-hls-monat[aria-pressed="true"] { outline: 3px solid var(--sb-gelb, #e5de00); outline-offset: 2px; }
.sb-hls .sb-hls-monat small { display: block; font: 600 10.5px var(--sb-schrift-text, "Source Sans 3", sans-serif); opacity: .8; }
.sb-hls .sb-hls-voll { display: flex; align-items: center; justify-content: center; gap: 3px; margin: 4px auto 0; font: 700 10px var(--sb-schrift-text, "Source Sans 3", sans-serif); color: #5a1d08; background: rgba(255, 255, 255, .55); border-radius: 999px; padding: 1px 6px; width: max-content; }
.sb-hls .sb-hls-voll svg { width: 11px; height: 11px; }
.sb-hls .sb-hls-besuch-raster { display: grid; grid-template-columns: 1fr 1.3fr; gap: 30px; align-items: start; }
@media (max-width: 900px) { .sb-hls .sb-hls-besuch-raster { grid-template-columns: minmax(0, 1fr); } }
.sb-hls .sb-hls-besuch-karte { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--sb-radius, 20px); padding: 20px 22px; min-width: 0; }
.sb-hls .sb-hls-besuch-karte h3 { margin: 0 0 8px; }
.sb-hls .sb-hls-besuch-unter { font-size: 14px; color: #a9c7bf; margin: 0; }
.sb-hls .sb-hls-ampel { display: inline-block; font: 700 13px var(--sb-schrift-text, "Source Sans 3", sans-serif); color: var(--sb-petrol-900, #021c1e); border-radius: 999px; padding: 3px 11px; vertical-align: middle; margin-left: 6px; background: var(--sb-hls-ampel-grau); }
.sb-hls .sb-hls-ampel--gruen { background: var(--sb-hls-ampel-gruen); }
.sb-hls .sb-hls-ampel--rot { background: var(--sb-hls-ampel-rot); }
.sb-hls .sb-hls-ereignis { margin: 10px 0 0; }
.sb-hls .sb-hls-ereignis-icon { width: 18px; height: 18px; color: var(--sb-gelb, #e5de00); vertical-align: -4px; margin-right: 4px; }
.sb-hls .sb-hls-sonne { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.sb-hls .sb-hls-sonne div { background: rgba(255, 255, 255, .07); border-radius: 12px; padding: 10px; text-align: center; }
.sb-hls .sb-hls-sonne b { display: block; font: 800 22px var(--sb-schrift-titel, Montserrat, sans-serif); color: var(--sb-gelb, #e5de00); }
.sb-hls .sb-hls-sonne span { font-size: 12.5px; color: #cfe3dc; }
@media (max-width: 600px) { .sb-hls .sb-hls-sonne b { font-size: 17px; white-space: nowrap; } }
.sb-hls .sb-hls-tagesband { position: relative; height: 74px; border-radius: 12px; overflow: hidden; margin: 8px 0 6px; }
.sb-hls .sb-hls-himmel { position: absolute; inset: 0; }
.sb-hls .sb-hls-stunde { position: absolute; top: 4px; font: 600 10.5px var(--sb-schrift-text, "Source Sans 3", sans-serif); color: rgba(255, 255, 255, .85); transform: translateX(-50%); }
.sb-hls .sb-hls-block { position: absolute; top: 30px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--sb-petrol-900, #021c1e); border: 2px solid rgba(2, 28, 30, .25); overflow: hidden; background: #fff; }
.sb-hls .sb-hls-block-icon { width: 16px; height: 16px; }
.sb-hls .sb-hls-block--zu { background: #cfe3dc; }
.sb-hls .sb-hls-block--anfahrt { background: #efc56f; }
.sb-hls .sb-hls-block--tiere { background: var(--sb-mint, #77c49b); }
.sb-hls .sb-hls-block--kultur { background: var(--sb-gelb, #e5de00); }
.sb-hls .sb-hls-block--licht { background: #f6d28b; }
.sb-hls .sb-hls-block--trubel { background: #d9785a; }
.sb-hls .sb-hls-tagesliste { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.sb-hls .sb-hls-tagesliste li { display: grid; grid-template-columns: 96px 1fr; gap: 10px; font-size: 15px; margin: 0; }
.sb-hls .sb-hls-tagesliste b { font-family: var(--sb-schrift-titel, Montserrat, sans-serif); color: var(--sb-gelb, #e5de00); }

/* ---------- Passt (HL7) ---------- */
.sb-hls .sb-hls-passt { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .sb-hls .sb-hls-passt { grid-template-columns: minmax(0, 1fr); } }
.sb-hls .sb-hls-passt > div { border-radius: var(--sb-radius, 20px); padding: 22px 24px; }
.sb-hls .sb-hls-passt-ja { background: #e5f4ec; }
.sb-hls .sb-hls-passt-nein { background: #fbece6; }
.sb-hls .sb-hls-passt h3 { margin: 0; }
.sb-hls .sb-hls-passt ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.sb-hls .sb-hls-passt li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; margin: 0; }
.sb-hls .sb-hls-passt-ja li::before { content: "✓"; font: 800 18px var(--sb-schrift-titel, Montserrat, sans-serif); color: var(--sb-petrol-700, #004445); }
.sb-hls .sb-hls-passt-nein li::before { content: "✗"; font: 800 18px var(--sb-schrift-titel, Montserrat, sans-serif); color: #b4532f; }

/* ---------- Galerie (HL8): Nachweis unter dem Bild ---------- */
.sb-hls .sb-ortsseite-mauer-eintrag { position: relative; }
.sb-hls .sb-hls-nachweis { position: absolute; right: 6px; bottom: 6px; max-width: calc(100% - 12px); background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; line-height: 1.3; border-radius: 6px; padding: 2px 6px; pointer-events: none; }

/* ---------- Praktisch (HL9) ---------- */
.sb-hls .sb-hls-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.sb-hls .sb-hls-kachel { background: var(--sb-weiss, #fff); border: 1px solid var(--sb-grau-200, #e5e7eb); border-radius: var(--sb-radius-s, 12px); padding: 18px; }
.sb-hls .sb-hls-kachel h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.sb-hls .sb-hls-kachel-icon { width: 22px; height: 22px; color: var(--sb-petrol-700, #004445); flex: none; }
.sb-hls .sb-hls-kachel p { margin: 0; font-size: 15px; }
.sb-hls .sb-hls-fototipp { margin-top: 24px; background: #fffbe0; border: 2px solid #efe57a; border-radius: var(--sb-radius-s, 12px); padding: 16px 18px; }
.sb-hls .sb-hls-fototipp p { margin: 0; }

/* ---------- Quellen und Stand (HL10, HL15) ---------- */
.sb-hls .sb-hls-stand { display: inline-flex; gap: 8px; align-items: center; background: var(--sb-grau-100, #f2f0eb); border-radius: 999px; padding: 6px 14px; font-size: 14px; margin: 0 0 14px; }
.sb-hls .sb-hls-stand svg { width: 18px; height: 18px; color: var(--sb-petrol-700, #004445); }
.sb-hls .sb-hls-quellen { margin: 0; padding-left: 24px; display: grid; gap: 6px; font-size: 14.5px; }
.sb-hls .sb-hls-quellen li { scroll-margin-top: 120px; margin: 0; }
.sb-hls .sb-hls-quellen li:target { background: #fffbe0; border-radius: 6px; }
.sb-hls .sb-hls-quellen a { overflow-wrap: anywhere; }
.sb-hls .sb-hls-quellen small { color: var(--sb-text-2, #4b5563); }

/* ---------- In der Naehe (HL11) ---------- */
.sb-hls .sb-hls-naehe { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.sb-hls .sb-hls-naehe li { margin: 0; }
.sb-hls .sb-hls-naehe a { display: flex; flex-direction: column; height: 100%; background: var(--sb-weiss, #fff); border-radius: var(--borderRadiusImage, 15px); overflow: hidden; text-decoration: none; color: var(--sb-text, #1f2937); box-shadow: 0 4px 18px rgba(2, 28, 30, .07); }
.sb-hls .sb-hls-naehe-bild { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--sb-grau-100, #f2f0eb); }
.sb-hls .sb-hls-naehe-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sb-hls .sb-hls-plakette { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; background: #fff; color: var(--sb-petrol-900, #021c1e); font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.sb-hls .sb-hls-plakette svg { width: 14px; height: 14px; }
.sb-hls .sb-hls-naehe-text { display: block; padding: 14px 16px 16px; }
.sb-hls .sb-hls-naehe-text h3 { margin: 0 0 4px; }
.sb-hls .sb-hls-naehe-text small { color: var(--sb-text-2, #4b5563); }
.sb-hls .sb-hls-zum-ort { margin: 24px 0 0; }

/* HL-B2 (B2, 17.10.2026): Am rechten kleinen Bild sitzt unten der Knopf „Alle N Bilder"; sein Bildnachweis rueckt nach oben, damit beide lesbar bleiben */
.sb-hls .sbHeroGalerie:has(.sb-ortsseite-alle) > div.imgWrap:nth-of-type(3) .sb-kibild-nachweis { top: 6px; bottom: auto; }
/* HL-B2 (L1): Bucket-List-Knopf im Hero neben „Wo genau" */
.sb-hls .sb-hls-knoepfe .sb-merk-herz--seite { margin: 0; }
/* HL-B2 (S1): Titel mit sehr langen Woertern („baumkletternden", „Elefantenwaisenhaus"). Chrome trennt Deutsch nicht ueberall,
   dann bricht overflow-wrap mitten im Wort ohne Strich. Die Schrift wird so klein, dass das laengste Wort in die Spalte passt. */
.sb-hls .sb-hls-hero h1.sb-hls-titel--lang { font-size: clamp(26px, 3.2vw, 40px); }
.sb-hls .sb-hls-hero h1.sb-hls-titel--sehrlang { font-size: clamp(22px, 2.7vw, 34px); }
/* HL-B2 (B1): In den Karten „In der Naehe" sitzt unten links das Schild „N km Luftlinie"; der Bildnachweis rueckt nach oben rechts */
.sb-hls .sb-hls-naehe-bild .sb-kibild-nachweis { top: 6px; bottom: auto; }
