/* === Startseite (nur auf / geladen) === */
/* Begründungen und Prüfdaten zu den Regeln: interne Notiz css-begruendungen (nicht online). */
:root {
    --sx-hero: #f4f6f7;                   /* Bühne mit Karte */
    --sx-hero-rand: #dfe4e8;              /* Rahmen in der Bühne */
    --sx-ergebnis-kopf: #dde9ee;          /* Kantonsblock: Kopf (blau) */
    --sx-ergebnis-feld: #edf3f6;          /* Kantonsblock: Hinweisfeld (blau) */
    --sx-ergebnis-rand: #d2dfe5;          /* Kantonsblock: Rahmen und Trennlinien (blau) */
    --sx-grund: #f4f6f7;                  /* getönter Abschnitt */
    --sx-block: #fff;                     /* Blöcke: immer weiss mit Rand und --shadow-sm */
    --sx-rand: #dfe4e8;                   /* Rahmen der Blöcke, Trennlinien */
    --sx-rand-stark: #c5ced4;             /* Rahmen beim Darüberfahren, Verbindungslinie der Schritte */
    --sx-feld-rand: #b4bfc6;              /* Rahmen der Auswahlfelder im Filter */
    --sx-karte-anfrage: #c9d6dc;
    --sx-karte-offen: #e6eaec;            /* Karte: noch nicht abgedeckt (hellgrau) */
    --sx-filter-grund: #eaf1f5;           /* Filter der Angebotsliste: leicht blau getönt (Lars 14.10.) */
    --sx-filter-rand: #d2dfe5;
    --sx-angebot-grund: #f6f9fb;          /* Angebotszeilen: ganz leicht blau, heben sich vom Weiss ab */
    --sx-angebot-rand: #d9e4ea;
}
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* --- Knöpfe --- */
.sx-knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px;
    border-radius: var(--radius-sm); border: 2px solid var(--color-primary); background: var(--color-primary); color: #fff;
    font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; text-align: center; }
.sx-knopf:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); color: #fff; text-decoration: none; }
.sx-knopf svg { width: 18px; height: 18px; flex: 0 0 auto; }
.sx-knopf--hell { background: #fff; color: var(--color-primary); border-color: var(--color-primary); }
.sx-knopf--hell:hover { background: var(--sx-grund); border-color: var(--color-primary-dark); color: var(--color-primary-dark); }
.sx-knopf--invers { background: #fff; color: var(--color-primary); border-color: #fff; }
.sx-knopf--invers:hover { background: var(--sx-grund); color: var(--color-primary-dark); border-color: var(--sx-grund); }
.sx-knopf--rot { background: var(--color-accent); border-color: var(--color-accent); color: #fff; } /* Schlussband, wie «Suchen» (Lars 14.10.) */
.sx-knopf--rot:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); color: #fff; }
.sx-knopf--weiss { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.sx-knopf--weiss:hover { background: #fff; color: var(--color-primary); border-color: #fff; }
.sx-knopf--klein { min-height: 44px; padding: 10px 16px; font-size: .95rem; }
.sx-pfeil { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; font-weight: 600; color: var(--color-accent-dark); text-decoration: none; }
.sx-pfeil svg { width: 18px; height: 18px; transition: transform .2s; }
.sx-pfeil:hover { text-decoration: underline; text-underline-offset: 3px; }
.sx-pfeil:hover svg { transform: translateX(3px); }

/* --- Bühne mit Ortssuche --- */
.sx-hero { background: var(--sx-hero); border-bottom: 1px solid var(--sx-hero-rand); padding-top: 48px; padding-bottom: 44px; }
.sx-hero__inner { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 40px; align-items: center; }
.sx-hero__inner > * { min-width: 0; }
.sx-hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 16px; color: var(--color-primary-dark); }
.sx-lead { font-size: 1.15rem; color: var(--color-text-muted); margin: 0 0 26px; max-width: 34em; }
.sx-lead strong { color: var(--color-text); }

.sx-suche { position: relative; max-width: 36rem; }
.sx-suche__label { display: block; font-weight: 600; font-size: 1.1rem; margin-bottom: 10px; color: var(--color-primary-dark); }
.sx-suche__feld { position: relative; display: flex; background: #fff; border: 2px solid var(--color-primary); border-radius: var(--radius-sm);
    box-shadow: var(--shadow); overflow: hidden; }
.sx-suche__feld:focus-within { border-color: var(--color-accent); box-shadow: 0 0 0 4px rgba(210, 49, 55, .15), var(--shadow); }
.sx-suche__lupe { position: absolute; left: 16px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); color: var(--color-text-muted); pointer-events: none; }
.sx-suche input { flex: 1 1 auto; min-width: 0; min-height: 58px; border: 0; padding: 14px 12px 14px 50px; font-size: 1.1rem; background: transparent; color: var(--color-text); }
.sx-suche input:focus { outline: none; }
.sx-suche input::-webkit-search-cancel-button { cursor: pointer; }
.sx-suche__los { flex: 0 0 auto; border: 0; background: var(--color-accent); color: #fff; font-weight: 600; padding: 0 22px; cursor: pointer; font-size: 1rem; }
.sx-suche__los:hover { background: var(--color-accent-dark); }
.sx-suche__hilfe { margin: 8px 0 0; font-size: .9rem; color: var(--color-text-muted); }
.sx-suche__liste { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% - 22px); margin: 0; padding: 6px; list-style: none;
    background: #fff; border: 1px solid var(--sx-hero-rand); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); max-height: 380px; overflow-y: auto; }
.sx-suche__liste li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 10px 12px; border-radius: 7px; cursor: pointer; }
.sx-suche__liste li[aria-selected="true"], .sx-suche__liste li:hover { background: var(--sx-hero); }
.sx-suche__liste .s1 { font-weight: 600; color: var(--color-text); }
.sx-suche__liste .s2 { grid-column: 1; font-size: .88rem; color: var(--color-text-muted); }
.sx-suche__liste .s3 { grid-column: 2; grid-row: 1 / span 2; font-size: .85rem; font-weight: 600; color: var(--color-primary); white-space: nowrap; }
.sx-suche__liste mark { background: none; color: var(--color-accent-dark); font-weight: 700; }
.sx-suche__liste .leer { cursor: default; color: var(--color-text-muted); display: block; }

.sx-beliebt { display: flex; flex-wrap: wrap; align-items: center; overflow: hidden; overflow-x: clip; overflow-y: visible;
    margin: 16px 0 0; font-size: .95rem; color: var(--color-text-muted); }
.sx-beliebt__titel { margin-right: 2px; }
.sx-beliebt__kurz { display: none; } /* «Oft gesucht:» nur auf dem Handy, siehe Dateiende */
.sx-beliebt__x { display: inline-flex; align-items: center; margin-left: calc(-1em - 12px); margin-right: calc(1em + 12px); }
.sx-beliebt__x::before { content: "·"; flex: none; width: calc(1em + 12px); text-align: center; }
.sx-beliebt__titel + .sx-beliebt__x { margin-left: 0; }
.sx-beliebt__x:last-child { margin-right: 0; } /* sonst zählt der Ausgleich beim Umbruch mit und «Appenzell AR» rutscht unnötig */
.sx-beliebt__titel + .sx-beliebt__x::before { display: none; }
.sx-beliebt__titel + .sx-beliebt__x a { text-align: right; } /* «Zug» ist schmaler als 44 px: Leerraum nach dem Doppelpunkt, nicht vor dem Punkt */
.sx-beliebt a { color: var(--color-primary); font-weight: 600; text-underline-offset: 3px; display: inline-block; padding: 10px 0; min-width: 44px; text-align: center; }

.sx-fakten { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .95rem; color: var(--color-text); }
.sx-fakten li { display: inline-flex; align-items: flex-start; gap: 7px; }
.sx-fakten svg { width: 18px; height: 18px; margin-top: .2em; color: var(--color-accent); flex: 0 0 auto; } /* auf der ersten Zeile, auch wenn der Text umbricht */
.sx-fakten li > span { min-width: 0; }
.sx-fakten a { color: var(--color-primary); font-weight: 600; display: inline-block; padding: 10px 0; margin: -10px 0; white-space: nowrap; }

/* --- Karte: Angebot Navy, auf Anfrage Hellblau, nicht abgedeckt Hellgrau, gewählt Rot --- */
.sx-hero__karte .cantonmap { position: relative; max-width: 100%; }
.sx-hero__karte .cantonmap__hint { display: none; }
.sx-hero .cantonmap__others .cantonmap__canton { fill: var(--sx-karte-offen); }
.sx-hero .cantonmap__canton--avail { fill: var(--sx-karte-anfrage); transition: fill .2s; }
.sx-hero .cantonmap__avail.hat-angebot .cantonmap__canton--avail { fill: var(--color-primary-light); }
.sx-hero .cantonmap__avail.ist-hover .cantonmap__canton--avail,
.sx-hero .cantonmap__avail:focus-visible .cantonmap__canton--avail { fill: var(--color-primary); }
@media (hover: hover) {
    .sx-hero .cantonmap__avail:hover .cantonmap__canton--avail { fill: var(--color-primary); }
}
.sx-hero .cantonmap__avail.is-picked:not(.ist-gewaehlt) .cantonmap__canton--avail { fill: #fff; stroke: var(--color-primary-dark); stroke-width: 3; }
.sx-hero .cantonmap__avail.ist-gewaehlt .cantonmap__canton--avail { fill: var(--color-accent); stroke: #fff; stroke-width: 2.5; }
/* Kürzel gross und mit Rand in der Farbe des Kantons, damit Grenzlinien darunter verschwinden */
.sx-hero .cantonmap--gross .cantonmap__abbr { font-size: 23px; letter-spacing: .02em; paint-order: stroke fill; stroke-width: 4px; stroke-linejoin: round; }
.sx-hero .cantonmap--gross .cantonmap__abbr--klein { font-size: 19px; stroke-width: 3px; }
.sx-hero .cantonmap__avail .cantonmap__abbr { fill: var(--color-primary-dark); stroke: var(--sx-karte-anfrage); }
.sx-hero .cantonmap__avail.hat-angebot .cantonmap__abbr { fill: #fff; stroke: var(--color-primary-light); }
.sx-hero .cantonmap__avail.ist-hover .cantonmap__abbr,
.sx-hero .cantonmap__avail:focus-visible .cantonmap__abbr { fill: #fff; stroke: var(--color-primary); }
@media (hover: hover) {
    .sx-hero .cantonmap__avail:hover .cantonmap__abbr { fill: #fff; stroke: var(--color-primary); }
}
.sx-hero .cantonmap__avail.is-picked:not(.ist-gewaehlt) .cantonmap__abbr { fill: var(--color-primary-dark); stroke: #fff; }
.sx-hero .cantonmap__avail.ist-gewaehlt .cantonmap__abbr { fill: #fff; stroke: var(--color-accent); }
/* Kleine Kantone: Kürzel ausserhalb mit Hinweislinie, die Fläche um das Kürzel ist anklickbar */
.sx-hero .cantonmap__linie { stroke: var(--color-primary-dark); stroke-width: 1.6; }
.sx-hero .cantonmap__punkt { fill: #fff; stroke: var(--color-primary-dark); stroke-width: 2; }
.sx-hero .cantonmap__flaeche { fill: transparent; pointer-events: all; }
.sx-hero .cantonmap__avail.cantonmap__aussen .cantonmap__abbr.cantonmap__abbr--aussen { fill: var(--color-primary-dark); stroke: var(--sx-hero); stroke-width: 6px; }
.sx-hero .cantonmap__avail.cantonmap__aussen.ist-hover .cantonmap__abbr.cantonmap__abbr--aussen { fill: var(--color-primary-light); }
@media (hover: hover) {
    .sx-hero .cantonmap__avail.cantonmap__aussen:hover .cantonmap__abbr.cantonmap__abbr--aussen { fill: var(--color-primary-light); }
}
.sx-hero .cantonmap__avail.cantonmap__aussen.ist-gewaehlt .cantonmap__abbr.cantonmap__abbr--aussen { fill: var(--color-accent); }
.sx-hero .cantonmap__aussen.ist-gewaehlt .cantonmap__linie { stroke: var(--color-accent); }
.sx-hero .cantonmap__aussen.ist-gewaehlt .cantonmap__punkt { stroke: var(--color-accent); }

.sx-tip { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; min-width: 220px; display: grid; gap: 4px;
    background: #fff; border: 1px solid var(--sx-ergebnis-rand); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
    padding: 12px 14px; font-size: .92rem; color: var(--color-text); }
.sx-tip b { color: var(--color-primary-dark); font-size: 1rem; margin-bottom: 2px; }
.sx-tip span { display: flex; justify-content: space-between; gap: 16px; }
.sx-tip em { font-style: normal; font-weight: 700; white-space: nowrap; }
.sx-tip small { color: var(--color-text-muted); font-size: .82rem; margin-top: 2px; }
/* Legende der Karte: seiten.css */

/* --- Ergebnisse --- */
.sx-ergebnisse { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 30px; }
.sx-ergebnisse:empty { display: none; }
.sx-karte { position: relative; z-index: 1; min-width: 0; display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0;
    background: #fff; border: 1px solid var(--sx-ergebnis-rand); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.sx-karte.ist-neu { animation: sx-rein .4s cubic-bezier(.2, .7, .3, 1); }
@keyframes sx-rein { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
.sx-karte.ist-weg { pointer-events: none; }
.sx-karte__kopf { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center;
    padding: 16px 12px 16px 22px; background: var(--sx-ergebnis-kopf); border-bottom: 1px solid var(--sx-ergebnis-rand); }
.sx-karte__kopf h3 { margin: 0; font-size: 1.35rem; line-height: 1.2; color: var(--color-primary-dark); }
/* Kantonsname als Link zur Kantonsseite (Lars 14.10.): roter Pfeil wie «Weiterlesen», unterstrichen beim Darüberfahren.
   Polster oben und unten nur für das Tippziel (inline, verschiebt nichts). */
.sx-karte__name { color: inherit; text-decoration: none; padding-top: 10px; padding-bottom: 10px; border-radius: 4px; }
.sx-karte__name:hover { color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.sx-karte__name:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.sx-karte__nw { white-space: nowrap; }
.sx-karte__name svg { display: inline-block; width: 22px; height: 22px; margin-left: 6px; vertical-align: -4px; color: var(--color-accent); transition: transform .2s; }
.sx-karte__name:hover svg { transform: translateX(3px); }
.sx-karte__ort { margin: 4px 0 0; color: var(--color-text-muted); font-size: .95rem; }
/* Wappen ohne weissen Rahmen: weisse Felder (Zug, Basel) gingen darin unter */
.sx-karte__wappen { display: grid; place-items: center; width: 48px; }
.sx-karte__wappen img { width: 40px; height: 48px; object-fit: contain; display: block; filter: drop-shadow(0 1px 2px rgba(22, 48, 59, .28)); }
.sx-karte__zu { width: 44px; height: 44px; border: 0; background: none; border-radius: 9px; color: var(--color-text-muted); cursor: pointer; font-size: 26px; line-height: 1; align-self: start; }
.sx-karte__zu:hover { background: #fff; color: var(--color-text); }
.sx-karte__info { padding: 16px 22px 0; }
.sx-karte__info:empty { padding: 0; }
.sx-karte__info p { margin: 0; padding: 12px 14px; background: var(--sx-ergebnis-feld); border-radius: var(--radius-sm); font-size: .95rem; line-height: 1.5; }
.sx-karte__info p + p { margin-top: 8px; }
.sx-preis { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline; align-content: start; margin: 0 22px; padding: 14px 0; }
.sx-preis + .sx-preis { border-top: 1px solid var(--sx-ergebnis-rand); }
.sx-preis:empty { padding: 0; }
.sx-preis__art { color: var(--color-text); font-weight: 500; }
.sx-preis__wert { text-align: right; color: var(--color-text-muted); font-size: .92rem; white-space: nowrap; }
.sx-preis__wert b { font-size: 1.2rem; color: var(--color-primary-dark); }
.sx-preis__wert b.ohne { font-weight: 600; color: var(--color-text-muted); } /* gleiche Grösse wie die Preise: gleiche Grundlinie in beiden Blöcken */
.sx-preis__wert small { display: block; font-size: .85rem; margin-top: 2px; }
.sx-karte__knoepfe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 8px 22px 0; align-self: end; }
.sx-karte__knoepfe .sx-knopf { width: 100%; padding-left: 12px; padding-right: 12px; }
.sx-karte__knoepfe .sx-knopf:only-child { grid-column: 1 / -1; }
.sx-karte__links { margin: 0; padding: 8px 22px 14px; display: flex; flex-wrap: wrap; gap: 0 20px; font-size: .95rem; }
.sx-karte__links a, .sx-karte__links button { color: var(--color-primary); font-weight: 600; text-underline-offset: 3px; padding: 10px 0; }
.sx-karte__links button { background: none; border: 0; text-decoration: underline; cursor: pointer; font: inherit; }

/* --- Abschnitte --- */
.sx-sektion { padding-top: 72px; padding-bottom: 72px; }
.sx-sektion--blau { background: var(--sx-grund); border-top: 1px solid var(--sx-rand); border-bottom: 1px solid var(--sx-rand); }
.sx-sektion--blau + .sx-sektion--blau { border-top: 0; }
.sx-titel { font-size: clamp(1.55rem, 3vw, 2.2rem); line-height: 1.2; text-align: center; margin: 0 0 12px; color: var(--color-primary-dark); letter-spacing: -.01em; }
.sx-titel--links { text-align: left; }
.sx-unter { text-align: center; color: var(--color-text-muted); max-width: 41em; margin: 0 auto 34px; font-size: 1.05rem; } /* 44em ergab 91 Zeichen je Zeile, 41em höchstens 85 */
.sx-mitte { text-align: center; margin: 32px 0 0; }

/* --- Alle Angebote: Filter und Liste. Wunsch Lars 14.10.: leicht eingefärbt (Hellblau der Kantonsblöcke, kein Beige),
   damit man sieht, dass es um das Wichtigste geht. Filter etwas kräftiger, Zeilen ganz leicht. --- */
.sx-filter { display: flex; flex-wrap: wrap; align-items: end; gap: 14px 18px; margin: 0 0 16px; padding: 16px 18px; background: var(--sx-filter-grund);
    border: 1px solid var(--sx-filter-rand); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.sx-filter__art { display: inline-grid; grid-auto-flow: column; gap: 2px; padding: 2px; border: 0; border-radius: var(--radius-sm); margin: 0; background: var(--color-primary); }
.sx-filter__art label { position: relative; cursor: pointer; display: grid; }
.sx-filter__art input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.sx-filter__art span { display: grid; place-items: center; min-height: 44px; padding: 8px 16px; font-weight: 600; color: var(--color-primary); text-align: center; line-height: 1.2;
    background: #fff; transition: background-color .15s, color .15s; }
.sx-filter__art label:first-of-type span { border-radius: 7px 0 0 7px; }
.sx-filter__art label:last-of-type span { border-radius: 0 7px 7px 0; }
.sx-filter__art label:hover span { background: var(--sx-grund); }
.sx-filter__art label:has(input:checked) span { background: var(--color-primary); color: #fff; }
.sx-filter__art label:has(input:focus-visible) { outline: 3px solid var(--color-accent); outline-offset: -4px; }
.sx-filter__feld { display: grid; gap: 4px; font-size: .88rem; font-weight: 600; color: var(--color-text-muted); }
.sx-filter__feld select { min-height: 48px; min-width: 190px; border: 2px solid var(--sx-feld-rand); border-radius: var(--radius-sm); padding: 8px 12px;
    background: #fff; font-size: 1rem; color: var(--color-text); }
.sx-filter__zahl { margin: 0 0 0 auto; align-self: center; font-weight: 600; color: var(--color-text-muted); }

.sx-angebote { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sx-angebot { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 1.9fr) minmax(200px, 1.15fr) auto; gap: 8px 24px; align-items: center;
    background: var(--sx-angebot-grund); border: 1px solid var(--sx-angebot-rand); border-radius: var(--radius-sm); padding: 14px 18px; box-shadow: var(--shadow-sm);
    transition: background-color .2s, box-shadow .2s, border-color .2s; }
.sx-angebot:hover { background: #fff; border-color: var(--sx-ergebnis-rand); box-shadow: var(--shadow); }
.sx-angebot { position: relative; cursor: pointer; }
.sx-angebot > .sx-knopf::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.sx-angebot__kanton a { position: relative; z-index: 1; }
.sx-angebot[hidden] { display: none !important; }
.sx-angebot.ist-neu { animation: sx-auf .35s ease-out; }
@keyframes sx-auf { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.sx-mehr { margin: 14px 0 0; text-align: center; }
.sx-angebot__kanton { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sx-angebot__wappen { flex: 0 0 auto; display: grid; place-items: center; width: 32px; }
.sx-angebot__wappen img { width: 28px; height: 34px; object-fit: contain; display: block; filter: drop-shadow(0 1px 1.5px rgba(22, 48, 59, .28)); }
.sx-angebot__kanton > span:last-child { display: grid; gap: 1px; min-width: 0; }
.sx-angebot__kanton a { color: var(--color-primary-dark); font-weight: 600; text-decoration: none; padding: 8px 0; margin: -8px 0; }
.sx-angebot__kanton a:hover { text-decoration: underline; }
.sx-angebot__kanton small { font-size: .85rem; color: var(--color-text-muted); }
.sx-angebot__was { display: grid; gap: 2px; min-width: 0; }
.sx-angebot__was b { color: var(--color-text); }
.sx-angebot__plus { font-size: .9rem; color: var(--color-text-muted); }
.sx-angebot__preis { font-size: .92rem; color: var(--color-text-muted); }
.sx-angebot__preis b { font-size: 1.25rem; color: var(--color-primary-dark); }
.sx-angebot__preis span { display: block; font-size: .85rem; }
.sx-leer { padding: 18px; background: var(--sx-block); border: 1px solid var(--sx-rand); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.sx-weitere { margin-top: 44px; padding-top: 34px; border-top: 1px solid var(--sx-rand); text-align: center; }
.sx-weitere__titel { margin: 0 0 4px; font-size: 1.25rem; color: var(--color-primary-dark); }
.sx-weitere__text { margin: 0 auto 22px; max-width: 41em; color: var(--color-text-muted); }
.sx-kantonsliste { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 16px; }
.sx-kantonsliste li { display: flex; min-width: 0; max-width: 100%; }
.sx-kantonsliste a { display: inline-flex; align-items: center; gap: 8px; min-width: 0; min-height: 46px; padding: 7px 22px 7px 14px;
    background: #fff; border: 1px solid var(--sx-rand); border-radius: 999px; box-shadow: var(--shadow-sm);
    color: var(--color-primary-dark); font-weight: 500; line-height: 1.25; text-align: left; text-decoration: none;
    transition: transform .2s, box-shadow .2s, border-color .2s; }
.sx-kantonsliste a:hover { transform: translateY(-2px); border-color: var(--color-primary); box-shadow: var(--shadow); text-decoration: none; }
.sx-kantonsliste img { flex: 0 0 auto; width: 24px; height: 29px; object-fit: contain; filter: drop-shadow(0 1px 1.5px rgba(22, 48, 59, .28)); }
.sx-kantonsliste span { min-width: 0; overflow-wrap: break-word; }

/* --- Zahlenband unter der Bühne --- */
.sx-hero:has(+ .sx-zahlen) { border-bottom: 0; } /* keine helle Linie zwischen Bühne und Navy */
.sx-zahlen { background: var(--color-primary); padding-top: 2.6rem; padding-bottom: 2.6rem; }
.sx-zahlen .stats-band__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; align-items: start; }
.sx-zahlen .stat { gap: 6px; min-width: 0; }
.sx-zahlen .stat__num { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.1;
    letter-spacing: -.01em; color: #fff; font-variant-numeric: tabular-nums; text-wrap: balance; }
.sx-zahlen__eins { white-space: nowrap; } /* «CHF 100» nie trennen, «ab» darf darüber stehen */
.sx-zahlen .stat__label { max-width: 15em; margin-inline: auto; font-size: .95rem; line-height: 1.4; color: rgba(255, 255, 255, .78); text-wrap: balance; }

/* --- Drei Schritte: Zeitleiste mit Nummern --- */
.sx-schritte { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.sx-schritte li { position: relative; text-align: center; padding: 0 8px; }
.sx-schritte li:not(:last-child)::after { content: ""; position: absolute; top: 29px; left: calc(50% + 40px); width: calc(100% - 48px); height: 2px; background: var(--sx-rand-stark); }
.sx-schritte__nr { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%;
    background: var(--color-accent); color: #fff; font-size: 1.4rem; font-weight: 700; box-shadow: 0 0 0 6px #fff, var(--shadow); }
.sx-schritte h3 { margin: 0 0 8px; font-size: 1.2rem; color: var(--color-primary-dark); }
.sx-schritte p { margin: 0 auto; max-width: 22em; color: var(--color-text-muted); text-wrap: pretty; } /* kein Wort allein auf der letzten Zeile (14.10.2026) */

/* --- c/o oder ohne c/o --- */
.sx-vergleich { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 1020px; margin-inline: auto; }
.sx-vergleich__spalte { display: flex; flex-direction: column; gap: 20px; padding: 30px; background: var(--sx-block); border: 1px solid var(--sx-rand); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); }
.sx-vergleich__kopf { display: flex; align-items: center; gap: 16px; }
.sx-vergleich__symbol { flex: 0 0 auto; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--sx-grund); color: var(--color-accent); }
.sx-vergleich__symbol svg { width: 28px; height: 28px; }
.sx-vergleich__spalte h3 { margin: 0; font-size: 1.35rem; color: var(--color-primary-dark); }
.sx-vergleich__preis { margin: 2px 0 0; font-size: 1rem; color: var(--color-text-muted); }
.sx-vergleich__preis b { color: var(--color-primary-dark); font-size: 1.3rem; }
.sx-liste-haken { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sx-liste-haken li { display: flex; gap: 10px; align-items: flex-start; }
.sx-liste-haken svg { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 2px; color: var(--color-accent); }
.sx-vergleich__spalte .sx-knopf { margin-top: auto; align-self: flex-start; }

/* --- Ansprechpartner --- */
.sx-person { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 56px; align-items: center; max-width: 1040px; margin-inline: auto; }
.sx-person__bild { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.sx-person__text .sx-titel { margin-bottom: 14px; }
.sx-person__zitat { margin: 0 0 12px; font-size: 1.3rem; line-height: 1.45; font-weight: 500; color: var(--color-primary-dark); }
.sx-person__name { margin: 0 0 22px; color: var(--color-text-muted); }
.sx-person__name b { color: var(--color-text); }
.sx-person__name span::before { content: "· "; }
.sx-person__knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.sx-vertrauen { list-style: none; margin: 0 0 14px; padding: 22px 0 0; border-top: 1px solid var(--sx-rand-stark);
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }
.sx-vertrauen li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; line-height: 1.45; }
.sx-vertrauen li > span { flex: 0 0 auto; display: grid; place-items: center; width: 22px; height: 22px; color: var(--color-accent); }
.sx-vertrauen svg { width: 20px; height: 20px; }
.sx-person__text > p:last-child { margin: 0; }

/* --- Ratgeber (weisse Blöcke mit Rand und leichtem Schatten, Symbol als hellgraue Kachel) --- */
.sx-ratgeber { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.sx-ratgeber a { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 24px 22px 20px; background: var(--sx-block); border: 1px solid var(--sx-rand);
    border-radius: var(--radius); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--color-text);
    transition: background-color .2s, box-shadow .2s, transform .2s, border-color .2s; }
.sx-ratgeber a:hover { background: #fff; border-color: var(--sx-rand-stark); box-shadow: var(--shadow); transform: translateY(-3px); }
.sx-ratgeber__symbol { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--sx-grund); color: var(--color-accent); margin-bottom: 4px; transition: background-color .2s, color .2s; }
.sx-ratgeber__symbol svg { width: 24px; height: 24px; }
.sx-ratgeber a:hover .sx-ratgeber__symbol { background: var(--color-accent); color: #fff; }
.sx-ratgeber b { color: var(--color-primary-dark); font-size: 1.08rem; line-height: 1.3; overflow-wrap: break-word; } /* lange Wörter mit weichem Trennstrich in home.php */
.sx-ratgeber__text { color: var(--color-text-muted); font-size: .95rem; }
.sx-ratgeber__mehr { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--color-accent-dark); }
.sx-ratgeber__mehr svg { width: 18px; height: 18px; transition: transform .2s; }
.sx-ratgeber a:hover .sx-ratgeber__mehr svg { transform: translateX(3px); }

/* --- Fragen: weisse Blöcke auf dem hellgrauen Grund --- */
.sx-sektion--blau .faq details { background: #fff; border-color: var(--sx-rand); box-shadow: var(--shadow-sm); }

/* --- Abschluss --- */
.sx-abschluss { background: var(--color-primary); color: #fff; padding-top: 52px; padding-bottom: 52px; }
.sx-abschluss__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.sx-abschluss h2 { color: #fff; margin: 0 0 6px; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.sx-abschluss p { margin: 0; color: rgba(255, 255, 255, .85); }
.sx-abschluss__knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }

@media (prefers-reduced-motion: reduce) {
    .sx-karte.ist-neu, .sx-angebot.ist-neu { animation: none; }
    .sx-ratgeber a, .sx-ratgeber a:hover { transform: none; }
    .sx-kantonsliste a, .sx-kantonsliste a:hover { transform: none; }
}

/* --- Responsiv (am Ende, siehe CLAUDE.md 2f) --- */
@media (max-width: 1100px) {
    .sx-ratgeber { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sx-angebot { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
    .sx-angebot__preis { grid-column: 1; }
    .sx-angebot > .sx-knopf { grid-column: 2; justify-self: end; }
    .sx-karte__knoepfe { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
    .sx-hero__inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .sx-hero__karte { max-width: 600px; }
    .sx-ergebnisse { grid-template-columns: minmax(0, 1fr); }
    .sx-karte__knoepfe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sx-vergleich { grid-template-columns: minmax(0, 1fr); }
    .sx-person { grid-template-columns: 200px minmax(0, 1fr); gap: 32px; }
    .sx-vertrauen { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
    .sx-zahlen .stats-band__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; }
    /* Zeitleiste senkrecht: Nummer links, Linie nach unten */
    .sx-schritte { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .sx-schritte li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 18px; text-align: left; padding: 0; }
    .sx-schritte li:not(:last-child)::after { top: 64px; left: 27px; width: 2px; height: calc(100% - 46px); }
    .sx-schritte__nr { grid-row: span 2; width: 56px; height: 56px; margin: 0; font-size: 1.3rem; }
    .sx-schritte h3 { margin-top: 12px; }
    .sx-schritte p { margin: 0; max-width: none; }
    .sx-person { grid-template-columns: 92px minmax(0, 1fr); gap: 0 16px; align-items: center;
        grid-template-areas: "titel titel" "bild name" "zitat zitat" "knoepfe knoepfe" "vertrauen vertrauen" "mehr mehr"; }
    .sx-person__text { display: contents; }
    .sx-person__text .sx-titel { grid-area: titel; margin-bottom: 18px; }
    .sx-person__bild { grid-area: bild; width: 92px; border-radius: 12px; box-shadow: var(--shadow-sm); }
    .sx-person__name { grid-area: name; margin: 0; }
    .sx-person__name b, .sx-person__name span { display: block; }
    .sx-person__name b { font-size: 1.15rem; margin-bottom: 2px; }
    .sx-person__name span::before { content: none; }
    .sx-person__zitat { grid-area: zitat; margin: 20px 0 18px; font-size: 1.15rem; }
    .sx-person__knoepfe { grid-area: knoepfe; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 24px; }
    .sx-person__knoepfe .sx-knopf { padding-left: 10px; padding-right: 10px; }
    .sx-vertrauen { grid-area: vertrauen; }
    .sx-person__text > p:last-child { grid-area: mehr; }
}
@media (max-width: 640px) {
    .sx-hero { padding-top: 28px; padding-bottom: 28px; }
    .sx-suche__los { padding: 0 14px; }
    .sx-hero__karte { margin-top: 6px; }
    .sx-hero .cantonmap--gross .cantonmap__abbr { font-size: 36px; stroke-width: 6px; }
    .sx-hero .cantonmap--gross .cantonmap__abbr--klein { display: none; }
    .sx-hero .cantonmap__avail.cantonmap__aussen .cantonmap__abbr.cantonmap__abbr--aussen { font-size: 34px; stroke-width: 8px; }
    .sx-legende { font-size: .85rem; gap: 4px 14px; }
    .sx-sektion { padding-top: 48px; padding-bottom: 48px; }
    .sx-angebot { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 14px; }
    .sx-angebot__preis, .sx-angebot > .sx-knopf { grid-column: 1; justify-self: stretch; }
    .sx-filter { padding: 12px; }
    .sx-filter__art { width: 100%; grid-auto-columns: 1fr; }
    .sx-filter__art span { padding: 8px 6px; font-size: .95rem; }
    .sx-filter__feld { flex: 1 1 140px; }
    .sx-filter__feld select { min-width: 0; width: 100%; }
    .sx-filter__zahl { margin: 0; }
    .sx-kantonsliste { gap: 10px; }
    .sx-kantonsliste a { padding: 7px 16px 7px 12px; }
    /* Zahlenband auf dem Handy kompakter (2 × 2 siehe 760 px) */
    .sx-zahlen { padding-top: 1.9rem; padding-bottom: 1.9rem; }
    .sx-zahlen .stats-band__grid { gap: 22px 14px; }
    .sx-zahlen .stat__num { font-size: 1.5rem; }
    .sx-zahlen .stat__label { font-size: .88rem; }
    .sx-ratgeber { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    /* Ratgeber kompakt: Symbol neben dem Titel */
    .sx-ratgeber a { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 18px; }
    .sx-ratgeber__symbol { margin: 0; width: 44px; height: 44px; }
    .sx-ratgeber b { flex: 1 1 0; min-width: 0; }
    .sx-ratgeber__text, .sx-ratgeber__mehr { flex: 1 1 100%; }
    .sx-ratgeber__mehr { padding-top: 0; }
    .sx-karte__kopf { padding-left: 16px; gap: 10px; }
    .sx-karte__info { padding: 14px 16px 0; }
    .sx-preis { margin: 0 16px; }
    .sx-karte__knoepfe { grid-template-columns: minmax(0, 1fr); padding: 8px 16px 0; }
    .sx-karte__links { padding: 6px 16px 12px; }
    .sx-vergleich__spalte { padding: 22px 18px; }
}
@media (max-width: 480px) {
    .sx-person__knoepfe { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 400px) {
    .sx-hero .cantonmap--gross .cantonmap__abbr { font-size: 40px; }
    .sx-hero .cantonmap__avail.cantonmap__aussen .cantonmap__abbr.cantonmap__abbr--aussen { font-size: 38px; }
    .sx-filter__feld { flex-basis: 100%; }
    .sx-kantonsliste { gap: 8px; }
    .sx-kantonsliste a { gap: 7px; padding: 7px 13px 7px 10px; font-size: .95rem; }
    .sx-filter__art { grid-auto-columns: auto; }
    .sx-filter__art span { white-space: nowrap; padding: 8px 8px; }
    .sx-karte__wappen { width: 36px; }
    .sx-karte__wappen img { width: 32px; height: 38px; }
    .sx-preis { grid-template-columns: minmax(0, 1fr); }
    .sx-preis__wert { text-align: left; }
}

/* --- Handy-Prüfung 14.10.2026 (am Dateiende, CLAUDE.md 2f) --- */
.sx-karte { scroll-margin-top: 84px; }
#angebote, #ortssuche { scroll-margin-top: 72px; }
@media (max-width: 359px) {
    .sx-karte__kopf h3 { font-size: 1.2rem; } /* Platz für den Pfeil neben «Ausserrhoden» oder «Schaffhausen» (14.10.2026) */
    .sx-suche__lupe { display: none; }
    .sx-suche input { padding-left: 14px; font-size: 1rem; }
    .sx-suche__los { padding: 0 12px; }
}

/* --- «Häufig gesucht» in der zweispaltigen Bühne mit schmaler Textspalte (961 bis 1099 px, etwa iPad quer) ---
   «Aargau» stand allein auf einer zweiten Zeile. Etwas kleiner und mit engeren Punkten passt alles in eine Zeile. */
@media (min-width: 961px) and (max-width: 1099px) {
    .sx-beliebt { font-size: .9rem; }
    .sx-beliebt__x { margin-left: calc(-.5em - 9px); margin-right: calc(.5em + 9px); }
    .sx-beliebt__x::before { width: calc(.5em + 9px); }
}
/* --- «Häufig gesucht» auf dem Handy (Lars 14.10.2026: zwei Zeilen mit grossem Abstand, zu viel Platz) ---
   Eine Zeile: Bezeichnung kurz und klein («Oft gesucht:»), Orte und Punkte gleichmässig über die Breite des Suchfelds
   verteilt (höchstens 26rem, sonst zu luftig). Punkte und Links sind direkte Flex-Elemente (display: contents), der
   Ausgleich für den Punkt am Zeilenanfang (oben) entfällt, die Zeile bricht im Normalfall nicht um. Tippziele 44 × 44 px über Polster mit
   gleich grossem negativem Rand: sichtbar bleibt nur die Textzeile. Unter 372 px steht die Bezeichnung darüber. */
@media (max-width: 640px) {
    /* wrap nur als Sicherung (z. B. ohne Webschrift): lieber eine zweite Zeile als seitlicher Überlauf */
    .sx-beliebt { flex-wrap: wrap; row-gap: 2px; justify-content: space-between; max-width: 26rem; margin-top: 14px; overflow: visible;
        font-size: .875rem; line-height: 1.5; }
    .sx-beliebt__titel { flex: none; margin-right: 4px; font-size: .8rem; }
    .sx-beliebt__lang { display: none; }
    .sx-beliebt__kurz { display: inline; }
    .sx-beliebt__x { display: contents; }
    .sx-beliebt__x::before { width: auto; }
    .sx-beliebt a { flex: none; min-width: 44px; padding: 12px 7px; margin: -12px -7px; } /* «Zug» bleibt rechtsbündig (oben): gleicher Abstand zum Punkt wie die übrigen */
    .sx-beliebt__x:last-child a { padding-right: 0; margin-right: 0; } /* bündig mit dem Suchfeld, ragt nicht in den Rand */
}
@media (max-width: 371px) { /* bei 360 px nur noch 3 px neben den Punkten: Bezeichnung darüber */
    .sx-beliebt__titel { flex: 0 0 100%; margin-right: 0; }
    .sx-beliebt__titel + .sx-beliebt__x a { text-align: center; } /* steht am Zeilenanfang: Text fast bündig mit «Oft gesucht:» */
}
